diff options
-rw-r--r-- | sound/core/pcm_native.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c index ac2150e0670d..d89c816ae5bf 100644 --- a/sound/core/pcm_native.c +++ b/sound/core/pcm_native.c | |||
@@ -2208,6 +2208,9 @@ static snd_pcm_sframes_t snd_pcm_playback_rewind(struct snd_pcm_substream *subst | |||
2208 | case SNDRV_PCM_STATE_XRUN: | 2208 | case SNDRV_PCM_STATE_XRUN: |
2209 | ret = -EPIPE; | 2209 | ret = -EPIPE; |
2210 | goto __end; | 2210 | goto __end; |
2211 | case SNDRV_PCM_STATE_SUSPENDED: | ||
2212 | ret = -ESTRPIPE; | ||
2213 | goto __end; | ||
2211 | default: | 2214 | default: |
2212 | ret = -EBADFD; | 2215 | ret = -EBADFD; |
2213 | goto __end; | 2216 | goto __end; |
@@ -2253,6 +2256,9 @@ static snd_pcm_sframes_t snd_pcm_capture_rewind(struct snd_pcm_substream *substr | |||
2253 | case SNDRV_PCM_STATE_XRUN: | 2256 | case SNDRV_PCM_STATE_XRUN: |
2254 | ret = -EPIPE; | 2257 | ret = -EPIPE; |
2255 | goto __end; | 2258 | goto __end; |
2259 | case SNDRV_PCM_STATE_SUSPENDED: | ||
2260 | ret = -ESTRPIPE; | ||
2261 | goto __end; | ||
2256 | default: | 2262 | default: |
2257 | ret = -EBADFD; | 2263 | ret = -EBADFD; |
2258 | goto __end; | 2264 | goto __end; |
@@ -2299,6 +2305,9 @@ static snd_pcm_sframes_t snd_pcm_playback_forward(struct snd_pcm_substream *subs | |||
2299 | case SNDRV_PCM_STATE_XRUN: | 2305 | case SNDRV_PCM_STATE_XRUN: |
2300 | ret = -EPIPE; | 2306 | ret = -EPIPE; |
2301 | goto __end; | 2307 | goto __end; |
2308 | case SNDRV_PCM_STATE_SUSPENDED: | ||
2309 | ret = -ESTRPIPE; | ||
2310 | goto __end; | ||
2302 | default: | 2311 | default: |
2303 | ret = -EBADFD; | 2312 | ret = -EBADFD; |
2304 | goto __end; | 2313 | goto __end; |
@@ -2345,6 +2354,9 @@ static snd_pcm_sframes_t snd_pcm_capture_forward(struct snd_pcm_substream *subst | |||
2345 | case SNDRV_PCM_STATE_XRUN: | 2354 | case SNDRV_PCM_STATE_XRUN: |
2346 | ret = -EPIPE; | 2355 | ret = -EPIPE; |
2347 | goto __end; | 2356 | goto __end; |
2357 | case SNDRV_PCM_STATE_SUSPENDED: | ||
2358 | ret = -ESTRPIPE; | ||
2359 | goto __end; | ||
2348 | default: | 2360 | default: |
2349 | ret = -EBADFD; | 2361 | ret = -EBADFD; |
2350 | goto __end; | 2362 | goto __end; |