ASoC: renesas: rz-ssi: Remove the first argument of rz_ssi_stream_is_play()
authorClaudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Tue, 10 Dec 2024 17:09:38 +0000 (19:09 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 11 Dec 2024 13:23:59 +0000 (13:23 +0000)
The first argument of the rz_ssi_stream_is_play() is not used. Remove it.

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Link: https://patch.msgid.link/20241210170953.2936724-10-claudiu.beznea.uj@bp.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/renesas/rz-ssi.c

index e2e172d8e9dba69c8346f1a1bc25380bf2a226db..1a98f6b3e6a7e88dfea07fddb50291b5791d9024 100644 (file)
@@ -162,8 +162,7 @@ static void rz_ssi_reg_mask_setl(struct rz_ssi_priv *priv, uint reg,
        writel(val, (priv->base + reg));
 }
 
-static inline bool rz_ssi_stream_is_play(struct rz_ssi_priv *ssi,
-                                        struct snd_pcm_substream *substream)
+static inline bool rz_ssi_stream_is_play(struct snd_pcm_substream *substream)
 {
        return substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
 }
@@ -337,7 +336,7 @@ static void rz_ssi_set_idle(struct rz_ssi_priv *ssi)
 
 static int rz_ssi_start(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm)
 {
-       bool is_play = rz_ssi_stream_is_play(ssi, strm->substream);
+       bool is_play = rz_ssi_stream_is_play(strm->substream);
        bool is_full_duplex;
        u32 ssicr, ssifcr;
 
@@ -674,7 +673,7 @@ static int rz_ssi_dma_transfer(struct rz_ssi_priv *ssi,
                 */
                return 0;
 
-       dir = rz_ssi_stream_is_play(ssi, substream) ? DMA_MEM_TO_DEV : DMA_DEV_TO_MEM;
+       dir = rz_ssi_stream_is_play(substream) ? DMA_MEM_TO_DEV : DMA_DEV_TO_MEM;
 
        /* Always transfer 1 period */
        amount = runtime->period_size;
@@ -800,7 +799,7 @@ static int rz_ssi_dai_trigger(struct snd_pcm_substream *substream, int cmd,
                if (ssi->dma_rt) {
                        bool is_playback;
 
-                       is_playback = rz_ssi_stream_is_play(ssi, substream);
+                       is_playback = rz_ssi_stream_is_play(substream);
                        ret = rz_ssi_dma_slave_config(ssi, ssi->playback.dma_ch,
                                                      is_playback);
                        /* Fallback to pio */