diff mbox

[2/6] ASoC: ak4642: Add ALC controls

Message ID 1400053058-1115-3-git-send-email-s.hauer@pengutronix.de (mailing list archive)
State Accepted
Commit 370f83a156e42d6c6997c65dbceb4bb7118e915a
Headers show

Commit Message

Sascha Hauer May 14, 2014, 7:37 a.m. UTC
ALC and ALC Zero crossing detection has been enabled unconditionally.
Add controls for this.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 sound/soc/codecs/ak4642.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Mark Brown May 14, 2014, 11:32 a.m. UTC | #1
On Wed, May 14, 2014 at 09:37:34AM +0200, Sascha Hauer wrote:
> ALC and ALC Zero crossing detection has been enabled unconditionally.
> Add controls for this.

Applied, thanks.
diff mbox

Patch

diff --git a/sound/soc/codecs/ak4642.c b/sound/soc/codecs/ak4642.c
index 3373a9c..90d2d93 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 =