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

ASoC: wm9081: 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
...@@ -268,8 +268,7 @@ static const char *drc_high_text[] = { ...@@ -268,8 +268,7 @@ static const char *drc_high_text[] = {
"0", "0",
}; };
static const struct soc_enum drc_high = static SOC_ENUM_SINGLE_DECL(drc_high, WM9081_DRC_3, 3, drc_high_text);
SOC_ENUM_SINGLE(WM9081_DRC_3, 3, 6, drc_high_text);
static const char *drc_low_text[] = { static const char *drc_low_text[] = {
"1", "1",
...@@ -279,8 +278,7 @@ static const char *drc_low_text[] = { ...@@ -279,8 +278,7 @@ static const char *drc_low_text[] = {
"0", "0",
}; };
static const struct soc_enum drc_low = static SOC_ENUM_SINGLE_DECL(drc_low, WM9081_DRC_3, 0, drc_low_text);
SOC_ENUM_SINGLE(WM9081_DRC_3, 0, 5, drc_low_text);
static const char *drc_atk_text[] = { static const char *drc_atk_text[] = {
"181us", "181us",
...@@ -297,8 +295,7 @@ static const char *drc_atk_text[] = { ...@@ -297,8 +295,7 @@ static const char *drc_atk_text[] = {
"185.6ms", "185.6ms",
}; };
static const struct soc_enum drc_atk = static SOC_ENUM_SINGLE_DECL(drc_atk, WM9081_DRC_2, 12, drc_atk_text);
SOC_ENUM_SINGLE(WM9081_DRC_2, 12, 12, drc_atk_text);
static const char *drc_dcy_text[] = { static const char *drc_dcy_text[] = {
"186ms", "186ms",
...@@ -312,8 +309,7 @@ static const char *drc_dcy_text[] = { ...@@ -312,8 +309,7 @@ static const char *drc_dcy_text[] = {
"47.56s", "47.56s",
}; };
static const struct soc_enum drc_dcy = static SOC_ENUM_SINGLE_DECL(drc_dcy, WM9081_DRC_2, 8, drc_dcy_text);
SOC_ENUM_SINGLE(WM9081_DRC_2, 8, 9, drc_dcy_text);
static const char *drc_qr_dcy_text[] = { static const char *drc_qr_dcy_text[] = {
"0.725ms", "0.725ms",
...@@ -321,8 +317,7 @@ static const char *drc_qr_dcy_text[] = { ...@@ -321,8 +317,7 @@ static const char *drc_qr_dcy_text[] = {
"5.8ms", "5.8ms",
}; };
static const struct soc_enum drc_qr_dcy = static SOC_ENUM_SINGLE_DECL(drc_qr_dcy, WM9081_DRC_2, 4, drc_qr_dcy_text);
SOC_ENUM_SINGLE(WM9081_DRC_2, 4, 3, drc_qr_dcy_text);
static const char *dac_deemph_text[] = { static const char *dac_deemph_text[] = {
"None", "None",
...@@ -331,16 +326,16 @@ static const char *dac_deemph_text[] = { ...@@ -331,16 +326,16 @@ static const char *dac_deemph_text[] = {
"48kHz", "48kHz",
}; };
static const struct soc_enum dac_deemph = static SOC_ENUM_SINGLE_DECL(dac_deemph, WM9081_DAC_DIGITAL_2, 1,
SOC_ENUM_SINGLE(WM9081_DAC_DIGITAL_2, 1, 4, dac_deemph_text); dac_deemph_text);
static const char *speaker_mode_text[] = { static const char *speaker_mode_text[] = {
"Class D", "Class D",
"Class AB", "Class AB",
}; };
static const struct soc_enum speaker_mode = static SOC_ENUM_SINGLE_DECL(speaker_mode, WM9081_ANALOGUE_SPEAKER_2, 6,
SOC_ENUM_SINGLE(WM9081_ANALOGUE_SPEAKER_2, 6, 2, speaker_mode_text); speaker_mode_text);
static int speaker_mode_get(struct snd_kcontrol *kcontrol, static int speaker_mode_get(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol) struct snd_ctl_elem_value *ucontrol)
......
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