Thanks to both Vladamir and Natanael for your quick responses.

Yes it is indeed a problem with me confusing wildcards with regexp. Using
the correct syntax fixed the problem.

I wonder if in the busybox docs/ directory there should perhaps be a
"sample" mdev.conf file that contains all the common linux devices and their
aliases? People could then cut out what they need to use as the basis of
their own build.

The info mdev.txt is fairly brief and searching the web I found it quite
difficult to find this information. I imagine other people have encountered
similar problems and it would be great if someone who has created a complete
mdev.conf might donate it to the source tree? Anyway, just a thought.

Thanks again for the quick responses!
Regards
Scott


On Fri, Oct 10, 2008 at 4:22 PM, Natanael Copa <[EMAIL PROTECTED]>wrote:

> On Fri, 2008-10-10 at 16:14 +0800, Scott McNab wrote:
> > Hi.
> >
> > I'm using busybox 1.12.1 and linux kernel 2.6.26.5 and am trying to
> > get mdev to correctly place the ALSA sound devices under /dev/snd/,
> > using wildcard device matching.
> >
> > Here is an excerpt from my /etc/mdev.conf file:
> >
> > hwC* 0:18 0660 =snd/
> > pcmC* 0:18 0660 =snd/
> > midiC* 0:18 0660 =snd/
> > controlC* 0:18 0660 =snd/
> >
> > This does NOT work as expected - the devices are created in /dev
> > rather than /dev/snd.
> >
> > The strange thing however is that it DOES work if I specify the full
> > device name. i.e.:
> >
> > pcmC0D0c 0:18 0660 =snd/
> > pcmC0D0p 0:18 0660 =snd/
> >
> > Why does it work if I specify the full device name, and now when I use
> > a wildcard? Am I missing something, or is this a bug?
>
> Yes. You are missing that mdev.conf does not use wildcards but regexps.
>
> This should do the trick for you:
>
> # alsa sound devices and audio stuff
> pcm.*           root:audio 0660 =snd/
> control.*       root:audio 0660 =snd/
> midi.*          root:audio 0660 =snd/
> seq             root:audio 0660 =snd/
> timer           root:audio 0660 =snd/
>
> And if you use snd-pcm-oss:
>
> adsp            root:audio 0660 >sound/
> audio           root:audio 0660 >sound/
> dsp             root:audio 0660 >sound/
> mixer           root:audio 0660 >sound/
> sequencer.*     root:audio 0660 >sound/
>
> -nc
>
>
>
>
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to