qemu/hw/audio
Volker Rümelin 00e3b29d06 hw/audio/es1370: reset current sample counter
Reset the current sample counter when writing the Channel Sample
Count Register. The Linux ens1370 driver and the AROS sb128
driver expect the current sample counter counts down from sample
count to 0 after a write to the Channel Sample Count Register.
Currently the current sample counter starts from 0 after a reset
or the last count when the counter was stopped.

The current sample counter is used to raise an interrupt whenever
a complete buffer was transferred. When the counter starts with a
value lower than the reload value, the interrupt triggeres before
the buffer was completly transferred. This may lead to corrupted
audio streams.

Tested-by: Rene Engel <ReneEngel80@emailn.de>
Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Tested-by: BALATON Zoltan <balaton@eik.bme.hu>
Message-Id: <20230917065813.6692-1-vr_qemu@t-online.de>
2023-10-10 12:31:05 +00:00
..
ac97.c audio: propagate Error * out of audio_init 2023-10-03 10:29:40 +02:00
ac97.h hw/audio/ac97: Split off some definitions to a header 2023-02-27 22:29:02 +01:00
adlib.c audio: propagate Error * out of audio_init 2023-10-03 10:29:40 +02:00
asc.c asc: generate silence if FIFO empty but engine still running 2023-10-06 10:33:43 +02:00
cs4231.c hw: Replace anti-social QOM type names 2021-03-19 15:18:43 +01:00
cs4231a.c audio: propagate Error * out of audio_init 2023-10-03 10:29:40 +02:00
es1370.c hw/audio/es1370: reset current sample counter 2023-10-10 12:31:05 +00:00
fmopl.c audio: spelling fixes 2023-09-08 13:08:52 +03:00
fmopl.h audio: spelling fixes 2023-09-08 13:08:52 +03:00
gus.c audio: propagate Error * out of audio_init 2023-10-03 10:29:40 +02:00
gusemu_hal.c audio: spelling fixes 2023-09-08 13:08:52 +03:00
gusemu_mixer.c hw/audio/gus: Fix registers 32-bit access 2020-06-19 11:20:09 +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 audio: propagate Error * out of audio_init 2023-10-03 10:29:40 +02:00
intel-hda-defs.h audio: spelling fixes 2023-09-08 13:08:52 +03:00
intel-hda.c hw/audio: Simplify hda audio init 2023-09-22 16:30:07 +02:00
intel-hda.h hw/audio: Simplify hda audio init 2023-09-22 16:30:07 +02:00
Kconfig audio: add Apple Sound Chip (ASC) emulation 2023-10-06 10:33:43 +02:00
lm4549.c audio: propagate Error * out of audio_init 2023-10-03 10:29:40 +02:00
lm4549.h hw/audio/lm4549: Add errp error reporting to init function 2023-09-22 16:30:07 +02:00
marvell_88w8618.c Use OBJECT_DECLARE_SIMPLE_TYPE when possible 2020-09-18 14:12:32 -04:00
meson.build audio: add Apple Sound Chip (ASC) emulation 2023-10-06 10:33:43 +02:00
pcspk.c audio: propagate Error * out of audio_init 2023-10-03 10:29:40 +02:00
pl041.c hw/audio/lm4549: Add errp error reporting to init function 2023-09-22 16:30:07 +02:00
pl041.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
pl041.hx
sb16.c audio: propagate Error * out of audio_init 2023-10-03 10:29:40 +02:00
soundhw.c hw/audio/soundhw: Clean up global variable shadowing 2023-10-06 13:16:57 +02:00
trace-events audio: add Apple Sound Chip (ASC) emulation 2023-10-06 10:33:43 +02:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
via-ac97.c audio: propagate Error * out of audio_init 2023-10-03 10:29:40 +02:00
wm8750.c audio: propagate Error * out of audio_init 2023-10-03 10:29:40 +02:00