]> git.karo-electronics.de Git - linux-beck.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)
commit94aa733a477dd5fe6eb153e5b6741488d743fab5
tree676e6e4c3a7d8623360ddf246829fd21079cc002
parent6264f668d51647be68bcfde8a56042bd646a7855
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