Commit a00dc409de455b64e6cb2f6d40cdb8237cdb2e83

Authored by Connor McAdams
Committed by Takashi Iwai
1 parent 3b5d1afd1f

ALSA: hda/ca0132 - Fix ZxR Headphone gain control get value.

When the ZxR headphone gain control was added, the ca0132_switch_get
function was not updated, which meant that the changes to the control
state were not saved when entering/exiting alsamixer.

Signed-off-by: Connor McAdams <conmanx360@gmail.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200803002928.8638-1-conmanx360@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>

Showing 1 changed file with 5 additions and 0 deletions Side-by-side Diff

sound/pci/hda/patch_ca0132.c
... ... @@ -5748,6 +5748,11 @@
5748 5748 return 0;
5749 5749 }
5750 5750  
  5751 + if (nid == ZXR_HEADPHONE_GAIN) {
  5752 + *valp = spec->zxr_gain_set;
  5753 + return 0;
  5754 + }
  5755 +
5751 5756 return 0;
5752 5757 }
5753 5758