aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm_hubs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/wm_hubs.c')
-rw-r--r--sound/soc/codecs/wm_hubs.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sound/soc/codecs/wm_hubs.c b/sound/soc/codecs/wm_hubs.c
index b371066dd5bc..b6209662ab13 100644
--- a/sound/soc/codecs/wm_hubs.c
+++ b/sound/soc/codecs/wm_hubs.c
@@ -50,16 +50,16 @@ static const char *speaker_ref_text[] = {
50 "VMID", 50 "VMID",
51}; 51};
52 52
53static const struct soc_enum speaker_ref = 53static SOC_ENUM_SINGLE_DECL(speaker_ref,
54 SOC_ENUM_SINGLE(WM8993_SPEAKER_MIXER, 8, 2, speaker_ref_text); 54 WM8993_SPEAKER_MIXER, 8, speaker_ref_text);
55 55
56static const char *speaker_mode_text[] = { 56static const char *speaker_mode_text[] = {
57 "Class D", 57 "Class D",
58 "Class AB", 58 "Class AB",
59}; 59};
60 60
61static const struct soc_enum speaker_mode = 61static SOC_ENUM_SINGLE_DECL(speaker_mode,
62 SOC_ENUM_SINGLE(WM8993_SPKMIXR_ATTENUATION, 8, 2, speaker_mode_text); 62 WM8993_SPKMIXR_ATTENUATION, 8, speaker_mode_text);
63 63
64static void wait_for_dc_servo(struct snd_soc_codec *codec, unsigned int op) 64static void wait_for_dc_servo(struct snd_soc_codec *codec, unsigned int op)
65{ 65{
@@ -735,15 +735,15 @@ static const char *hp_mux_text[] = {
735 "DAC", 735 "DAC",
736}; 736};
737 737
738static const struct soc_enum hpl_enum = 738static SOC_ENUM_SINGLE_DECL(hpl_enum,
739 SOC_ENUM_SINGLE(WM8993_OUTPUT_MIXER1, 8, 2, hp_mux_text); 739 WM8993_OUTPUT_MIXER1, 8, hp_mux_text);
740 740
741const struct snd_kcontrol_new wm_hubs_hpl_mux = 741const struct snd_kcontrol_new wm_hubs_hpl_mux =
742 WM_HUBS_ENUM_W("Left Headphone Mux", hpl_enum); 742 WM_HUBS_ENUM_W("Left Headphone Mux", hpl_enum);
743EXPORT_SYMBOL_GPL(wm_hubs_hpl_mux); 743EXPORT_SYMBOL_GPL(wm_hubs_hpl_mux);
744 744
745static const struct soc_enum hpr_enum = 745static SOC_ENUM_SINGLE_DECL(hpr_enum,
746 SOC_ENUM_SINGLE(WM8993_OUTPUT_MIXER2, 8, 2, hp_mux_text); 746 WM8993_OUTPUT_MIXER2, 8, hp_mux_text);
747 747
748const struct snd_kcontrol_new wm_hubs_hpr_mux = 748const struct snd_kcontrol_new wm_hubs_hpr_mux =
749 WM_HUBS_ENUM_W("Right Headphone Mux", hpr_enum); 749 WM_HUBS_ENUM_W("Right Headphone Mux", hpr_enum);