public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] ALSA: hda/ca0132 - Fix ZxR Headphone gain control get value.
@ 2020-08-03  0:29 Connor McAdams
  2020-08-03  0:29 ` [PATCH 2/3] ALSA: hda/ca0132 - Add new quirk ID for Recon3D Connor McAdams
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Connor McAdams @ 2020-08-03  0:29 UTC (permalink / raw)
  Cc: conmanx360, Jaroslav Kysela, Takashi Iwai, Pierre-Louis Bossart,
	Paweł Rekowski, Michał Mirosław, Geoffrey Allott,
	alsa-devel, linux-kernel

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>
---
 sound/pci/hda/patch_ca0132.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c
index 19c575fd28a1..2cbe01d59c16 100644
--- a/sound/pci/hda/patch_ca0132.c
+++ b/sound/pci/hda/patch_ca0132.c
@@ -5748,6 +5748,11 @@ static int ca0132_switch_get(struct snd_kcontrol *kcontrol,
 		return 0;
 	}
 
+	if (nid == ZXR_HEADPHONE_GAIN) {
+		*valp = spec->zxr_gain_set;
+		return 0;
+	}
+
 	return 0;
 }
 
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-08-03  6:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-03  0:29 [PATCH 1/3] ALSA: hda/ca0132 - Fix ZxR Headphone gain control get value Connor McAdams
2020-08-03  0:29 ` [PATCH 2/3] ALSA: hda/ca0132 - Add new quirk ID for Recon3D Connor McAdams
2020-08-03  6:12   ` Takashi Iwai
2020-08-03  0:29 ` [PATCH 3/3] ALSA: hda/ca0132 - Fix AE-5 microphone selection commands Connor McAdams
2020-08-03  6:12   ` Takashi Iwai
2020-08-03  6:12 ` [PATCH 1/3] ALSA: hda/ca0132 - Fix ZxR Headphone gain control get value Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox