Lines Matching refs:nsubstreams
331 &snd->nsubstreams); in virtsnd_pcm_parse_cfg()
332 if (!snd->nsubstreams) in virtsnd_pcm_parse_cfg()
335 snd->substreams = devm_kcalloc(&vdev->dev, snd->nsubstreams, in virtsnd_pcm_parse_cfg()
340 info = kcalloc(snd->nsubstreams, sizeof(*info), GFP_KERNEL); in virtsnd_pcm_parse_cfg()
345 snd->nsubstreams, sizeof(*info), info); in virtsnd_pcm_parse_cfg()
349 for (i = 0; i < snd->nsubstreams; ++i) { in virtsnd_pcm_parse_cfg()
385 vpcm->streams[vss->direction].nsubstreams++; in virtsnd_pcm_parse_cfg()
410 vpcm->streams[SNDRV_PCM_STREAM_PLAYBACK].nsubstreams; in virtsnd_pcm_build_devs()
412 vpcm->streams[SNDRV_PCM_STREAM_CAPTURE].nsubstreams; in virtsnd_pcm_build_devs()
436 if (!stream->nsubstreams) in virtsnd_pcm_build_devs()
440 devm_kcalloc(&vdev->dev, stream->nsubstreams, in virtsnd_pcm_build_devs()
446 stream->nsubstreams = 0; in virtsnd_pcm_build_devs()
450 for (i = 0; i < snd->nsubstreams; ++i) { in virtsnd_pcm_build_devs()
459 vs->substreams[vs->nsubstreams++] = vss; in virtsnd_pcm_build_devs()
468 if (!vs->nsubstreams) in virtsnd_pcm_build_devs()
497 if (sid >= snd->nsubstreams) in virtsnd_pcm_event()