decouple flash from jack thread with ringbuffer