ASoC: msm8916-wcd-analog: use threaded context for mbhc events
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Wed, 18 Apr 2018 17:46:37 +0000 (18:46 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 19 Apr 2018 11:30:42 +0000 (12:30 +0100)
commita8419a0cd98ddf628a9e38a92110af7cc650dde7
treed70d3f72422ebf641a09187c3c40369706409b5a
parentf53c4c20d6d38bcefd89bfcab135486cbb797884
ASoC: msm8916-wcd-analog: use threaded context for mbhc events

As snd_soc_jack_report() can sleep, move handling of mbhc events to a
thread context rather than in interrupt context.

Fixes: de66b3455023 ('ASoC: codecs: msm8916-wcd-analog: add MBHC support')
Reported-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/msm8916-wcd-analog.c