aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8993.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-04-26 15:06:56 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-04-27 13:42:10 -0400
commitaf31a227e1abee06ccd88c2c52f4fb36b786cebe (patch)
tree1d828dbc011d4c8871f851ba4dcf6a3fe45995c7 /sound/soc/codecs/wm8993.c
parentf57b8488bc39f7674cbadf4e2db05a7db8ffa660 (diff)
ASoC: wm_hubs: Special case headphones for digital paths in more use cases
The optimisations which we can do with caching the headphone DCS result in wm_hubs have only been enabled in cases where class W is enabled. However, there are more use cases which can benefit from the cache, especially with WM8994 series devices with their more advanced digital routing. Rather than keying off the class W information from the CODECs have a check in wm_hubs for a suitable path and use that to determine if we can deploy our headphone optimisations. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm8993.c')
-rw-r--r--sound/soc/codecs/wm8993.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8993.c b/sound/soc/codecs/wm8993.c
index d256a9340644..8bb005926aa0 100644
--- a/sound/soc/codecs/wm8993.c
+++ b/sound/soc/codecs/wm8993.c
@@ -852,7 +852,6 @@ static int class_w_put(struct snd_kcontrol *kcontrol,
852 0); 852 0);
853 } 853 }
854 wm8993->class_w_users++; 854 wm8993->class_w_users++;
855 wm8993->hubs_data.class_w = true;
856 } 855 }
857 856
858 /* Implement the change */ 857 /* Implement the change */
@@ -869,7 +868,6 @@ static int class_w_put(struct snd_kcontrol *kcontrol,
869 WM8993_CP_DYN_V); 868 WM8993_CP_DYN_V);
870 } 869 }
871 wm8993->class_w_users--; 870 wm8993->class_w_users--;
872 wm8993->hubs_data.class_w = false;
873 } 871 }
874 872
875 dev_dbg(codec->dev, "Indirect DAC use count now %d\n", 873 dev_dbg(codec->dev, "Indirect DAC use count now %d\n",