diff options
author | Richard Leitner <dev@g0hl1n.net> | 2016-08-31 03:26:31 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-09-01 15:52:53 -0400 |
commit | 904a987345258ff95892685bcc4462f18ac259cd (patch) | |
tree | e8f5dd9a11717c034e5ba343759bc44465892f1e | |
parent | 29b4817d4018df78086157ea3a55c1d9424a7cfc (diff) |
ASoC: sgtl5000: add headphone and LINEOUT mute controls
These controls mute/unmute the LINEOUT and headphone outputs of SGTL5000
using its CHIP_ANA_CTRL register.
Signed-off-by: Richard Leitner <dev@g0hl1n.net>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/codecs/sgtl5000.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c index 527b759c1562..0187851c0f68 100644 --- a/sound/soc/codecs/sgtl5000.c +++ b/sound/soc/codecs/sgtl5000.c | |||
@@ -411,6 +411,8 @@ static const struct snd_kcontrol_new sgtl5000_snd_controls[] = { | |||
411 | 0, 8, | 411 | 0, 8, |
412 | 0x7f, 1, | 412 | 0x7f, 1, |
413 | headphone_volume), | 413 | headphone_volume), |
414 | SOC_SINGLE("Headphone Playback Switch", SGTL5000_CHIP_ANA_CTRL, | ||
415 | 4, 1, 1), | ||
414 | SOC_SINGLE("Headphone Playback ZC Switch", SGTL5000_CHIP_ANA_CTRL, | 416 | SOC_SINGLE("Headphone Playback ZC Switch", SGTL5000_CHIP_ANA_CTRL, |
415 | 5, 1, 0), | 417 | 5, 1, 0), |
416 | 418 | ||
@@ -423,6 +425,7 @@ static const struct snd_kcontrol_new sgtl5000_snd_controls[] = { | |||
423 | SGTL5000_LINE_OUT_VOL_RIGHT_SHIFT, | 425 | SGTL5000_LINE_OUT_VOL_RIGHT_SHIFT, |
424 | 0x1f, 1, | 426 | 0x1f, 1, |
425 | lineout_volume), | 427 | lineout_volume), |
428 | SOC_SINGLE("Lineout Playback Switch", SGTL5000_CHIP_ANA_CTRL, 8, 1, 1), | ||
426 | }; | 429 | }; |
427 | 430 | ||
428 | /* mute the codec used by alsa core */ | 431 | /* mute the codec used by alsa core */ |