Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: wm2200: Add Rx ANC input select control

Signed-off-by: Chris Rattray <crattray@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

authored by

Chris Rattray and committed by
Mark Brown
4c97e8fe 00983895

+11
+11
sound/soc/codecs/wm2200.c
··· 1112 1112 static WM2200_MUX_CTL_DECL(name##_aux5); \ 1113 1113 static WM2200_MUX_CTL_DECL(name##_aux6); 1114 1114 1115 + static const char *wm2200_rxanc_input_sel_texts[] = { 1116 + "None", "IN1", "IN2", "IN3", 1117 + }; 1118 + 1119 + static const struct soc_enum wm2200_rxanc_input_sel = 1120 + SOC_ENUM_SINGLE(WM2200_RXANC_SRC, 1121 + WM2200_IN_RXANC_SEL_SHIFT, 1122 + ARRAY_SIZE(wm2200_rxanc_input_sel_texts), 1123 + wm2200_rxanc_input_sel_texts); 1124 + 1115 1125 static const struct snd_kcontrol_new wm2200_snd_controls[] = { 1116 1126 SOC_SINGLE("IN1 High Performance Switch", WM2200_IN1L_CONTROL, 1117 1127 WM2200_IN1_OSR_SHIFT, 1, 0), ··· 1181 1171 digital_tlv), 1182 1172 SOC_DOUBLE("OUT2 Switch", WM2200_PDM_1, WM2200_SPK1L_MUTE_SHIFT, 1183 1173 WM2200_SPK1R_MUTE_SHIFT, 1, 1), 1174 + SOC_ENUM("RxANC Src", wm2200_rxanc_input_sel), 1184 1175 }; 1185 1176 1186 1177 WM2200_MIXER_ENUMS(OUT1L, WM2200_OUT1LMIX_INPUT_1_SOURCE);