]> git.baikalelectronics.ru Git - kernel.git/commit
extcon: arizona: Fix interaction between headphone outputs and identification
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 22 Feb 2013 18:38:03 +0000 (18:38 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 26 Mar 2013 15:45:26 +0000 (15:45 +0000)
commit062e1104173ae575db157b65b932cbb36f8c1ac8
treea2a434ff045668a9be5f23a36e24a096796a0965
parent159b6122af5a3d3e569dca2480a5a50942bdb1d8
extcon: 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.

For extcon instead of checking if the headphone output is enabled when
doing magic application unconditionally disable the output and restore
the state which ASoC wants set when undoing the magic.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/extcon/extcon-arizona.c