]> git.karo-electronics.de Git - linux-beck.git/commit
ASoC: rt5645: Update dapm pins when the card is not instantiated yet
authorNicolas Boichat <drinkcat@chromium.org>
Thu, 16 Jul 2015 05:42:33 +0000 (13:42 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 16 Jul 2015 12:10:46 +0000 (13:10 +0100)
commitb14c917409f47dbfdff93e69effd6740f6a809f7
treeac1b28b5f434035ab10fa00f2e41073e418aba79
parentf312bc59d21bed7593199a1921468868150954fa
ASoC: rt5645: Update dapm pins when the card is not instantiated yet

This makes sure the dapm state is consistent when the card is
instantiated.

However, if the card is not instantiated yet, we still update the
registers manually in the "jack in" case, so that we can immediately
report if a mic is present or not.

Disabling "Mic Det Power" after detection, and on jack out, can
wait until the card gets instantiated.

Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5645.c