tmp_suning_uos_patched/sound/soc
Peter Ujfalusi 276c62225a ASoC: TWL4030: DAPM based capture implementation
This patch adds DAPM implementaion for the capture path
on twlx030.

TWL has two physical ADC and two digital microphone (stereo) connections.
The CPU interface has four microphone channels.
For simplicity the microphone channel paths are named as:
TX1 (Left/Right) - when using i2s mode, only the TX1 data is valid
TX2 (Left/Right)

Input routing (simplified version):
There is two levels of mux settings for TWL in input path:
Analog input mux:
 ADCL <- {Off, Main mic, Headset mic, AUXL, Carkit mic}
 ADCR <- {Off, Sub mic, AUXR}

Analog/Digital mux:
TX1 Analog mode:
 TX1L <- ADCL
 TX1R <- ADCR
TX1 Digital mode:
 TX1L <- Digimic0 (Left)
 TX1R <- Digimic0 (Right)

TX2 Analog mode:
 TX2L <- ADCL
 TX2R <- ADCR
TX2 Digital mode:
 TX2L <- Digimic1 (Left)
 TX2R <- Digimic1 (Right)

The patch provides the following user controls for the capture path:
Mux settings:
"TX1 Capture Route": {Analog, Digimic0}
"TX2 Capture Route": {Analog, Digimic1}
"Analog Left Capture Route":  {Off, Main Mic, Headset Mic, AUXL, Carkit Mic}
"Analog Right Capture Route": {Off, Sub Mic, AUXR}

Volume/Gain controls:
"TX1 Digital Capture Volume": Stereo gain control for TX1 path
"TX2 Digital Capture Volume": Stereo gain control for TX2 path
"Analog Capture Volume":      Stereo gain control for the analog path only

Important things for the board files:
Microphone bias:
"Mic Bias 1":       Bias for Main mic or for digimic0 (analog or digital path)
"Mic Bias 2":       Bias for Sub mic or for digimic1 (analog or digital path)
"Headset Mic Bias": Bias for Headset mic

When the routing configured correctly only the needed components will be
powered/enabled.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2008-12-31 13:11:59 +00:00
..
atmel ALSA: ASoC - Fix wrong section types 2008-12-10 07:47:22 +01:00
au1x ASoC: Register platform drivers 2008-12-09 10:49:28 +00:00
blackfin ASoC: Fix variable name for Blackfin I2S DAI 2008-12-11 16:12:14 +00:00
codecs ASoC: TWL4030: DAPM based capture implementation 2008-12-31 13:11:59 +00:00
davinci ALSA: ASoc: DaVinci: davinci-evm use dsp_b mode 2008-12-20 13:05:39 +00:00
fsl ALSA: ASoC - Fix wrong section types 2008-12-10 07:47:22 +01:00
omap ALSA: ASoC: fix a typo in omp-pcm.c 2008-12-22 18:33:26 +01:00
pxa Merge branch 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm 2008-12-30 17:36:49 -08:00
s3c24xx Merge branch 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm 2008-12-30 17:36:49 -08:00
sh ALSA: ASoC - Fix wrong section types 2008-12-10 07:47:22 +01:00
Kconfig ASoC: Ease merge difficulties from new architectures 2008-12-18 17:21:01 +00:00
Makefile ASoC: Ease merge difficulties from new architectures 2008-12-18 17:21:01 +00:00
soc-core.c ASoC: Add codec registration API 2008-12-10 15:40:02 +00:00
soc-dapm.c ASoC: Complain if we fail to create DAPM controls 2008-12-18 17:21:07 +00:00