qemu/hw/audio
Volker Rümelin df016a1998 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 <vr_qemu@t-online.de>
Message-id: 20200104091122.13971-1-vr_qemu@t-online.de
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2020-01-06 08:47:16 +01:00
..
ac97.c hw/audio: Remove the "use_broken_id" hack from the AC97 device 2019-12-18 02:34:12 +01:00
adlib.c audio: remove audio_MIN, audio_MAX 2019-08-21 09:13:37 +02:00
cs4231.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
cs4231a.c audio: remove audio_MIN, audio_MAX 2019-08-21 09:13:37 +02:00
es1370.c audio: remove audio_MIN, audio_MAX 2019-08-21 09:13:37 +02:00
fmopl.c hw: use "qemu/osdep.h" as first #include in source files 2017-12-18 17:07:02 +03:00
fmopl.h fmops: fix off-by-one in AR_TABLE and DR_TABLE array size 2018-11-26 11:15:32 +01:00
gus.c audio: remove audio_MIN, audio_MAX 2019-08-21 09:13:37 +02:00
gusemu_hal.c fix "Missing break in switch" coverity reports 2018-08-23 13:32:50 +02:00
gusemu_mixer.c audio: GUSsample is int16_t 2017-05-04 09:16:05 +02:00
gusemu.h audio: GUSsample is int16_t 2017-05-04 09:16:05 +02:00
gustate.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
hda-codec-common.h hda-codec: make mixemu selectable at runtime 2013-09-24 10:29:34 +02:00
hda-codec.c hda-codec: fix playback rate control 2020-01-06 08:47:16 +01:00
intel-hda-defs.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
intel-hda.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
intel-hda.h Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
Kconfig i2c: express dependencies with Kconfig 2019-03-07 21:45:53 +01:00
lm4549.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
lm4549.h Include exec/memory.h slightly less 2019-08-16 13:31:52 +02:00
Makefile.objs audio: Move arch_init audio code to hw/audio/soundhw.c 2017-05-19 10:48:53 +02:00
marvell_88w8618.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
milkymist-ac97.c audio: remove audio_MIN, audio_MAX 2019-08-21 09:13:37 +02:00
pcspk.c audio: remove audio_MIN, audio_MAX 2019-08-21 09:13:37 +02:00
pl041.c audio: add audiodev properties to frontends 2019-08-21 09:13:37 +02:00
pl041.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
pl041.hx hw: move target-independent files to subdirectories 2013-04-08 18:13:12 +02:00
sb16.c audio: remove audio_MIN, audio_MAX 2019-08-21 09:13:37 +02:00
soundhw.c Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
trace-events trace-events: Shorten file names in comments 2019-03-22 16:18:07 +00:00
wm8750.c audio: remove audio_MIN, audio_MAX 2019-08-21 09:13:37 +02:00