OSDN Git Service

staging: goldfish: Clear audio read buffer status after each read
authorJoshua Lang <joshualang@google.com>
Mon, 4 Jun 2018 21:08:22 +0000 (14:08 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 17 Jun 2018 07:05:14 +0000 (09:05 +0200)
commit3053339b17f8f3bf0e4f5350adb7097266cd6f1a
tree6c6afd970b3d2d8fd0ca5d865fa7826005d73b18
parent06e526f49b7a8280c62710265b699254a7cf3344
staging: goldfish: Clear audio read buffer status after each read

The buffer_status field is interrupt updated. After every read request,
the buffer_status read field should be reset so that on the next loop
iteration we don't read a stale value and read data before the
device is ready.

Signed-off-by: Joshua Lang <joshualang@google.com>
Signed-off-by: Roman Kiryanov <rkir@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/goldfish/goldfish_audio.c