Lee Revell wrote: ... > OK, I have posted the latest version: > > http://www.alsa-project.org/~rlrevell/emu10k1-multichannel-v007.patch > > All the known bugs I mentioned have been fixed. I would like to test > this version a while before signing off on it, then it should be ready > to merge. Since this patch touches almost every file in the driver, I > can split it up and post it as a series of patches if necessary. > > The mixer controls for multichannel PCM have been fixed and moved to > IFACE_PCM. My solution was to use the same emu10k1_pcm_mixer_t > structure internally as for regular PCM substreams, but only the "mono" > component is exposed to userspace. > ... I'm having problems with emu10k1-multichannel-v008.patch. I have made a test program that demonstrates the bug. The program works alone, but the bug is triggered when I play a song in xmms, and at the same time run the test program. The test program is based on patest_sine.c in PortAudio V18.1. It repeatedly plays a sine signal for one second. When playing a stereo stream it fails to open the oss device the sixth time. And when playing a mono stream it fails to open the device the eighth time. Running the test program again doesn't work at all. I have to stop xmms to reset the bug. Output from test program and PostAudio library: Stereo stream ------------- PortAudio Test: output sine wave. SR = 44100, BufSize = 64, devID = 0 Pa_SetupDeviceFormat: could not SNDCTL_DSP_CHANNELS An error occured while using the portaudio stream Error number: -10000 Error message: Host error. PortAudio Test: output sine wave. SR = 44100, BufSize = 64, devID = 0 Pa_QueryDevice: could not get format info Pa_SetupDeviceFormat: could not SNDCTL_DSP_SETFMT An error occured while using the portaudio stream Error number: -10000 Error message: Host error. PortAudio Test: output sine wave. SR = 44100, BufSize = 64, devID = 0 Pa_QueryDevice: could not get format info Pa_SetupDeviceFormat: could not SNDCTL_DSP_SETFMT An error occured while using the portaudio stream Error number: -10000 Error message: Host error. Mono stream ----------- Pa_QueryDevice: no supported sample rate (or SNDCTL_DSP_SPEED ioctl call failed). Force 44100 Hz Pa_SetupDeviceFormat: could not SNDCTL_DSP_SETFMT An error occured while using the portaudio stream Error number: -10000 Error message: Host error. PortAudio Test: output sine wave. SR = 44100, BufSize = 64, devID = 0 Pa_QueryDevice: could not get format info Pa_SetupDeviceFormat: could not SNDCTL_DSP_SETFMT An error occured while using the portaudio stream Error number: -10000 Error message: Host error. The log also contains several "kernel: first==last, number X, next free Y!", where X is 1 or 2, and Y 12,16,26,32,36 or 44. I hope this helps. Regards, Mikael Magnusson