diff options
Diffstat (limited to 'sound/core')
-rw-r--r-- | sound/core/pcm_native.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c index 51294dd3a7a3..7fb7c921b27d 100644 --- a/sound/core/pcm_native.c +++ b/sound/core/pcm_native.c | |||
@@ -1395,10 +1395,10 @@ static int snd_pcm_do_drain_init(struct snd_pcm_substream *substream, int state) | |||
1395 | } else { | 1395 | } else { |
1396 | /* stop running stream */ | 1396 | /* stop running stream */ |
1397 | if (runtime->status->state == SNDRV_PCM_STATE_RUNNING) { | 1397 | if (runtime->status->state == SNDRV_PCM_STATE_RUNNING) { |
1398 | int state = snd_pcm_capture_avail(runtime) > 0 ? | 1398 | int new_state = snd_pcm_capture_avail(runtime) > 0 ? |
1399 | SNDRV_PCM_STATE_DRAINING : SNDRV_PCM_STATE_SETUP; | 1399 | SNDRV_PCM_STATE_DRAINING : SNDRV_PCM_STATE_SETUP; |
1400 | snd_pcm_do_stop(substream, state); | 1400 | snd_pcm_do_stop(substream, new_state); |
1401 | snd_pcm_post_stop(substream, state); | 1401 | snd_pcm_post_stop(substream, new_state); |
1402 | } | 1402 | } |
1403 | } | 1403 | } |
1404 | return 0; | 1404 | return 0; |