Lines Matching +full:virtio +full:- +full:device
1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * virtio-snd: Virtio sound device
10 #include <linux/virtio.h>
17 #define VIRTIO_SND_CARD_DRIVER "virtio-snd"
18 #define VIRTIO_SND_CARD_NAME "VirtIO SoundCard"
19 #define VIRTIO_SND_PCM_NAME "VirtIO PCM"
25 * struct virtio_snd_queue - Virtqueue wrapper structure.
35 * struct virtio_kctl - VirtIO control element.
45 * struct virtio_snd - VirtIO sound card device.
46 * @vdev: Underlying virtio device.
50 * @event_msgs: Device events.
51 * @pcm_list: VirtIO PCM device list.
52 * @jacks: VirtIO jacks.
54 * @substreams: VirtIO PCM substreams.
56 * @chmaps: VirtIO channel maps.
58 * @kctl_infos: VirtIO control element information.
59 * @kctls: VirtIO control elements.
86 return &snd->queues[VIRTIO_SND_VQ_CONTROL]; in virtsnd_control_queue()
92 return &snd->queues[VIRTIO_SND_VQ_EVENT]; in virtsnd_event_queue()
98 return &snd->queues[VIRTIO_SND_VQ_TX]; in virtsnd_tx_queue()
104 return &snd->queues[VIRTIO_SND_VQ_RX]; in virtsnd_rx_queue()
110 if (vss->direction == SNDRV_PCM_STREAM_PLAYBACK) in virtsnd_pcm_queue()
111 return virtsnd_tx_queue(vss->snd); in virtsnd_pcm_queue()
113 return virtsnd_rx_queue(vss->snd); in virtsnd_pcm_queue()