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

ASoC: wm8961: 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 avatarCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Acked-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 38dbfb59
...@@ -317,15 +317,15 @@ static const char *adc_hpf_text[] = { ...@@ -317,15 +317,15 @@ static const char *adc_hpf_text[] = {
"Hi-fi", "Voice 1", "Voice 2", "Voice 3", "Hi-fi", "Voice 1", "Voice 2", "Voice 3",
}; };
static const struct soc_enum adc_hpf = static SOC_ENUM_SINGLE_DECL(adc_hpf,
SOC_ENUM_SINGLE(WM8961_ADC_DAC_CONTROL_2, 7, 4, adc_hpf_text); WM8961_ADC_DAC_CONTROL_2, 7, adc_hpf_text);
static const char *dac_deemph_text[] = { static const char *dac_deemph_text[] = {
"None", "32kHz", "44.1kHz", "48kHz", "None", "32kHz", "44.1kHz", "48kHz",
}; };
static const struct soc_enum dac_deemph = static SOC_ENUM_SINGLE_DECL(dac_deemph,
SOC_ENUM_SINGLE(WM8961_ADC_DAC_CONTROL_1, 1, 4, dac_deemph_text); WM8961_ADC_DAC_CONTROL_1, 1, dac_deemph_text);
static const DECLARE_TLV_DB_SCALE(out_tlv, -12100, 100, 1); static const DECLARE_TLV_DB_SCALE(out_tlv, -12100, 100, 1);
static const DECLARE_TLV_DB_SCALE(hp_sec_tlv, -700, 100, 0); static const DECLARE_TLV_DB_SCALE(hp_sec_tlv, -700, 100, 0);
...@@ -385,11 +385,11 @@ static const char *sidetone_text[] = { ...@@ -385,11 +385,11 @@ static const char *sidetone_text[] = {
"None", "Left", "Right" "None", "Left", "Right"
}; };
static const struct soc_enum dacl_sidetone = static SOC_ENUM_SINGLE_DECL(dacl_sidetone,
SOC_ENUM_SINGLE(WM8961_DSP_SIDETONE_0, 2, 3, sidetone_text); WM8961_DSP_SIDETONE_0, 2, sidetone_text);
static const struct soc_enum dacr_sidetone = static SOC_ENUM_SINGLE_DECL(dacr_sidetone,
SOC_ENUM_SINGLE(WM8961_DSP_SIDETONE_1, 2, 3, sidetone_text); WM8961_DSP_SIDETONE_1, 2, sidetone_text);
static const struct snd_kcontrol_new dacl_mux = static const struct snd_kcontrol_new dacl_mux =
SOC_DAPM_ENUM("DACL Sidetone", dacl_sidetone); SOC_DAPM_ENUM("DACL Sidetone", dacl_sidetone);
......
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