Lines Matching refs:sink

55 			 struct snd_soc_dapm_widget *sink));
245 * or activated with the widget as the sink.
261 * have changed. E.g. if the sink state of a widget changes or a path is added
274 * Resets the cached number of inputs for the sink of the path and the cached
296 dapm_widget_invalidate_input_paths(p->sink);
297 if (p->sink->endpoints[SND_SOC_DAPM_DIR_OUT] != 0)
780 p->sink->kcontrol_news[i].private_value;
788 unsigned int val = soc_dapm_read(p->sink->dapm, reg);
804 val = soc_dapm_read(p->sink->dapm, mc->rreg);
830 for (i = 0; i < path->sink->num_kcontrols; i++) {
831 if (!strcmp(control_name, path->sink->kcontrol_news[i].name)) {
832 path->name = path->sink->kcontrol_news[i].name;
1462 !path->connected(path->source, path->sink))
1465 if (dapm_widget_power_check(path->sink))
1913 dapm_widget_set_peer_power(path->sink, power, path->connect);
2135 if (p->connected && !p->connected(p->source, p->sink))
2272 dapm_mark_dirty(path->sink, reason);
2505 * remove source and sink paths associated to this widget.
2507 * source and sink widgets so that path is removed only once.
2673 p->source->name, p->sink->name);
2702 ret = dapm_update_dai_chan(p, p->sink, channels);
2744 * dapm_update_widget_flags() - Re-compute widget sink and source flags
2775 /* On a fully routed card a output is never a sink */
2780 if (p->sink->id == snd_soc_dapm_spk ||
2781 p->sink->id == snd_soc_dapm_hp ||
2782 p->sink->id == snd_soc_dapm_line ||
2783 p->sink->id == snd_soc_dapm_input) {
2804 struct snd_soc_dapm_widget *source, struct snd_soc_dapm_widget *sink,
2821 switch (sink->id) {
2835 source->name, control, sink->name);
2840 source->name, control, sink->name);
2851 struct snd_soc_dapm_widget *sink))
2952 const char *sink;
2964 prefix, route->sink);
2965 sink = prefixed_sink;
2970 sink = route->sink;
2975 wsink = dapm_wcache_lookup(dapm->wcache_sink, sink);
2985 if (!wsink && !(strcmp(w->name, sink))) {
2995 "ASoC: sink widget %s overwritten\n",
3039 sink, !wsink ? "(*)" : "");
3047 const char *sink;
3062 prefix, route->sink);
3063 sink = prefixed_sink;
3068 sink = route->sink;
3076 if (strcmp(p->sink->name, sink) != 0)
3084 struct snd_soc_dapm_widget *wsink = path->sink;
3098 source, sink);
3110 * Connects 2 dapm widgets together via a named audio path. The sink is
3165 struct snd_soc_dapm_widget *sink = dapm_find_widget(dapm,
3166 route->sink,
3177 if (!sink) {
3178 dev_err(dapm->dev, "ASoC: Unable to find sink %s for weak route\n",
3179 route->sink);
3185 route->source, route->sink);
3188 if (path->sink == sink) {
3196 route->source, route->sink);
3199 count, route->source, route->sink);
3836 struct snd_soc_dai *source, *sink;
3878 sink = path->sink->priv;
3880 ret = snd_soc_dai_startup(sink, substream);
3884 snd_soc_dai_activate(sink, substream->stream);
3934 sink = path->sink->priv;
3936 ret = snd_soc_dai_hw_params(sink, substream, params);
3940 dapm_update_dai_unlocked(substream, params, sink);
3959 struct snd_soc_dai *source, *sink;
3977 sink = path->sink->priv;
3979 snd_soc_dai_digital_mute(sink, 0, SNDRV_PCM_STREAM_PLAYBACK);
3986 sink = path->sink->priv;
3988 snd_soc_dai_digital_mute(sink, 1, SNDRV_PCM_STREAM_PLAYBACK);
4000 sink = path->sink->priv;
4001 snd_soc_dai_hw_free(sink, substream, 0);
4013 sink = path->sink->priv;
4014 snd_soc_dai_deactivate(sink, substream->stream);
4015 snd_soc_dai_shutdown(sink, substream, 0);
4283 struct snd_soc_dapm_widget *src, *sink;
4323 sink = w;
4326 sink = dai_w;
4328 dev_dbg(dai->dev, "%s -> %s\n", src->name, sink->name);
4329 snd_soc_dapm_add_path(w->dapm, src, sink, NULL, NULL);
4341 struct snd_soc_dapm_widget *sink)
4345 sink_dai->component->name, sink->name);
4352 snd_soc_dapm_add_path(dapm, src, sink, NULL, NULL);
4365 struct snd_soc_dapm_widget **sink[] = { &codec, &cpu };
4396 sink_dai[stream], *sink[stream]);