Commit a6072802 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown

ASoC: rsnd: rename rsnd_runtime_is_ssi_xxx()

Current rsnd driver has rsnd_runtime_is_ssi_xxx() functions,
but it is not only related to SSI, thus, it is misunderstandable.
This patch renames it.
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent c8b222bf
...@@ -287,7 +287,7 @@ int rsnd_runtime_channel_for_ssi_with_params(struct rsnd_dai_stream *io, ...@@ -287,7 +287,7 @@ int rsnd_runtime_channel_for_ssi_with_params(struct rsnd_dai_stream *io,
rsnd_runtime_channel_original_with_params(io, params); rsnd_runtime_channel_original_with_params(io, params);
/* Use Multi SSI */ /* Use Multi SSI */
if (rsnd_runtime_is_ssi_multi(io)) if (rsnd_runtime_is_multi_ssi(io))
chan /= rsnd_rdai_ssi_lane_get(rdai); chan /= rsnd_rdai_ssi_lane_get(rdai);
/* TDM Extend Mode needs 8ch */ /* TDM Extend Mode needs 8ch */
...@@ -297,7 +297,7 @@ int rsnd_runtime_channel_for_ssi_with_params(struct rsnd_dai_stream *io, ...@@ -297,7 +297,7 @@ int rsnd_runtime_channel_for_ssi_with_params(struct rsnd_dai_stream *io,
return chan; return chan;
} }
int rsnd_runtime_is_ssi_multi(struct rsnd_dai_stream *io) int rsnd_runtime_is_multi_ssi(struct rsnd_dai_stream *io)
{ {
struct rsnd_dai *rdai = rsnd_io_to_rdai(io); struct rsnd_dai *rdai = rsnd_io_to_rdai(io);
int lane = rsnd_rdai_ssi_lane_get(rdai); int lane = rsnd_rdai_ssi_lane_get(rdai);
...@@ -308,7 +308,7 @@ int rsnd_runtime_is_ssi_multi(struct rsnd_dai_stream *io) ...@@ -308,7 +308,7 @@ int rsnd_runtime_is_ssi_multi(struct rsnd_dai_stream *io)
return (chan > 2) && (lane > 1); return (chan > 2) && (lane > 1);
} }
int rsnd_runtime_is_ssi_tdm(struct rsnd_dai_stream *io) int rsnd_runtime_is_tdm(struct rsnd_dai_stream *io)
{ {
return rsnd_runtime_channel_for_ssi(io) >= 6; return rsnd_runtime_channel_for_ssi(io) >= 6;
} }
......
...@@ -431,8 +431,8 @@ int rsnd_runtime_channel_after_ctu_with_params(struct rsnd_dai_stream *io, ...@@ -431,8 +431,8 @@ int rsnd_runtime_channel_after_ctu_with_params(struct rsnd_dai_stream *io,
rsnd_runtime_channel_for_ssi_with_params(io, NULL) rsnd_runtime_channel_for_ssi_with_params(io, NULL)
int rsnd_runtime_channel_for_ssi_with_params(struct rsnd_dai_stream *io, int rsnd_runtime_channel_for_ssi_with_params(struct rsnd_dai_stream *io,
struct snd_pcm_hw_params *params); struct snd_pcm_hw_params *params);
int rsnd_runtime_is_ssi_multi(struct rsnd_dai_stream *io); int rsnd_runtime_is_multi_ssi(struct rsnd_dai_stream *io);
int rsnd_runtime_is_ssi_tdm(struct rsnd_dai_stream *io); int rsnd_runtime_is_tdm(struct rsnd_dai_stream *io);
/* /*
* DT * DT
......
...@@ -223,7 +223,7 @@ static u32 rsnd_ssi_run_mods(struct rsnd_dai_stream *io) ...@@ -223,7 +223,7 @@ static u32 rsnd_ssi_run_mods(struct rsnd_dai_stream *io)
u32 rsnd_ssi_multi_slaves_runtime(struct rsnd_dai_stream *io) u32 rsnd_ssi_multi_slaves_runtime(struct rsnd_dai_stream *io)
{ {
if (rsnd_runtime_is_ssi_multi(io)) if (rsnd_runtime_is_multi_ssi(io))
return rsnd_ssi_multi_slaves(io); return rsnd_ssi_multi_slaves(io);
return 0; return 0;
...@@ -383,7 +383,7 @@ static void rsnd_ssi_config_init(struct rsnd_mod *mod, ...@@ -383,7 +383,7 @@ static void rsnd_ssi_config_init(struct rsnd_mod *mod,
u32 wsr = ssi->wsr; u32 wsr = ssi->wsr;
int is_tdm; int is_tdm;
is_tdm = rsnd_runtime_is_ssi_tdm(io); is_tdm = rsnd_runtime_is_tdm(io);
cr_own |= FORCE | rsnd_rdai_width_to_swl(rdai); cr_own |= FORCE | rsnd_rdai_width_to_swl(rdai);
......
...@@ -145,7 +145,7 @@ static int rsnd_ssiu_init_gen2(struct rsnd_mod *mod, ...@@ -145,7 +145,7 @@ static int rsnd_ssiu_init_gen2(struct rsnd_mod *mod,
ssiu->usrcnt++; ssiu->usrcnt++;
if (rsnd_runtime_is_ssi_tdm(io)) { if (rsnd_runtime_is_tdm(io)) {
/* /*
* TDM Extend Mode * TDM Extend Mode
* see * see
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment