All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Rudolf Schmidt <mail@rudolfschmidt.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: Bug with alsamixer: ALSA lib simple_none.c:1550:(simple_add1) helem (MIXER, 'Master Playback Switch', 0, 1, 0) appears twice or more
Date: Sat, 20 May 2017 07:57:57 +0200	[thread overview]
Message-ID: <s5hvaowjcii.wl-tiwai@suse.de> (raw)
In-Reply-To: <1cf86f4c-b34e-f43c-4730-f4eb1ed5fb43@rudolfschmidt.com>

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),

      reply	other threads:[~2017-05-20  5:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-19 22:39 Bug with alsamixer: ALSA lib simple_none.c:1550:(simple_add1) helem (MIXER, 'Master Playback Switch', 0, 1, 0) appears twice or more Rudolf Schmidt
2017-05-20  5:57 ` Takashi Iwai [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5hvaowjcii.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=mail@rudolfschmidt.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.