ASoC: rt5651: Add support for active-high jack detect
authorHans de Goede <hdegoede@redhat.com>
Tue, 5 Mar 2019 11:38:59 +0000 (12:38 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 18 Mar 2019 12:08:02 +0000 (12:08 +0000)
commit8a68a509ae6b5d7d18c6bfc88553ca7761029ada
tree6bae1d8c7856f749fb18ab34c495652ad2c24990
parentf68c2a682d444296403d1aa6e73b3de0681fdcea
ASoC: rt5651: Add support for active-high jack detect

Some boards use a jack-receptacle with a switch which reports the
jack-inserted status as active-high, rather then the standard active-low
reporting most jacks use.

This commit adds support for it. This is activated by a boolean
"realtek,jack-detect-not-inverted" device-property. The not-inverted
in the device-property name, rather then active-high, was chosen to keep
the device-property naming consistent with the rt5640 codec driver.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/sound/rt5651.txt
sound/soc/codecs/rt5651.c
sound/soc/codecs/rt5651.h