Lines Matching refs:stream
408 rate = m_rt->stream->params.rate;
409 bps = m_rt->stream->params.bps;
618 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
641 pconfig, 1, dai_runtime->stream);
643 dev_err(amd_manager->dev, "add manager to stream failed:%d\n", ret);
660 ret = sdw_stream_remove_master(&amd_manager->bus, dai_runtime->stream);
662 dev_err(dai->dev, "remove manager from stream %s failed: %d\n",
663 dai_runtime->stream->name, ret);
667 static int amd_set_sdw_stream(struct snd_soc_dai *dai, void *stream, int direction)
673 if (stream) {
687 dai_runtime->stream = stream;
696 /* for NULL stream we release allocated dai_runtime */
703 static int amd_pcm_set_sdw_stream(struct snd_soc_dai *dai, void *stream, int direction)
705 return amd_set_sdw_stream(dai, stream, direction);
717 return dai_runtime->stream;
735 struct snd_soc_pcm_stream *stream;
757 stream = &dais[i].playback;
759 stream = &dais[i].capture;
761 stream->channels_min = 2;
762 stream->channels_max = 2;
763 stream->rates = SNDRV_PCM_RATE_48000;
764 stream->formats = SNDRV_PCM_FMTBIT_S16_LE;