ASoC: rt5651: Add rt5651_jack_inserted() helper
authorHans de Goede <hdegoede@redhat.com>
Sun, 4 Mar 2018 14:35:56 +0000 (15:35 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 7 Mar 2018 12:55:14 +0000 (12:55 +0000)
commit0fe9474598890b4bd8a7228c9b1872ed7fe3c2c5
tree70ce10ad3e620e02be9d5edf0104c0caed7661f8
parent4b4a373c0212e084045530e47071374a87a3761e
ASoC: rt5651: Add rt5651_jack_inserted() helper

Add rt5651_jack_inserted() helper to get the jack-detect switch status,
This is a preparation patch for rewriting the jack type-detection to
make it more reliable.

Tested-by: Carlo Caione <carlo@endlessm.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5651.c