Takashi Iwai wrote:
At Mon, 16 Feb 2009 13:24:54 +0530, Viral Mehta wrote:
Hi All,
Next time, when I enabled few of the OSS options in kernel's config file. I was able to run my application. My question is I do not want OSS at all. I just need ALSA then in that case what I am doing wrong.
Well, rather a real question is which app / subsystem accessing the OSS device and causes errors.
Thanks for quick response. Well, I myself am writing Audio Player application for some embedded device. I generally used to write open("/dev/dsp") device and then do read/write of RAW data on that device and it used to work till now. I was/am doing so and completely unaware of OSS/ALSA.
You can set up ALSA-only system in the kernel side.
But then when I found while rebuilding kernel that there are two sound sub-system OSS and ALSA. ALSA is a new one and OSS is deprecated. And so I thought to remove everything about OSS from Kernel.
But if the user-space side requires the OSS API, it won't work.
So, I guess my application is such that it wont work with ALSA-only-kernel. But then on contrary, I think that opening a /dev/dsp and throwing data is a simple way AND what is so wrong in that and why ALSA-only-kernel cant understand that ?
So,
- if you want to remove all OSS-accessing apps, fix them
or
- build ALSA OSS *emulation* module so that they work both
or
- use aoss wrapper instead