diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-02-18 04:44:57 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-22 21:54:06 -0500 |
commit | 6109ab2bfc22c903e4e8592bdcce268758f1dd5b (patch) | |
tree | cec7c954a709d9d47726cf2c61768cd6dd4676de /sound/soc/codecs/cs42l51.c | |
parent | 9614be73d810a02f23f3cc19d8eb97b81213545e (diff) |
ASoC: wm2200: Use SOC_ENUM_SINGLE_*_DECL()
Just replace with the helper macros. No functional change at all.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/cs42l51.c')
-rw-r--r-- | sound/soc/codecs/cs42l51.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/sound/soc/codecs/cs42l51.c b/sound/soc/codecs/cs42l51.c index 6e9ea8379a91..1703b9c988db 100644 --- a/sound/soc/codecs/cs42l51.c +++ b/sound/soc/codecs/cs42l51.c | |||
@@ -135,8 +135,7 @@ static const char *chan_mix[] = { | |||
135 | "R L", | 135 | "R L", |
136 | }; | 136 | }; |
137 | 137 | ||
138 | static const struct soc_enum cs42l51_chan_mix = | 138 | static SOC_ENUM_SINGLE_EXT_DECL(cs42l51_chan_mix, chan_mix); |
139 | SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(chan_mix), chan_mix); | ||
140 | 139 | ||
141 | static const struct snd_kcontrol_new cs42l51_snd_controls[] = { | 140 | static const struct snd_kcontrol_new cs42l51_snd_controls[] = { |
142 | SOC_DOUBLE_R_SX_TLV("PCM Playback Volume", | 141 | SOC_DOUBLE_R_SX_TLV("PCM Playback Volume", |
@@ -192,22 +191,22 @@ static int cs42l51_pdn_event(struct snd_soc_dapm_widget *w, | |||
192 | 191 | ||
193 | static const char *cs42l51_dac_names[] = {"Direct PCM", | 192 | static const char *cs42l51_dac_names[] = {"Direct PCM", |
194 | "DSP PCM", "ADC"}; | 193 | "DSP PCM", "ADC"}; |
195 | static const struct soc_enum cs42l51_dac_mux_enum = | 194 | static SOC_ENUM_SINGLE_DECL(cs42l51_dac_mux_enum, |
196 | SOC_ENUM_SINGLE(CS42L51_DAC_CTL, 6, 3, cs42l51_dac_names); | 195 | CS42L51_DAC_CTL, 6, cs42l51_dac_names); |
197 | static const struct snd_kcontrol_new cs42l51_dac_mux_controls = | 196 | static const struct snd_kcontrol_new cs42l51_dac_mux_controls = |
198 | SOC_DAPM_ENUM("Route", cs42l51_dac_mux_enum); | 197 | SOC_DAPM_ENUM("Route", cs42l51_dac_mux_enum); |
199 | 198 | ||
200 | static const char *cs42l51_adcl_names[] = {"AIN1 Left", "AIN2 Left", | 199 | static const char *cs42l51_adcl_names[] = {"AIN1 Left", "AIN2 Left", |
201 | "MIC Left", "MIC+preamp Left"}; | 200 | "MIC Left", "MIC+preamp Left"}; |
202 | static const struct soc_enum cs42l51_adcl_mux_enum = | 201 | static SOC_ENUM_SINGLE_DECL(cs42l51_adcl_mux_enum, |
203 | SOC_ENUM_SINGLE(CS42L51_ADC_INPUT, 4, 4, cs42l51_adcl_names); | 202 | CS42L51_ADC_INPUT, 4, cs42l51_adcl_names); |
204 | static const struct snd_kcontrol_new cs42l51_adcl_mux_controls = | 203 | static const struct snd_kcontrol_new cs42l51_adcl_mux_controls = |
205 | SOC_DAPM_ENUM("Route", cs42l51_adcl_mux_enum); | 204 | SOC_DAPM_ENUM("Route", cs42l51_adcl_mux_enum); |
206 | 205 | ||
207 | static const char *cs42l51_adcr_names[] = {"AIN1 Right", "AIN2 Right", | 206 | static const char *cs42l51_adcr_names[] = {"AIN1 Right", "AIN2 Right", |
208 | "MIC Right", "MIC+preamp Right"}; | 207 | "MIC Right", "MIC+preamp Right"}; |
209 | static const struct soc_enum cs42l51_adcr_mux_enum = | 208 | static SOC_ENUM_SINGLE_DECL(cs42l51_adcr_mux_enum, |
210 | SOC_ENUM_SINGLE(CS42L51_ADC_INPUT, 6, 4, cs42l51_adcr_names); | 209 | CS42L51_ADC_INPUT, 6, cs42l51_adcr_names); |
211 | static const struct snd_kcontrol_new cs42l51_adcr_mux_controls = | 210 | static const struct snd_kcontrol_new cs42l51_adcr_mux_controls = |
212 | SOC_DAPM_ENUM("Route", cs42l51_adcr_mux_enum); | 211 | SOC_DAPM_ENUM("Route", cs42l51_adcr_mux_enum); |
213 | 212 | ||