ANDROID: goldfish_audio: Clear audio read buffer status after each read
authorJoshua Lang <joshualang@google.com>
Sat, 18 Jun 2016 00:30:55 +0000 (17:30 -0700)
committerAmit Pundir <amit.pundir@linaro.org>
Mon, 18 Dec 2017 15:41:22 +0000 (21:11 +0530)
commitbdcc178732af198a511d1146c1569a04da8f86dd
treef0e15829317fd8f14de285d6d2efbfc1b7796d25
parent038357818e94310cd2c5a4ad614b2cc1646f2434
ANDROID: goldfish_audio: 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>
Change-Id: I4943d5aaada1cad9c7e59a94a87c387578dabe86
drivers/staging/goldfish/goldfish_audio.c