qemu-cr16/hw/audio
Peter Maydell 522444744e hw/audio/lm4549: Don't try to open a zero-frequency audio voice
If the guest incorrectly programs the lm4549 audio chip with a zero
frequency, we will pass this to AUD_open_out(), which will complain:

   A bug was just triggered in AUD_open_out
   Save all your work and restart without audio
   I am sorry
   Context:
   audio: frequency=0 nchannels=2 fmt=S16 endianness=little

The datasheet doesn't say what we should do here, only that the valid
range for the freqency is 4000 to 48000 Hz; we choose to log the
guest error and ignore an attempt to change the DAC rate to something
outside the valid range.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/410
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20251107154116.1396769-1-peter.maydell@linaro.org
2025-11-14 13:20:10 +00:00
..
ac97.c hw/audio: Remove dead code from ac97_realize 2025-11-05 09:26:27 +01:00
ac97.h hw/audio/ac97: Split off some definitions to a header 2023-02-27 22:29:02 +01:00
adlib.c audio: move audio.h under include/qemu/ 2025-10-30 22:56:51 +04:00
asc.c audio: move audio.h under include/qemu/ 2025-10-30 22:56:51 +04:00
cs4231.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
cs4231a.c audio: move audio.h under include/qemu/ 2025-10-30 22:56:51 +04:00
es1370.c audio: move audio.h under include/qemu/ 2025-10-30 22:56:51 +04: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: move audio.h under include/qemu/ 2025-10-30 22:56:51 +04:00
gusemu.h audio: GUSsample is int16_t 2017-05-04 09:16:05 +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
gustate.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
hda-codec-common.h
hda-codec.c audio: move audio.h under include/qemu/ 2025-10-30 22:56:51 +04:00
intel-hda-defs.h audio: spelling fixes 2023-09-08 13:08:52 +03:00
intel-hda.c hw/audio: generalize audio_model.init() 2025-10-30 13:30:06 +04:00
intel-hda.h hw/audio: Simplify hda audio init 2023-09-22 16:30:07 +02:00
Kconfig Add virtio-sound device stub 2023-11-07 03:39:10 -05:00
lm4549.c hw/audio/lm4549: Don't try to open a zero-frequency audio voice 2025-11-14 13:20:10 +00:00
lm4549.h audio: move audio.h under include/qemu/ 2025-10-30 22:56:51 +04:00
marvell_88w8618.c audio: move audio.h under include/qemu/ 2025-10-30 22:56:51 +04:00
meson.build hw/audio: use better naming for -audio model handling code 2025-10-30 13:30:06 +04:00
model.c hw/audio: drop audio_model.isa 2025-10-30 13:30:06 +04:00
pcspk.c audio: move audio.h under include/qemu/ 2025-10-30 22:56:51 +04:00
pl041.c audio: remove QEMUSoundCard 2025-10-30 22:56:28 +04:00
pl041.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
pl041.hx
sb16.c audio: move audio.h under include/qemu/ 2025-10-30 22:56:51 +04:00
trace-events hw/audio/pcspk: Add I/O trace events 2025-10-21 20:16:47 +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: remove QEMUSoundCard 2025-10-30 22:56:28 +04:00
virtio-snd-pci.c hw/audio: drop audio_model.isa 2025-10-30 13:30:06 +04:00
virtio-snd.c audio: remove QEMUSoundCard 2025-10-30 22:56:28 +04:00
wm8750.c audio: move audio.h under include/qemu/ 2025-10-30 22:56:51 +04:00