]> Git Repo - qemu.git/commit
hda-codec: fix playback rate control
authorVolker Rümelin <[email protected]>
Sat, 4 Jan 2020 09:11:18 +0000 (10:11 +0100)
committerGerd Hoffmann <[email protected]>
Mon, 6 Jan 2020 07:47:16 +0000 (08:47 +0100)
commitdf016a1998147ec328d7e800a7f7582e053720d1
tree52905b3ef4efdf28c0b041dfa8bd91a4687ce0d8
parentf0dcfddecee8b860e015bb07d67cfcbdfbfd51d9
hda-codec: fix playback rate control

Since commit 1930616b98 "audio: make mixeng optional" the
function hda_audio_output_cb can no longer assume the function
parameter avail contains the free buffer size. With the playback
mixing-engine turned off this leads to a broken playback rate
control and playback buffer drops in regular intervals.

This patch moves down the rate calculation, so the correct
buffer fill level is used for the calculation.

Signed-off-by: Volker Rümelin <[email protected]>
Message-id: 20200104091122[email protected]
Signed-off-by: Gerd Hoffmann <[email protected]>
hw/audio/hda-codec.c
This page took 0.024298 seconds and 4 git commands to generate.