androidsurface: setup format depending on surface format
ringbuf: support asynchronized ring buffer