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)
committerJin Qian <jinqian@google.com>
Thu, 17 Nov 2016 20:26:52 +0000 (12:26 -0800)
commit18e334986224af1dc9d1a61dd8957f07919c76d0
tree38aac54fb7e43209257d42d08d5034e542a3bde4
parent8bf12bc1b78dac6cb4fb7e4fbc0920978d17f5ea
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