Skip to content

Commit a00dc40

Browse files
Conmanx360tiwai
authored andcommitted
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 <[email protected]> Cc: <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 3b5d1af commit a00dc40

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sound/pci/hda/patch_ca0132.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5748,6 +5748,11 @@ static int ca0132_switch_get(struct snd_kcontrol *kcontrol,
57485748
return 0;
57495749
}
57505750

5751+
if (nid == ZXR_HEADPHONE_GAIN) {
5752+
*valp = spec->zxr_gain_set;
5753+
return 0;
5754+
}
5755+
57515756
return 0;
57525757
}
57535758

0 commit comments

Comments
 (0)