]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf426137a4db061eefa4b0f026b38ca59d279a51a
tree6c6afd970b3d2d8fd0ca5d865fa7826005d73b18
parent360f1219afb5b1d445fbb78797882f30d375d5a6
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