ASoC: rt298: fix jack type detect error
authorBard Liao <bardliao@realtek.com>
Mon, 24 Oct 2016 10:32:18 +0000 (18:32 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 24 Oct 2016 15:03:00 +0000 (16:03 +0100)
commitf515c3834a4adf8b33f0e7215d434410b1687164
treeab331245e26b39dd7a869bb16f1deecb52e76ebc
parent1001354ca34179f3db924eb66672442a173147dc
ASoC: rt298: fix jack type detect error

rt298_jack_detect may be called before card is instantiated. And
snd_soc_dapm_force_enable_pin will not work in that case. So, update
bit manually by regmap_update_bits.

Signed-off-by: Bard Liao <bardliao@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt298.c