diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2018-10-17 03:55:57 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-10-17 21:01:31 +0200 |
commit | 2eaa6e233091f51d8a629e423ad0bc080ffcb5d6 (patch) | |
tree | 88515248216bd5eaa00c5b9fed6db7c82e3ddcba /sound | |
parent | ASoC: rsnd: enable TDM settings for SSI parent (diff) | |
download | linux-2eaa6e233091f51d8a629e423ad0bc080ffcb5d6.tar.xz linux-2eaa6e233091f51d8a629e423ad0bc080ffcb5d6.zip |
ASoC: rsnd: tidyup SSICR::SWSP for TDM
R-Car datasheet is indicating that WS output settings of SSICR::SWSP
is inverted on TDM mode from non TDM mode settings.
But, it is meaning that TDM should use 0 here.
Without this patch, sound input/output 1ch will be 2ch, 2ch will be 3ch
..., be jumbled on I2S + TDM settings. This patch fixup it.
This patch is tested on R-Car H3 ulcb-kf board, SSI3/4 TDM sound.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/sh/rcar/ssi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/sh/rcar/ssi.c b/sound/soc/sh/rcar/ssi.c index b42a0e0feab7..fcb4df23248c 100644 --- a/sound/soc/sh/rcar/ssi.c +++ b/sound/soc/sh/rcar/ssi.c @@ -392,7 +392,7 @@ static void rsnd_ssi_config_init(struct rsnd_mod *mod, if (rdai->bit_clk_inv) cr_own |= SCKP; - if (rdai->frm_clk_inv ^ is_tdm) + if (rdai->frm_clk_inv && !is_tdm) cr_own |= SWSP; if (rdai->data_alignment) cr_own |= SDTA; |