Home
last modified time | relevance | path

Searched refs:vpcm (Results 1 – 3 of 3) sorted by relevance

/linux-5.19.10/sound/virtio/
Dvirtio_pcm.c218 struct virtio_pcm *vpcm; in virtsnd_pcm_find() local
220 list_for_each_entry(vpcm, &snd->pcm_list, list) in virtsnd_pcm_find()
221 if (vpcm->nid == nid) in virtsnd_pcm_find()
222 return vpcm; in virtsnd_pcm_find()
239 struct virtio_pcm *vpcm; in virtsnd_pcm_find_or_create() local
241 vpcm = virtsnd_pcm_find(snd, nid); in virtsnd_pcm_find_or_create()
242 if (!IS_ERR(vpcm)) in virtsnd_pcm_find_or_create()
243 return vpcm; in virtsnd_pcm_find_or_create()
245 vpcm = devm_kzalloc(&vdev->dev, sizeof(*vpcm), GFP_KERNEL); in virtsnd_pcm_find_or_create()
246 if (!vpcm) in virtsnd_pcm_find_or_create()
[all …]
Dvirtio_chmap.c85 struct virtio_pcm *vpcm; in virtsnd_chmap_parse_cfg() local
88 vpcm = virtsnd_pcm_find_or_create(snd, nid); in virtsnd_chmap_parse_cfg()
89 if (IS_ERR(vpcm)) in virtsnd_chmap_parse_cfg()
90 return PTR_ERR(vpcm); in virtsnd_chmap_parse_cfg()
94 vs = &vpcm->streams[SNDRV_PCM_STREAM_PLAYBACK]; in virtsnd_chmap_parse_cfg()
97 vs = &vpcm->streams[SNDRV_PCM_STREAM_CAPTURE]; in virtsnd_chmap_parse_cfg()
145 struct virtio_pcm *vpcm; in virtsnd_chmap_build_devs() local
151 list_for_each_entry(vpcm, &snd->pcm_list, list) { in virtsnd_chmap_build_devs()
152 for (i = 0; i < ARRAY_SIZE(vpcm->streams); ++i) { in virtsnd_chmap_build_devs()
153 vs = &vpcm->streams[i]; in virtsnd_chmap_build_devs()
[all …]
Dvirtio_pcm_ops.c107 struct virtio_pcm *vpcm = snd_pcm_substream_chip(substream); in virtsnd_pcm_open() local
108 struct virtio_pcm_stream *vs = &vpcm->streams[substream->stream]; in virtsnd_pcm_open()