Prchal Jiří | 29 Jun 2012 10:52
Picon

[PATCH] ASoC: tlv320aic3x: add AGC settings

This patch adds AGC target level and times settings for TLV320AIC3106.

Signed-off-by: Jiri Prchal <jiri.prchal <at> aksignal.cz>
---
  sound/soc/codecs/tlv320aic3x.c |   25 +++++++++++++++++++++++++
  1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/sound/soc/codecs/tlv320aic3x.c b/sound/soc/codecs/tlv320aic3x.c
index 50a7112..5335ebc 100644
--- a/sound/soc/codecs/tlv320aic3x.c
+++ b/sound/soc/codecs/tlv320aic3x.c
 <at>  <at>  -204,6 +204,10  <at>  <at>  static const char *aic3x_right_hpcom_mux[] =
  static const char *aic3x_linein_mode_mux[] = { "single-ended", "differential" };
  static const char *aic3x_adc_hpf[] =
      { "Disabled", "0.0045xFs", "0.0125xFs", "0.025xFs" };
+static const char *aic3x_agc_level[] =
+    { "-5.5dB", "-8dB", "-10dB", "-12dB", "-14dB", "-17dB", "-20dB", "-24dB" };
+static const char *aic3x_agc_attack[] = { "8ms", "11ms", "16ms", "20ms" };
+static const char *aic3x_agc_decay[] = { "100ms", "200ms", "400ms", "500ms" };

  #define LDAC_ENUM	0
  #define RDAC_ENUM	1
 <at>  <at>  -231,6 +235,21  <at>  <at>  static const struct soc_enum aic3x_enum[] = {
  	SOC_ENUM_DOUBLE(AIC3X_CODEC_DFILT_CTRL, 6, 4, 4, aic3x_adc_hpf),
  };

+#define LAGC_LEV_ENUM	0
+#define RAGC_LEV_ENUM	1
+#define LAGC_ATT_ENUM	2
+#define RAGC_ATT_ENUM	3
(Continue reading)


Gmane