ASoC: rt5651: Do not modify jd and PLL power bits from set_bias_level()
authorHans de Goede <hdegoede@redhat.com>
Sun, 25 Feb 2018 10:46:51 +0000 (11:46 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 1 Mar 2018 19:13:04 +0000 (19:13 +0000)
commit887fcc6f0514380f17d5016dd8cdfc4d9a4437ee
treeb006c9f048173592bc34cd6973007d8a0816d0d6
parentbba4e685dae8643469ca6fac22f10ca81554586e
ASoC: rt5651: Do not modify jd and PLL power bits from set_bias_level()

rt5651_set_bias_level(BIAS_OFF) used to unconditionally clear the entire
register, including the jack-detect and PLL power bits. When jack-detection
support was introduced a special case for jack-detect was added which
hard-codes a register value to keep both on.

This commit removes the jack-detect special case, instead simply leaving
these bits as is on BIAS_OFF.

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