mirror of
https://github.com/torvalds/linux.git
synced 2024-11-08 05:01:48 +00:00
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>
This commit is contained in:
parent
9d7433b064
commit
da6ebf83bb
@ -1658,16 +1658,16 @@ static const char *cap_hpf_mode_text[] = {
|
|||||||
"Hi-fi", "Application"
|
"Hi-fi", "Application"
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct soc_enum cap_hpf_mode =
|
static SOC_ENUM_SINGLE_DECL(cap_hpf_mode,
|
||||||
SOC_ENUM_SINGLE(WM8962_ADC_DAC_CONTROL_2, 10, 2, cap_hpf_mode_text);
|
WM8962_ADC_DAC_CONTROL_2, 10, cap_hpf_mode_text);
|
||||||
|
|
||||||
|
|
||||||
static const char *cap_lhpf_mode_text[] = {
|
static const char *cap_lhpf_mode_text[] = {
|
||||||
"LPF", "HPF"
|
"LPF", "HPF"
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct soc_enum cap_lhpf_mode =
|
static SOC_ENUM_SINGLE_DECL(cap_lhpf_mode,
|
||||||
SOC_ENUM_SINGLE(WM8962_LHPF1, 1, 2, cap_lhpf_mode_text);
|
WM8962_LHPF1, 1, cap_lhpf_mode_text);
|
||||||
|
|
||||||
static const struct snd_kcontrol_new wm8962_snd_controls[] = {
|
static const struct snd_kcontrol_new wm8962_snd_controls[] = {
|
||||||
SOC_DOUBLE("Input Mixer Switch", WM8962_INPUT_MIXER_CONTROL_1, 3, 2, 1, 1),
|
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,
|
|||||||
|
|
||||||
static const char *st_text[] = { "None", "Left", "Right" };
|
static const char *st_text[] = { "None", "Left", "Right" };
|
||||||
|
|
||||||
static const struct soc_enum str_enum =
|
static SOC_ENUM_SINGLE_DECL(str_enum,
|
||||||
SOC_ENUM_SINGLE(WM8962_DAC_DSP_MIXING_1, 2, 3, st_text);
|
WM8962_DAC_DSP_MIXING_1, 2, st_text);
|
||||||
|
|
||||||
static const struct snd_kcontrol_new str_mux =
|
static const struct snd_kcontrol_new str_mux =
|
||||||
SOC_DAPM_ENUM("Right Sidetone", str_enum);
|
SOC_DAPM_ENUM("Right Sidetone", str_enum);
|
||||||
|
|
||||||
static const struct soc_enum stl_enum =
|
static SOC_ENUM_SINGLE_DECL(stl_enum,
|
||||||
SOC_ENUM_SINGLE(WM8962_DAC_DSP_MIXING_2, 2, 3, st_text);
|
WM8962_DAC_DSP_MIXING_2, 2, st_text);
|
||||||
|
|
||||||
static const struct snd_kcontrol_new stl_mux =
|
static const struct snd_kcontrol_new stl_mux =
|
||||||
SOC_DAPM_ENUM("Left Sidetone", stl_enum);
|
SOC_DAPM_ENUM("Left Sidetone", stl_enum);
|
||||||
|
|
||||||
static const char *outmux_text[] = { "DAC", "Mixer" };
|
static const char *outmux_text[] = { "DAC", "Mixer" };
|
||||||
|
|
||||||
static const struct soc_enum spkoutr_enum =
|
static SOC_ENUM_SINGLE_DECL(spkoutr_enum,
|
||||||
SOC_ENUM_SINGLE(WM8962_SPEAKER_MIXER_2, 7, 2, outmux_text);
|
WM8962_SPEAKER_MIXER_2, 7, outmux_text);
|
||||||
|
|
||||||
static const struct snd_kcontrol_new spkoutr_mux =
|
static const struct snd_kcontrol_new spkoutr_mux =
|
||||||
SOC_DAPM_ENUM("SPKOUTR Mux", spkoutr_enum);
|
SOC_DAPM_ENUM("SPKOUTR Mux", spkoutr_enum);
|
||||||
|
|
||||||
static const struct soc_enum spkoutl_enum =
|
static SOC_ENUM_SINGLE_DECL(spkoutl_enum,
|
||||||
SOC_ENUM_SINGLE(WM8962_SPEAKER_MIXER_1, 7, 2, outmux_text);
|
WM8962_SPEAKER_MIXER_1, 7, outmux_text);
|
||||||
|
|
||||||
static const struct snd_kcontrol_new spkoutl_mux =
|
static const struct snd_kcontrol_new spkoutl_mux =
|
||||||
SOC_DAPM_ENUM("SPKOUTL Mux", spkoutl_enum);
|
SOC_DAPM_ENUM("SPKOUTL Mux", spkoutl_enum);
|
||||||
|
|
||||||
static const struct soc_enum hpoutr_enum =
|
static SOC_ENUM_SINGLE_DECL(hpoutr_enum,
|
||||||
SOC_ENUM_SINGLE(WM8962_HEADPHONE_MIXER_2, 7, 2, outmux_text);
|
WM8962_HEADPHONE_MIXER_2, 7, outmux_text);
|
||||||
|
|
||||||
static const struct snd_kcontrol_new hpoutr_mux =
|
static const struct snd_kcontrol_new hpoutr_mux =
|
||||||
SOC_DAPM_ENUM("HPOUTR Mux", hpoutr_enum);
|
SOC_DAPM_ENUM("HPOUTR Mux", hpoutr_enum);
|
||||||
|
|
||||||
static const struct soc_enum hpoutl_enum =
|
static SOC_ENUM_SINGLE_DECL(hpoutl_enum,
|
||||||
SOC_ENUM_SINGLE(WM8962_HEADPHONE_MIXER_1, 7, 2, outmux_text);
|
WM8962_HEADPHONE_MIXER_1, 7, outmux_text);
|
||||||
|
|
||||||
static const struct snd_kcontrol_new hpoutl_mux =
|
static const struct snd_kcontrol_new hpoutl_mux =
|
||||||
SOC_DAPM_ENUM("HPOUTL Mux", hpoutl_enum);
|
SOC_DAPM_ENUM("HPOUTL Mux", hpoutl_enum);
|
||||||
|
Loading…
Reference in New Issue
Block a user