[alsa-devel] CS5530 on Geode GX1 won't work
Hello
As Alsa-User mailinglist could not help, I hopefully sent my mail to this list now.
I am playing around, trying to get this sound card working for a while now.
The Hardware is an embedded Geode GX1. Kernel is vanilla 2.6.25.9.
Problem: ------------------------ 8<------------------------- root@tux:~# aplay foo.wav ALSA lib pcm_dmix.c:866:(snd_pcm_dmix_open) unable to open slave aplay: main:546: audio open error: Device or resource busy
root@tux:~# lspci ... 00:12.2 IDE interface: Cyrix Corporation 5530 IDE [Kahlua] 00:12.3 Multimedia audio controller: Cyrix Corporation 5530 Audio [Kahlua] 00:12.4 VGA compatible controller: Cyrix Corporation 5530 Video [Kahlua] ...
root@tux:~# lsmod Module Size Used by snd_cs5530 4388 0 snd_sb16_dsp 8608 1 snd_cs5530 snd_sb_common 14432 2 snd_cs5530,snd_sb16_dsp snd_pcm 63208 1 snd_sb16_dsp snd_timer 19492 1 snd_pcm snd 38804 5 snd_cs5530,snd_sb16_dsp,snd_sb_common,snd_pcm,snd_timer snd_page_alloc 7752 1 snd_pcm
dmesg: ... CS5530: XpressAudio at 0x220 CS5530: MPU at 0x330 CS5530: IRQ: 5 DMA8: 1 DMA16: 5 ...
root@tux:~# cat /proc/interrupts CPU0 0: 249130 XT-PIC-XT timer 1: 2 XT-PIC-XT i8042 2: 0 XT-PIC-XT cascade 5: 0 XT-PIC-XT SoundBlaster 9: 184193 XT-PIC-XT ohci_hcd:usb1, eth0 12: 1 XT-PIC-XT 14: 41917 XT-PIC-XT ide0
root@tux:~# strace aplay foo.wav ... shmctl(32768, 0x102 /* SHM_??? */, 0xbfc94a68) = 0 shmctl(32768, 0x101 /* SHM_??? */, 0xbfc94a68) = 0 open("/dev/snd/controlC0", O_RDWR) = 3 ioctl(3, USBDEVFS_CONTROL, 0xbfc947a8) = 0 ioctl(3, 0x40045532, 0xbfc947a4) = 0 open("/dev/snd/pcmC0D0p", O_RDWR|O_NONBLOCK) = -1 EBUSY (Device or resource busy) close(3) = 0 write(2, "ALSA lib pcm_dmix.c:866:(snd_pcm"..., 44ALSA lib pcm_dmix.c:866: (snd_pcm_dmix_open) ) = 44 write(2, "unable to open slave", 20unable to open slave) = 20 write(2, "\n", 1) = 1 ...
root@tux:~# lsof | grep -i pcmC0D0p root@tux:~#
root@tux:~# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: Audio [CS5530 Audio], device 0: SB16 DSP [DSP v4.12] Subdevices: 1/1 Subdevice #0: subdevice #0
root@tux:~# aplay -L null Discard all samples (playback) or generate zero samples (capture)
------------------------ 8<-------------------------
No one is using the sound device. But strace shows error 'Device or resource busy'. The thing that confuses me is the output of 'aplay -L'...
Any help is appreciated :-)...
Bye Georg
georg wrote:
root@tux:~# aplay foo.wav aplay: main:546: audio open error: Device or resource busy ... root@tux:~# lsof | grep -i pcmC0D0p
It's possible that the device has been opened with OSS (i.e., /dev/dsp*) or that somebody has opened the capture device (SB doesn't do full duplex). Is there anything in /dev/ that is being used?
Regards, Clemens
Hello
root@tux:~# aplay foo.wav aplay: main:546: audio open error: Device or resource busy ... root@tux:~# lsof | grep -i pcmC0D0p
It's possible that the device has been opened with OSS (i.e., /dev/dsp*) or that somebody has opened the capture device (SB doesn't do full duplex). Is there anything in /dev/ that is being used?
OSS is completely disabled in kernel .config.
Here is a complete grep on /dev:
root@tux:~# lsof | grep "/dev" init 1 root 10u FIFO 0,13 111 /dev/initctl udevd 915 root 0u CHR 1,3 31003 /dev/null udevd 915 root 1u CHR 1,3 31003 /dev/null udevd 915 root 2u CHR 1,3 31003 /dev/null dropbear 3223 root 0u CHR 1,3 86 /dev/null dropbear 3223 root 1u CHR 1,3 86 /dev/null dropbear 3223 root 2u CHR 1,3 86 /dev/null dbus-daem 3232 messagebus 0u CHR 1,3 86 /dev/null dbus-daem 3232 messagebus 1u CHR 1,3 86 /dev/null dbus-daem 3232 messagebus 2u CHR 1,3 86 /dev/null dbus-daem 3232 messagebus 4u CHR 1,3 86 /dev/null hcid 3245 root 0u CHR 1,3 86 /dev/null hcid 3245 root 1u CHR 1,3 86 /dev/null hcid 3245 root 2u CHR 1,3 86 /dev/null getty 3264 root cwd DIR 0,13 13580 48 /dev getty 3264 root 0u CHR 4,1 864 /dev/tty1 getty 3264 root 1u CHR 4,1 864 /dev/tty1 getty 3264 root 2u CHR 4,1 864 /dev/tty1 dropbear 3272 root 0u CHR 1,3 86 /dev/null dropbear 3272 root 1u CHR 1,3 86 /dev/null dropbear 3272 root 2u CHR 1,3 86 /dev/null dropbear 3272 root 6u CHR 5,2 179 /dev/ptmx sh 3273 root 0u CHR 136,0 2 /dev/pts/0 sh 3273 root 1u CHR 136,0 2 /dev/pts/0 sh 3273 root 2u CHR 136,0 2 /dev/pts/0 sh 3273 root 10u CHR 5,0 858 /dev/tty lsof 3278 root 0u CHR 136,0 2 /dev/pts/0 lsof 3278 root 2u CHR 136,0 2 /dev/pts/0 grep 3279 root 1u CHR 136,0 2 /dev/pts/0 grep 3279 root 2u CHR 136,0 2 /dev/pts/0
Thank you for your help! Any further suggestions?
Bye Georg
On Mittwoch, 16. Juli 2008, georg wrote:
Hello
root@tux:~# aplay foo.wav aplay: main:546: audio open error: Device or resource busy ... root@tux:~# lsof | grep -i pcmC0D0p
It's possible that the device has been opened with OSS (i.e., /dev/dsp*) or that somebody has opened the capture device (SB doesn't do full duplex). Is there anything in /dev/ that is being used?
[...] Any further suggestions?
As the sb16 is fully emulated on Geode GX1/CS5530 based systems, it could also be a bug in the system management code (SMM or VSA)?
Juergen
participants (3)
-
Clemens Ladisch
-
georg
-
Juergen Beisert