You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/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
3 weeks ago
..
Kconfig Add virtio-sound device stub 2 years ago
ac97.c hw/audio: Remove dead code from ac97_realize 1 month ago
ac97.h hw/audio/ac97: Split off some definitions to a header 3 years ago
adlib.c audio: move audio.h under include/qemu/ 1 month ago
asc.c audio: move audio.h under include/qemu/ 1 month ago
cs4231.c qom: Have class_init() take a const data argument 7 months ago
cs4231a.c audio: move audio.h under include/qemu/ 1 month ago
es1370.c audio: move audio.h under include/qemu/ 1 month ago
fmopl.c audio: spelling fixes 2 years ago
fmopl.h audio: spelling fixes 2 years ago
gus.c audio: move audio.h under include/qemu/ 1 month ago
gusemu.h audio: GUSsample is int16_t 9 years ago
gusemu_hal.c audio: spelling fixes 2 years ago
gusemu_mixer.c hw/audio/gus: Fix registers 32-bit access 6 years ago
gustate.h Clean up decorations and whitespace around header guards 10 years ago
hda-codec-common.h
hda-codec.c audio: move audio.h under include/qemu/ 1 month ago
intel-hda-defs.h audio: spelling fixes 2 years ago
intel-hda.c hw/audio: generalize audio_model.init() 1 month ago
intel-hda.h hw/audio: Simplify hda audio init 2 years ago
lm4549.c hw/audio/lm4549: Don't try to open a zero-frequency audio voice 3 weeks ago
lm4549.h audio: move audio.h under include/qemu/ 1 month ago
marvell_88w8618.c audio: move audio.h under include/qemu/ 1 month ago
meson.build hw/audio: use better naming for -audio model handling code 1 month ago
model.c hw/audio: drop audio_model.isa 1 month ago
pcspk.c audio: move audio.h under include/qemu/ 1 month ago
pl041.c audio: remove QEMUSoundCard 1 month ago
pl041.h Clean up decorations and whitespace around header guards 10 years ago
pl041.hx
sb16.c audio: move audio.h under include/qemu/ 1 month ago
trace-events hw/audio/pcspk: Add I/O trace events 1 month ago
trace.h trace: switch position of headers to what Meson requires 5 years ago
via-ac97.c audio: remove QEMUSoundCard 1 month ago
virtio-snd-pci.c hw/audio: drop audio_model.isa 1 month ago
virtio-snd.c audio: remove QEMUSoundCard 1 month ago
wm8750.c audio: move audio.h under include/qemu/ 1 month ago