staging: bcm2835-audio: Drop useless running flag and check
authorTakashi Iwai <tiwai@suse.de>
Tue, 4 Sep 2018 15:58:37 +0000 (17:58 +0200)
committerpopcornmix <popcornmix@gmail.com>
Mon, 13 May 2019 23:08:29 +0000 (00:08 +0100)
commitedba987463afbd2eecb3957028613d1c7d262099
tree69ffab699abf46b7679c7741fe395e1389317c01
parent6f59286710d8cd5c8e50cda2ddfeb5ca9d0ba7f4
staging: bcm2835-audio: Drop useless running flag and check

commit 02f2376321d75e78117f39ff81f215254ee6b4ef upstream.

The running flag of alsa_stream is basically useless.  The running
state is strictly controlled in ALSA PCM core side, hence the check in
PCM trigger and close callbacks are superfluous.

Also, the prefill ack at trigger start became superfluous nowadays
with the ALSA PCM core update.

Let's rip them off.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c
drivers/staging/vc04_services/bcm2835-audio/bcm2835.h