]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: wm_hubs: Cache multiple DCS offsets
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 1 May 2012 17:45:09 +0000 (18:45 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 1 May 2012 18:21:07 +0000 (19:21 +0100)
commitc88f6d10338e1f5ac9efca15a1b160df95d00c5b
tree676e6e4c3a7d8623360ddf246829fd21079cc002
parent675849661b1a6dabb56607a899775cbc38481a9a
ASoC: wm_hubs: Cache multiple DCS offsets

Rather than invalidating the cached DCS value every time the headphone
gain changes store multiple values, indexed by gain. This allows the
optimisation we get from the cache to take effect more often.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm_hubs.c
sound/soc/codecs/wm_hubs.h