]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: max98095: Convert codec->hw_write to snd_soc_write
authorAxel Lin <axel.lin@gmail.com>
Sat, 15 Oct 2011 03:46:02 +0000 (11:46 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 22 Oct 2011 10:09:54 +0000 (11:09 +0100)
commita07a89fbbfba9ed74610cde91960e0b427a3c631
tree3cd14ea8d4335439ee1974e5d4c2892f99df5ead
parentce3d15473951f402f7c9d88231d6dd6523ef7c08
ASoC: max98095: Convert codec->hw_write to snd_soc_write

codec->hw_write is broken now, convert codec->hw_write to snd_soc_write.

The hardware has 2 banks of registers sharing a section in I2C register space.
The 1st bank is the primary one and is cached.
The 2nd bank is for loading coefficients only and they do not need cache.
These coefficients registers are therefore direct writes.
Thus we set cache_bypass flag to deal with this before calling snd_soc_write.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/max98095.c