diff options
author | Grazvydas Ignotas <notasas@gmail.com> | 2008-12-02 20:48:58 +0200 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2008-12-03 12:40:28 +0000 |
commit | 5920b45303291057fef827f5bdafe04001c1bbae (patch) | |
tree | 1d63ec7971c8f00dee0d380b93c25c5844e007a6 /fs/fuse | |
parent | 87689d567a45f80416feea0a2aa6d3a2a6b8963a (diff) |
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 'fs/fuse')
0 files changed, 0 insertions, 0 deletions