]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: sun4i-i2s: Fix setting of FIFO modes
authorSamuel Holland <samuel@sholland.org>
Fri, 30 Oct 2020 14:46:41 +0000 (15:46 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 30 Oct 2020 17:58:56 +0000 (17:58 +0000)
commitd71b8d34c50c0ef5310664a2f43ba51eb29f6071
tree01bad5db6416e546b3a152e7f5aa3ed1caa3dff7
parenta029adcea2e0ddcabc4a022d8ee176f26cc7cb6f
ASoC: sun4i-i2s: Fix setting of FIFO modes

Because SUN4I_I2S_FIFO_CTRL_REG is volatile, writes done while the
regmap is cache-only are ignored. To work around this, move the
configuration to a callback that runs while the ASoC core has a
runtime PM reference to the device.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Clément Péron <peron.clem@gmail.com>
Link: https://lore.kernel.org/r/20201030144648.397824-9-peron.clem@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun4i-i2s.c