Commit 0fbf405c583e6ee6d7227eb938a096d0998f7e78

Authored by Takashi Iwai
Committed by Jaroslav Kysela
1 parent 9b87819b61

[ALSA] Fix pcm-draining of capture stream in PCM middle layer

Fix the draining of PCM capture stream in the PCM middle layer.
snd_pcm_drain() ignored capture streams, but it should change
the state to SNDRV_PCM_DRAINING.

Signed-off-by: Takashi Iwai <tiwai@suse.de>

Showing 1 changed file with 0 additions and 2 deletions Side-by-side Diff

sound/core/pcm_native.c
... ... @@ -1469,8 +1469,6 @@
1469 1469 }
1470 1470 }
1471 1471 up_read(&snd_pcm_link_rwsem);
1472   - if (! num_drecs)
1473   - goto _error;
1474 1472  
1475 1473 snd_pcm_stream_lock_irq(substream);
1476 1474 /* resume pause */