]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: wm_hubs: Special case headphones for digital paths in more use cases
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 26 Apr 2012 19:06:56 +0000 (20:06 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 27 Apr 2012 17:42:10 +0000 (18:42 +0100)
commitc1de297217357b15455c0f0261f38dc6faca7cb2
tree1d828dbc011d4c8871f851ba4dcf6a3fe45995c7
parent05c1bd78d97c994b39c0875b6fa4b13c97492c45
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>
sound/soc/codecs/wm8993.c
sound/soc/codecs/wm8994.c
sound/soc/codecs/wm_hubs.c
sound/soc/codecs/wm_hubs.h