]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rsnd: SSI parent cares SWSP bit
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 12 Jun 2018 05:52:17 +0000 (05:52 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 18 Jun 2018 11:26:43 +0000 (12:26 +0100)
commit443342d4897e178f33d0af70f393e64ccbd9dc75
tree2ecad8a3ec2b6fdd1ffd9af44a0dc521495cb1f4
parent681a5e18ced6714d015b9ca2c0e9fc7b2c679970
ASoC: rsnd: SSI parent cares SWSP bit

SSICR has SWSP bit (= Serial WS Polarity) which decides WS pin 1st
channel polarity (low or hi). This bit shouldn't exchange after running.

Current SSI "parent" doesn't care SSICR, just controls clock only.
Because of this behavior, if platform uses SSI0 as playback,
SSI1 as capture, and if user starts capture -> playback order,
SSI0 SSICR::SWSP bit exchanged 0 -> 1 during captureing, and it makes
capture noise.
This patch cares SSICR on SSI parent, too.
Special thanks to Yokoyama-san

Reported-by: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/ssi.c