]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: AD1836: Add AD1835/AD1837/AD1838/AD1839 support
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 6 Jun 2011 11:38:38 +0000 (13:38 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 6 Jun 2011 20:54:42 +0000 (21:54 +0100)
commitf6dba96b73b4e1bc1a2cf4272ad1e8ca1adb5e1f
tree043e77092f66ed9fff4da4f0276291d54469af80
parent5c78dca6a8859867b49b0792cde8aed8d6afdcc7
ASoC: AD1836: Add AD1835/AD1837/AD1838/AD1839 support

The AD183X codec devices are mostly register compatible and can easily be
supported by the same driver.  The main difference between those devices
is the number of DACs and ADCs.

This patch adjusts the driver to allocate the controls, DAPM widgets and
routes for the DACs and ADCs dynamically based on the chip type.

The AD1836 is a bit special in that it supports different modes for its second
ADC, so it needs some special handling. Right now the driver hardcodes the mode
to the differential PGA mode.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/ad1836.c