]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: wm8994: Bring WM8994 accessory detection up to date
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 6 Feb 2012 18:50:39 +0000 (18:50 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 6 Feb 2012 19:06:19 +0000 (19:06 +0000)
commit843ad6e792fa669c2aa6c032e1bdfd7a97cec1e9
treedf6e8a54dc9dd10dd5869735dd0095a41fba5ade
parentd823e07447583d923ddb9a3f2a209639cfee2ab0
ASoC: wm8994: Bring WM8994 accessory detection up to date

Make the mechanism used for WM8994 more like that for WM1811 and WM8958:
provide the logic to distinguish between headphone and headset and hard
code the reporting of sensible SND_JACK values. Should integration with
other detection mechanisms be required we can add appropriate callbacks
(though some integrations should be able to use the subsystem ones).

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm8994.c
sound/soc/codecs/wm8994.h