OSDN Git Service

ASoC: tlv320aic26: Convert to direct regmap API usage
authorMark Brown <broonie@linaro.org>
Wed, 25 Sep 2013 12:29:44 +0000 (13:29 +0100)
committerMark Brown <broonie@linaro.org>
Wed, 25 Sep 2013 12:30:59 +0000 (13:30 +0100)
commit7fbdeb809050cb958f3baa83dcc643f9a2f287f2
treeb7e9f3973279ba2a4af4d3f3cd631abe7d2ef128
parent5b0959d472c215e6d712ac47e64110bd125ddd07
ASoC: tlv320aic26: Convert to direct regmap API usage

This moves us towards being able to remove the duplicated register I/O
code in ASoC.

The datasheet and the driver document the device as having a register map
divided into pages but since the paging is actually done by sending the
page address and the register address with each transaction this is no
different to having a simple register address. The datasheet does also
document the low five bits of the 16 bit "command" as unused which we could
represent as padding but it seems simpler and less confusing to things
that use block transfers or autoincrement to represent these as part of
the register address.

Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/tlv320aic26.c
sound/soc/codecs/tlv320aic26.h