Re: [PATCH] audio: Reset rate control when adding bytes

2025-05-25 Thread Marc-André Lureau
On Mon, Mar 17, 2025 at 9:07 AM Akihiko Odaki wrote: > > Commit 90320051ea99 ("spiceaudio: add a pcm_ops buffer_get_free > function") caused to emit messages saying "Resetting rate control" > frequently when the guest generates no frames. > > audio_rate_peek_bytes() resets the rate control when fr

[PATCH] audio: Reset rate control when adding bytes

2025-03-17 Thread Akihiko Odaki
Commit 90320051ea99 ("spiceaudio: add a pcm_ops buffer_get_free function") caused to emit messages saying "Resetting rate control" frequently when the guest generates no frames. audio_rate_peek_bytes() resets the rate control when frames < 0 || frames > 65536 where frames is the rate-limited numbe