]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ALSA: virtio: build PCM devices and substream hardware descriptors
authorAnton Yakovlev <anton.yakovlev@opensynergy.com>
Tue, 2 Mar 2021 16:47:04 +0000 (17:47 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sun, 7 Mar 2021 08:07:35 +0000 (09:07 +0100)
commit29b96bf50ba958eb5f097cdc3fbd4c1acf9547a2
tree09d7e5e39da138635f43a967b302ff85013c6b54
parent9d45e514da88ff74fc24ffb34e7d6eb92576440b
ALSA: virtio: build PCM devices and substream hardware descriptors

Like the HDA specification, the virtio sound device specification links
PCM substreams, jacks and PCM channel maps into functional groups. For
each discovered group, a PCM device is created, the number of which
coincides with the group number.

Introduce the module parameters for setting the hardware buffer
parameters:
  pcm_buffer_ms [=160]
  pcm_periods_min [=2]
  pcm_periods_max [=16]
  pcm_period_ms_min [=10]
  pcm_period_ms_max [=80]

Signed-off-by: Anton Yakovlev <anton.yakovlev@opensynergy.com>
Link: https://lore.kernel.org/r/20210302164709.3142702-5-anton.yakovlev@opensynergy.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/virtio/Makefile
sound/virtio/virtio_card.c
sound/virtio/virtio_card.h
sound/virtio/virtio_pcm.c [new file with mode: 0644]
sound/virtio/virtio_pcm.h [new file with mode: 0644]