[olug] sound w/ devfs

Mike Hostetler thehaas at binary.net
Wed Nov 20 15:53:08 UTC 2002


Sound no longer works on my Gentoo box (which uses devfs).  I changed
/etc/devfsd.conf to look like this:

		  LOOKUP          snd          MODLOAD ACTION snd
		  LOOKUP          dsp          MODLOAD
		  LOOKUP          mixer        MODLOAD
		  LOOKUP          midi         MODLOAD
		  REGISTER        sound/*      PERMISSIONS root.audio 660
		  REGISTER        sound/.*     PERMISSIONS root.audio 660
		  REGISTER        snd/.*       PERMISSIONS root.audio 660
		  REGISTER        snd/*       PERMISSIONS root.audio 660

And my /dev/sound directory looks good:

		  gideon root # ls -la /dev/sound
		  total 0
		  drw-rw----    1 root     audio           0 December 31  1969 .
		  drwxr-xr-x    1 root     root            0 December 31  1969 ..
		  crw-rw----    1 root     audio     14,   4 December 31  1969 audio
		  crw-rw----    1 root     audio     14,   3 December 31  1969 dsp
		  crw-rw----    1 root     audio     14,   5 December 31  1969 dspW
		  crw-rw----    1 root     audio     14,   2 December 31  1969 midi
		  crw-rw----    1 root     audio     14,   0 December 31  1969 mixer
		  crw-rw----    1 root     audio     14,   1 December 31  1969 sequencer
		  crw-rw----    1 root     audio     14,   8 December 31  1969 sequencer2


but my /dev/dsp doesn't:

		  gideon root # l /dev/dsp
		  lr-xr-xr-x    1 root     root            9 November 20 09:48 /dev/dsp -> sound/dsp 

My user is a member of group 'audio':
		  mikeh at gideon:pts/2:272 files 11Mb -> groups
		  users wheel audio apache

but can't play a wav file, because it does not have access to /dev/dsp:
		  mikeh at gideon:pts/2:272 files 11Mb -> play snds/better08.wav
		  sox: Can't open output file '/dev/dsp': Permission denied

SO:

  o why is the link /dev/dsp so messed up?
  o how I can change the config to correct this problem??

-- mikeh


-- 



More information about the OLUG mailing list