.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) STMicroelectronics SA 2015 |
---|
3 | 4 | * Authors: Arnaud Pouliquen <arnaud.pouliquen@st.com> |
---|
4 | 5 | * for STMicroelectronics. |
---|
5 | | - * License terms: GNU General Public License (GPL), version 2 |
---|
6 | 6 | */ |
---|
7 | 7 | |
---|
8 | 8 | #include <linux/clk.h> |
---|
.. | .. |
---|
91 | 91 | SET_UNIPERIF_ITM_BCLR_FIFO_ERROR(player); |
---|
92 | 92 | |
---|
93 | 93 | /* Stop the player */ |
---|
94 | | - snd_pcm_stop_xrun(player->substream); |
---|
| 94 | + snd_pcm_stop(player->substream, SNDRV_PCM_STATE_XRUN); |
---|
95 | 95 | } |
---|
96 | 96 | |
---|
97 | 97 | ret = IRQ_HANDLED; |
---|
.. | .. |
---|
105 | 105 | SET_UNIPERIF_ITM_BCLR_DMA_ERROR(player); |
---|
106 | 106 | |
---|
107 | 107 | /* Stop the player */ |
---|
108 | | - snd_pcm_stop_xrun(player->substream); |
---|
| 108 | + snd_pcm_stop(player->substream, SNDRV_PCM_STATE_XRUN); |
---|
109 | 109 | |
---|
110 | 110 | ret = IRQ_HANDLED; |
---|
111 | 111 | } |
---|
.. | .. |
---|
138 | 138 | dev_err(player->dev, "Underflow recovery failed\n"); |
---|
139 | 139 | |
---|
140 | 140 | /* Stop the player */ |
---|
141 | | - snd_pcm_stop_xrun(player->substream); |
---|
| 141 | + snd_pcm_stop(player->substream, SNDRV_PCM_STATE_XRUN); |
---|
142 | 142 | |
---|
143 | 143 | ret = IRQ_HANDLED; |
---|
144 | 144 | } |
---|