Lines Matching refs:chmaps
66 virtio_cread_le(vdev, struct virtio_snd_config, chmaps, &snd->nchmaps); in virtsnd_chmap_parse_cfg()
70 snd->chmaps = devm_kcalloc(&vdev->dev, snd->nchmaps, in virtsnd_chmap_parse_cfg()
71 sizeof(*snd->chmaps), GFP_KERNEL); in virtsnd_chmap_parse_cfg()
72 if (!snd->chmaps) in virtsnd_chmap_parse_cfg()
76 snd->nchmaps, sizeof(*snd->chmaps), in virtsnd_chmap_parse_cfg()
77 snd->chmaps); in virtsnd_chmap_parse_cfg()
83 struct virtio_snd_chmap_info *info = &snd->chmaps[i]; in virtsnd_chmap_parse_cfg()
128 if (max_channels < vs->chmaps[i].channels) in virtsnd_chmap_add_ctls()
129 max_channels = vs->chmaps[i].channels; in virtsnd_chmap_add_ctls()
131 return snd_pcm_add_chmap_ctls(pcm, direction, vs->chmaps, max_channels, in virtsnd_chmap_add_ctls()
158 vs->chmaps = devm_kcalloc(&vdev->dev, vs->nchmaps + 1, in virtsnd_chmap_build_devs()
159 sizeof(*vs->chmaps), in virtsnd_chmap_build_devs()
161 if (!vs->chmaps) in virtsnd_chmap_build_devs()
170 struct virtio_snd_chmap_info *info = &snd->chmaps[i]; in virtsnd_chmap_build_devs()
184 chmap = &vs->chmaps[vs->nchmaps++]; in virtsnd_chmap_build_devs()