]> git.baikalelectronics.ru Git - kernel.git/commit
staging: bcm2835-audio: Fix incorrect draining handling
authorTakashi Iwai <tiwai@suse.de>
Tue, 4 Sep 2018 15:58:38 +0000 (17:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2018 09:14:58 +0000 (11:14 +0200)
commitf6efa919b17e618fad24380e353dd74037658d1a
tree2067ff1db78685c1249533a14475821e86b7520d
parent3909eafb695738f8148c5d778c31b4393f571378
staging: bcm2835-audio: Fix incorrect draining handling

The handling of SNDRV_PCM_TRIGGER_STOP at the trigger callback is
incorrect: when the STOP is issued, the driver is supposed to drop the
stream immediately.  Meanwhile bcm2835 driver checks the DRAINING
state and tries to issue some different command.

This patch straightens things a bit, dropping the incorrect state
checks.  The draining behavior would be still not perfect at this
point, but will be improved in a later patch.

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