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>
Thu, 1 Dec 2016 09:48:44 +0000 (15:18 +0530)
commitdd760c864fea2b8c91b247b43ffe39a4a6e7740a
treedc7fde1c56ec7749193a05b8b7545bc0f4744c1e
parent47a14e2dd11bf7f8b386aac8ece9d047903c8c62
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