diff options
author | Takashi Iwai <tiwai@suse.de> | 2017-01-04 14:34:14 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-01-04 20:01:35 +0300 |
commit | ed3c177d960bb5881b945ca6f784868126bb90db (patch) | |
tree | 10d54581027c3da17631d4b622edff0589523939 /sound/drivers/vx/vx_pcm.c | |
parent | 874e1f6fad9a5184b67f4cee37c1335cd2cc5677 (diff) | |
download | linux-ed3c177d960bb5881b945ca6f784868126bb90db.tar.xz |
ALSA: vx: Don't try to update capture stream before running
The update of stream costs significantly, and we should avoid it
unless the stream really has started. Check pipe->running flag
instead of pipe->prepared.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/drivers/vx/vx_pcm.c')
-rw-r--r-- | sound/drivers/vx/vx_pcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/drivers/vx/vx_pcm.c b/sound/drivers/vx/vx_pcm.c index 41a617886cc7..ea7b377f0378 100644 --- a/sound/drivers/vx/vx_pcm.c +++ b/sound/drivers/vx/vx_pcm.c @@ -1015,7 +1015,7 @@ static void vx_pcm_capture_update(struct vx_core *chip, struct snd_pcm_substream int size, space, count; struct snd_pcm_runtime *runtime = subs->runtime; - if (! pipe->prepared || (chip->chip_status & VX_STAT_IS_STALE)) + if (!pipe->running || (chip->chip_status & VX_STAT_IS_STALE)) return; size = runtime->buffer_size - snd_pcm_capture_avail(runtime); |