]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: arizona: Fix interaction between headphone outputs and identification
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 22 Feb 2013 18:36:53 +0000 (18:36 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 26 Mar 2013 15:45:25 +0000 (15:45 +0000)
commit159b6122af5a3d3e569dca2480a5a50942bdb1d8
tree162bbbdde8a4b108dd9399f244da51c207bdebd6
parent49981dca2bd53a973acd829e5cc6512af476fcac
ASoC: arizona: Fix interaction between headphone outputs and identification

Running HPDET while the headphone outputs are enabled can disrupt the
operation of HPDET. In order to avoid this HPDET needs to disable the
headphone outputs and ASoC needs to not enable them while HPDET is
running.

Do the ASoC side of this by storing the enable state in the core driver
structure and only writing to the device if a flag indicating that the
accessory detection side is in a state where it can have the headphone
output stage enabled.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
include/linux/mfd/arizona/core.h
sound/soc/codecs/arizona.c
sound/soc/codecs/arizona.h
sound/soc/codecs/wm5102.c
sound/soc/codecs/wm5110.c