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

Re: Default soundcard with alsa



On April 24, 2007 07:21:01 am Atis wrote:
> Hi,
>
> I have two soundcards, but after each reboot the built-in gets
> default, so after every reboot i have to run alsaconf, and select
> correct soundcard.
>
> How i can have my second card to be primary after every reboot? I
> suspect alsaconf doesn't write something correctly, but i don't get
> any error messages.
>
> Currently using Lenny, but had the same problem on Etch.
>
> Regards,
> Atis
>
> atis@atis:~$ lspci | grep udio
> 00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6
> Family) High Definition Audio Controller (rev 03)
> 01:0b.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev
> 10)
>
> atis@atis:~$ lsmod | grep snd
> snd_cmipci             31456  5
> gameport               14632  1 snd_cmipci
> snd_pcm_oss            38368  0
> snd_mixer_oss          15200  2 snd_pcm_oss
> snd_pcm                68676  3 snd_cmipci,snd_pcm_oss
> snd_page_alloc          9640  1 snd_pcm
> snd_opl3_lib            9920  1 snd_cmipci
> snd_hwdep               8836  1 snd_opl3_lib
> snd_mpu401_uart         8064  1 snd_cmipci
> snd_seq_dummy           3844  0
> snd_seq_oss            28768  0
> snd_seq_midi            8192  0
> snd_seq_midi_event      7008  2 snd_seq_oss,snd_seq_midi
> snd_seq                45680  6
> snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
> snd_timer              20996  4 snd_pcm,snd_opl3_lib,snd_seq
> snd_rawmidi            22560  2 snd_mpu401_uart,snd_seq_midi
> snd_seq_device          7820  6
> snd_opl3_lib,snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq,snd_rawmidi
> snd                    47012  18
> snd_cmipci,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_opl3_lib,snd_hwdep,snd_mpu
>401_uart,snd_seq_oss,snd_seq,snd_timer,snd_rawmidi,snd_seq_device soundcore 
>              9248  2 snd

Create a file/modify the existing one to be similar to the one I show below 
with the module for your PCI card being the first (snd-card-0 index=0 lines) 
then have your onboard as the second (snd-card-1 index=1 lines). Now when you 
start your machine the cards should be detected and used in the proper order.

cat /etc/modprobe.d/sound

alias snd-card-0 snd-emu10k1
options snd-emu10k1 index=0
alias snd-card-1 snd-intel-hda
options snd-intel-hda index=1
alias snd-card-2 snd-bt87x
options snd-bt87x index=2

Stephen

-- 
GPG Pubic Key: http://users.eastlink.ca/~stephencormier/publickey.asc

Attachment: pgpCtMQqd7XhD.pgp
Description: PGP signature


Reply to: