diff options
Diffstat (limited to 'sound/soc/codecs/sn95031.c')
-rw-r--r-- | sound/soc/codecs/sn95031.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/sound/soc/codecs/sn95031.c b/sound/soc/codecs/sn95031.c index 13045f2af4d3..bca7d02b362a 100644 --- a/sound/soc/codecs/sn95031.c +++ b/sound/soc/codecs/sn95031.c | |||
@@ -312,14 +312,14 @@ static int sn95031_dmic56_event(struct snd_soc_dapm_widget *w, | |||
312 | /* mux controls */ | 312 | /* mux controls */ |
313 | static const char *sn95031_mic_texts[] = { "AMIC", "LineIn" }; | 313 | static const char *sn95031_mic_texts[] = { "AMIC", "LineIn" }; |
314 | 314 | ||
315 | static const struct soc_enum sn95031_micl_enum = | 315 | static SOC_ENUM_SINGLE_DECL(sn95031_micl_enum, |
316 | SOC_ENUM_SINGLE(SN95031_ADCCONFIG, 1, 2, sn95031_mic_texts); | 316 | SN95031_ADCCONFIG, 1, sn95031_mic_texts); |
317 | 317 | ||
318 | static const struct snd_kcontrol_new sn95031_micl_mux_control = | 318 | static const struct snd_kcontrol_new sn95031_micl_mux_control = |
319 | SOC_DAPM_ENUM("Route", sn95031_micl_enum); | 319 | SOC_DAPM_ENUM("Route", sn95031_micl_enum); |
320 | 320 | ||
321 | static const struct soc_enum sn95031_micr_enum = | 321 | static SOC_ENUM_SINGLE_DECL(sn95031_micr_enum, |
322 | SOC_ENUM_SINGLE(SN95031_ADCCONFIG, 3, 2, sn95031_mic_texts); | 322 | SN95031_ADCCONFIG, 3, sn95031_mic_texts); |
323 | 323 | ||
324 | static const struct snd_kcontrol_new sn95031_micr_mux_control = | 324 | static const struct snd_kcontrol_new sn95031_micr_mux_control = |
325 | SOC_DAPM_ENUM("Route", sn95031_micr_enum); | 325 | SOC_DAPM_ENUM("Route", sn95031_micr_enum); |
@@ -328,26 +328,26 @@ static const char *sn95031_input_texts[] = { "DMIC1", "DMIC2", "DMIC3", | |||
328 | "DMIC4", "DMIC5", "DMIC6", | 328 | "DMIC4", "DMIC5", "DMIC6", |
329 | "ADC Left", "ADC Right" }; | 329 | "ADC Left", "ADC Right" }; |
330 | 330 | ||
331 | static const struct soc_enum sn95031_input1_enum = | 331 | static SOC_ENUM_SINGLE_DECL(sn95031_input1_enum, |
332 | SOC_ENUM_SINGLE(SN95031_AUDIOMUX12, 0, 8, sn95031_input_texts); | 332 | SN95031_AUDIOMUX12, 0, sn95031_input_texts); |
333 | 333 | ||
334 | static const struct snd_kcontrol_new sn95031_input1_mux_control = | 334 | static const struct snd_kcontrol_new sn95031_input1_mux_control = |
335 | SOC_DAPM_ENUM("Route", sn95031_input1_enum); | 335 | SOC_DAPM_ENUM("Route", sn95031_input1_enum); |
336 | 336 | ||
337 | static const struct soc_enum sn95031_input2_enum = | 337 | static SOC_ENUM_SINGLE_DECL(sn95031_input2_enum, |
338 | SOC_ENUM_SINGLE(SN95031_AUDIOMUX12, 4, 8, sn95031_input_texts); | 338 | SN95031_AUDIOMUX12, 4, sn95031_input_texts); |
339 | 339 | ||
340 | static const struct snd_kcontrol_new sn95031_input2_mux_control = | 340 | static const struct snd_kcontrol_new sn95031_input2_mux_control = |
341 | SOC_DAPM_ENUM("Route", sn95031_input2_enum); | 341 | SOC_DAPM_ENUM("Route", sn95031_input2_enum); |
342 | 342 | ||
343 | static const struct soc_enum sn95031_input3_enum = | 343 | static SOC_ENUM_SINGLE_DECL(sn95031_input3_enum, |
344 | SOC_ENUM_SINGLE(SN95031_AUDIOMUX34, 0, 8, sn95031_input_texts); | 344 | SN95031_AUDIOMUX34, 0, sn95031_input_texts); |
345 | 345 | ||
346 | static const struct snd_kcontrol_new sn95031_input3_mux_control = | 346 | static const struct snd_kcontrol_new sn95031_input3_mux_control = |
347 | SOC_DAPM_ENUM("Route", sn95031_input3_enum); | 347 | SOC_DAPM_ENUM("Route", sn95031_input3_enum); |
348 | 348 | ||
349 | static const struct soc_enum sn95031_input4_enum = | 349 | static SOC_ENUM_SINGLE_DECL(sn95031_input4_enum, |
350 | SOC_ENUM_SINGLE(SN95031_AUDIOMUX34, 4, 8, sn95031_input_texts); | 350 | SN95031_AUDIOMUX34, 4, sn95031_input_texts); |
351 | 351 | ||
352 | static const struct snd_kcontrol_new sn95031_input4_mux_control = | 352 | static const struct snd_kcontrol_new sn95031_input4_mux_control = |
353 | SOC_DAPM_ENUM("Route", sn95031_input4_enum); | 353 | SOC_DAPM_ENUM("Route", sn95031_input4_enum); |
@@ -359,19 +359,19 @@ static const char *sn95031_micmode_text[] = {"Single Ended", "Differential"}; | |||
359 | /* 0dB to 30dB in 10dB steps */ | 359 | /* 0dB to 30dB in 10dB steps */ |
360 | static const DECLARE_TLV_DB_SCALE(mic_tlv, 0, 10, 0); | 360 | static const DECLARE_TLV_DB_SCALE(mic_tlv, 0, 10, 0); |
361 | 361 | ||
362 | static const struct soc_enum sn95031_micmode1_enum = | 362 | static SOC_ENUM_SINGLE_DECL(sn95031_micmode1_enum, |
363 | SOC_ENUM_SINGLE(SN95031_MICAMP1, 1, 2, sn95031_micmode_text); | 363 | SN95031_MICAMP1, 1, sn95031_micmode_text); |
364 | static const struct soc_enum sn95031_micmode2_enum = | 364 | static SOC_ENUM_SINGLE_DECL(sn95031_micmode2_enum, |
365 | SOC_ENUM_SINGLE(SN95031_MICAMP2, 1, 2, sn95031_micmode_text); | 365 | SN95031_MICAMP2, 1, sn95031_micmode_text); |
366 | 366 | ||
367 | static const char *sn95031_dmic_cfg_text[] = {"GPO", "DMIC"}; | 367 | static const char *sn95031_dmic_cfg_text[] = {"GPO", "DMIC"}; |
368 | 368 | ||
369 | static const struct soc_enum sn95031_dmic12_cfg_enum = | 369 | static SOC_ENUM_SINGLE_DECL(sn95031_dmic12_cfg_enum, |
370 | SOC_ENUM_SINGLE(SN95031_DMICMUX, 0, 2, sn95031_dmic_cfg_text); | 370 | SN95031_DMICMUX, 0, sn95031_dmic_cfg_text); |
371 | static const struct soc_enum sn95031_dmic34_cfg_enum = | 371 | static SOC_ENUM_SINGLE_DECL(sn95031_dmic34_cfg_enum, |
372 | SOC_ENUM_SINGLE(SN95031_DMICMUX, 1, 2, sn95031_dmic_cfg_text); | 372 | SN95031_DMICMUX, 1, sn95031_dmic_cfg_text); |
373 | static const struct soc_enum sn95031_dmic56_cfg_enum = | 373 | static SOC_ENUM_SINGLE_DECL(sn95031_dmic56_cfg_enum, |
374 | SOC_ENUM_SINGLE(SN95031_DMICMUX, 2, 2, sn95031_dmic_cfg_text); | 374 | SN95031_DMICMUX, 2, sn95031_dmic_cfg_text); |
375 | 375 | ||
376 | static const struct snd_kcontrol_new sn95031_snd_controls[] = { | 376 | static const struct snd_kcontrol_new sn95031_snd_controls[] = { |
377 | SOC_ENUM("Mic1Mode Capture Route", sn95031_micmode1_enum), | 377 | SOC_ENUM("Mic1Mode Capture Route", sn95031_micmode1_enum), |