Searched refs:vpcm (Results 1 – 3 of 3) sorted by relevance
218 struct virtio_pcm *vpcm; in virtsnd_pcm_find() local220 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() local241 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 …]
85 struct virtio_pcm *vpcm; in virtsnd_chmap_parse_cfg() local88 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() local151 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 …]
107 struct virtio_pcm *vpcm = snd_pcm_substream_chip(substream); in virtsnd_pcm_open() local108 struct virtio_pcm_stream *vs = &vpcm->streams[substream->stream]; in virtsnd_pcm_open()