[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: udev and sound the right way? kernel 2.6.10



On Fri, 2005-03-25 at 12:48 -0800, Tony Godshall wrote:
> Hi, folks.
> 
> I've got 2.6.10 running with udev.  Debian source, custom
> compile for Pentium M plus nvidia.
> 
> Works great, till a couple days later when I want to play a
> track in xmms (don't use sound much :-) )
> 
> It can't find /dev/dsp*.  Neither can madplay.  aumix can't
> find /dev/mixer*.  Strange.
> 
> So I poke around and lsmod shows sound stuff loaded.

Umm, which "sound stuff"?

Have you installed the alsa packages?

$ grep CONFIG_SND /usr/src/linux/.config

Also, have you installed the alsa packages?

> I do a find in /dev/ and it turns out there's a .static
> subdir and the old static devices are down there.  This
> makes a little sense, since Alban Browaeys recently wrote...
> 
> > ...  if a device file is not created it is because either 
> > because the driver does not support sysfs yet (as driver 
> > which did not supported devfs failed too) ...
> >
> > /dev/.static or old /.dev are really usefull as not all
> > kernel drivers are yet ported to sysfs/hotplug (and some 
> > won't be before 2.7 as the risk for mass bugs is too 
> > heavy : console driver ...). Well they may be if 2.7
> > takes too long to appear.
> 
> OK. So perhaps that's the problem...
> 
> Here's what I did to fix it for now...
> 
>   ln -s /dev/.static/dev/mixer0 /dev/mixer0
>   ln -s /dev/.static/dev/mixer0 /dev/mixer
>   ln -s /dev/.static/dev/dsp0 /dev/dsp
>   ln -s /dev/.static/dev/dsp0 /dev/dsp0
>   chmod ugo+rx /dev/.static
> 
> This won't persist past a reboot, so I'm wondering what I
> should do.  Tried to look for a way to make a custom udev
> rule for it, but ...
> 
>   # udevinfo -a -p $(udevinfo -q path -n /dev/./.static/dev/dsp0)
>   couldn't get the class device
> 
>   # udevinfo -a -p $(udevinfo -q path -n /dev/./.static/dev/mixer0)
>   couldn't get the class device
> 
> Any suggestions?
> 
> -- Tony Godshall 
> 
> 

-- 
-----------------------------------------------------------------
Ron Johnson, Jr.
Jefferson, LA USA
PGP Key ID 8834C06B I prefer encrypted mail.

"Thinking men cannot be ruled."
Ayn Rand

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: