You just use any editor to replace this line in au88x0_pcm.c
return (bytes_to_frames(substream->runtime, current_ptr));
by following lines
current_ptr = bytes_to_frames(substream->runtime, current_ptr); if (current_ptr >= substream->runtime->buffer_size) current_ptr = 0; return current_ptr;
You just use any editor to replace this line in au88x0_pcm.c
return (bytes_ to_frames( substream- >runtime, current_ptr));
by following lines
current_ptr = bytes_to_ frames( substream- >runtime, current_ptr); >runtime- >buffer_ size)
if (current_ptr >= substream-
current_ptr = 0;
return current_ptr;