ALSA: vx: Don't try to update capture stream before running
authorTakashi Iwai <tiwai@suse.de>
Wed, 4 Jan 2017 11:34:14 +0000 (12:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Nov 2017 08:23:25 +0000 (09:23 +0100)
commit0f4ea85748bfcd3c64910bae4ff18f94849ae3f8
treed702b975c934be80665b6015440a7193631ed699
parent9dc7637700e5157df88ab7f536f40c85c23b9160
ALSA: vx: Don't try to update capture stream before running

[ Upstream commit ed3c177d960bb5881b945ca6f784868126bb90db ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/drivers/vx/vx_pcm.c