Lines Matching refs:vpcm
85 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()
175 vpcm = virtsnd_pcm_find(snd, le32_to_cpu(info->hdr.hda_fn_nid)); in virtsnd_chmap_build_devs()
176 if (IS_ERR(vpcm)) in virtsnd_chmap_build_devs()
177 return PTR_ERR(vpcm); in virtsnd_chmap_build_devs()
180 vs = &vpcm->streams[SNDRV_PCM_STREAM_PLAYBACK]; in virtsnd_chmap_build_devs()
182 vs = &vpcm->streams[SNDRV_PCM_STREAM_CAPTURE]; in virtsnd_chmap_build_devs()
202 list_for_each_entry(vpcm, &snd->pcm_list, list) { in virtsnd_chmap_build_devs()
203 if (!vpcm->pcm) in virtsnd_chmap_build_devs()
206 for (i = 0; i < ARRAY_SIZE(vpcm->streams); ++i) { in virtsnd_chmap_build_devs()
207 vs = &vpcm->streams[i]; in virtsnd_chmap_build_devs()
212 rc = virtsnd_chmap_add_ctls(vpcm->pcm, i, vs); in virtsnd_chmap_build_devs()