On Wed, 24 Jul 2002, Shaju Abraham wrote: > Hi all, > I am in a situation where I intend to call snd_pcm_oss_write > directly. > > What exactly happens is - the open and all the initial ioctl calls are > done by the oss application. But the write call of the oss application > is not done but it is done by some other task. > > So what I do is, when snd_pcm_oss_open gets called, I store the > -- struct file *file -- in my own pointer, say, gfile. > > Then I use this pointer, -gfile- in snd_pcm_oss_write() when I call the > function directly. But apparently this much is not enough. The direct > write call crashes. If you can please tell me what else needs to be > done for the call to get through, it will be of great help.
Why you do these very ugly things? It seems that you're calling internal functions of the OSS emulation in the kernel space. Jaroslav ----- Jaroslav Kysela <[EMAIL PROTECTED]> Linux Kernel Sound Maintainer ALSA Project http://www.alsa-project.org SuSE Linux http://www.suse.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel