• Takashi Iwai's avatar
    ALSA: au88x0: Fix overlapped PCM pointer · 58a8738c
    Takashi Iwai authored
    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: default avatarTakashi Iwai <tiwai@suse.de>
    58a8738c
au88x0_pcm.c 20 KB