diff options
author | Takashi Iwai <tiwai@suse.de> | 2017-05-16 03:11:33 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-05-16 03:11:33 -0400 |
commit | fa16b69f1299004b60b625f181143500a246e5cb (patch) | |
tree | 626b71e953820b0bd6bbb008418b0ea043d7300c | |
parent | f83914fdfcc3ecb62a5a83eeb609ff59a9c2052d (diff) |
ALSA: hda - No loopback on ALC299 codec
ALC299 has no loopback mixer, but the driver still tries to add a beep
control over the mixer NID which leads to the error at accessing it.
This patch fixes it by properly declaring mixer_nid=0 for this codec.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=195775
Fixes: 28f1f9b26cee ("ALSA: hda/realtek - Add new codec ID ALC299")
Cc: stable@vger.kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 58df440013c5..9c22ad694534 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -6465,8 +6465,11 @@ static int patch_alc269(struct hda_codec *codec) | |||
6465 | break; | 6465 | break; |
6466 | case 0x10ec0225: | 6466 | case 0x10ec0225: |
6467 | case 0x10ec0295: | 6467 | case 0x10ec0295: |
6468 | spec->codec_variant = ALC269_TYPE_ALC225; | ||
6469 | break; | ||
6468 | case 0x10ec0299: | 6470 | case 0x10ec0299: |
6469 | spec->codec_variant = ALC269_TYPE_ALC225; | 6471 | spec->codec_variant = ALC269_TYPE_ALC225; |
6472 | spec->gen.mixer_nid = 0; /* no loopback on ALC299 */ | ||
6470 | break; | 6473 | break; |
6471 | case 0x10ec0234: | 6474 | case 0x10ec0234: |
6472 | case 0x10ec0274: | 6475 | case 0x10ec0274: |