You are not logged in.
Pages: 1
Hello
I got an intel motherboard where I have two soundcards, one for the hdmi, and one for the analogue and digital outputs (coaxial and optical). But the both are named the same:
[roberth@Magda ~]$ cat /proc/asound/modules
0 snd_hda_intel
1 snd_hda_intel
[roberth@Magda ~]$ lsmod | grep snd
snd_hda_codec_hdmi 30233 1
snd_hda_codec_realtek 37276 1
snd_hda_intel 36520 4
snd_hda_codec 148129 3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep 6332 1 snd_hda_codec
snd_pcm 77765 3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
snd_page_alloc 7202 2 snd_pcm,snd_hda_intel
snd_timer 18718 1 snd_pcm
snd 59141 15 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec,snd_hda_intel
soundcore 5450 1 snd
How do alsa distinguish those two when they are named the same?
Here is my /etc/modprobe.d/alsa-base.conf so far:
options snd slots=snd_hda_intel
options snd_hda_intel index=0
How in this config do I distinguish those two soundcards?
Last edited by Roberth (2013-11-02 16:02:56)
Use the Source, Luke!
Offline
They'll have a different index. Use `aplay -l` to see which one is 0 and which is 1.
EDIT: sorry, I misread - I thought this was about asoundrc files.
Last edited by Trilby (2013-11-02 16:10:49)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Hello
Yes I know about that labeling system but how do I apply that to /etc/modprobe.d/alsa-base.conf ?
[roberth@Magda ~]$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: MID [HDA Intel MID], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: MID [HDA Intel MID], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: MID [HDA Intel MID], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ALC1150 Analog [ALC1150 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 1: ALC1150 Digital [ALC1150 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
Use the Source, Luke!
Offline
In what way do you need to distinguish them, and why do you need a modprobe.d/ file in the first place? If HDMI is default, but you want the analog to be, a simple
options snd_hda_intel index=1
should do it.
Offline
Well to know which one I do that to in that config, to make the soundcard be default, I dont even use the hdmi sound output. But that line worked, but I dont understand how alsa understood that it was exactly that.
Use the Source, Luke!
Offline
I don't know how alsa understands it either . All I know, that's how I got it working on my machine. There's a lot of black magic voodoo is alsa...
Offline
Pages: 1