diff options
author | Anton Yakovlev <anton.yakovlev@opensynergy.com> | 2021-03-02 19:47:08 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-03-07 11:08:20 +0300 |
commit | 19325fedf245ca932c58a629d3888a9a393534ab (patch) | |
tree | 2c6e2bfb81e90bdd25e3043b1473d19efc6898a2 /sound/virtio/virtio_pcm.h | |
parent | ca61a41f389c80db091db9d4ad5a651e2b4c9f70 (diff) | |
download | linux-19325fedf245ca932c58a629d3888a9a393534ab.tar.xz |
ALSA: virtio: introduce PCM channel map support
Enumerate all available PCM channel maps and create ALSA controls.
Signed-off-by: Anton Yakovlev <anton.yakovlev@opensynergy.com>
Link: https://lore.kernel.org/r/20210302164709.3142702-9-anton.yakovlev@opensynergy.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/virtio/virtio_pcm.h')
-rw-r--r-- | sound/virtio/virtio_pcm.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/virtio/virtio_pcm.h b/sound/virtio/virtio_pcm.h index efd0228746cf..1353fdc9bd69 100644 --- a/sound/virtio/virtio_pcm.h +++ b/sound/virtio/virtio_pcm.h @@ -63,10 +63,14 @@ struct virtio_pcm_substream { * struct virtio_pcm_stream - VirtIO PCM stream. * @substreams: VirtIO substreams belonging to the stream. * @nsubstreams: Number of substreams. + * @chmaps: Kernel channel maps belonging to the stream. + * @nchmaps: Number of channel maps. */ struct virtio_pcm_stream { struct virtio_pcm_substream **substreams; u32 nsubstreams; + struct snd_pcm_chmap_elem *chmaps; + u32 nchmaps; }; /** |