"150Hz", "200Hz", "300Hz", "400Hz"
};
-- ------static const struct soc_enum da732x_dac1_hpf_mode_enum[] = {
-- ------ SOC_ENUM_SINGLE(DA732X_REG_DAC1_HPF, DA732X_HPF_MODE_SHIFT,
- DA732X_HPF_MODE_MAX, da732x_hpf_mode)
- };
-
- static const struct soc_enum da732x_dac2_hpf_mode_enum[] = {
- SOC_ENUM_SINGLE(DA732X_REG_DAC2_HPF, DA732X_HPF_MODE_SHIFT,
-- ------ DA732X_HPF_MODE_MAX, da732x_hpf_mode)
-- ------};
++ ++++++static SOC_ENUM_SINGLE_DECL(da732x_dac1_hpf_mode_enum,
++ ++++++ DA732X_REG_DAC1_HPF, DA732X_HPF_MODE_SHIFT,
++ ++++++ da732x_hpf_mode);
- static const struct soc_enum da732x_dac3_hpf_mode_enum[] = {
- SOC_ENUM_SINGLE(DA732X_REG_DAC3_HPF, DA732X_HPF_MODE_SHIFT,
- ------static const struct soc_enum da732x_dac2_hpf_mode_enum[] = {
- ------ SOC_ENUM_SINGLE(DA732X_REG_DAC2_HPF, DA732X_HPF_MODE_SHIFT,
-- ------ DA732X_HPF_MODE_MAX, da732x_hpf_mode)
-- ------};
++ ++++++static SOC_ENUM_SINGLE_DECL(da732x_dac2_hpf_mode_enum,
++ ++++++ DA732X_REG_DAC2_HPF, DA732X_HPF_MODE_SHIFT,
++ ++++++ da732x_hpf_mode);
- static const struct soc_enum da732x_adc1_hpf_mode_enum[] = {
- SOC_ENUM_SINGLE(DA732X_REG_ADC1_HPF, DA732X_HPF_MODE_SHIFT,
- ------static const struct soc_enum da732x_dac3_hpf_mode_enum[] = {
- ------ SOC_ENUM_SINGLE(DA732X_REG_DAC3_HPF, DA732X_HPF_MODE_SHIFT,
-- ------ DA732X_HPF_MODE_MAX, da732x_hpf_mode)
-- ------};
++ ++++++static SOC_ENUM_SINGLE_DECL(da732x_dac3_hpf_mode_enum,
++ ++++++ DA732X_REG_DAC3_HPF, DA732X_HPF_MODE_SHIFT,
++ ++++++ da732x_hpf_mode);
- static const struct soc_enum da732x_adc2_hpf_mode_enum[] = {
- SOC_ENUM_SINGLE(DA732X_REG_ADC2_HPF, DA732X_HPF_MODE_SHIFT,
- ------static const struct soc_enum da732x_adc1_hpf_mode_enum[] = {
- ------ SOC_ENUM_SINGLE(DA732X_REG_ADC1_HPF, DA732X_HPF_MODE_SHIFT,
-- ------ DA732X_HPF_MODE_MAX, da732x_hpf_mode)
-- ------};
++ ++++++static SOC_ENUM_SINGLE_DECL(da732x_adc1_hpf_mode_enum,
++ ++++++ DA732X_REG_ADC1_HPF, DA732X_HPF_MODE_SHIFT,
++ ++++++ da732x_hpf_mode);
- static const struct soc_enum da732x_dac1_hp_filter_enum[] = {
- SOC_ENUM_SINGLE(DA732X_REG_DAC1_HPF, DA732X_HPF_MUSIC_SHIFT,
- DA732X_HPF_MUSIC_MAX, da732x_hpf_music)
- ------static const struct soc_enum da732x_adc2_hpf_mode_enum[] = {
- ------ SOC_ENUM_SINGLE(DA732X_REG_ADC2_HPF, DA732X_HPF_MODE_SHIFT,
- ------ DA732X_HPF_MODE_MAX, da732x_hpf_mode)
-- ------};
++ ++++++static SOC_ENUM_SINGLE_DECL(da732x_adc2_hpf_mode_enum,
++ ++++++ DA732X_REG_ADC2_HPF, DA732X_HPF_MODE_SHIFT,
++ ++++++ da732x_hpf_mode);
- static const struct soc_enum da732x_dac2_hp_filter_enum[] = {
- SOC_ENUM_SINGLE(DA732X_REG_DAC2_HPF, DA732X_HPF_MUSIC_SHIFT,
- ------static const struct soc_enum da732x_dac1_hp_filter_enum[] = {
- ------ SOC_ENUM_SINGLE(DA732X_REG_DAC1_HPF, DA732X_HPF_MUSIC_SHIFT,
-- ------ DA732X_HPF_MUSIC_MAX, da732x_hpf_music)
-- ------};
++ ++++++static SOC_ENUM_SINGLE_DECL(da732x_dac1_hp_filter_enum,
++ ++++++ DA732X_REG_DAC1_HPF, DA732X_HPF_MUSIC_SHIFT,
++ ++++++ da732x_hpf_music);
- static const struct soc_enum da732x_dac3_hp_filter_enum[] = {
- SOC_ENUM_SINGLE(DA732X_REG_DAC3_HPF, DA732X_HPF_MUSIC_SHIFT,
- ------static const struct soc_enum da732x_dac2_hp_filter_enum[] = {
- ------ SOC_ENUM_SINGLE(DA732X_REG_DAC2_HPF, DA732X_HPF_MUSIC_SHIFT,
-- ------ DA732X_HPF_MUSIC_MAX, da732x_hpf_music)
-- ------};
++ ++++++static SOC_ENUM_SINGLE_DECL(da732x_dac2_hp_filter_enum,
++ ++++++ DA732X_REG_DAC2_HPF, DA732X_HPF_MUSIC_SHIFT,
++ ++++++ da732x_hpf_music);
- static const struct soc_enum da732x_adc1_hp_filter_enum[] = {
- SOC_ENUM_SINGLE(DA732X_REG_ADC1_HPF, DA732X_HPF_MUSIC_SHIFT,
- ------static const struct soc_enum da732x_dac3_hp_filter_enum[] = {
- ------ SOC_ENUM_SINGLE(DA732X_REG_DAC3_HPF, DA732X_HPF_MUSIC_SHIFT,
-- ------ DA732X_HPF_MUSIC_MAX, da732x_hpf_music)
-- ------};
++ ++++++static SOC_ENUM_SINGLE_DECL(da732x_dac3_hp_filter_enum,
++ ++++++ DA732X_REG_DAC3_HPF, DA732X_HPF_MUSIC_SHIFT,
++ ++++++ da732x_hpf_music);
- static const struct soc_enum da732x_adc2_hp_filter_enum[] = {
- SOC_ENUM_SINGLE(DA732X_REG_ADC2_HPF, DA732X_HPF_MUSIC_SHIFT,
- ------static const struct soc_enum da732x_adc1_hp_filter_enum[] = {
- ------ SOC_ENUM_SINGLE(DA732X_REG_ADC1_HPF, DA732X_HPF_MUSIC_SHIFT,
-- ------ DA732X_HPF_MUSIC_MAX, da732x_hpf_music)
-- ------};
++ ++++++static SOC_ENUM_SINGLE_DECL(da732x_adc1_hp_filter_enum,
++ ++++++ DA732X_REG_ADC1_HPF, DA732X_HPF_MUSIC_SHIFT,
++ ++++++ da732x_hpf_music);
- static const struct soc_enum da732x_dac1_voice_filter_enum[] = {
- SOC_ENUM_SINGLE(DA732X_REG_DAC1_HPF, DA732X_HPF_VOICE_SHIFT,
- DA732X_HPF_VOICE_MAX, da732x_hpf_voice)
- ------static const struct soc_enum da732x_adc2_hp_filter_enum[] = {
- ------ SOC_ENUM_SINGLE(DA732X_REG_ADC2_HPF, DA732X_HPF_MUSIC_SHIFT,
- ------ DA732X_HPF_MUSIC_MAX, da732x_hpf_music)
-- ------};
++ ++++++static SOC_ENUM_SINGLE_DECL(da732x_adc2_hp_filter_enum,
++ ++++++ DA732X_REG_ADC2_HPF, DA732X_HPF_MUSIC_SHIFT,
++ ++++++ da732x_hpf_music);
- static const struct soc_enum da732x_dac2_voice_filter_enum[] = {
- SOC_ENUM_SINGLE(DA732X_REG_DAC2_HPF, DA732X_HPF_VOICE_SHIFT,
- ------static const struct soc_enum da732x_dac1_voice_filter_enum[] = {
- ------ SOC_ENUM_SINGLE(DA732X_REG_DAC1_HPF, DA732X_HPF_VOICE_SHIFT,
-- ------ DA732X_HPF_VOICE_MAX, da732x_hpf_voice)
-- ------};
++ ++++++static SOC_ENUM_SINGLE_DECL(da732x_dac1_voice_filter_enum,
++ ++++++ DA732X_REG_DAC1_HPF, DA732X_HPF_VOICE_SHIFT,
++ ++++++ da732x_hpf_voice);
- static const struct soc_enum da732x_dac3_voice_filter_enum[] = {
- SOC_ENUM_SINGLE(DA732X_REG_DAC3_HPF, DA732X_HPF_VOICE_SHIFT,
- ------static const struct soc_enum da732x_dac2_voice_filter_enum[] = {
- ------ SOC_ENUM_SINGLE(DA732X_REG_DAC2_HPF, DA732X_HPF_VOICE_SHIFT,
-- ------ DA732X_HPF_VOICE_MAX, da732x_hpf_voice)
-- ------};
++ ++++++static SOC_ENUM_SINGLE_DECL(da732x_dac2_voice_filter_enum,
++ ++++++ DA732X_REG_DAC2_HPF, DA732X_HPF_VOICE_SHIFT,
++ ++++++ da732x_hpf_voice);
- static const struct soc_enum da732x_adc1_voice_filter_enum[] = {
- SOC_ENUM_SINGLE(DA732X_REG_ADC1_HPF, DA732X_HPF_VOICE_SHIFT,
- ------static const struct soc_enum da732x_dac3_voice_filter_enum[] = {
- ------ SOC_ENUM_SINGLE(DA732X_REG_DAC3_HPF, DA732X_HPF_VOICE_SHIFT,
-- ------ DA732X_HPF_VOICE_MAX, da732x_hpf_voice)
-- ------};
++ ++++++static SOC_ENUM_SINGLE_DECL(da732x_dac3_voice_filter_enum,
++ ++++++ DA732X_REG_DAC3_HPF, DA732X_HPF_VOICE_SHIFT,
++ ++++++ da732x_hpf_voice);
- ------static const struct soc_enum da732x_adc1_voice_filter_enum[] = {
- ------ SOC_ENUM_SINGLE(DA732X_REG_ADC1_HPF, DA732X_HPF_VOICE_SHIFT,
- ------ DA732X_HPF_VOICE_MAX, da732x_hpf_voice)
- ------};
- ------
-- ------static const struct soc_enum da732x_adc2_voice_filter_enum[] = {
-- ------ SOC_ENUM_SINGLE(DA732X_REG_ADC2_HPF, DA732X_HPF_VOICE_SHIFT,
-- ------ DA732X_HPF_VOICE_MAX, da732x_hpf_voice)
-- ------};
++ ++++++static SOC_ENUM_SINGLE_DECL(da732x_adc1_voice_filter_enum,
++ ++++++ DA732X_REG_ADC1_HPF, DA732X_HPF_VOICE_SHIFT,
++ ++++++ da732x_hpf_voice);
++ ++++++static SOC_ENUM_SINGLE_DECL(da732x_adc2_voice_filter_enum,
++ ++++++ DA732X_REG_ADC2_HPF, DA732X_HPF_VOICE_SHIFT,
++ ++++++ da732x_hpf_voice);
static int da732x_hpf_set(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)