You are not logged in.

#1 2014-12-03 10:24:21

xxvirusxx
Member
From: Romania
Registered: 2013-09-09
Posts: 41

Audio cards switch sometimes -bug?

Hello again

On my gigabyte motherboard modules are changed sometimes.

For exemple now cat /proc/asound/cards show me this:

0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xf7510000 irq 32
 1 [HDMI           ]: HDA-Intel - HDA Intel HDMI
                      HDA Intel HDMI at 0xf7514000 irq 31
 2 [CX8801         ]: CX88x - Conexant CX8801
                      Conexant CX8801 at 0xf5000000

To have sound I need to edit this file /etc/modprobe.d/alsa-base.conf and paste this:

options snd_hda_intel index=0

Sometimes cat /proc/asound/cards show another way. Exemple

 0 [CX8801         ]: CX88x - Conexant CX8801
                      Conexant CX8801 at 0xf5000000
1 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xf7510000 irq 32
 2 [HDMI           ]: HDA-Intel - HDA Intel HDMI
                      HDA Intel HDMI at 0xf7514000 irq 31

and again need to change from index=0 in index=1

How do I stop this switch of audio modules? Because I don`t want to edit every time.

PS. CX8801 is a tv tuner

Tks

Last edited by xxvirusxx (2014-12-03 10:36:09)

Offline

#2 2014-12-03 10:39:45

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,893

Re: Audio cards switch sometimes -bug?

First use lspci -k to find out which module is used by the conexant tvtuner.

then add options conexant_module index=-2 as first line in alsa-base.conf .

That should make sure the tvtuner is never chosen as primary card.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2014-12-03 11:17:02

xxvirusxx
Member
From: Romania
Registered: 2013-09-09
Posts: 41

Re: Audio cards switch sometimes -bug?

Tks, I will test few days with this option

LE. After restart cat show only cx880 tv tuner..and aplay -l don`t post anything

alsa-base.conf

options cx88_alsa index=-2
options snd_hda_intel index=1

lspci -k

04:01.0 Multimedia video controller: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder (rev 05)
    Subsystem: LeadTek Research Inc. Device 6618
    Kernel driver in use: cx8800
    Kernel modules: cx8800
04:01.1 Multimedia controller: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder [Audio Port] (rev 05)
    Subsystem: LeadTek Research Inc. Device 6618
    Kernel driver in use: cx88_audio
    Kernel modules: cx88_alsa

LE2. I will test with this, because I have sound and volume mixer

options cx8800 index=-2
options snd_hda_intel index=1

Last edited by xxvirusxx (2014-12-03 11:29:19)

Offline

#4 2014-12-03 13:51:56

hifi25nl
Member
Registered: 2011-05-07
Posts: 264

Re: Audio cards switch sometimes -bug?

The ONLY sure way to have audio cards always in the right order is using something like this in /etc/modprobe.d/alsa.conf (the name of the .conf file is not important)

options snd-usb-audio index=0,1 vid=0x0d8c,0x16d0 pid=0x0309,0x071a

This will define 2 usb sound cards, the first one at index=0, vid=0x0d8c and pid=0x0309; the second one at index=1, vid=0x16d0 and pid=0x071a. The vid and pid here were discovered using lsusb.

In your case you must change snd-usb-audio to snd_hda_intel and add another line for Conexant
see http://alsa.opensrc.org/MultipleCards

This is working also with cards with the same chip. I have discovered that with other methods sometime cards are switching position!

Last edited by hifi25nl (2014-12-03 13:53:02)

Offline

#5 2014-12-03 14:00:20

headkase
Member
Registered: 2011-12-06
Posts: 1,986

Re: Audio cards switch sometimes -bug?

Execute:

lspci -nn | grep -i audio

And note the two four digit hexadecimal numbers between the brackets, like this for one of my cards:

00:1b.0 Audio device [0403]: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio [8086:3b56] (rev 06)

This is overkill but never fails on my system:

File: "/etc/modprobe.d/alsa.conf"

options snd_hda_intel enable=1,0 vid=8086,10de pid=3b56,0bea
options snd slots=snd_hda_intel,snd_usb_audio
options snd_hda_intel index=0 vid=8086 pid=3b56
options snd_usb_audio index=1

See how the intel audio (8086:3b56) is written with my other audio device (HDMI on the videocard), (10de:0bea).

They both use the same driver so the enable 1,0 enables the intel audio and disables the HDMI.  Then later on the snd_usb_audio is my webcam microphone which I explicitly order after the intel audio output.

You don't need everything in that code, it is overkill, but, it always works on my system.

Edit: vid and pid are most important when the audio hardware shares the same driver, like mine above, but in general if you use them then your system will know exactly what you are specifying.

Last edited by headkase (2014-12-03 14:01:47)

Offline

#6 2014-12-03 14:18:15

xxvirusxx
Member
From: Romania
Registered: 2013-09-09
Posts: 41

Re: Audio cards switch sometimes -bug?

@hifi25nl
I have only one soudcard (onboard) .
Conexant is a tv tuner


@headkase

00:03.0 Audio device [0403]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller [8086:0c0c] (rev 06)
00:1b.0 Audio device [0403]: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller [8086:8c20] (rev 05)

04:01.0 Multimedia video controller [0400]: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder [14f1:8800] (rev 05)
04:01.1 Multimedia controller [0480]: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder [Audio Port] [14f1:8801] (rev 05)

Offline

#7 2014-12-03 14:28:45

headkase
Member
Registered: 2011-12-06
Posts: 1,986

Re: Audio cards switch sometimes -bug?

Well, I would hazard to say that the Core HD Audio is your built-in (8086:0c0c) and if you are using that then disable the other audio (8086:8c20) with an enable=1,0 line - then make the one you want to use index=0, and then the conexant (I don't know if you need both) make index=1 and if needed index=2.  Specify vid and pid for all of them as you can see in my template.  If you don't get the desired results reverse the enable=1,0 for the intel audios and/or swap index=1 and 2 for the conexant.

Last edited by headkase (2014-12-03 14:30:38)

Offline

#8 2014-12-04 10:03:27

xxvirusxx
Member
From: Romania
Registered: 2013-09-09
Posts: 41

Re: Audio cards switch sometimes -bug?

With this options same problem

options cx8800 index=-2
options snd_hda_intel index=1

@headkase

Now I will try like you options

LE. Trying in many way but no luck.

With this settings:

options snd_hda_intel enable=1,0 vid=8086,14f1 pid=0c0c,8801
options snd slots=snd_hda_intel
options snd_hda_intel index=0 vid=8086 pid=0c0c

No more intel PCH...
cat /proc/asound/cards

 1 [HDMI           ]: HDA-Intel - HDA Intel HDMI
                      HDA Intel HDMI at 0xf7514000 irq 31
 2 [CX8801         ]: CX88x - Conexant CX8801
                      Conexant CX8801 at 0xf5000000

aplay -l

**** List of PLAYBACK Hardware Devices ****
card 1: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

If i use:

options snd_hda_intel enable=1,0 vid=8086,14f1 pid=8c20,8801
options snd slots=snd_hda_intel
options snd_hda_intel index=0 vid=8086 pid=8c20

Same problem, no intel PCH

Last edited by xxvirusxx (2014-12-04 11:01:40)

Offline

#9 2014-12-04 10:20:08

hifi25nl
Member
Registered: 2011-05-07
Posts: 264

Re: Audio cards switch sometimes -bug?

Ok, this should work (after a reboot):

 
options snd_hda_intel index=0 vid=<...> pid=<...>
options cx8800 index=1 vid=<...> pid=<...>

Assuming that the driver name of the Conexant is cx8800 and you substitute the corresponding vid and pid to <...>
Without pid and vid will not work (or at least will not work always)

Note: using this method the card will always stay at the same index even if another card is not connected. Moreover a new extra card would take automatically index 2

Last edited by hifi25nl (2014-12-04 10:25:29)

Offline

#10 2014-12-04 11:08:22

xxvirusxx
Member
From: Romania
Registered: 2013-09-09
Posts: 41

Re: Audio cards switch sometimes -bug?

@hifi25l

With this settings I have only Conexant CX8801 in alsamixer, asound/cards and aplay -l don`t show nothing

options snd_hda_intel index=0 vid=8086 pid=0c0c
options cx8800 index=1 vid=14f1 pid=8801

LE. With this show all in alsamixer, default is intel HDMI but now sound and no mixxer applet

options snd_hda_intel index=0 vid=8086 pid=8c20
options cx8800 index=1 vid=14f1 pid=8801

LE2. With this setting I have sound, and PCH is default in alsamixer
I will test few days

options snd_hda_intel index=1 vid=8086 pid=8c20

Last edited by xxvirusxx (2014-12-04 11:28:22)

Offline

#11 2014-12-11 15:35:35

xxvirusxx
Member
From: Romania
Registered: 2013-09-09
Posts: 41

Re: Audio cards switch sometimes -bug?

After some days with this setting same issues

options snd_hda_intel index=1 vid=8086 pid=8c20

Offline

#12 2014-12-11 15:52:37

hifi25nl
Member
Registered: 2011-05-07
Posts: 264

Re: Audio cards switch sometimes -bug?

Do you have /etc/asound.conf?
Do you have $HOME/.asoundrc?

For me with this

options snd_hda_intel index=0 vid=8086 pid=8c20
options cx8800 index=1 vid=14f1 pid=8801

and this in $HOME/.asoundrc or  /etc/asound.conf

pcm.!default {
	type hw
	card 0
}

ctl.!default {
	type hw           
	card 0
}

should work..(if the pid and vid are correct)

Offline

#13 2014-12-12 10:08:50

xxvirusxx
Member
From: Romania
Registered: 2013-09-09
Posts: 41

Re: Audio cards switch sometimes -bug?

@hifi25nl

Tks for help me

With card 0 in alsamixer I had HDA Intel HDMI , no sound, no mixer. I change it to card 1 and now i have correct:HDA Intel PCH.

Again I will test for few days smile

Last edited by xxvirusxx (2014-12-12 10:09:52)

Offline

Board footer

Powered by FluxBB