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_snd - VirtIO sound card device.
36 * @vdev: Underlying virtio device.
40 * @event_msgs: Device events.
41 * @pcm_list: VirtIO PCM device list.
42 * @jacks: VirtIO jacks.
44 * @substreams: VirtIO PCM substreams.
46 * @chmaps: VirtIO channel maps.
70 return &snd->queues[VIRTIO_SND_VQ_CONTROL]; in virtsnd_control_queue()
76 return &snd->queues[VIRTIO_SND_VQ_EVENT]; in virtsnd_event_queue()
82 return &snd->queues[VIRTIO_SND_VQ_TX]; in virtsnd_tx_queue()
88 return &snd->queues[VIRTIO_SND_VQ_RX]; in virtsnd_rx_queue()
94 if (vss->direction == SNDRV_PCM_STREAM_PLAYBACK) in virtsnd_pcm_queue()
95 return virtsnd_tx_queue(vss->snd); in virtsnd_pcm_queue()
97 return virtsnd_rx_queue(vss->snd); in virtsnd_pcm_queue()