Lines Matching refs:nsubstreams
333 &snd->nsubstreams); in virtsnd_pcm_parse_cfg()
334 if (!snd->nsubstreams) in virtsnd_pcm_parse_cfg()
337 snd->substreams = devm_kcalloc(&vdev->dev, snd->nsubstreams, in virtsnd_pcm_parse_cfg()
342 info = kcalloc(snd->nsubstreams, sizeof(*info), GFP_KERNEL); in virtsnd_pcm_parse_cfg()
347 snd->nsubstreams, sizeof(*info), info); in virtsnd_pcm_parse_cfg()
351 for (i = 0; i < snd->nsubstreams; ++i) { in virtsnd_pcm_parse_cfg()
387 vpcm->streams[vss->direction].nsubstreams++; in virtsnd_pcm_parse_cfg()
412 vpcm->streams[SNDRV_PCM_STREAM_PLAYBACK].nsubstreams; in virtsnd_pcm_build_devs()
414 vpcm->streams[SNDRV_PCM_STREAM_CAPTURE].nsubstreams; in virtsnd_pcm_build_devs()
438 if (!stream->nsubstreams) in virtsnd_pcm_build_devs()
442 devm_kcalloc(&vdev->dev, stream->nsubstreams, in virtsnd_pcm_build_devs()
448 stream->nsubstreams = 0; in virtsnd_pcm_build_devs()
452 for (i = 0; i < snd->nsubstreams; ++i) { in virtsnd_pcm_build_devs()
461 vs->substreams[vs->nsubstreams++] = vss; in virtsnd_pcm_build_devs()
470 if (!vs->nsubstreams) in virtsnd_pcm_build_devs()
499 if (sid >= snd->nsubstreams) in virtsnd_pcm_event()