Skip to content

Commit b0501ca

Browse files
tiwaisashalevin
authored andcommitted
ALSA: hda - Set single_adc_amp flag for CS420x codecs
[ Upstream commit bad994f ] CS420x codecs seem to deal only the single amps of ADC nodes even though the nodes receive multiple inputs. This leads to the inconsistent amp value after S3/S4 resume, for example. The fix is just to set codec->single_adc_amp flag. Then the driver handles these ADC amps as if single connections. Reported-and-tested-by: Vasil Zlatanov <vasil.zlatanov@gmail.com> Cc: <stable@vger.kernel.org> # 3.9+ Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
1 parent e2b501a commit b0501ca

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎sound/pci/hda/patch_cirrus.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,7 @@ static int patch_cs420x(struct hda_codec *codec)
584584
return -ENOMEM;
585585

586586
spec->gen.automute_hook = cs_automute;
587+
codec->single_adc_amp = 1;
587588

588589
snd_hda_pick_fixup(codec, cs420x_models, cs420x_fixup_tbl,
589590
cs420x_fixups);

0 commit comments

Comments
 (0)