ASoC: cs4349: Fix suspend/resume
authorLars-Peter Clausen <lars@metafoo.de>
Sun, 19 Jul 2015 10:15:17 +0000 (12:15 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 20 Jul 2015 17:15:28 +0000 (18:15 +0100)
commitcb2510dac7e1c5ac77652bb31e8c39ce2eef8bbe
tree76887971aae9262eb5bccc6b78161d51a32ef63e
parentb08b338253e917be45ee19924b58dd0b1265473f
ASoC: cs4349: Fix suspend/resume

dev_get_drvdata() will not return the snd_soc_runtime to which this CODEC
is attached, so the current code will result in undefined behavior.
To fix this just use regmap_update_bits(cs4349->regmap, ...) directly
instead of snd_soc_update_bits(rtd->codec, ...).

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs4349.c
This page took 0.026112 seconds and 5 git commands to generate.