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 b08898cbfed3..59e5fbe6af51 100644 --- a/sound/core/pcm_native.c +++ b/sound/core/pcm_native.c | |||
@@ -2214,6 +2214,9 @@ static snd_pcm_sframes_t snd_pcm_playback_rewind(struct snd_pcm_substream *subst | |||
2214 | case SNDRV_PCM_STATE_XRUN: | 2214 | case SNDRV_PCM_STATE_XRUN: |
2215 | ret = -EPIPE; | 2215 | ret = -EPIPE; |
2216 | goto __end; | 2216 | goto __end; |
2217 | case SNDRV_PCM_STATE_SUSPENDED: | ||
2218 | ret = -ESTRPIPE; | ||
2219 | goto __end; | ||
2217 | default: | 2220 | default: |
2218 | ret = -EBADFD; | 2221 | ret = -EBADFD; |
2219 | goto __end; | 2222 | goto __end; |
@@ -2259,6 +2262,9 @@ static snd_pcm_sframes_t snd_pcm_capture_rewind(struct snd_pcm_substream *substr | |||
2259 | case SNDRV_PCM_STATE_XRUN: | 2262 | case SNDRV_PCM_STATE_XRUN: |
2260 | ret = -EPIPE; | 2263 | ret = -EPIPE; |
2261 | goto __end; | 2264 | goto __end; |
2265 | case SNDRV_PCM_STATE_SUSPENDED: | ||
2266 | ret = -ESTRPIPE; | ||
2267 | goto __end; | ||
2262 | default: | 2268 | default: |
2263 | ret = -EBADFD; | 2269 | ret = -EBADFD; |
2264 | goto __end; | 2270 | goto __end; |
@@ -2305,6 +2311,9 @@ static snd_pcm_sframes_t snd_pcm_playback_forward(struct snd_pcm_substream *subs | |||
2305 | case SNDRV_PCM_STATE_XRUN: | 2311 | case SNDRV_PCM_STATE_XRUN: |
2306 | ret = -EPIPE; | 2312 | ret = -EPIPE; |
2307 | goto __end; | 2313 | goto __end; |
2314 | case SNDRV_PCM_STATE_SUSPENDED: | ||
2315 | ret = -ESTRPIPE; | ||
2316 | goto __end; | ||
2308 | default: | 2317 | default: |
2309 | ret = -EBADFD; | 2318 | ret = -EBADFD; |
2310 | goto __end; | 2319 | goto __end; |
@@ -2351,6 +2360,9 @@ static snd_pcm_sframes_t snd_pcm_capture_forward(struct snd_pcm_substream *subst | |||
2351 | case SNDRV_PCM_STATE_XRUN: | 2360 | case SNDRV_PCM_STATE_XRUN: |
2352 | ret = -EPIPE; | 2361 | ret = -EPIPE; |
2353 | goto __end; | 2362 | goto __end; |
2363 | case SNDRV_PCM_STATE_SUSPENDED: | ||
2364 | ret = -ESTRPIPE; | ||
2365 | goto __end; | ||
2354 | default: | 2366 | default: |
2355 | ret = -EBADFD; | 2367 | ret = -EBADFD; |
2356 | goto __end; | 2368 | goto __end; |