audio: refactor audio_get_avail()
commit0724c57988f4ad826b02f12093ace5ef657cec21
authorVolker Rümelin <vr_qemu@t-online.de>
Fri, 23 Sep 2022 18:36:38 +0000 (23 20:36 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 11 Oct 2022 08:17:08 +0000 (11 10:17 +0200)
tree0a0e6da53db172bfdb1afaa58eab3c6569758dc6
parentc4e592647e161fe23adc3eccd8743b285e4b342b
audio: refactor audio_get_avail()

Split out the code in audio_get_avail() that calculates the
buffer size that the audio frontend can read. This is similar
to the code changes in audio_get_free().

Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20220923183640.8314-10-vr_qemu@t-online.de>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
audio/audio.c