Lines Matching defs:stream
1280 * @stream: stream direction.
1281 * @list: list of active widgets for this stream.
1285 * Queries DAPM graph as to whether a valid audio stream path exists for
1286 * the initial stream specified by name. This takes into account
1296 int snd_soc_dapm_dai_get_connected_widgets(struct snd_soc_dai *dai, int stream,
1302 struct snd_soc_dapm_widget *w = snd_soc_dai_get_widget(dai, stream);
1309 if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
1326 trace_snd_soc_dapm_connected(paths, stream);
2128 ret += scnprintf(buf + ret, PAGE_SIZE - ret, " stream %s %s\n",
2620 * stream or path usage.
2644 * stream or path usage.
2687 int dir = substream->stream;
3865 substream->stream = SNDRV_PCM_STREAM_CAPTURE;
3873 snd_soc_dai_activate(source, substream->stream);
3876 substream->stream = SNDRV_PCM_STREAM_PLAYBACK;
3884 snd_soc_dai_activate(sink, substream->stream);
3921 substream->stream = SNDRV_PCM_STREAM_CAPTURE;
3932 substream->stream = SNDRV_PCM_STREAM_PLAYBACK;
3961 int ret = 0, saved_stream = substream->stream;
3992 substream->stream = SNDRV_PCM_STREAM_CAPTURE;
3998 substream->stream = SNDRV_PCM_STREAM_PLAYBACK;
4004 substream->stream = SNDRV_PCM_STREAM_CAPTURE;
4007 snd_soc_dai_deactivate(source, substream->stream);
4011 substream->stream = SNDRV_PCM_STREAM_PLAYBACK;
4014 snd_soc_dai_deactivate(sink, substream->stream);
4030 substream->stream = saved_stream;
4305 /* ...find all widgets with the same stream and link them */
4367 int stream;
4369 for_each_pcm_streams(stream) {
4372 stream_cpu = snd_soc_get_stream_cpu(dai_link, stream);
4373 stream_codec = stream;
4383 if (dai_link->c2c_params && !rtd->c2c_widget[stream]) {
4384 struct snd_pcm_substream *substream = rtd->pcm->streams[stream].substream;
4386 widget_name[stream]);
4391 rtd->c2c_widget[stream] = dai;
4394 dapm_connect_dai_routes(&card->dapm, src_dai[stream], *src[stream],
4395 rtd->c2c_widget[stream],
4396 sink_dai[stream], *sink[stream]);
4400 static void soc_dapm_dai_stream_event(struct snd_soc_dai *dai, int stream,
4405 w = snd_soc_dai_get_widget(dai, stream);
4410 dapm_mark_dirty(w, "stream event");
4490 static void soc_dapm_stream_event(struct snd_soc_pcm_runtime *rtd, int stream,
4497 soc_dapm_dai_stream_event(dai, stream, event);
4503 * snd_soc_dapm_stream_event - send a stream event to the dapm core
4505 * @stream: stream name
4506 * @event: stream event
4508 * Sends a stream event to the dapm core. The core then makes any
4513 void snd_soc_dapm_stream_event(struct snd_soc_pcm_runtime *rtd, int stream,
4519 soc_dapm_stream_event(rtd, stream, event);
4523 void snd_soc_dapm_stream_stop(struct snd_soc_pcm_runtime *rtd, int stream)
4525 if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
4527 /* powered down playback stream now */
4552 * a valid audio route and active audio stream.
4572 * a valid audio route and active audio stream.