ASoC: rt5651: Only configure OVCD once at set_jack time
authorHans de Goede <hdegoede@redhat.com>
Sun, 25 Feb 2018 10:46:56 +0000 (11:46 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 1 Mar 2018 19:15:37 +0000 (19:15 +0000)
commit9e1795925d0e967d2a0191b1487b5caf0693f2ae
tree9f497ba549edea17e4f42a11bccbafa113acb380
parent1310e737a68741c9b06cf63be0084bae6018b308
ASoC: rt5651: Only configure OVCD once at set_jack time

Only configure OVCD once at set_jack time, rather then configuring
it on every jack-insertion event and switch to using bit field defines
instead of hardcoding a magic value.

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