2.6.10-rc2-mm3
Andrew,
I have mentioned earlier, there's seems to be some kind of ALSA, udev or sysfs issue with /dev/dsp and friends not being created under recent mm kernels.
Last kernel that worked; 2.6.10-rc1 and i belive 2.6.9-mm1. 2.6.10-rc2 and mm3 have issues.
The odd thing is that my log shows /dev/dsp /dev/mixer being setup by udev upon startup.
I run nForce2 based board with soundstorm audio by way of snd_intel8x0 module.
-- lsmod output --
Module Size Used by snd_seq_midi_event 6208 0 snd_seq 50064 1 snd_seq_midi_event snd_seq_device 7180 1 snd_seq snd_pcm_oss 48544 0 snd_mixer_oss 17664 1 snd_pcm_oss sound 73900 0 fglrx 229628 7 ipv6 225792 10 nfs 203300 1 lockd 61544 2 nfs sunrpc 132292 4 nfs,lockd uhci_hcd 30224 0 joydev 8000 0 evdev 7424 0 usbhid 41920 0 nvidia_agp 5916 1 agpgart 28264 2 nvidia_agp i2c_nforce2 5376 0 i2c_core 18384 1 i2c_nforce2 ohci_hcd 19272 0 eth1394 19336 0 ehci_hcd 29764 0 usbcore 105912 5 uhci_hcd,usbhid,ohci_hcd,ehci_hcd forcedeth 15104 0 snd_intel8x0 28512 2 snd_ac97_codec 72864 1 snd_intel8x0 snd_pcm 84424 3 snd_pcm_oss,snd_intel8x0,snd_ac97_codec snd_timer 21508 2 snd_seq,snd_pcm snd 46884 12 snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer soundcore 7392 2 sound,snd snd_page_alloc 7620 2 snd_intel8x0,snd_pcm ohci1394 31492 0 ieee1394 94840 2 eth1394,ohci1394 e1000 84212 0
-- lspci output --
00:05.0 Multimedia audio controller: nVidia Corporation nForce MultiMedia audio [Via VT82C686B] (rev a2)
Subsystem: nVidia Corporation: Unknown device 0c11
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSELúst >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 0 (250ns min, 3000ns max)
Interrupt: pin A routed to IRQ 5
Region 0: Memory at ee000000 (32-bit, non-prefetchable) [sizeQ2K]
Capabilities: <available only to root>
00:06.0 Multimedia audio controller: nVidia Corporation nForce2 AC97 Audio Controler (MCP) (rev a1)
Subsystem: nVidia Corporation: Unknown device 4144
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSELúst >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 0 (500ns min, 1250ns max)
Interrupt: pin A routed to IRQ 21
Region 0: I/O ports at e400 [size%6]
Region 1: I/O ports at d000 [size8]
Region 2: Memory at ee080000 (32-bit, non-prefetchable) [size=4K]
Capabilities: <available only to root>-- udev messages --
Nov 27 13:49:23 blaze udev[5385]: configured rule in '/etc/udev/rules.d/udev.rules' at line 87 applied, added symlink '%k' Nov 27 13:49:23 blaze udev[5385]: configured rule in '/etc/udev/rules.d/udev.rules' at line 87 applied, 'mixer' becomes 'sound/%k' Nov 27 13:49:23 blaze udev[5385]: creating device node '/dev/sound/mixer' Nov 27 13:49:23 blaze udev[5398]: configured rule in '/etc/udev/rules.d/udev.rules' at line 85 applied, added symlink '%k' Nov 27 13:49:23 blaze udev[5398]: configured rule in '/etc/udev/rules.d/udev.rules' at line 85 applied, 'dsp' becomes 'sound/%k' Nov 27 13:49:23 blaze udev[5398]: creating device node '/dev/sound/dsp' Nov 27 13:49:23 blaze udev[5410]: configured rule in '/etc/udev/rules.d/udev.rules' at line 83 applied, added symlink '%k' Nov 27 13:49:23 blaze udev[5410]: configured rule in '/etc/udev/rules.d/udev.rules' at line 83 applied, 'audio' becomes 'sound/%k' Nov 27 13:49:23 blaze udev[5410]: creating device node '/dev/sound/audio' Nov 27 13:49:23 blaze udev[5417]: configured rule in '/etc/udev/rules.d/udev.rules' at line 81 applied, added symlink '%k' Nov 27 13:49:23 blaze udev[5417]: configured rule in '/etc/udev/rules.d/udev.rules' at line 81 applied, 'adsp' becomes 'sound/%k' Nov 27 13:49:23 blaze udev[5417]: creating device node '/dev/sound/adsp'
-- ls /dev output --
crw------- 1 root root 116, 33 2004-11-27 13:49 /dev/sound crw-rw-rw- 1 root audio 116, 0 2004-11-27 13:49 controlC0 crw-rw--w- 1 root audio 116, 24 2004-11-27 13:49 pcmC0D0c crw-rw-rw- 1 root audio 116, 16 2004-11-27 13:49 pcmC0D0p crw-rw--w- 1 root audio 116, 25 2004-11-27 13:49 pcmC0D1c crw-rw-rw- 1 root audio 116, 18 2004-11-27 13:49 pcmC0D2p crw-rw-rw- 1 root audio 116, 1 2004-11-27 15:50 seq crw-rw-rw- 1 root audio 116, 33 2004-11-27 13:49 timer
/usr/bin/ls: /dev/dsp: No such file or directory
-- /proc/asound --
0 [nForce2 ]: NFORCE - NVidia nForce2
NVidia nForce2 with ALC650F at 0xee080000, irq 21
Advanced Linux Sound Architecture Driver Version 1.0.7 (Thu Nov 11 10:36:46 2004 UTC).
I use the latest version of udev-046. Is there anything else i can do to try to debug this? as i see no errors other than /dev/dsp no such sound device. Playing oggs works OK though when using ALSA.
Regards,
Paul B.
Signature · 12 lines
FreeBSD the Power to Serve! ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 7 lines · Paul Blazejowski
Andrew,
I have mentioned earlier, there's seems to be some kind of ALSA, udev or sysfs issue with
/dev/dspand friends not being created under recent mm kernels.
Quoted 6 lines
...
Nov 27 13:49:23 blaze udev[5385]: creating device node '/dev/sound/mixer' Nov 27 13:49:23 blaze udev[5398]: creating device node '/dev/sound/dsp' Nov 27 13:49:23 blaze udev[5410]: creating device node '/dev/sound/audio' Nov 27 13:49:23 blaze udev[5417]: creating device node '/dev/sound/adsp'
It's trying to create nodes under /dev/sound/
Quoted 4 lines
-- ls /dev output --
crw------- 1 root root 116, 33 2004-11-27 13:49
/dev/sound
But your /dev/sound appears to be a character device node, not a directory.
Did you try rm /dev/sound, mkdir /dev/sound?
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 8 lines · Andrew Morton
Quoted 4 lines
Nov 27 13:49:23 blaze udev[5385]: creating device node '/dev/sound/mixer' Nov 27 13:49:23 blaze udev[5398]: creating device node '/dev/sound/dsp' Nov 27 13:49:23 blaze udev[5410]: creating device node '/dev/sound/audio' Nov 27 13:49:23 blaze udev[5417]: creating device node '/dev/sound/adsp'It's trying to create nodes under
/dev/sound/Quoted 1 line
Quoted 9 lines
Quoted 3 lines
-- ls /dev output --
crw------- 1 root root 116, 33 2004-11-27 13:49
/dev/soundBut your
/dev/soundappears to be a character device node, not a directory.Did you try rm
/dev/sound, mkdir/dev/sound?
Ok, i tried removing /dev/sound char device then making /dev/sound directory and upon reboot the directory becomes the char device again. Still no /dev/dsp.
Here is what i have noticed when running the udev startup script /etc/rc.d/rc.udev on slackware:
When run after startup and udevd is already running it will create the /dev/sound and friends and symlinks to dsp,mixer,audio under /dev eg.
--> ls -l /dev/sound
total 0
crw-rw--w- 1 root audio 14, 12 2004-11-27 21:13 adsp crw-rw--w- 1 root audio 14, 4 2004-11-27 21:13 audio crw-rw--w- 1 root audio 14, 3 2004-11-27 21:13 dsp crw-rw--w- 1 root audio 14, 0 2004-11-27 21:13 mixer
and
--> ls -l /dev/{dsp,audio,mixer}
lrwxrwxrwx 1 root root 11 2004-11-27 21:13 /dev/audio -> sound/audio lrwxrwxrwx 1 root root 9 2004-11-27 21:13 /dev/dsp -> sound/dsp lrwxrwxrwx 1 root root 11 2004-11-27 21:13 /dev/mixer -> sound/mixer
but since /proc must be mounted before udev is run then invoking udev for the second time breaks /proc's permissions thus this happens:
--> ut2004
libGL error: failed to open DRM: Operation not permitted
and dmesg prints:
scheduling while atomic: ut2004-bin/0x00000001/6112
[<c033b9b8>] schedule+0x4f8/0x500 [<c033bfe3>] schedule_timeout+0x63/0xc0 [<c0123ce0>] process_timeout+0x0/0x10 [<c01240bf>] msleep+0x2f/0x40 [<f8ba102f>] snd_intel8x0_setup_pcm_out+0xbf/0x150 [snd_intel8x0] [<f8ba114c>] snd_intel8x0_pcm_prepare+0x8c/0xb0 [snd_intel8x0] [<f8bfda84>] snd_pcm_do_prepare+0x14/0x40 [snd_pcm] [<c013d615>] __alloc_pages+0x235/0x3e0 [<f8bfcdd8>] snd_pcm_action_single+0x38/0x80 [snd_pcm] [<f8bfcfd0>] snd_pcm_action_nonatomic+0x80/0x90 [snd_pcm] [<f8bfdb37>] snd_pcm_prepare+0x57/0x80 [snd_pcm] [<f8c001e2>] snd_pcm_playback_ioctl1+0x52/0x320 [snd_pcm] [<f8d3bae9>] snd_pcm_oss_poll+0x49/0x1a0 [snd_pcm_oss] [<c016be5a>] poll_freewait+0x3a/0x50 [<f8c00868>] snd_pcm_kernel_playback_ioctl+0x38/0x50 [snd_pcm] [<f8d39026>] snd_pcm_oss_prepare+0x26/0x60 [snd_pcm_oss] [<f8d3909d>] snd_pcm_oss_make_ready+0x3d/0x60 [snd_pcm_oss] [<f8d3958d>] snd_pcm_oss_write1+0x3d/0x210 [snd_pcm_oss] [<f8d3b9d0>] snd_pcm_oss_write+0x40/0x60 [snd_pcm_oss] [<f8d3b990>] snd_pcm_oss_write+0x0/0x60 [snd_pcm_oss] [<c01589db>] vfs_write+0xbb/0x160 [<c0158b51>] sys_write+0x51/0x80 [<c0103133>] syscall_call+0x7/0xb scheduling while atomic: ut2004-bin/0x00000001/6101 [<c033b9b8>] schedule+0x4f8/0x500 [<c033bfe3>] schedule_timeout+0x63/0xc0 [<c0123ce0>] process_timeout+0x0/0x10 [<c01240bf>] msleep+0x2f/0x40 [<f8ba102f>] snd_intel8x0_setup_pcm_out+0xbf/0x150 [snd_intel8x0] [<f8ba114c>] snd_intel8x0_pcm_prepare+0x8c/0xb0 [snd_intel8x0] [<f8bfda84>] snd_pcm_do_prepare+0x14/0x40 [snd_pcm] [<f8bfcdd8>] snd_pcm_action_single+0x38/0x80 [snd_pcm] [<f8bfcfd0>] snd_pcm_action_nonatomic+0x80/0x90 [snd_pcm] [<f8bfdb37>] snd_pcm_prepare+0x57/0x80 [snd_pcm] [<f8c001e2>] snd_pcm_playback_ioctl1+0x52/0x320 [snd_pcm] [<f8bfe0b0>] snd_pcm_drop+0x70/0xf0 [snd_pcm] [<f8c00868>] snd_pcm_kernel_playback_ioctl+0x38/0x50 [snd_pcm] [<f8d39026>] snd_pcm_oss_prepare+0x26/0x60 [snd_pcm_oss] [<f8d3909d>] snd_pcm_oss_make_ready+0x3d/0x60 [snd_pcm_oss] [<f8d39be2>] snd_pcm_oss_sync+0x32/0x290 [snd_pcm_oss] [<f8d399fd>] snd_pcm_oss_reset+0x2d/0x70 [snd_pcm_oss] [<f8d3b31d>] snd_pcm_oss_ioctl+0xbd/0x710 [snd_pcm_oss] [<c0102529>] restore_sigcontext+0x119/0x140 [<c016b6eb>] sys_ioctl+0xbb/0x250 [<c0103133>] syscall_call+0x7/0xb scheduling while atomic: ut2004-bin/0x00000001/6101 [<c033b9b8>] schedule+0x4f8/0x500 [<c033bfe3>] schedule_timeout+0x63/0xc0 [<c0123ce0>] process_timeout+0x0/0x10 [<c01240bf>] msleep+0x2f/0x40 [<f8ba102f>] snd_intel8x0_setup_pcm_out+0xbf/0x150 [snd_intel8x0] [<f8ba114c>] snd_intel8x0_pcm_prepare+0x8c/0xb0 [snd_intel8x0] [<f8bfda84>] snd_pcm_do_prepare+0x14/0x40 [snd_pcm] [<f8bfcdd8>] snd_pcm_action_single+0x38/0x80 [snd_pcm] [<f8bfcfd0>] snd_pcm_action_nonatomic+0x80/0x90 [snd_pcm] [<f8bfdb37>] snd_pcm_prepare+0x57/0x80 [snd_pcm] [<f8c001e2>] snd_pcm_playback_ioctl1+0x52/0x320 [snd_pcm] [<f8c001e2>] snd_pcm_playback_ioctl1+0x52/0x320 [snd_pcm] [<f8c00868>] snd_pcm_kernel_playback_ioctl+0x38/0x50 [snd_pcm] [<f8d39026>] snd_pcm_oss_prepare+0x26/0x60 [snd_pcm_oss] [<f8d3909d>] snd_pcm_oss_make_ready+0x3d/0x60 [snd_pcm_oss] [<f8d39be2>] snd_pcm_oss_sync+0x32/0x290 [snd_pcm_oss] [<f8d3b1c1>] snd_pcm_oss_release+0x21/0xc0 [snd_pcm_oss] [<c0159935>] __fput+0x135/0x150 [<c0157f39>] filp_close+0x59/0x90 [<c0157fd1>] sys_close+0x61/0xa0 [<c0103133>] syscall_call+0x7/0xb
For the record the udev.permissons has these:
# audio devices dsp*:root:audio:0662 audio*:root:audio:0662 midi*:root:audio:0662 mixer*:root:audio:0666 sequencer*:root:audio:0662 sound/*:root:audio:0662 snd/control*:root:audio:0666 snd/midi*:root:audio:0666 snd/pcm*p:root:audio:0666 snd/seq:root:audio:0666 snd/timer:root:audio:0666 snd/hw*:root:audio:0662 snd/pcm*c:root:audio:0662 beep:root:audio:0664 admm*:root:audio:0662 adsp*:root:audio:0662 aload*:root:audio:0662 amidi*:root:audio:0662 dmfm*:root:audio:0662 dmmidi*:root:audio:0662 sndstat:root:audio:0662
udev.rules has:
# ALSA devices
KERNEL="controlC[0-9]*", NAME="snd/%k"
KERNEL="hw[CD0-9]*", NAME="snd/%k" KERNEL="pcm[CD0-9cp]*", NAME="snd/%k" KERNEL="midiC[D0-9]*", NAME="snd/%k" KERNEL="timer", NAME="snd/%k" KERNEL="seq", NAME="snd/%k"
and
# sound devices KERNEL="adsp", NAME="sound/%k", SYMLINK="%k" KERNEL="adsp[0-9]*", NAME="sound/%k", SYMLINK="%k" KERNEL="audio", NAME="sound/%k", SYMLINK="%k" KERNEL="audio[0-9]*", NAME="sound/%k", SYMLINK="%k" KERNEL="dsp", NAME="sound/%k", SYMLINK="%k" KERNEL="dsp[0-9]*", NAME="sound/%k", SYMLINK="%k" KERNEL="mixer", NAME="sound/%k", SYMLINK="%k" KERNEL="mixer[0-9]*", NAME="sound/%k", SYMLINK="%k" KERNEL="sequencer", NAME="sound/%k", SYMLINK="%k" KERNEL="sequencer[0-9]*", NAME="sound/%k", SYMLINK="%k"
Paul
Signature · 12 lines
FreeBSD the Power to Serve! ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel