diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-02-18 04:45:12 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-22 21:42:19 -0500 |
commit | 2d075611c67c7a351fead73ac6bf0864049305b3 (patch) | |
tree | 6d0b5856bd5df7099372128557be65a61731b3a5 | |
parent | 88b5bdfda886e9774b03f02ffe4295be124124f6 (diff) |
ASoC: wm8993: Use SOC_ENUM_SINGLE_DECL()
Just replace with the helper macro. No functional change at all.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | sound/soc/codecs/wm8993.c | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/sound/soc/codecs/wm8993.c b/sound/soc/codecs/wm8993.c index 2ee23a39622c..1c12f2c9418a 100644 --- a/sound/soc/codecs/wm8993.c +++ b/sound/soc/codecs/wm8993.c | |||
@@ -646,8 +646,8 @@ static const char *dac_deemph_text[] = { | |||
646 | "48kHz", | 646 | "48kHz", |
647 | }; | 647 | }; |
648 | 648 | ||
649 | static const struct soc_enum dac_deemph = | 649 | static SOC_ENUM_SINGLE_DECL(dac_deemph, |
650 | SOC_ENUM_SINGLE(WM8993_DAC_CTRL, 4, 4, dac_deemph_text); | 650 | WM8993_DAC_CTRL, 4, dac_deemph_text); |
651 | 651 | ||
652 | static const char *adc_hpf_text[] = { | 652 | static const char *adc_hpf_text[] = { |
653 | "Hi-Fi", | 653 | "Hi-Fi", |
@@ -656,16 +656,16 @@ static const char *adc_hpf_text[] = { | |||
656 | "Voice 3", | 656 | "Voice 3", |
657 | }; | 657 | }; |
658 | 658 | ||
659 | static const struct soc_enum adc_hpf = | 659 | static SOC_ENUM_SINGLE_DECL(adc_hpf, |
660 | SOC_ENUM_SINGLE(WM8993_ADC_CTRL, 5, 4, adc_hpf_text); | 660 | WM8993_ADC_CTRL, 5, adc_hpf_text); |
661 | 661 | ||
662 | static const char *drc_path_text[] = { | 662 | static const char *drc_path_text[] = { |
663 | "ADC", | 663 | "ADC", |
664 | "DAC" | 664 | "DAC" |
665 | }; | 665 | }; |
666 | 666 | ||
667 | static const struct soc_enum drc_path = | 667 | static SOC_ENUM_SINGLE_DECL(drc_path, |
668 | SOC_ENUM_SINGLE(WM8993_DRC_CONTROL_1, 14, 2, drc_path_text); | 668 | WM8993_DRC_CONTROL_1, 14, drc_path_text); |
669 | 669 | ||
670 | static const char *drc_r0_text[] = { | 670 | static const char *drc_r0_text[] = { |
671 | "1", | 671 | "1", |
@@ -676,8 +676,8 @@ static const char *drc_r0_text[] = { | |||
676 | "0", | 676 | "0", |
677 | }; | 677 | }; |
678 | 678 | ||
679 | static const struct soc_enum drc_r0 = | 679 | static SOC_ENUM_SINGLE_DECL(drc_r0, |
680 | SOC_ENUM_SINGLE(WM8993_DRC_CONTROL_3, 8, 6, drc_r0_text); | 680 | WM8993_DRC_CONTROL_3, 8, drc_r0_text); |
681 | 681 | ||
682 | static const char *drc_r1_text[] = { | 682 | static const char *drc_r1_text[] = { |
683 | "1", | 683 | "1", |
@@ -687,8 +687,8 @@ static const char *drc_r1_text[] = { | |||
687 | "0", | 687 | "0", |
688 | }; | 688 | }; |
689 | 689 | ||
690 | static const struct soc_enum drc_r1 = | 690 | static SOC_ENUM_SINGLE_DECL(drc_r1, |
691 | SOC_ENUM_SINGLE(WM8993_DRC_CONTROL_4, 13, 5, drc_r1_text); | 691 | WM8993_DRC_CONTROL_4, 13, drc_r1_text); |
692 | 692 | ||
693 | static const char *drc_attack_text[] = { | 693 | static const char *drc_attack_text[] = { |
694 | "Reserved", | 694 | "Reserved", |
@@ -705,8 +705,8 @@ static const char *drc_attack_text[] = { | |||
705 | "185.6ms", | 705 | "185.6ms", |
706 | }; | 706 | }; |
707 | 707 | ||
708 | static const struct soc_enum drc_attack = | 708 | static SOC_ENUM_SINGLE_DECL(drc_attack, |
709 | SOC_ENUM_SINGLE(WM8993_DRC_CONTROL_2, 12, 12, drc_attack_text); | 709 | WM8993_DRC_CONTROL_2, 12, drc_attack_text); |
710 | 710 | ||
711 | static const char *drc_decay_text[] = { | 711 | static const char *drc_decay_text[] = { |
712 | "186ms", | 712 | "186ms", |
@@ -720,16 +720,16 @@ static const char *drc_decay_text[] = { | |||
720 | "47.56ms", | 720 | "47.56ms", |
721 | }; | 721 | }; |
722 | 722 | ||
723 | static const struct soc_enum drc_decay = | 723 | static SOC_ENUM_SINGLE_DECL(drc_decay, |
724 | SOC_ENUM_SINGLE(WM8993_DRC_CONTROL_2, 8, 9, drc_decay_text); | 724 | WM8993_DRC_CONTROL_2, 8, drc_decay_text); |
725 | 725 | ||
726 | static const char *drc_ff_text[] = { | 726 | static const char *drc_ff_text[] = { |
727 | "5 samples", | 727 | "5 samples", |
728 | "9 samples", | 728 | "9 samples", |
729 | }; | 729 | }; |
730 | 730 | ||
731 | static const struct soc_enum drc_ff = | 731 | static SOC_ENUM_SINGLE_DECL(drc_ff, |
732 | SOC_ENUM_SINGLE(WM8993_DRC_CONTROL_3, 7, 2, drc_ff_text); | 732 | WM8993_DRC_CONTROL_3, 7, drc_ff_text); |
733 | 733 | ||
734 | static const char *drc_qr_rate_text[] = { | 734 | static const char *drc_qr_rate_text[] = { |
735 | "0.725ms", | 735 | "0.725ms", |
@@ -737,8 +737,8 @@ static const char *drc_qr_rate_text[] = { | |||
737 | "5.8ms", | 737 | "5.8ms", |
738 | }; | 738 | }; |
739 | 739 | ||
740 | static const struct soc_enum drc_qr_rate = | 740 | static SOC_ENUM_SINGLE_DECL(drc_qr_rate, |
741 | SOC_ENUM_SINGLE(WM8993_DRC_CONTROL_3, 0, 3, drc_qr_rate_text); | 741 | WM8993_DRC_CONTROL_3, 0, drc_qr_rate_text); |
742 | 742 | ||
743 | static const char *drc_smooth_text[] = { | 743 | static const char *drc_smooth_text[] = { |
744 | "Low", | 744 | "Low", |
@@ -746,8 +746,8 @@ static const char *drc_smooth_text[] = { | |||
746 | "High", | 746 | "High", |
747 | }; | 747 | }; |
748 | 748 | ||
749 | static const struct soc_enum drc_smooth = | 749 | static SOC_ENUM_SINGLE_DECL(drc_smooth, |
750 | SOC_ENUM_SINGLE(WM8993_DRC_CONTROL_1, 4, 3, drc_smooth_text); | 750 | WM8993_DRC_CONTROL_1, 4, drc_smooth_text); |
751 | 751 | ||
752 | static const struct snd_kcontrol_new wm8993_snd_controls[] = { | 752 | static const struct snd_kcontrol_new wm8993_snd_controls[] = { |
753 | SOC_DOUBLE_TLV("Digital Sidetone Volume", WM8993_DIGITAL_SIDE_TONE, | 753 | SOC_DOUBLE_TLV("Digital Sidetone Volume", WM8993_DIGITAL_SIDE_TONE, |
@@ -841,26 +841,26 @@ static const char *aif_text[] = { | |||
841 | "Left", "Right" | 841 | "Left", "Right" |
842 | }; | 842 | }; |
843 | 843 | ||
844 | static const struct soc_enum aifoutl_enum = | 844 | static SOC_ENUM_SINGLE_DECL(aifoutl_enum, |
845 | SOC_ENUM_SINGLE(WM8993_AUDIO_INTERFACE_1, 15, 2, aif_text); | 845 | WM8993_AUDIO_INTERFACE_1, 15, aif_text); |
846 | 846 | ||
847 | static const struct snd_kcontrol_new aifoutl_mux = | 847 | static const struct snd_kcontrol_new aifoutl_mux = |
848 | SOC_DAPM_ENUM("AIFOUTL Mux", aifoutl_enum); | 848 | SOC_DAPM_ENUM("AIFOUTL Mux", aifoutl_enum); |
849 | 849 | ||
850 | static const struct soc_enum aifoutr_enum = | 850 | static SOC_ENUM_SINGLE_DECL(aifoutr_enum, |
851 | SOC_ENUM_SINGLE(WM8993_AUDIO_INTERFACE_1, 14, 2, aif_text); | 851 | WM8993_AUDIO_INTERFACE_1, 14, aif_text); |
852 | 852 | ||
853 | static const struct snd_kcontrol_new aifoutr_mux = | 853 | static const struct snd_kcontrol_new aifoutr_mux = |
854 | SOC_DAPM_ENUM("AIFOUTR Mux", aifoutr_enum); | 854 | SOC_DAPM_ENUM("AIFOUTR Mux", aifoutr_enum); |
855 | 855 | ||
856 | static const struct soc_enum aifinl_enum = | 856 | static SOC_ENUM_SINGLE_DECL(aifinl_enum, |
857 | SOC_ENUM_SINGLE(WM8993_AUDIO_INTERFACE_2, 15, 2, aif_text); | 857 | WM8993_AUDIO_INTERFACE_2, 15, aif_text); |
858 | 858 | ||
859 | static const struct snd_kcontrol_new aifinl_mux = | 859 | static const struct snd_kcontrol_new aifinl_mux = |
860 | SOC_DAPM_ENUM("AIFINL Mux", aifinl_enum); | 860 | SOC_DAPM_ENUM("AIFINL Mux", aifinl_enum); |
861 | 861 | ||
862 | static const struct soc_enum aifinr_enum = | 862 | static SOC_ENUM_SINGLE_DECL(aifinr_enum, |
863 | SOC_ENUM_SINGLE(WM8993_AUDIO_INTERFACE_2, 14, 2, aif_text); | 863 | WM8993_AUDIO_INTERFACE_2, 14, aif_text); |
864 | 864 | ||
865 | static const struct snd_kcontrol_new aifinr_mux = | 865 | static const struct snd_kcontrol_new aifinr_mux = |
866 | SOC_DAPM_ENUM("AIFINR Mux", aifinr_enum); | 866 | SOC_DAPM_ENUM("AIFINR Mux", aifinr_enum); |
@@ -869,14 +869,14 @@ static const char *sidetone_text[] = { | |||
869 | "None", "Left", "Right" | 869 | "None", "Left", "Right" |
870 | }; | 870 | }; |
871 | 871 | ||
872 | static const struct soc_enum sidetonel_enum = | 872 | static SOC_ENUM_SINGLE_DECL(sidetonel_enum, |
873 | SOC_ENUM_SINGLE(WM8993_DIGITAL_SIDE_TONE, 2, 3, sidetone_text); | 873 | WM8993_DIGITAL_SIDE_TONE, 2, sidetone_text); |
874 | 874 | ||
875 | static const struct snd_kcontrol_new sidetonel_mux = | 875 | static const struct snd_kcontrol_new sidetonel_mux = |
876 | SOC_DAPM_ENUM("Left Sidetone", sidetonel_enum); | 876 | SOC_DAPM_ENUM("Left Sidetone", sidetonel_enum); |
877 | 877 | ||
878 | static const struct soc_enum sidetoner_enum = | 878 | static SOC_ENUM_SINGLE_DECL(sidetoner_enum, |
879 | SOC_ENUM_SINGLE(WM8993_DIGITAL_SIDE_TONE, 0, 3, sidetone_text); | 879 | WM8993_DIGITAL_SIDE_TONE, 0, sidetone_text); |
880 | 880 | ||
881 | static const struct snd_kcontrol_new sidetoner_mux = | 881 | static const struct snd_kcontrol_new sidetoner_mux = |
882 | SOC_DAPM_ENUM("Right Sidetone", sidetoner_enum); | 882 | SOC_DAPM_ENUM("Right Sidetone", sidetoner_enum); |