Commit c8ed6504 authored by Takashi Iwai's avatar Takashi Iwai Committed by Mark Brown

ASoC: sgtl5000: Use SOC_ENUM_SINGLE_DECL()

Just replace with the helper macro.  No functional change at all.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Acked-by: default avatarLiam Girdwood <liam.r.girdwood@linux.intel.com>
Acked-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 38dbfb59
...@@ -187,8 +187,9 @@ static const char *adc_mux_text[] = { ...@@ -187,8 +187,9 @@ static const char *adc_mux_text[] = {
"MIC_IN", "LINE_IN" "MIC_IN", "LINE_IN"
}; };
static const struct soc_enum adc_enum = static SOC_ENUM_SINGLE_DECL(adc_enum,
SOC_ENUM_SINGLE(SGTL5000_CHIP_ANA_CTRL, 2, 2, adc_mux_text); SGTL5000_CHIP_ANA_CTRL, 2,
adc_mux_text);
static const struct snd_kcontrol_new adc_mux = static const struct snd_kcontrol_new adc_mux =
SOC_DAPM_ENUM("Capture Mux", adc_enum); SOC_DAPM_ENUM("Capture Mux", adc_enum);
...@@ -198,8 +199,9 @@ static const char *dac_mux_text[] = { ...@@ -198,8 +199,9 @@ static const char *dac_mux_text[] = {
"DAC", "LINE_IN" "DAC", "LINE_IN"
}; };
static const struct soc_enum dac_enum = static SOC_ENUM_SINGLE_DECL(dac_enum,
SOC_ENUM_SINGLE(SGTL5000_CHIP_ANA_CTRL, 6, 2, dac_mux_text); SGTL5000_CHIP_ANA_CTRL, 6,
dac_mux_text);
static const struct snd_kcontrol_new dac_mux = static const struct snd_kcontrol_new dac_mux =
SOC_DAPM_ENUM("Headphone Mux", dac_enum); SOC_DAPM_ENUM("Headphone Mux", dac_enum);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment