|
@@ -2214,6 +2214,9 @@ static snd_pcm_sframes_t snd_pcm_playback_rewind(struct snd_pcm_substream *subst
|
|
|
case SNDRV_PCM_STATE_XRUN:
|
|
|
ret = -EPIPE;
|
|
|
goto __end;
|
|
|
+ case SNDRV_PCM_STATE_SUSPENDED:
|
|
|
+ ret = -ESTRPIPE;
|
|
|
+ goto __end;
|
|
|
default:
|
|
|
ret = -EBADFD;
|
|
|
goto __end;
|
|
@@ -2259,6 +2262,9 @@ static snd_pcm_sframes_t snd_pcm_capture_rewind(struct snd_pcm_substream *substr
|
|
|
case SNDRV_PCM_STATE_XRUN:
|
|
|
ret = -EPIPE;
|
|
|
goto __end;
|
|
|
+ case SNDRV_PCM_STATE_SUSPENDED:
|
|
|
+ ret = -ESTRPIPE;
|
|
|
+ goto __end;
|
|
|
default:
|
|
|
ret = -EBADFD;
|
|
|
goto __end;
|
|
@@ -2305,6 +2311,9 @@ static snd_pcm_sframes_t snd_pcm_playback_forward(struct snd_pcm_substream *subs
|
|
|
case SNDRV_PCM_STATE_XRUN:
|
|
|
ret = -EPIPE;
|
|
|
goto __end;
|
|
|
+ case SNDRV_PCM_STATE_SUSPENDED:
|
|
|
+ ret = -ESTRPIPE;
|
|
|
+ goto __end;
|
|
|
default:
|
|
|
ret = -EBADFD;
|
|
|
goto __end;
|
|
@@ -2351,6 +2360,9 @@ static snd_pcm_sframes_t snd_pcm_capture_forward(struct snd_pcm_substream *subst
|
|
|
case SNDRV_PCM_STATE_XRUN:
|
|
|
ret = -EPIPE;
|
|
|
goto __end;
|
|
|
+ case SNDRV_PCM_STATE_SUSPENDED:
|
|
|
+ ret = -ESTRPIPE;
|
|
|
+ goto __end;
|
|
|
default:
|
|
|
ret = -EBADFD;
|
|
|
goto __end;
|