From 94aa733a477dd5fe6eb153e5b6741488d743fab5 Mon Sep 17 00:00:00 2001 From: Mark Brown Date: Tue, 1 May 2012 18:45:09 +0100 Subject: 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 --- sound/soc/codecs/wm_hubs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sound/soc/codecs/wm_hubs.h') diff --git a/sound/soc/codecs/wm_hubs.h b/sound/soc/codecs/wm_hubs.h index 71861fc580a3..da2dc899ce6d 100644 --- a/sound/soc/codecs/wm_hubs.h +++ b/sound/soc/codecs/wm_hubs.h @@ -16,6 +16,7 @@ #include #include +#include #include struct snd_soc_codec; @@ -32,7 +33,7 @@ struct wm_hubs_data { int no_series_update; bool no_cache_dac_hp_direct; - u16 dac_hp_direct_dcs; + struct list_head dcs_cache; bool (*check_class_w_digital)(struct snd_soc_codec *); bool lineout1_se; -- cgit v1.2.2