diff options
author | Grazvydas Ignotas <notasas@gmail.com> | 2008-12-02 19:48:58 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2008-12-03 13:40:28 +0100 |
commit | 5920b45303291057fef827f5bdafe04001c1bbae (patch) | |
tree | 1d63ec7971c8f00dee0d380b93c25c5844e007a6 /sound/synth | |
parent | ASoC: Push platform registration down into the card (diff) | |
download | linux-5920b45303291057fef827f5bdafe04001c1bbae.tar.xz linux-5920b45303291057fef827f5bdafe04001c1bbae.zip |
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>
Diffstat (limited to 'sound/synth')
0 files changed, 0 insertions, 0 deletions