]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2fb3d7cac9795012266c7529875dc091764e1bb5
treeb006c9f048173592bc34cd6973007d8a0816d0d6
parent10ce3edc29a13de87b4ea05ea5d81e5dd2458e4b
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