Re: Problems with snd hda intel: works only part of the time

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

 



Le Fri, 06 Oct 2006 19:34:07 +0200,"Clemens Ladisch" <cladisch@xxxxxxxxxxxx> a écrit :
> Dominique Michel wrote:> > The fact is at the alsa configuration in modprobe.conf will not work as> > expected if udev load some sound module before modprobe or alsasound.> > Both udev and alsasound use modprobe to load modules.> > > I just checked my alsa configuration files to see if it was no> > miss-spelling in it, ran a modules-update, removed snd-usb-audio from my> > blacklist file, done a reboot, and the result was my webcam as sound card 0> > when it is sound card 1 in modules.conf.> > That file is named modprobe.conf with 2.6 kernels.> > Please show the contents of your modprobe.conf.> > > Regards,> Clemens> 
Here it is:
### This file is automatically generated by modules-update## Please do not edit this file directly. If you want to change or add# anything please take a look at the files in /etc/modprobe.d and read# the manpage for modules-update(8).#
alias binfmt-204 binfmt_aoutalias binfmt-263 binfmt_aoutalias binfmt-264 binfmt_aoutalias binfmt-267 binfmt_aoutalias binfmt-387 binfmt_aoutalias binfmt-332 iBCSalias binfmt--310 binfmt_javaalias block-major-1-* rdalias block-major-2-* floppyalias block-major-3-* ide-probe-modalias block-major-7-* loopalias block-major-8-* sd_modalias block-major-9-* mdalias block-major-11-* sr_modalias block-major-13-* xdalias block-major-15-* cdu31aalias block-major-16-* gscdalias block-major-17-* optcdalias block-major-18-* sjcdalias block-major-20-* mcdxalias block-major-22-* ide-probe-modalias block-major-23-* mcdalias block-major-24-* sonycd535alias block-major-25-* sbpcdalias block-major-26-* sbpcdalias block-major-27-* sbpcdalias block-major-29-* aztcdalias block-major-32-* cm206alias block-major-33-* ide-probe-modalias block-major-34-* ide-probe-modalias block-major-37-* ide-tapealias block-major-44-* ftlalias block-major-46-* pcdalias block-major-47-* pfalias block-major-56-* ide-probe-modalias block-major-57-* ide-probe-modalias block-major-58-* lvm-modalias block-major-88-* ide-probe-modalias block-major-89-* ide-probe-modalias block-major-90-* ide-probe-modalias block-major-91-* ide-probe-modalias block-major-93-* nftlalias block-major-113-* viocdalias char-major-4-* serialalias char-major-5-* serialalias char-major-6-* lpalias char-major-9-* stalias char-major-10-0 busmousealias char-major-10-2 msbusmousealias char-major-10-3 atixlmousealias char-major-10-116 sndalias char-major-10-130 wdtalias char-major-10-131 wdtalias char-major-10-135 rtcalias char-major-10-139 openpromalias char-major-10-144 nvramalias char-major-10-157 applicomalias char-major-10-175 agpgartalias char-major-10-181 toshibaalias char-major-10-183 hw_randomalias char-major-10-184 microcodealias char-major-10-187 irnetalias char-major-10-189 usspalias char-major-10-200 tunalias char-major-10-250 hci_vhcialias char-major-13-* inputalias char-major-13-0 joydevalias char-major-13-32 mousedevalias char-major-14-* soundcorealias char-major-19-* cycladesalias char-major-20-* cycladesalias char-major-21-* sgalias char-major-22-* pcxxalias char-major-23-* pcxxalias char-major-27-* zftapealias char-major-34-* sccalias char-major-35-* tclmidialias char-major-36-* netlinkalias char-major-37-* ide-tapealias char-major-48-* riscom8alias char-major-49-* riscom8alias char-major-57-* espalias char-major-58-* espalias char-major-63-* kdebugalias char-major-90-* mtdcharalias char-major-96-* ptalias char-major-97-* pgalias char-major-99-* ppdevalias char-major-107-* 3dfxalias char-major-108-* ppp_genericalias char-major-109-* lvm-modalias char-major-161-* ircomm-ttyalias char-major-171-* raw1394alias char-major-195-* nvidiaalias char-major-200-* vxspecalias char-major-206-* osstalias char-major-216-* rfcommalias dos msdosalias dummy0 dummyalias dummy1 dummyalias iso9660 isofsalias md-personality-1 linearalias md-personality-2 raid0alias md-personality-3 raid1alias md-personality-4 raid5alias md-personality-7 multipathalias net-pf-1 unixalias net-pf-2 ipv4alias net-pf-4 ipxalias net-pf-5 appletalkalias net-pf-15 af_keyalias net-pf-17 af_packetalias net-pf-20 atmalias net-pf-23 irdaalias net-pf-24 pppoealias net-pf-25 wanrouteralias net-pf-26 llcalias net-pf-31 bluezalias netalias-2 ip_aliasalias irlan0 irlanalias irda-dongle-0 tekramalias irda-dongle-1 esialias irda-dongle-2 actisysalias irda-dongle-3 actisysalias irda-dongle-4 girbilalias irda-dongle-5 litelinkalias irda-dongle-6 airportalias irda-dongle-7 old_belkinalias bt-proto-0 l2capalias bt-proto-2 scoalias bt-proto-3 rfcommalias bt-proto-4 bnepalias bt-proto-5 cmtpalias bt-proto-6 hidpalias bt-proto-7 avdtpalias plip0 plipalias plip1 plipalias tunl0 ipipalias cipcb0 cipcbalias cipcb1 cipcbalias cipcb2 cipcbalias cipcb3 cipcbalias ppp0 ppp_asyncalias ppp1 ppp_asyncalias slip0 slipalias slip1 slipalias tty-ldisc-1 slipalias tty-ldisc-3 ppp_asyncalias tty-ldisc-11 irttyalias tty-ldisc-14 ppp_syncttyalias tty-ldisc-15 hci_uartalias ppp-compress-18 ppp_mppealias ppp-compress-21 bsd_compalias ppp-compress-24 ppp_deflatealias ppp-compress-26 ppp_deflatealias ppp ppp_asyncalias parport_lowlevel parport_pcalias usbdevfs usbcorealias xfrm-type-2-50 esp4alias xfrm-type-2-51 ah4alias xfrm-type-2-108 ipcompalias xfrm-type-10-50 esp6alias xfrm-type-10-51 ah6alias xfrm-type-10-108 ipcomp6alias cipher_null crypto_nullalias digest_null crypto_nullalias compress_null crypto_nullalias sha384 sha512alias char-major-81-* bttvalias /dev/ppp ppp_genericalias loop-xfer-gen-0 loop_genalias loop-xfer-3 loop_fish2alias loop-xfer-gen-10 loop_genalias cipher-2 desalias cipher-3 fish2alias cipher-4 blowfishalias cipher-6 ideaalias cipher-7 serp6falias cipher-8 mars6alias cipher-11 rc62alias cipher-15 dfc2alias cipher-16 rijndaelalias cipher-17 rc5alias char-major-89-* i2c-devalias /dev/nvidiactl nvidiaalias char-major-116-* sndalias snd-card-0 snd-emu10k1alias snd-card-1 snd-usb-audioalias snd-card-2 snd-virmidialias snd-card-3 snd-ens1370alias sound-slot-0 snd-emu10k1alias sound-slot-1 snd-usb-audioalias sound-slot-2 snd-virmidialias sound-slot-3 snd-ens1370alias sound-service-0-0 snd-mixer-ossalias sound-service-0-1 snd-seq-ossalias sound-service-0-3 snd-pcm-ossalias sound-service-0-8 snd-seq-ossalias sound-service-0-12 snd-pcm-ossalias sound-service-1-0 snd-mixer-ossalias sound-service-1-3 snd-pcm-ossalias sound-service-1-12 snd-pcm-ossalias sound-service-2-0 snd-mixer-ossalias sound-service-2-3 snd-pcm-ossalias sound-service-2-12 snd-pcm-ossalias sound.service-3-0 snd-mixer-ossalias sound-service-3-3 snd-pcm-ossalias sound-service-3-12 snd-pcm-ossalias /dev/mixer snd-mixer-ossalias /dev/dsp snd-pcm-ossalias /dev/midi snd-seq-ossalias binfmt-0064 binfmt_aoutoptions sb io=0x220 irq=7 dma=1 dma16=5 mpu_io=0x330options snd-emu10k1 max_buffer_size=256options snd-snd-usb-audio index=1options snd-virmidi index=2options snd-ens1370 index=3options snd cards_limit=4options nvidia NVreg_EnableAGPSBA=1 NVreg_EnableAGPFW=1options realtime gid=18install binfmt-0000 /bin/trueinstall char-major-10 /bin/trueinstall char-major-10-1 /bin/trueinstall dummy0 /sbin/modprobe -o dummy0 --ignore-install dummyinstall dummy1 /sbin/modprobe -o dummy1 --ignore-install dummyinstall eth0 /bin/trueinstall net-pf-10 /bin/trueinstall net-pf-19 /bin/trueinstall net-pf-3 /bin/trueinstall net-pf-6 /bin/trueinstall scsi_hostadapter /bin/true
#########################3I see at it is no index for the emu10k1, and that even if it is an indexin /etc/modules.d/alsa:
# Alsa 0.9.X kernel modules' configuration file.#$Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v1.4 2004/11/16 01:31:22 eradicator Exp $
# ALSA portionalias char-major-116 snd# OSS/Free portionalias char-major-14 soundcore
#### IMPORTANT:## You need to customise this section for your specific sound card(s)## and then run `update-modules' command.## Read alsa-driver's INSTALL file in /usr/share/doc for more info.####  ALSA portionalias snd-card-0 snd-emu10k1options snd-emu10k1 index=0alias snd-card-1 snd-usb-audiooptions snd-snd-usb-audio index=1alias snd-card-2 snd-virmidioptions snd-virmidi index=2alias snd-card-3 snd-ens1370options snd-ens1370 index=3
##  OSS/Free portionalias sound-slot-0 snd-card-0alias sound-slot-1 snd-card-1alias sound-slot-2 snd-card-2alias sound-slot-3 snd-card-3##
# OSS/Free portion - card #1alias sound-service-0-0 snd-mixer-ossalias sound-service-0-1 snd-seq-ossalias sound-service-0-3 snd-pcm-ossalias sound-service-0-8 snd-seq-ossalias sound-service-0-12 snd-pcm-oss##  OSS/Free portion - card #2alias sound-service-1-0 snd-mixer-ossalias sound-service-1-3 snd-pcm-ossalias sound-service-1-12 snd-pcm-oss##alias sound-service-2-0 snd-mixer-ossalias sound-service-2-3 snd-pcm-ossalias sound-service-2-12 snd-pcm-oss##alias sound.service-3-0 snd-mixer-ossalias sound-service-3-3 snd-pcm-ossalias sound-service-3-12 snd-pcm-oss
alias /dev/mixer snd-mixer-ossalias /dev/dsp snd-pcm-ossalias /dev/midi snd-seq-oss
# Set this to the correct number of cards.options snd cards_limit=4

# Set a big wavetable/pcm buffer in MBoptions snd-emu10k1 max_buffer_size=256
###########################
It seem correct to me, but I can be wrong. For me, the problem is only at udevload the driver before alsasound. Udev have its own rules, and even if it usemodprobe, I don't think at it will use the options in this file. It is more people that have similar problem with alsasound. It is a forumthread about it, and some people run 2 time alsasound in their init script, onetime in the boot level, they get a wrong sound card order, and one more time inthe default runlevel. The second time, as alsasound is already started, initwill issue an "alsasound restart", the modules will be unloaded and loadedagain, but that time with the correct order. So, it confirm at udev andhotplug just don't look at the options in modules.conf.
It is also a bug report on bugzilla with similar problem between udev-hotplugand /etc/modules.autoload.d/kernel-2.6. Udev load the modules specified in thatfile, but not the options of the specified drivers.http://bugs.gentoo.org/show_bug.cgi?id=129047
Best,Dominique
-------------------------------------------------------------------------Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT & business topics through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________Alsa-user mailing listAlsa-user@xxxxxxxxxxxxxxxxxxxxxxxxxx://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux