[alsa-devel] [PATCH 2/8] ASoC: AD1836: drop hardcoded register init
Mike Frysinger
vapier at gentoo.org
Tue Jun 14 23:34:22 CEST 2011
Drop hardcoded setup and let the user configure things as they so desire.
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
sound/soc/codecs/ad1836.c | 19 -------------------
1 files changed, 0 insertions(+), 19 deletions(-)
diff --git a/sound/soc/codecs/ad1836.c b/sound/soc/codecs/ad1836.c
index d368539..78c24f8 100644
--- a/sound/soc/codecs/ad1836.c
+++ b/sound/soc/codecs/ad1836.c
@@ -230,25 +230,6 @@ static int ad1836_probe(struct snd_soc_codec *codec)
return ret;
}
- /* default setting for ad1836 */
- /* de-emphasis: 48kHz, power-on dac */
- snd_soc_write(codec, AD1836_DAC_CTRL1, 0x300);
- /* unmute dac channels */
- snd_soc_write(codec, AD1836_DAC_CTRL2, 0x0);
- /* high-pass filter enable, power-on adc */
- snd_soc_write(codec, AD1836_ADC_CTRL1, 0x100);
- /* unmute adc channles, adc aux mode */
- snd_soc_write(codec, AD1836_ADC_CTRL2, 0x180);
- /* left/right diff:PGA/MUX */
- snd_soc_write(codec, AD1836_ADC_CTRL3, 0x3A);
- /* volume */
- snd_soc_write(codec, AD1836_DAC_L1_VOL, 0x3FF);
- snd_soc_write(codec, AD1836_DAC_R1_VOL, 0x3FF);
- snd_soc_write(codec, AD1836_DAC_L2_VOL, 0x3FF);
- snd_soc_write(codec, AD1836_DAC_R2_VOL, 0x3FF);
- snd_soc_write(codec, AD1836_DAC_L3_VOL, 0x3FF);
- snd_soc_write(codec, AD1836_DAC_R3_VOL, 0x3FF);
-
snd_soc_add_controls(codec, ad1836_snd_controls,
ARRAY_SIZE(ad1836_snd_controls));
snd_soc_dapm_new_controls(dapm, ad1836_dapm_widgets,
--
1.7.5.3
More information about the Alsa-devel
mailing list