diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-02-18 04:43:07 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-22 21:40:11 -0500 |
commit | da6ebf83bb8f3ad5e12b2543f15962e27939ff7f (patch) | |
tree | 64a32f841f4a21f6968454010d0bd20da5f2a5f7 | |
parent | 9d7433b064a6349aae8a266e8243ef75637bec45 (diff) |
ASoC: wm8962: 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>
-rw-r--r-- | sound/soc/codecs/wm8962.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index c06bb5088e60..3924ee243745 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c | |||
@@ -1658,16 +1658,16 @@ static const char *cap_hpf_mode_text[] = { | |||
1658 | "Hi-fi", "Application" | 1658 | "Hi-fi", "Application" |
1659 | }; | 1659 | }; |
1660 | 1660 | ||
1661 | static const struct soc_enum cap_hpf_mode = | 1661 | static SOC_ENUM_SINGLE_DECL(cap_hpf_mode, |
1662 | SOC_ENUM_SINGLE(WM8962_ADC_DAC_CONTROL_2, 10, 2, cap_hpf_mode_text); | 1662 | WM8962_ADC_DAC_CONTROL_2, 10, cap_hpf_mode_text); |
1663 | 1663 | ||
1664 | 1664 | ||
1665 | static const char *cap_lhpf_mode_text[] = { | 1665 | static const char *cap_lhpf_mode_text[] = { |
1666 | "LPF", "HPF" | 1666 | "LPF", "HPF" |
1667 | }; | 1667 | }; |
1668 | 1668 | ||
1669 | static const struct soc_enum cap_lhpf_mode = | 1669 | static SOC_ENUM_SINGLE_DECL(cap_lhpf_mode, |
1670 | SOC_ENUM_SINGLE(WM8962_LHPF1, 1, 2, cap_lhpf_mode_text); | 1670 | WM8962_LHPF1, 1, cap_lhpf_mode_text); |
1671 | 1671 | ||
1672 | static const struct snd_kcontrol_new wm8962_snd_controls[] = { | 1672 | static const struct snd_kcontrol_new wm8962_snd_controls[] = { |
1673 | SOC_DOUBLE("Input Mixer Switch", WM8962_INPUT_MIXER_CONTROL_1, 3, 2, 1, 1), | 1673 | SOC_DOUBLE("Input Mixer Switch", WM8962_INPUT_MIXER_CONTROL_1, 3, 2, 1, 1), |
@@ -2014,40 +2014,40 @@ static int dsp2_event(struct snd_soc_dapm_widget *w, | |||
2014 | 2014 | ||
2015 | static const char *st_text[] = { "None", "Left", "Right" }; | 2015 | static const char *st_text[] = { "None", "Left", "Right" }; |
2016 | 2016 | ||
2017 | static const struct soc_enum str_enum = | 2017 | static SOC_ENUM_SINGLE_DECL(str_enum, |
2018 | SOC_ENUM_SINGLE(WM8962_DAC_DSP_MIXING_1, 2, 3, st_text); | 2018 | WM8962_DAC_DSP_MIXING_1, 2, st_text); |
2019 | 2019 | ||
2020 | static const struct snd_kcontrol_new str_mux = | 2020 | static const struct snd_kcontrol_new str_mux = |
2021 | SOC_DAPM_ENUM("Right Sidetone", str_enum); | 2021 | SOC_DAPM_ENUM("Right Sidetone", str_enum); |
2022 | 2022 | ||
2023 | static const struct soc_enum stl_enum = | 2023 | static SOC_ENUM_SINGLE_DECL(stl_enum, |
2024 | SOC_ENUM_SINGLE(WM8962_DAC_DSP_MIXING_2, 2, 3, st_text); | 2024 | WM8962_DAC_DSP_MIXING_2, 2, st_text); |
2025 | 2025 | ||
2026 | static const struct snd_kcontrol_new stl_mux = | 2026 | static const struct snd_kcontrol_new stl_mux = |
2027 | SOC_DAPM_ENUM("Left Sidetone", stl_enum); | 2027 | SOC_DAPM_ENUM("Left Sidetone", stl_enum); |
2028 | 2028 | ||
2029 | static const char *outmux_text[] = { "DAC", "Mixer" }; | 2029 | static const char *outmux_text[] = { "DAC", "Mixer" }; |
2030 | 2030 | ||
2031 | static const struct soc_enum spkoutr_enum = | 2031 | static SOC_ENUM_SINGLE_DECL(spkoutr_enum, |
2032 | SOC_ENUM_SINGLE(WM8962_SPEAKER_MIXER_2, 7, 2, outmux_text); | 2032 | WM8962_SPEAKER_MIXER_2, 7, outmux_text); |
2033 | 2033 | ||
2034 | static const struct snd_kcontrol_new spkoutr_mux = | 2034 | static const struct snd_kcontrol_new spkoutr_mux = |
2035 | SOC_DAPM_ENUM("SPKOUTR Mux", spkoutr_enum); | 2035 | SOC_DAPM_ENUM("SPKOUTR Mux", spkoutr_enum); |
2036 | 2036 | ||
2037 | static const struct soc_enum spkoutl_enum = | 2037 | static SOC_ENUM_SINGLE_DECL(spkoutl_enum, |
2038 | SOC_ENUM_SINGLE(WM8962_SPEAKER_MIXER_1, 7, 2, outmux_text); | 2038 | WM8962_SPEAKER_MIXER_1, 7, outmux_text); |
2039 | 2039 | ||
2040 | static const struct snd_kcontrol_new spkoutl_mux = | 2040 | static const struct snd_kcontrol_new spkoutl_mux = |
2041 | SOC_DAPM_ENUM("SPKOUTL Mux", spkoutl_enum); | 2041 | SOC_DAPM_ENUM("SPKOUTL Mux", spkoutl_enum); |
2042 | 2042 | ||
2043 | static const struct soc_enum hpoutr_enum = | 2043 | static SOC_ENUM_SINGLE_DECL(hpoutr_enum, |
2044 | SOC_ENUM_SINGLE(WM8962_HEADPHONE_MIXER_2, 7, 2, outmux_text); | 2044 | WM8962_HEADPHONE_MIXER_2, 7, outmux_text); |
2045 | 2045 | ||
2046 | static const struct snd_kcontrol_new hpoutr_mux = | 2046 | static const struct snd_kcontrol_new hpoutr_mux = |
2047 | SOC_DAPM_ENUM("HPOUTR Mux", hpoutr_enum); | 2047 | SOC_DAPM_ENUM("HPOUTR Mux", hpoutr_enum); |
2048 | 2048 | ||
2049 | static const struct soc_enum hpoutl_enum = | 2049 | static SOC_ENUM_SINGLE_DECL(hpoutl_enum, |
2050 | SOC_ENUM_SINGLE(WM8962_HEADPHONE_MIXER_1, 7, 2, outmux_text); | 2050 | WM8962_HEADPHONE_MIXER_1, 7, outmux_text); |
2051 | 2051 | ||
2052 | static const struct snd_kcontrol_new hpoutl_mux = | 2052 | static const struct snd_kcontrol_new hpoutl_mux = |
2053 | SOC_DAPM_ENUM("HPOUTL Mux", hpoutl_enum); | 2053 | SOC_DAPM_ENUM("HPOUTL Mux", hpoutl_enum); |