diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-02-18 04:42:45 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-22 21:38:25 -0500 |
commit | a6616cda405c9b42732a481a71d69f0b60dafc38 (patch) | |
tree | f56fc881eba9517f5511e68a56cbec0fe908d06f /sound/soc/codecs | |
parent | 38dbfb59d1175ef458d006556061adeaa8751b72 (diff) |
ASoC: wm8961: 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: 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')
-rw-r--r-- | sound/soc/codecs/wm8961.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sound/soc/codecs/wm8961.c b/sound/soc/codecs/wm8961.c index 900328e28a15..ce8fa6e01cb4 100644 --- a/sound/soc/codecs/wm8961.c +++ b/sound/soc/codecs/wm8961.c | |||
@@ -317,15 +317,15 @@ static const char *adc_hpf_text[] = { | |||
317 | "Hi-fi", "Voice 1", "Voice 2", "Voice 3", | 317 | "Hi-fi", "Voice 1", "Voice 2", "Voice 3", |
318 | }; | 318 | }; |
319 | 319 | ||
320 | static const struct soc_enum adc_hpf = | 320 | static SOC_ENUM_SINGLE_DECL(adc_hpf, |
321 | SOC_ENUM_SINGLE(WM8961_ADC_DAC_CONTROL_2, 7, 4, adc_hpf_text); | 321 | WM8961_ADC_DAC_CONTROL_2, 7, adc_hpf_text); |
322 | 322 | ||
323 | static const char *dac_deemph_text[] = { | 323 | static const char *dac_deemph_text[] = { |
324 | "None", "32kHz", "44.1kHz", "48kHz", | 324 | "None", "32kHz", "44.1kHz", "48kHz", |
325 | }; | 325 | }; |
326 | 326 | ||
327 | static const struct soc_enum dac_deemph = | 327 | static SOC_ENUM_SINGLE_DECL(dac_deemph, |
328 | SOC_ENUM_SINGLE(WM8961_ADC_DAC_CONTROL_1, 1, 4, dac_deemph_text); | 328 | WM8961_ADC_DAC_CONTROL_1, 1, dac_deemph_text); |
329 | 329 | ||
330 | static const DECLARE_TLV_DB_SCALE(out_tlv, -12100, 100, 1); | 330 | static const DECLARE_TLV_DB_SCALE(out_tlv, -12100, 100, 1); |
331 | static const DECLARE_TLV_DB_SCALE(hp_sec_tlv, -700, 100, 0); | 331 | static const DECLARE_TLV_DB_SCALE(hp_sec_tlv, -700, 100, 0); |
@@ -385,11 +385,11 @@ static const char *sidetone_text[] = { | |||
385 | "None", "Left", "Right" | 385 | "None", "Left", "Right" |
386 | }; | 386 | }; |
387 | 387 | ||
388 | static const struct soc_enum dacl_sidetone = | 388 | static SOC_ENUM_SINGLE_DECL(dacl_sidetone, |
389 | SOC_ENUM_SINGLE(WM8961_DSP_SIDETONE_0, 2, 3, sidetone_text); | 389 | WM8961_DSP_SIDETONE_0, 2, sidetone_text); |
390 | 390 | ||
391 | static const struct soc_enum dacr_sidetone = | 391 | static SOC_ENUM_SINGLE_DECL(dacr_sidetone, |
392 | SOC_ENUM_SINGLE(WM8961_DSP_SIDETONE_1, 2, 3, sidetone_text); | 392 | WM8961_DSP_SIDETONE_1, 2, sidetone_text); |
393 | 393 | ||
394 | static const struct snd_kcontrol_new dacl_mux = | 394 | static const struct snd_kcontrol_new dacl_mux = |
395 | SOC_DAPM_ENUM("DACL Sidetone", dacl_sidetone); | 395 | SOC_DAPM_ENUM("DACL Sidetone", dacl_sidetone); |