Commit 4f78f3c9 authored by Lad Prabhakar's avatar Lad Prabhakar Committed by Mark Brown

ASoC: sh: rz-ssi: Drop ssi parameter from rz_ssi_stream_init()

ssi parameter is unused in rz_ssi_stream_init() so just drop it.

While at it, change the return type of rz_ssi_stream_init() to void
instead of int.
Signed-off-by: default avatarLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: default avatarBiju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20220110094711.8574-4-prabhakar.mahadev-lad.rj@bp.renesas.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 0788785c
...@@ -201,8 +201,7 @@ static int rz_ssi_stream_is_valid(struct rz_ssi_priv *ssi, ...@@ -201,8 +201,7 @@ static int rz_ssi_stream_is_valid(struct rz_ssi_priv *ssi,
return ret; return ret;
} }
static int rz_ssi_stream_init(struct rz_ssi_priv *ssi, static void rz_ssi_stream_init(struct rz_ssi_stream *strm,
struct rz_ssi_stream *strm,
struct snd_pcm_substream *substream) struct snd_pcm_substream *substream)
{ {
struct snd_pcm_runtime *runtime = substream->runtime; struct snd_pcm_runtime *runtime = substream->runtime;
...@@ -219,8 +218,6 @@ static int rz_ssi_stream_init(struct rz_ssi_priv *ssi, ...@@ -219,8 +218,6 @@ static int rz_ssi_stream_init(struct rz_ssi_priv *ssi,
/* fifo init */ /* fifo init */
strm->fifo_sample_size = SSI_FIFO_DEPTH; strm->fifo_sample_size = SSI_FIFO_DEPTH;
return 0;
} }
static void rz_ssi_stream_quit(struct rz_ssi_priv *ssi, static void rz_ssi_stream_quit(struct rz_ssi_priv *ssi,
...@@ -728,9 +725,7 @@ static int rz_ssi_dai_trigger(struct snd_pcm_substream *substream, int cmd, ...@@ -728,9 +725,7 @@ static int rz_ssi_dai_trigger(struct snd_pcm_substream *substream, int cmd,
rz_ssi_reg_mask_setl(ssi, SSIFCR, SSIFCR_SSIRST, 0); rz_ssi_reg_mask_setl(ssi, SSIFCR, SSIFCR_SSIRST, 0);
udelay(5); udelay(5);
ret = rz_ssi_stream_init(ssi, strm, substream); rz_ssi_stream_init(strm, substream);
if (ret)
goto done;
if (ssi->dma_rt) { if (ssi->dma_rt) {
bool is_playback; bool is_playback;
......
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