Commit 3cd7ca58 authored by Takashi Iwai's avatar Takashi Iwai Committed by Mark Brown

ASoC: stac9766: Use SOC_ENUM_{SINGLE|DOUBLE}_DECL()

Just replace with the helper macros.  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
...@@ -62,25 +62,25 @@ static const char *stac9766_boost1[] = {"0dB", "10dB"}; ...@@ -62,25 +62,25 @@ static const char *stac9766_boost1[] = {"0dB", "10dB"};
static const char *stac9766_boost2[] = {"0dB", "20dB"}; static const char *stac9766_boost2[] = {"0dB", "20dB"};
static const char *stac9766_stereo_mic[] = {"Off", "On"}; static const char *stac9766_stereo_mic[] = {"Off", "On"};
static const struct soc_enum stac9766_record_enum = static SOC_ENUM_DOUBLE_DECL(stac9766_record_enum,
SOC_ENUM_DOUBLE(AC97_REC_SEL, 8, 0, 8, stac9766_record_mux); AC97_REC_SEL, 8, 0, stac9766_record_mux);
static const struct soc_enum stac9766_mono_enum = static SOC_ENUM_SINGLE_DECL(stac9766_mono_enum,
SOC_ENUM_SINGLE(AC97_GENERAL_PURPOSE, 9, 2, stac9766_mono_mux); AC97_GENERAL_PURPOSE, 9, stac9766_mono_mux);
static const struct soc_enum stac9766_mic_enum = static SOC_ENUM_SINGLE_DECL(stac9766_mic_enum,
SOC_ENUM_SINGLE(AC97_GENERAL_PURPOSE, 8, 2, stac9766_mic_mux); AC97_GENERAL_PURPOSE, 8, stac9766_mic_mux);
static const struct soc_enum stac9766_SPDIF_enum = static SOC_ENUM_SINGLE_DECL(stac9766_SPDIF_enum,
SOC_ENUM_SINGLE(AC97_STAC_DA_CONTROL, 1, 2, stac9766_SPDIF_mux); AC97_STAC_DA_CONTROL, 1, stac9766_SPDIF_mux);
static const struct soc_enum stac9766_popbypass_enum = static SOC_ENUM_SINGLE_DECL(stac9766_popbypass_enum,
SOC_ENUM_SINGLE(AC97_GENERAL_PURPOSE, 15, 2, stac9766_popbypass_mux); AC97_GENERAL_PURPOSE, 15, stac9766_popbypass_mux);
static const struct soc_enum stac9766_record_all_enum = static SOC_ENUM_SINGLE_DECL(stac9766_record_all_enum,
SOC_ENUM_SINGLE(AC97_STAC_ANALOG_SPECIAL, 12, 2, AC97_STAC_ANALOG_SPECIAL, 12,
stac9766_record_all_mux); stac9766_record_all_mux);
static const struct soc_enum stac9766_boost1_enum = static SOC_ENUM_SINGLE_DECL(stac9766_boost1_enum,
SOC_ENUM_SINGLE(AC97_MIC, 6, 2, stac9766_boost1); /* 0/10dB */ AC97_MIC, 6, stac9766_boost1); /* 0/10dB */
static const struct soc_enum stac9766_boost2_enum = static SOC_ENUM_SINGLE_DECL(stac9766_boost2_enum,
SOC_ENUM_SINGLE(AC97_STAC_ANALOG_SPECIAL, 2, 2, stac9766_boost2); /* 0/20dB */ AC97_STAC_ANALOG_SPECIAL, 2, stac9766_boost2); /* 0/20dB */
static const struct soc_enum stac9766_stereo_mic_enum = static SOC_ENUM_SINGLE_DECL(stac9766_stereo_mic_enum,
SOC_ENUM_SINGLE(AC97_STAC_STEREO_MIC, 2, 1, stac9766_stereo_mic); AC97_STAC_STEREO_MIC, 2, stac9766_stereo_mic);
static const DECLARE_TLV_DB_LINEAR(master_tlv, -4600, 0); static const DECLARE_TLV_DB_LINEAR(master_tlv, -4600, 0);
static const DECLARE_TLV_DB_LINEAR(record_tlv, 0, 2250); static const DECLARE_TLV_DB_LINEAR(record_tlv, 0, 2250);
......
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