linux/sound/virtio
Cássio Gabriel 83fbbcb793 ALSA: virtio: Add missing 384 kHz PCM rate mapping
The VirtIO sound UAPI defines VIRTIO_SND_PCM_RATE_384000, and ALSA
has SNDRV_PCM_RATE_384000. However, virtio-snd's rate conversion
tables stop at 192 kHz.

A device advertising only 384 kHz is rejected as having no supported
PCM frame rates. A device advertising 384 kHz together with lower rates
does not expose 384 kHz through the ALSA hardware constraints. The
selected ALSA rate also needs a reverse mapping for SET_PARAMS.

Add the missing 384 kHz entries to both conversion tables.

Fixes: 29b96bf50b ("ALSA: virtio: build PCM devices and substream hardware descriptors")
Fixes: da76e9f3e4 ("ALSA: virtio: PCM substream operators")
Cc: stable@vger.kernel.org
Signed-off-by: Cássio Gabriel <cassiogabrielcontato@gmail.com>
Link: https://patch.msgid.link/20260515-alsa-virtio-384k-rate-v1-1-35ecb5df835c@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2026-05-16 15:42:30 +02:00
..
Kconfig
Makefile ALSA: misc: Use *-y instead of *-objs in Makefile 2024-05-08 18:18:13 +02:00
virtio_card.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
virtio_card.h ALSA: virtio: add support for audio controls 2024-02-09 14:01:15 +01:00
virtio_chmap.c ALSA: virtio: introduce PCM channel map support 2021-03-07 09:08:20 +01:00
virtio_ctl_msg.c ALSA: virtio: Use guard() for spin locks 2025-09-01 13:54:28 +02:00
virtio_ctl_msg.h
virtio_jack.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
virtio_kctl.c ALSA: virtio: Validate control metadata from the device 2026-05-15 11:21:20 +02:00
virtio_pcm_msg.c Convert 'alloc_flex' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
virtio_pcm_ops.c ALSA: virtio: Add missing 384 kHz PCM rate mapping 2026-05-16 15:42:30 +02:00
virtio_pcm.c ALSA: virtio: Add missing 384 kHz PCM rate mapping 2026-05-16 15:42:30 +02:00
virtio_pcm.h ALSA: virtio: drop an extaneous kernel-doc comment 2026-04-17 09:47:54 +02:00