Lines Matching defs:stream
195 * This function should be called when the stream is closed.
268 int tx = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
299 int stream = substream->stream;
308 if (stream == SNDRV_PCM_STREAM_CAPTURE)
314 if (stream == SNDRV_PCM_STREAM_CAPTURE)
335 threshold = mcpdm->config[stream].threshold;
337 if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
340 /* If capture is not running assume a stereo stream to come */
341 if (!mcpdm->config[!stream].link_mask)
342 mcpdm->config[!stream].link_mask = 0x3;
348 /* If playback is not running assume a stereo stream to come */
349 if (!mcpdm->config[!stream].link_mask)
350 mcpdm->config[!stream].link_mask = (0x3 << 3);
360 mcpdm->latency[stream] = latency * USEC_PER_SEC / params_rate(params);
362 if (!mcpdm->latency[stream])
363 mcpdm->latency[stream] = 10;
365 /* Check if we need to restart McPDM with this stream */
366 if (mcpdm->config[stream].link_mask &&
367 mcpdm->config[stream].link_mask != link_mask)
370 mcpdm->config[stream].link_mask = link_mask;
380 int tx = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);