You have to recompile alsa driver by adding
if (current_ptr > runtime->buffer_size) current_ptr = runtime->buffer_size;
You have to recompile alsa driver by adding
if (current_ptr > runtime- >buffer_ size) >buffer_ size;
current_ptr = runtime-