[alsa-devel] Bug with alsamixer: ALSA lib simple_none.c:1550:(simple_add1) helem (MIXER, 'Master Playback Switch', 0, 1, 0) appears twice or more

Takashi Iwai tiwai at suse.de
Sat May 20 07:57:57 CEST 2017


On Sat, 20 May 2017 00:39:05 +0200,
Rudolf Schmidt wrote:
> 
> Hi guys,
> 
> 
> I want to report a bug or some kind of problem with alsa
> 
> 
>  $ alsamixer
> ALSA lib simple_none.c:1550:(simple_add1) helem (MIXER,'Master
> Playback Switch',0,1,0) appears twice or more
> cannot load mixer controls: Invalid argument
> 
> 
> I tried to figure out what is going on, tried a lot of things,
> removing packages, installing packages, removing pulseaudio etc.
> 
> 
> Nothing helped. I found a gentoo user who reported to had the same
> issue, upgrading to kernel 4.12 helped, in particular that patch:
> https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git/commit/?h=topic/hda-dual-codecs&id=7beb3a6e9335d13872f24566b451f8371edd238f
> 
> 
> So I also upgraded to kernel 4.12 but in my case I have still the same
> problem.
> 
> 
> Here is my config:
> http://www.alsa-project.org/db/?f=9d35ec5d71ac60e210daf91b6c311f72fc8a98a0

The mobo looks like having dual codecs like a similar one from
Gigabyte.  Try to apply the patch below on top of 4.12-rc kernel.

Note that you'll have no Master volume with this configuration, and
there are multiple PCM devices for different outputs (hw:0,0 and
hw:0,4 or such).  It should be switched via UCM profile by
PulseAudio.


Takashi

---
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -2328,6 +2328,7 @@ static const struct snd_pci_quirk alc882_fixup_tbl[] = {
 	SND_PCI_QUIRK_VENDOR(0x1462, "MSI", ALC882_FIXUP_GPIO3),
 	SND_PCI_QUIRK(0x1458, 0xa002, "Gigabyte EP45-DS3/Z87X-UD3H", ALC889_FIXUP_FRONT_HP_NO_PRESENCE),
 	SND_PCI_QUIRK(0x1458, 0xa0b8, "Gigabyte AZ370-Gaming", ALC1220_FIXUP_GB_DUAL_CODECS),
+	SND_PCI_QUIRK(0x1462, 0xda57, "MSI Z270-Gaming", ALC1220_FIXUP_GB_DUAL_CODECS),
 	SND_PCI_QUIRK(0x147b, 0x107a, "Abit AW9D-MAX", ALC882_FIXUP_ABIT_AW9D_MAX),
 	SND_PCI_QUIRK_VENDOR(0x1558, "Clevo laptop", ALC882_FIXUP_EAPD),
 	SND_PCI_QUIRK(0x161f, 0x2054, "Medion laptop", ALC883_FIXUP_EAPD),


More information about the Alsa-devel mailing list