aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>2013-11-19 11:04:03 -0500
committerLee Jones <lee.jones@linaro.org>2013-11-21 07:23:21 -0500
commit254dc326dbfd23c2678fafad1b84fc0e42ac4374 (patch)
tree75b9dd62fd0ffcbd2ece967c62724e7105972286 /sound/soc
parentc50aa44db3f803d3c3b79c926e76862454e77c48 (diff)
ASoC: wm5110: Expose input high pass filter controls
Acked-by: Mark Brown <broonie@kernel.org> Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/codecs/arizona.c10
-rw-r--r--sound/soc/codecs/arizona.h1
-rw-r--r--sound/soc/codecs/wm5110.c19
3 files changed, 30 insertions, 0 deletions
diff --git a/sound/soc/codecs/arizona.c b/sound/soc/codecs/arizona.c
index 657808ba1418..708326265a37 100644
--- a/sound/soc/codecs/arizona.c
+++ b/sound/soc/codecs/arizona.c
@@ -560,6 +560,16 @@ const struct soc_enum arizona_ng_hold =
560 4, arizona_ng_hold_text); 560 4, arizona_ng_hold_text);
561EXPORT_SYMBOL_GPL(arizona_ng_hold); 561EXPORT_SYMBOL_GPL(arizona_ng_hold);
562 562
563static const char * const arizona_in_hpf_cut_text[] = {
564 "2.5Hz", "5Hz", "10Hz", "20Hz", "40Hz"
565};
566
567const struct soc_enum arizona_in_hpf_cut_enum =
568 SOC_ENUM_SINGLE(ARIZONA_HPF_CONTROL, ARIZONA_IN_HPF_CUT_SHIFT,
569 ARRAY_SIZE(arizona_in_hpf_cut_text),
570 arizona_in_hpf_cut_text);
571EXPORT_SYMBOL_GPL(arizona_in_hpf_cut_enum);
572
563static const char * const arizona_in_dmic_osr_text[] = { 573static const char * const arizona_in_dmic_osr_text[] = {
564 "1.536MHz", "3.072MHz", "6.144MHz", 574 "1.536MHz", "3.072MHz", "6.144MHz",
565}; 575};
diff --git a/sound/soc/codecs/arizona.h b/sound/soc/codecs/arizona.h
index 9e81b6392692..f8e63865a1c5 100644
--- a/sound/soc/codecs/arizona.h
+++ b/sound/soc/codecs/arizona.h
@@ -199,6 +199,7 @@ extern const struct soc_enum arizona_lhpf3_mode;
199extern const struct soc_enum arizona_lhpf4_mode; 199extern const struct soc_enum arizona_lhpf4_mode;
200 200
201extern const struct soc_enum arizona_ng_hold; 201extern const struct soc_enum arizona_ng_hold;
202extern const struct soc_enum arizona_in_hpf_cut_enum;
202extern const struct soc_enum arizona_in_dmic_osr[]; 203extern const struct soc_enum arizona_in_dmic_osr[];
203 204
204extern int arizona_in_ev(struct snd_soc_dapm_widget *w, 205extern int arizona_in_ev(struct snd_soc_dapm_widget *w,
diff --git a/sound/soc/codecs/wm5110.c b/sound/soc/codecs/wm5110.c
index bbd64384ca1c..ea18e88e0a07 100644
--- a/sound/soc/codecs/wm5110.c
+++ b/sound/soc/codecs/wm5110.c
@@ -76,6 +76,25 @@ SOC_SINGLE_RANGE_TLV("IN3L Volume", ARIZONA_IN3L_CONTROL,
76SOC_SINGLE_RANGE_TLV("IN3R Volume", ARIZONA_IN3R_CONTROL, 76SOC_SINGLE_RANGE_TLV("IN3R Volume", ARIZONA_IN3R_CONTROL,
77 ARIZONA_IN3R_PGA_VOL_SHIFT, 0x40, 0x5f, 0, ana_tlv), 77 ARIZONA_IN3R_PGA_VOL_SHIFT, 0x40, 0x5f, 0, ana_tlv),
78 78
79SOC_ENUM("IN HPF Cutoff Frequency", arizona_in_hpf_cut_enum),
80
81SOC_SINGLE("IN1L HPF Switch", ARIZONA_IN1L_CONTROL,
82 ARIZONA_IN1L_HPF_SHIFT, 1, 0),
83SOC_SINGLE("IN1R HPF Switch", ARIZONA_IN1R_CONTROL,
84 ARIZONA_IN1R_HPF_SHIFT, 1, 0),
85SOC_SINGLE("IN2L HPF Switch", ARIZONA_IN2L_CONTROL,
86 ARIZONA_IN2L_HPF_SHIFT, 1, 0),
87SOC_SINGLE("IN2R HPF Switch", ARIZONA_IN2R_CONTROL,
88 ARIZONA_IN2R_HPF_SHIFT, 1, 0),
89SOC_SINGLE("IN3L HPF Switch", ARIZONA_IN3L_CONTROL,
90 ARIZONA_IN3L_HPF_SHIFT, 1, 0),
91SOC_SINGLE("IN3R HPF Switch", ARIZONA_IN3R_CONTROL,
92 ARIZONA_IN3R_HPF_SHIFT, 1, 0),
93SOC_SINGLE("IN4L HPF Switch", ARIZONA_IN4L_CONTROL,
94 ARIZONA_IN4L_HPF_SHIFT, 1, 0),
95SOC_SINGLE("IN4R HPF Switch", ARIZONA_IN4R_CONTROL,
96 ARIZONA_IN4R_HPF_SHIFT, 1, 0),
97
79SOC_SINGLE_TLV("IN1L Digital Volume", ARIZONA_ADC_DIGITAL_VOLUME_1L, 98SOC_SINGLE_TLV("IN1L Digital Volume", ARIZONA_ADC_DIGITAL_VOLUME_1L,
80 ARIZONA_IN1L_DIG_VOL_SHIFT, 0xbf, 0, digital_tlv), 99 ARIZONA_IN1L_DIG_VOL_SHIFT, 0xbf, 0, digital_tlv),
81SOC_SINGLE_TLV("IN1R Digital Volume", ARIZONA_ADC_DIGITAL_VOLUME_1R, 100SOC_SINGLE_TLV("IN1R Digital Volume", ARIZONA_ADC_DIGITAL_VOLUME_1R,