| From 2c9c3999ea911454aaa6b99613172a7860239d2e Mon Sep 17 00:00:00 2001 |
| From: Sascha Hauer <s.hauer@pengutronix.de> |
| Date: Wed, 14 May 2014 09:37:34 +0200 |
| Subject: ASoC: ak4642: Add ALC controls |
| |
| ALC and ALC Zero crossing detection has been enabled unconditionally. |
| Add controls for this. |
| |
| Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> |
| Signed-off-by: Mark Brown <broonie@linaro.org> |
| (cherry picked from commit 370f83a156e42d6c6997c65dbceb4bb7118e915a) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| --- |
| sound/soc/codecs/ak4642.c | 2 ++ |
| 1 file changed, 2 insertions(+) |
| |
| diff --git a/sound/soc/codecs/ak4642.c b/sound/soc/codecs/ak4642.c |
| index 1f646c6e90c6..98f4b62a4148 100644 |
| --- a/sound/soc/codecs/ak4642.c |
| +++ b/sound/soc/codecs/ak4642.c |
| @@ -148,6 +148,8 @@ static const struct snd_kcontrol_new ak4642_snd_controls[] = { |
| |
| SOC_DOUBLE_R_TLV("Digital Playback Volume", L_DVC, R_DVC, |
| 0, 0xFF, 1, out_tlv), |
| + SOC_SINGLE("ALC Capture Switch", ALC_CTL1, 5, 1, 0), |
| + SOC_SINGLE("ALC Capture ZC Switch", ALC_CTL1, 4, 1, 1), |
| }; |
| |
| static const struct snd_kcontrol_new ak4642_headphone_control = |
| -- |
| 2.1.2 |
| |