summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudiu Beznea <claudiu.beznea.uj@bp.renesas.com>2026-05-26 11:47:08 +0300
committerVinod Koul <vkoul@kernel.org>2026-06-04 20:58:34 +0530
commitb4d34819a53964648bc53cabaa3ba9890d4fdf9c (patch)
treec5eff592f55e2652c8d2902d6aa76381f61a4e35
parentc13ce43e70719dead7009e7e708971ba1c447568 (diff)
downloadlinux-b4d34819a53964648bc53cabaa3ba9890d4fdf9c.tar.gz
linux-b4d34819a53964648bc53cabaa3ba9890d4fdf9c.zip
ASoC: renesas: rz-ssi: Add pause support
Add pause support as a preparatory step to switch to PCM dmaengine APIs. Acked-by: Mark Brown <broonie@kernel.org> Tested-by: John Madieu <john.madieu.xa@bp.renesas.com> Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Link: https://patch.msgid.link/20260526084710.3491480-17-claudiu.beznea@kernel.org Signed-off-by: Vinod Koul <vkoul@kernel.org>
-rw-r--r--sound/soc/renesas/rz-ssi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/soc/renesas/rz-ssi.c b/sound/soc/renesas/rz-ssi.c
index 71e434cfe07b..d4e1dded3a9c 100644
--- a/sound/soc/renesas/rz-ssi.c
+++ b/sound/soc/renesas/rz-ssi.c
@@ -847,6 +847,7 @@ static int rz_ssi_dai_trigger(struct snd_pcm_substream *substream, int cmd,
switch (cmd) {
case SNDRV_PCM_TRIGGER_RESUME:
+ case SNDRV_PCM_TRIGGER_PAUSE_RELEASE:
ret = rz_ssi_trigger_resume(ssi, strm);
if (ret)
return ret;
@@ -888,6 +889,7 @@ static int rz_ssi_dai_trigger(struct snd_pcm_substream *substream, int cmd,
break;
case SNDRV_PCM_TRIGGER_SUSPEND:
+ case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
rz_ssi_stop(ssi, strm);
break;
@@ -1054,7 +1056,8 @@ static const struct snd_pcm_hardware rz_ssi_pcm_hardware = {
.info = SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_MMAP_VALID |
- SNDRV_PCM_INFO_RESUME,
+ SNDRV_PCM_INFO_RESUME |
+ SNDRV_PCM_INFO_PAUSE,
.buffer_bytes_max = PREALLOC_BUFFER,
.period_bytes_min = 32,
.period_bytes_max = 8192,