diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-02-18 04:16:31 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-22 21:21:09 -0500 |
commit | c8ed6504218c5a1951159033d1b1e7927665f109 (patch) | |
tree | 9c161314249aba0bfdf20a1202cdd80f602ced15 /sound/soc/codecs/sgtl5000.c | |
parent | 38dbfb59d1175ef458d006556061adeaa8751b72 (diff) |
ASoC: sgtl5000: Use SOC_ENUM_SINGLE_DECL()
Just replace with the helper macro. 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: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/sgtl5000.c')
-rw-r--r-- | sound/soc/codecs/sgtl5000.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c index 0fcbe90f3ef2..ab4754a7a88c 100644 --- a/sound/soc/codecs/sgtl5000.c +++ b/sound/soc/codecs/sgtl5000.c | |||
@@ -187,8 +187,9 @@ static const char *adc_mux_text[] = { | |||
187 | "MIC_IN", "LINE_IN" | 187 | "MIC_IN", "LINE_IN" |
188 | }; | 188 | }; |
189 | 189 | ||
190 | static const struct soc_enum adc_enum = | 190 | static SOC_ENUM_SINGLE_DECL(adc_enum, |
191 | SOC_ENUM_SINGLE(SGTL5000_CHIP_ANA_CTRL, 2, 2, adc_mux_text); | 191 | SGTL5000_CHIP_ANA_CTRL, 2, |
192 | adc_mux_text); | ||
192 | 193 | ||
193 | static const struct snd_kcontrol_new adc_mux = | 194 | static const struct snd_kcontrol_new adc_mux = |
194 | SOC_DAPM_ENUM("Capture Mux", adc_enum); | 195 | SOC_DAPM_ENUM("Capture Mux", adc_enum); |
@@ -198,8 +199,9 @@ static const char *dac_mux_text[] = { | |||
198 | "DAC", "LINE_IN" | 199 | "DAC", "LINE_IN" |
199 | }; | 200 | }; |
200 | 201 | ||
201 | static const struct soc_enum dac_enum = | 202 | static SOC_ENUM_SINGLE_DECL(dac_enum, |
202 | SOC_ENUM_SINGLE(SGTL5000_CHIP_ANA_CTRL, 6, 2, dac_mux_text); | 203 | SGTL5000_CHIP_ANA_CTRL, 6, |
204 | dac_mux_text); | ||
203 | 205 | ||
204 | static const struct snd_kcontrol_new dac_mux = | 206 | static const struct snd_kcontrol_new dac_mux = |
205 | SOC_DAPM_ENUM("Headphone Mux", dac_enum); | 207 | SOC_DAPM_ENUM("Headphone Mux", dac_enum); |