Lines Matching defs:vpcm
85 struct virtio_pcm *vpcm;
88 vpcm = virtsnd_pcm_find_or_create(snd, nid);
89 if (IS_ERR(vpcm))
90 return PTR_ERR(vpcm);
94 vs = &vpcm->streams[SNDRV_PCM_STREAM_PLAYBACK];
97 vs = &vpcm->streams[SNDRV_PCM_STREAM_CAPTURE];
145 struct virtio_pcm *vpcm;
151 list_for_each_entry(vpcm, &snd->pcm_list, list) {
152 for (i = 0; i < ARRAY_SIZE(vpcm->streams); ++i) {
153 vs = &vpcm->streams[i];
175 vpcm = virtsnd_pcm_find(snd, le32_to_cpu(info->hdr.hda_fn_nid));
176 if (IS_ERR(vpcm))
177 return PTR_ERR(vpcm);
180 vs = &vpcm->streams[SNDRV_PCM_STREAM_PLAYBACK];
182 vs = &vpcm->streams[SNDRV_PCM_STREAM_CAPTURE];
202 list_for_each_entry(vpcm, &snd->pcm_list, list) {
203 if (!vpcm->pcm)
206 for (i = 0; i < ARRAY_SIZE(vpcm->streams); ++i) {
207 vs = &vpcm->streams[i];
212 rc = virtsnd_chmap_add_ctls(vpcm->pcm, i, vs);