android_kernel_xiaomi_sdm845/sound/soc/codecs
Grazvydas Ignotas 5920b45303 ASoC: TWL4030: Add input selection and gain controls
The TWL4030 codec device has two ADCs. Both of them can have
several inputs routed to them, but TRM says that only one source
can be selected for every ADC, even though every source has a
dedicated bit in the registers.

This patch adds input source controls. It modifies default register
values to have no inputs selected and ADCs disabled. When some
input is selected, control handlers enable apropriate input
amplifier and ADC. If a microphone is selected, bias power is
automatically enabled. When some input is deselected, unused
chip parts are disabled.

Microphone and line input recording tested on OMAP3 pandora board.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2008-12-03 12:40:28 +00:00
..
ac97.c ASoC: Rename snd_soc_register_card() to snd_soc_init_card() 2008-12-01 19:58:50 +00:00
ac97.h ALSA: asoc: codecs - merge structs snd_soc_codec_dai and snd_soc_cpu_dai. 2008-07-10 09:32:39 +02:00
ad1980.c ASoC: Rename snd_soc_register_card() to snd_soc_init_card() 2008-12-01 19:58:50 +00:00
ad1980.h ALSA: ASoC codec: fix compiling error in ad1980 driver after ASoC API changed 2008-09-09 09:10:54 +02:00
ad73311.c ASoC: Remove in-code changelog from AD73311 driver 2008-12-01 19:58:52 +00:00
ad73311.h ALSA: ASoC codec: AD73311 audio codec driver 2008-10-13 02:16:12 +02:00
ak4535.c ASoC: Rename snd_soc_register_card() to snd_soc_init_card() 2008-12-01 19:58:50 +00:00
ak4535.h ALSA: ASoC: Convert ak4535 to a new-style i2c driver 2008-09-04 10:34:21 +02:00
cs4270.c ASoC: Rename snd_soc_register_card() to snd_soc_init_card() 2008-12-01 19:58:50 +00:00
cs4270.h ALSA: asoc: codecs - merge structs snd_soc_codec_dai and snd_soc_cpu_dai. 2008-07-10 09:32:39 +02:00
Kconfig ASoC: Add PCM3008 ALSA SoC driver 2008-11-19 13:16:38 +00:00
l3.c ASoC: UDA134x codec driver 2008-11-17 11:45:39 +00:00
Makefile ASoC: Add PCM3008 ALSA SoC driver 2008-11-19 13:16:38 +00:00
pcm3008.c ASoC: Rename snd_soc_register_card() to snd_soc_init_card() 2008-12-01 19:58:50 +00:00
pcm3008.h ASoC: Add PCM3008 ALSA SoC driver 2008-11-19 13:16:38 +00:00
ssm2602.c ASoC: Rename snd_soc_register_card() to snd_soc_init_card() 2008-12-01 19:58:50 +00:00
ssm2602.h sound: ASoC codec: SSM2602 audio codec driver 2008-09-09 09:11:15 +02:00
tlv320aic3x.c ASoC: Rename snd_soc_register_card() to snd_soc_init_card() 2008-12-01 19:58:50 +00:00
tlv320aic3x.h ASoC: Allow more routing features for tlv320aic3x 2008-11-26 18:30:59 +00:00
tlv320aic23.c ASoC: Rename snd_soc_register_card() to snd_soc_init_card() 2008-12-01 19:58:50 +00:00
tlv320aic23.h ALSA: ASoC: Add TLV320AIC23 codec driver 2008-10-13 02:16:48 +02:00
tlv320aic26.c ASoC: Rename snd_soc_register_card() to snd_soc_init_card() 2008-12-01 19:58:50 +00:00
tlv320aic26.h ALSA: ASoC: Export DAI and codec for TLV320AIC26 2008-07-29 21:32:25 +02:00
twl4030.c ASoC: TWL4030: Add input selection and gain controls 2008-12-03 12:40:28 +00:00
twl4030.h ASoC: TWL4030: Add input selection and gain controls 2008-12-03 12:40:28 +00:00
uda134x.c ASoC: Rename snd_soc_register_card() to snd_soc_init_card() 2008-12-01 19:58:50 +00:00
uda134x.h ASoC: Move uda134x_codec.h to uda134x.h 2008-11-18 12:32:33 +00:00
uda1380.c ASoC: Rename snd_soc_register_card() to snd_soc_init_card() 2008-12-01 19:58:50 +00:00
uda1380.h ALSA: ASoC: Convert uda1380 to a new-style i2c driver 2008-09-04 10:34:20 +02:00
wm8510.c ASoC: Rename snd_soc_register_card() to snd_soc_init_card() 2008-12-01 19:58:50 +00:00
wm8510.h ALSA: ASoC: Add WM8510 SPI support 2008-10-13 02:17:15 +02:00
wm8580.c ASoC: Rename snd_soc_register_card() to snd_soc_init_card() 2008-12-01 19:58:50 +00:00
wm8580.h ALSA: ASoC: Convert wm8580 to a new-style i2c driver 2008-10-16 08:50:17 +02:00
wm8728.c ASoC: Rename snd_soc_register_card() to snd_soc_init_card() 2008-12-01 19:58:50 +00:00
wm8728.h ASoC: Add WM8728 codec driver 2008-11-14 14:44:53 +00:00
wm8731.c ASoC: Rename snd_soc_register_card() to snd_soc_init_card() 2008-12-01 19:58:50 +00:00
wm8731.h ALSA: ASoC: Add SPI support for WM8731 2008-09-04 10:34:27 +02:00
wm8750.c ASoC: Rename snd_soc_register_card() to snd_soc_init_card() 2008-12-01 19:58:50 +00:00
wm8750.h sound: ASoC: Add WM8750 SPI support 2008-09-23 08:18:19 +02:00
wm8753.c ASoC: Rename snd_soc_register_card() to snd_soc_init_card() 2008-12-01 19:58:50 +00:00
wm8753.h ALSA: ASoC: update email address for Liam Girdwood 2008-10-13 02:26:42 +02:00
wm8900.c ASoC: Rename snd_soc_register_card() to snd_soc_init_card() 2008-12-01 19:58:50 +00:00
wm8900.h ALSA: ASoC: Convert wm8900 to a new-style i2c driver 2008-10-16 08:50:41 +02:00
wm8903.c ASoC: Rename snd_soc_register_card() to snd_soc_init_card() 2008-12-01 19:58:50 +00:00
wm8903.h ALSA: ASoC: Add WM8903 CODEC driver 2008-08-29 10:05:47 +02:00
wm8971.c ASoC: Rename snd_soc_register_card() to snd_soc_init_card() 2008-12-01 19:58:50 +00:00
wm8971.h sound: ASoC: Add WM8971 CODEC driver 2008-09-23 08:18:05 +02:00
wm8990.c ASoC: Rename snd_soc_register_card() to snd_soc_init_card() 2008-12-01 19:58:50 +00:00
wm8990.h ASoC: Enable WM8990 ADC clocking workaround 2008-11-17 17:24:54 +00:00
wm9712.c ASoC: Rename snd_soc_register_card() to snd_soc_init_card() 2008-12-01 19:58:50 +00:00
wm9712.h ALSA: asoc: codecs - merge structs snd_soc_codec_dai and snd_soc_cpu_dai. 2008-07-10 09:32:39 +02:00
wm9713.c ASoC: Don't free static data in WM9713 2008-12-01 19:58:55 +00:00
wm9713.h ALSA: asoc: codecs - merge structs snd_soc_codec_dai and snd_soc_cpu_dai. 2008-07-10 09:32:39 +02:00