]> 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)
commitf44b16ec2c9cde9a3b2b8ed8d120a0caebe6fc7c
tree676e6e4c3a7d8623360ddf246829fd21079cc002
parentc26a4ae5d06772fda2790af375a6b637770938d5
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