Lines Matching refs:info
92 struct virtio_snd_pcm_info *info) in virtsnd_pcm_build_hw() argument
100 vss->features = le32_to_cpu(info->features); in virtsnd_pcm_build_hw()
106 vss->hw.info = in virtsnd_pcm_build_hw()
114 if (!info->channels_min || info->channels_min > info->channels_max) { in virtsnd_pcm_build_hw()
117 vss->sid, info->channels_min, info->channels_max); in virtsnd_pcm_build_hw()
121 vss->hw.channels_min = info->channels_min; in virtsnd_pcm_build_hw()
122 vss->hw.channels_max = info->channels_max; in virtsnd_pcm_build_hw()
124 values = le64_to_cpu(info->formats); in virtsnd_pcm_build_hw()
149 values = le64_to_cpu(info->rates); in virtsnd_pcm_build_hw()
326 struct virtio_snd_pcm_info *info; in virtsnd_pcm_parse_cfg() local
340 info = kcalloc(snd->nsubstreams, sizeof(*info), GFP_KERNEL); in virtsnd_pcm_parse_cfg()
341 if (!info) in virtsnd_pcm_parse_cfg()
345 snd->nsubstreams, sizeof(*info), info); in virtsnd_pcm_parse_cfg()
359 rc = virtsnd_pcm_build_hw(vss, &info[i]); in virtsnd_pcm_parse_cfg()
363 vss->nid = le32_to_cpu(info[i].hdr.hda_fn_nid); in virtsnd_pcm_parse_cfg()
371 switch (info[i].direction) { in virtsnd_pcm_parse_cfg()
380 vss->sid, info[i].direction); in virtsnd_pcm_parse_cfg()
389 kfree(info); in virtsnd_pcm_parse_cfg()