ALSA: au88x0: Fix overlapped PCM pointer
authorTakashi Iwai <tiwai@suse.de>
Thu, 10 Mar 2016 20:03:09 +0000 (21:03 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 26 Apr 2016 07:55:42 +0000 (09:55 +0200)
commit58a8738cfcdec389b3764a636303f97b57f85193
tree9161a56c1a4e2f588aa4117575d6cd4d544b5153
parentd2c5cf88d5282de258f4eb6ab40040b80a075cd8
ALSA: au88x0: Fix overlapped PCM pointer

au88x0 hardware seems returning the current pointer at the buffer
boundary instead of going back to zero.  This results in spewing
warnings from PCM core.

This patch corrects the return value from the pointer callback within
the proper value range, just returning zero if the position is equal
or above the buffer size.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/au88x0/au88x0_pcm.c