forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/sound/soc/sti/uniperif_player.c
....@@ -1,8 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) STMicroelectronics SA 2015
34 * Authors: Arnaud Pouliquen <arnaud.pouliquen@st.com>
45 * for STMicroelectronics.
5
- * License terms: GNU General Public License (GPL), version 2
66 */
77
88 #include <linux/clk.h>
....@@ -91,7 +91,7 @@
9191 SET_UNIPERIF_ITM_BCLR_FIFO_ERROR(player);
9292
9393 /* Stop the player */
94
- snd_pcm_stop_xrun(player->substream);
94
+ snd_pcm_stop(player->substream, SNDRV_PCM_STATE_XRUN);
9595 }
9696
9797 ret = IRQ_HANDLED;
....@@ -105,7 +105,7 @@
105105 SET_UNIPERIF_ITM_BCLR_DMA_ERROR(player);
106106
107107 /* Stop the player */
108
- snd_pcm_stop_xrun(player->substream);
108
+ snd_pcm_stop(player->substream, SNDRV_PCM_STATE_XRUN);
109109
110110 ret = IRQ_HANDLED;
111111 }
....@@ -138,7 +138,7 @@
138138 dev_err(player->dev, "Underflow recovery failed\n");
139139
140140 /* Stop the player */
141
- snd_pcm_stop_xrun(player->substream);
141
+ snd_pcm_stop(player->substream, SNDRV_PCM_STATE_XRUN);
142142
143143 ret = IRQ_HANDLED;
144144 }