Re: system-config-soundcard

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

 



Le ven 01/10/2004 Ã 09:50, Bastien Nocera a Ãcrit :
> It's a long time that modules are loaded on demand, and not force loaded
> by initscripts.

update you brain (from the latest initscripts, remember we are not
working on FC2 or RHEL 3) :
        /etc/rc.d/rc.sysinit
        echo -n $"Initializing hardware... "
        
        ide=""
        scsi=""
        network=""
        audio=""
        other=""
        eval `kmodule | while read devtype mod ; do
                case "$devtype" in
                        "IDE")  ide="$ide $mod"
                           echo "ide=\"$ide"\";;
                        "SCSI") scsi="$scsi $mod"
                           echo "scsi=\"$scsi"\";;
                        "NETWORK") network="$network $mod"
                           echo "network=\"$network"\";;
                        "AUDIO") audio="$audio $mod"
                           echo "audio=\"$audio"\";;
                        *) other="$other $mod"
                           echo "other=\"$other"\";;
                esac
        done`
        [...]
        # IDE
        for module in $ide ; do
                modprobe $module >/dev/null 2>&1
        done
        
        # SCSI
        for module in `/sbin/modprobe -c | awk '/^alias[[:space:]]+scsi_hostadapter[[:space:]]/ { print $3 }'` $scsi; do
                modprobe $module >/dev/null 2>&1
        done
        modprobe floppy >/dev/null 2>&1
        [...]
        # Sound
        for module in `/sbin/modprobe -c | awk '/^alias[[:space:]]+snd-card-[[:digit:]]+[[:space:]]/ { print $3 }'` $audio; do
                modprobe $module >/dev/null 2>&1
        done
        
        echo -n $" audio"
        
        # Everything else (duck and cover)
        for module in $other ; do
                modprobe $module >/dev/null 2>&1
        done

Try this :
boot FC3T2 at runlevel 1 and do "cat /proc/modules".

Here snd-dummy is also loaded as expected (configured in
/etc/modprobe.conf).

Is "runlevel 1" suppose to need sound support ?

Should I file I bugreport for initscripts ?

> Why am I lucky? I don't quite understand.

OK, demonstration :
[root@localhost ~]# rpm -q system-config-soundcard
system-config-soundcard-1.2.10-1
[root@localhost ~]# rpm -V system-config-soundcard
[root@localhost ~]# grep snd /proc/modules
[root@localhost ~]# system-config-soundcard > /dev/null 2>&1
[root@localhost ~]# grep snd /proc/modules
[root@localhost ~]#

Try this !
And if system-config-soundcard load modules :
- you are not using FC3T2.
or
- you are lucky.

> Which isn't a job for the config tool.

And this is what I ask in fedora-config-list.
Remember, my first post here :
        Does system-config-soundcard have to continue to load all
        modules whereas initscript/kmodule should do this job ?

> Most of the code actually isn't mine

Sorry :-)

> OSS will be removed in FC4. See the warnings in your kernel log every
> time an application uses OSS.

So ?

Another exemple with system-config-soundcard-1.2.10-1. Don't worry I
load all needed modules.

cat /etc/modprobe.conf :
        alias snd-card-0 snd-ens1371
        options snd-card-0 index=1
        options snd-ens1371 index=1
        remove snd-ens1371 { /usr/sbin/alsactl store 0 >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-ens1371
        alias snd-card-1 snd-via82xx
        options snd-card-1 index=2
        options snd-via82xx index=2
        remove snd-via82xx { /usr/sbin/alsactl store 1 >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-via82xx

launch system-config-soundcard and set via82xx the default card :

[root@localhost ~]# cat /etc/asound.conf
# Generated by system-config-soundcard, do not edit by hand
pcm.!default { type hw card 0 }
ctl.!default { type hw card 0 }

launch system-config-soundcard and set ens1371 the default card :
[root@localhost ~]# cat /etc/asound.conf
# Generated by system-config-soundcard, do not edit by hand
pcm.!default { type hw card 0 }
ctl.!default { type hw card 0 }

Ooops, still broken. btw, this or no /etc/asound.conf don't make any
change.

Anymay, system-config-soundcard is not design to support this (even
debugged). It only works if start at 0, slot with no hole (0, 2, 5).
=> 0 hotplug.

> I'm not on fedora-devel-list.

Sorry.

> Same thing.

Same thing.

> Then your code doesn't work with FC2...

Great to know that s-c-sc for FC3 will be backported to FC2.
I have a bad English but hope you understand it.
http://www.redhat.com/archives/fedora-test-list/2004-September/msg01634.html
        I fix these issues and "Ooops", remove all code unneeded by FC3
        and do some cleanup.

It's not the first time I state this even in fedora-config-list.
Seems you don't want any external stuff (you don't read the previous
url).

> Yes, and we're dealing with bug reports one-by-one.

Again, you don't read mes previous url :
        So, what bug should I file ?
        All ?
=> no reply.

OK, contributions are limited to bug report.
Don't know that.

Don't try again (with you only).
Good bye, I am tired with you.

Fedora crew : Sorry for the noise.

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

-- 
Fedora-config-list mailing list
Fedora-config-list@xxxxxxxxxx
http://www.redhat.com/mailman/listinfo/fedora-config-list

[Index of Archives]     [Fedora Users]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Big List of Linux Books]     [Gimp]     [Yosemite News]