Re: [Qemu-devel] [PATCH] noaudio: use audio_pcm_sw_read() in no_read()

2011-01-03 Thread malc
On Mon, 3 Jan 2011, Michael Walle wrote: > On Mon, 3 Jan 2011, 23:46:34 malc wrote: > > On Mon, 3 Jan 2011, Michael Walle wrote: > > > Instead of returning a self-calculated empty buffer use the proper method > > > supplied by the audio subsystem. This will fix the return value of the > > > no_rea

Re: [Qemu-devel] [PATCH] noaudio: use audio_pcm_sw_read() in no_read()

2011-01-03 Thread malc
On Mon, 3 Jan 2011, Michael Walle wrote: > Instead of returning a self-calculated empty buffer use the proper method > supplied by the audio subsystem. This will fix the return value of the > no_read() function which otherwise returns too many samples because > total_hw_samples_acquired isn't corr

[Qemu-devel] [PATCH] noaudio: use audio_pcm_sw_read() in no_read()

2011-01-03 Thread Michael Walle
Instead of returning a self-calculated empty buffer use the proper method supplied by the audio subsystem. This will fix the return value of the no_read() function which otherwise returns too many samples because total_hw_samples_acquired isn't correctly accounted. Signed-off-by: Michael Walle --