qemu/hw
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
..
9pfs
acpi
adc
alpha
arm
audio hw/audio/es1370: reset current sample counter 2023-10-10 12:31:05 +00:00
avr
block
char
core cpu: Correct invalid mentions of 'softmmu' by 'system-mode' 2023-10-07 19:02:33 +02:00
cpu
cris
cxl
display
dma
gpio
hppa
hyperv
i2c
i386
ide hw/ide/ahci: Clean up local variable shadowing 2023-10-06 13:16:57 +02:00
input
intc
ipack
ipmi
isa
loongarch
m68k
mem
microblaze
mips
misc
net
nios2
nubus
nvme
nvram
openrisc
pci
pci-bridge
pci-host
pcmcia
ppc
rdma
remote
riscv
rtc
rx
s390x
scsi
sd
sensor
sh4
smbios
sparc
sparc64
ssi
timer
tpm
tricore
ufs
usb hw/usb: Silence compiler warnings in USB code when compiling with -Wshadow 2023-10-06 13:27:48 +02:00
vfio
virtio
watchdog
xen
xenpv
xtensa
Kconfig
meson.build