aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2010-12-10 13:42:58 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-12-11 07:43:41 -0500
commit460f4aae8f9c6e414f17bfaaf9b89942ed5984a6 (patch)
tree2748792cb9381fd478783a89eb234b70127c8f15 /sound/soc/codecs
parent1957668be903b2c98e1dfb295510850531eea135 (diff)
ASoC: Implement WM8903 high pass filter support
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r--sound/soc/codecs/wm8903.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8903.c b/sound/soc/codecs/wm8903.c
index 620793e51666..797992c09342 100644
--- a/sound/soc/codecs/wm8903.c
+++ b/sound/soc/codecs/wm8903.c
@@ -474,6 +474,13 @@ static const DECLARE_TLV_DB_SCALE(drc_tlv_min, 0, 600, 0);
474static const DECLARE_TLV_DB_SCALE(drc_tlv_max, 1200, 600, 0); 474static const DECLARE_TLV_DB_SCALE(drc_tlv_max, 1200, 600, 0);
475static const DECLARE_TLV_DB_SCALE(drc_tlv_startup, -300, 50, 0); 475static const DECLARE_TLV_DB_SCALE(drc_tlv_startup, -300, 50, 0);
476 476
477static const char *hpf_mode_text[] = {
478 "Hi-fi", "Voice 1", "Voice 2", "Voice 3"
479};
480
481static const struct soc_enum hpf_mode =
482 SOC_ENUM_SINGLE(WM8903_ADC_DIGITAL_0, 5, 4, hpf_mode_text);
483
477static const char *drc_slope_text[] = { 484static const char *drc_slope_text[] = {
478 "1", "1/2", "1/4", "1/8", "1/16", "0" 485 "1", "1/2", "1/4", "1/8", "1/16", "0"
479}; 486};
@@ -612,6 +619,8 @@ SOC_SINGLE("Right Input PGA Common Mode Switch", WM8903_ANALOGUE_RIGHT_INPUT_1,
612 6, 1, 0), 619 6, 1, 0),
613 620
614/* ADCs */ 621/* ADCs */
622SOC_SINGLE("HPF Switch", WM8903_ADC_DIGITAL_0, 4, 1, 0),
623SOC_ENUM("HPF Mode", hpf_mode),
615SOC_SINGLE("DRC Switch", WM8903_DRC_0, 15, 1, 0), 624SOC_SINGLE("DRC Switch", WM8903_DRC_0, 15, 1, 0),
616SOC_ENUM("DRC Compressor Slope R0", drc_slope_r0), 625SOC_ENUM("DRC Compressor Slope R0", drc_slope_r0),
617SOC_ENUM("DRC Compressor Slope R1", drc_slope_r1), 626SOC_ENUM("DRC Compressor Slope R1", drc_slope_r1),