Alsa not detecting the good sound card

I tried hard to figure out what’s going on with my alsamixer but it seems I’m missing something.

I’m using Debian Jessie with xfce, and my sound card has sundainly stoped working (playing).
The sound card is detected, the matter is that I have several sound cards : a pci intel sound card (the right sound card) and a HDMI integrate sound card. My system has sudainly began detected the HDMI card as the default, because it is the first index.
I tried several way to reset the default card (graphically, alsactl init, /etc/modeprob.d/sound file,…) but it still doe not work wether I connect as root or normal user. I read and follow alsa wiki, I don’t understand why alsa can’t detect and set the good sound card automatically in Debian. I never have this issue with Ubuntu.

My system parameter :

[code]█▓▒░nixmind@mountain-view░▒▓██▓▒░ Sat Dec 12 08:21:37
/home/nixmind> sudo -s
[sudo] password for nixmind: 
mountain-view# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ALC3263 Analog [ALC3263 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0[/code]

My audio device is detected

[code]mountain-view# lspci -v
00:03.0 Audio device: Intel Corporation Broadwell-U Audio Controller (rev 09)
	Subsystem: Dell Device 0665
	Flags: bus master, fast devsel, latency 0, IRQ 66
	Memory at f741c000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: [50] Power Management version 2
	Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit-
	Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
	Kernel driver in use: snd_hda_intel
    mountain-view# [/code]

My audio cards drivers :

[code]mountain-view# lsmod| grep snd
snd_hda_codec_hdmi     45118  1 
snd_hda_codec_realtek    67127  1 
snd_hda_codec_generic    63181  1 snd_hda_codec_realtek
snd_hda_intel          26327  4 
snd_hda_controller     26646  1 snd_hda_intel
snd_hda_codec         104463  5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
snd_hwdep              13148  1 snd_hda_codec
snd_pcm                88662  4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
snd_timer              26614  1 snd_pcm
snd_soc_sst_acpi       12559  0 
snd                    65244  16 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
soundcore              13026  2 snd,snd_hda_codec

[/code]

The /etc/modprobe.d/sound.conf file I created :

options snd_hda_intel index=0 options snd_hda_codec_hdmi index=1
the aslsctl init command workw hardware sound cards in the right order :

mountain-view# alsactl init Found hardware: "HDA-Intel" "Intel Broadwell HDMI" "HDA:80862808,80860101,00100000" "0x1028" "0x0665" Hardware is initialized using a generic method mountain-view#

I even modified the alsa configuration file (/var/lib/alsa/asound.state) to look like in the file attachement, but it still don’t work.

But after a reboot I still have the same problem. Do someone has already had this kind of issue? What is the good solution? Should I install another sound card manage software?

Thank for your help.

Regards.
asound_state.txt (9.98 KB)

good morning.

First of all may I remind you are posting on a french forum where, according to our rules, it is mandatory to speak french.But courtesy also requires to reply to any question that may be asked.

As from jessie the file alsa-base.conf is no more required and has been removed altogether;pulseaudio is now installed by default and is fully managing all sound devices.Install the package pavucontrol,open his graphical interface,scroll down to choose your appropriate sound device and you should get sound on your system.

I forgot an important point: if you have an alsa-base.conf file then move it to alsa-base.conf.bak,if not it will thwart any solution based on pulseaudio

Try:options snd_hda_intel index=2 options snd_hda_codec_hdmi index=-2oroptions snd_hda_intel index=2 options snd_hda_codec_hdmi index=-2 alias snd-card-0 snd-hda-intel alias sound-slot-0 snd-hda-intel alias sound-slot-0 snd-card-0

[quote=“kripteks”]Try:options snd_hda_intel index=2 options snd_hda_codec_hdmi index=-2oroptions snd_hda_intel index=2 options snd_hda_codec_hdmi index=-2 alias snd-card-0 snd-hda-intel alias sound-slot-0 snd-hda-intel alias sound-slot-0 snd-card-0[/quote]

kripteks,vous êtes toujours en wheezy?

Non

je posais la question parce que depuis jessie le fichier alsa-base.conf n’existe plus et donc ses configuration non plus,c’est pulse par défaut et ça marche plutôt bien.

Hi @Avram,

Apologizes for the language please.

I choose the “English” language when I was registering, and thought the language will be set and redirect me automatically.

I’m a french guy but always prefer and use English for all my computing purposes.

Can you tell me how I can fix that, and write in the right forum? I also noticed my profile is in English but texts/posts are in french but thought it is a bug.

Let me know what I can do to fix that while keeping my post.

However for my issue, I have no alsa-base.conf file, and I would like to precise that The sound was working when I install the system. I’m using Jessie with XFCE, Debian Voyager. I’ll try all suggested solution and let you know.

Regards.

Pour définir la carte son par défaut, tu peux créer un fichier asound.conf, qui se place en /etc, et qui se construit comme suit, en remplaçant card 1 par card 0, 2,3 ou 4 selon ta config:

[code]# sons dispo via cat /proc/asound/modules

A placer en /etc/asound.conf

On définit la sortie son

pcm.!default {
type hw
card 1 # numéro de la carte que vous voulez utiliser
}

On définit le mixeur associé

ctl.!default {
type hw
card 1 # numéro de la carte que vous voulez utiliser
}
[/code]

Edit:
Il faut redémarrer alsa pour tester la config.

Problem solved.

I installed the pavucontrol package and use the suggested configuration.

Then with the pavucontrol GUI I turned off the HDMI card which uses the display port of my PC.

Thanks for your help.

Regards.

nixmind wrote:

pour accéder au forum en français il suffit d’écrire en français,aussi simple que ça.

Pourquoi tu postes ici si tu préfères l’anglais ?
Tu ne sais pas que debian-fr sprachte frankaui ?
Ça veut dire que tu n’as même pas pris la peine de lire un seul fil, tu n’as même pas sondé la température des eaux avant de poster ton problème.
Comme marque de respect envers ceux qui te répondent, ça se pose là …

Version bonne foi: il a cru que le forum avait deux sections.

Version probable, puisque ma réponse était en français: une langue, c’est comme une bêche, ça s’utilise, autant prendre la plus répandue pour être tranquille et du côté de la puissancefficace… Persister à répondre en anglais: ça nous apprendra à confondre la poésie des loisirs avec la vie vraie de tous les jours que cette personne sans doute maîtrise mieux que nous, et bientôt pour nous.

“Le vainqueur prend tout ça” (Trad. cérébrale d’Abba)