Skip to content

Commit 55ca6ca

Browse files
ujfalusibroonie
authored andcommitted
ASoC: SOF: ipc4-pcm: Combine the SOF_IPC4_PIPE_PAUSED cases in pcm_trigger
The SNDRV_PCM_TRIGGER_PAUSE_PUSH does not need to be a separate case, it can be handled along with STOP and SUSPEND Cc: [email protected] # 6.8 Signed-off-by: Peter Ujfalusi <[email protected]> Reviewed-by: Kai Vehmanen <[email protected]> Reviewed-by: Pierre-Louis Bossart <[email protected]> Link: https://msgid.link/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 31d2874 commit 55ca6ca

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sound/soc/sof/ipc4-pcm.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -478,14 +478,12 @@ static int sof_ipc4_pcm_trigger(struct snd_soc_component *component,
478478

479479
/* determine the pipeline state */
480480
switch (cmd) {
481-
case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
482-
state = SOF_IPC4_PIPE_PAUSED;
483-
break;
484481
case SNDRV_PCM_TRIGGER_PAUSE_RELEASE:
485482
case SNDRV_PCM_TRIGGER_RESUME:
486483
case SNDRV_PCM_TRIGGER_START:
487484
state = SOF_IPC4_PIPE_RUNNING;
488485
break;
486+
case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
489487
case SNDRV_PCM_TRIGGER_SUSPEND:
490488
case SNDRV_PCM_TRIGGER_STOP:
491489
state = SOF_IPC4_PIPE_PAUSED;

0 commit comments

Comments
 (0)