From: Takashi Iwai Date: Thu, 12 Mar 2015 19:28:04 +0000 (+0100) Subject: ALSA: hda - Set single_adc_amp flag for CS420x codecs X-Git-Tag: v5.15~16168^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bad994f5b4ab57eec8d56c180edca00505c3eeb2;p=platform%2Fkernel%2Flinux-starfive.git ALSA: hda - Set single_adc_amp flag for CS420x codecs 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 Cc: # 3.9+ Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/patch_cirrus.c b/sound/pci/hda/patch_cirrus.c index 1589c9b..ab687ff 100644 --- a/sound/pci/hda/patch_cirrus.c +++ b/sound/pci/hda/patch_cirrus.c @@ -584,6 +584,7 @@ static int patch_cs420x(struct hda_codec *codec) return -ENOMEM; spec->gen.automute_hook = cs_automute; + codec->single_adc_amp = 1; snd_hda_pick_fixup(codec, cs420x_models, cs420x_fixup_tbl, cs420x_fixups);