projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da73184
)
ASoC: ak4642: Add ALC controls
author
Sascha Hauer
<s.hauer@pengutronix.de>
Wed, 14 May 2014 07:37:34 +0000
(09:37 +0200)
committer
Mark Brown
<broonie@linaro.org>
Wed, 14 May 2014 11:32:03 +0000
(12:32 +0100)
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>
sound/soc/codecs/ak4642.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/ak4642.c
b/sound/soc/codecs/ak4642.c
index 3373a9c38b4de7c0e7e2727d8c83e69f73136606..90d2d936bc0c1f478833c6c3c41014e819b91066 100644
(file)
--- 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 =