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

udev-034-2, modules are in loading state (sometines)



I use this file to restore the mixer sitting of the sound cards :
cat /etc/dev.d/sound/alsa.dev
        #!/bin/sh
        if [ "$ACTION" != "add" ] ; then
            exit
        fi
        card=`echo $DEVPATH | sed -n -e "s/^\/class\/sound\/controlC\([[:digit:]]\+\)\$/\1/p"`
        if [ $card ] && [ -x /usr/sbin/alsactl ] ; then
            /usr/sbin/alsactl restore $card > /dev/null 2>&1
        fi

This works nice with udev-032-10 but not with udev-034-2.

At the line "/usr/sbin/alsactl restore $card" the modules is in loading
state.

Example :
Add traces in /etc/dev.d/sound/alsa.dev :
        /usr/bin/logger -t $(basename $0)"[$$]" `grep ^snd_via82xx /proc/modules`
        /usr/bin/logger -t $(basename $0)"[$$]" `/usr/sbin/alsactl restore $card 2>&1`

Load snd-via82xx module.

From rom syslog :
        snd_via82xx 23515 1 - Loading 0xe08b2000
        /usr/sbin/alsactl: set_controls:986: snd_ctl_open error: No such device

More "interesting" (and ugly), add "sleep 5" :
	sleep 5
        /usr/bin/logger -t $(basename $0)"[$$]" `grep ^snd_via82xx /proc/modules`
        /usr/bin/logger -t $(basename $0)"[$$]" `/usr/sbin/alsactl restore $card 2>&1`

Load snd-via82xx module.

From rom syslog :
        snd_via82xx 23493 0 - Live 0xe08b2000

Now this works "as expected".

This is a bug or normal ?

Attachment: signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=


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