]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
ASoC: rsnd: TDM 6ch needs 8ch clock for hw refine
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 29 Nov 2017 03:07:51 +0000 (03:07 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 29 Nov 2017 10:16:03 +0000 (10:16 +0000)
commitb2fb31bb7454d5479b1c7214ccd10c1af85a6245
treea44824d2edbddc618d66f5f6353b04a7d2536e6f
parent180d9ef58104dfae78622d01910b9b7756701134
ASoC: rsnd: TDM 6ch needs 8ch clock for hw refine

Renesas sound needs 8ch clock if TDM 6ch mode, and needs 2ch clock for
6ch or 8ch sound if Multi SSI mode. And these are related to before/after
CTU (= Channel Transfer Unit).
To calculate these we already has rsnd_runtime_channel_for_ssi() which
returns runtime necessary channels.
But, it based on runtime->channels  which is not yet set when hw refine.
We need to use hw_params instead of runtime->xxx when hw refine,
and it is not needed after runtime was set.
This patch adds new hw_params on rsnd_dai_stream, and it will be removed
on rsnd_hw_params().
This is very temporary durty code, but it seems no choice at this point.

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