Skip to content

Commit

Permalink
ALSA: hda - Set single_adc_amp flag for CS420x codecs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Takashi Iwai committed Mar 12, 2015
1 parent fcdcd1d commit bad994f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/pci/hda/patch_cirrus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bad994f

Please sign in to comment.