* [PATCH] ASoC: wm2200: Add Rx ANC input select control
@ 2013-02-01 15:40 Chris Rattray
2013-02-04 10:52 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Chris Rattray @ 2013-02-01 15:40 UTC (permalink / raw)
To: broonie; +Cc: alsa-devel, patches, lgirdwood, Chris Rattray
Signed-off-by: Chris Rattray <crattray@opensource.wolfsonmicro.com>
Change-Id: Iee28d1898327633a3166dd340410a37796959c0c
---
sound/soc/codecs/wm2200.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/sound/soc/codecs/wm2200.c b/sound/soc/codecs/wm2200.c
index bdd3d80..a915c76 100644
--- a/sound/soc/codecs/wm2200.c
+++ b/sound/soc/codecs/wm2200.c
@@ -1109,6 +1109,16 @@ static int wm2200_mixer_values[] = {
static WM2200_MUX_CTL_DECL(name##_aux5); \
static WM2200_MUX_CTL_DECL(name##_aux6);
+static const char *wm2200_rxanc_input_sel_texts[] = {
+ "None", "IN1", "IN2", "IN3",
+};
+
+static const struct soc_enum wm2200_rxanc_input_sel =
+ SOC_ENUM_SINGLE(WM2200_RXANC_SRC,
+ WM2200_IN_RXANC_SEL_SHIFT,
+ ARRAY_SIZE(wm2200_rxanc_input_sel_texts),
+ wm2200_rxanc_input_sel_texts);
+
static const struct snd_kcontrol_new wm2200_snd_controls[] = {
SOC_SINGLE("IN1 High Performance Switch", WM2200_IN1L_CONTROL,
WM2200_IN1_OSR_SHIFT, 1, 0),
@@ -1168,6 +1178,7 @@ SOC_DOUBLE_R_TLV("OUT2 Digital Volume", WM2200_DAC_DIGITAL_VOLUME_2L,
digital_tlv),
SOC_DOUBLE("OUT2 Switch", WM2200_PDM_1, WM2200_SPK1L_MUTE_SHIFT,
WM2200_SPK1R_MUTE_SHIFT, 1, 1),
+SOC_ENUM("RxANC Src", wm2200_rxanc_input_sel),
};
WM2200_MIXER_ENUMS(OUT1L, WM2200_OUT1LMIX_INPUT_1_SOURCE);
--
1.7.2.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ASoC: wm2200: Add Rx ANC input select control
2013-02-01 15:40 [PATCH] ASoC: wm2200: Add Rx ANC input select control Chris Rattray
@ 2013-02-04 10:52 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2013-02-04 10:52 UTC (permalink / raw)
To: Chris Rattray; +Cc: alsa-devel, patches, lgirdwood
[-- Attachment #1.1: Type: text/plain, Size: 272 bytes --]
On Fri, Feb 01, 2013 at 03:40:41PM +0000, Chris Rattray wrote:
> Signed-off-by: Chris Rattray <crattray@opensource.wolfsonmicro.com>
Applied, thanks.
> Change-Id: Iee28d1898327633a3166dd340410a37796959c0c
Don't include internal noise like this in upstream submissions.
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-02-04 10:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-01 15:40 [PATCH] ASoC: wm2200: Add Rx ANC input select control Chris Rattray
2013-02-04 10:52 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).