Lines Matching full: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); in dapm_path_invalidate()
297 if (p->sink->endpoints[SND_SOC_DAPM_DIR_OUT] != 0) in dapm_path_invalidate()
788 p->sink->kcontrol_news[i].private_value; in dapm_set_mixer_path_status()
796 unsigned int val = soc_dapm_read(p->sink->dapm, reg); in dapm_set_mixer_path_status()
812 val = soc_dapm_read(p->sink->dapm, mc->rreg); in dapm_set_mixer_path_status()
838 for (i = 0; i < path->sink->num_kcontrols; i++) { in dapm_connect_mixer()
839 if (!strcmp(control_name, path->sink->kcontrol_news[i].name)) { in dapm_connect_mixer()
840 path->name = path->sink->kcontrol_news[i].name; in dapm_connect_mixer()
1470 !path->connected(path->source, path->sink)) in dapm_supply_check_power()
1473 if (dapm_widget_power_check(path->sink)) in dapm_supply_check_power()
1904 dapm_widget_set_peer_power(path->sink, power, in dapm_widget_set_power()
2150 if (p->connected && !p->connected(p->source, p->sink)) in dapm_widget_power_read_file()
2273 dapm_mark_dirty(path->sink, reason); in soc_dapm_connect_path()
2503 * remove source and sink paths associated to this widget. in snd_soc_dapm_free_widget()
2505 * source and sink widgets so that path is removed only once. in snd_soc_dapm_free_widget()
2673 p->source->name, p->sink->name); in dapm_update_dai_chan()
2702 ret = dapm_update_dai_chan(p, p->sink, channels); in dapm_update_dai_unlocked()
2732 * dapm_update_widget_flags() - Re-compute widget sink and source flags
2763 /* On a fully routed card a output is never a sink */ in dapm_update_widget_flags()
2768 if (p->sink->id == snd_soc_dapm_spk || in dapm_update_widget_flags()
2769 p->sink->id == snd_soc_dapm_hp || in dapm_update_widget_flags()
2770 p->sink->id == snd_soc_dapm_line || in dapm_update_widget_flags()
2771 p->sink->id == snd_soc_dapm_input) { in dapm_update_widget_flags()
2792 struct snd_soc_dapm_widget *source, struct snd_soc_dapm_widget *sink, in snd_soc_dapm_check_dynamic_path() argument
2809 switch (sink->id) { in snd_soc_dapm_check_dynamic_path()
2823 source->name, control, sink->name); in snd_soc_dapm_check_dynamic_path()
2828 source->name, control, sink->name); in snd_soc_dapm_check_dynamic_path()
2839 struct snd_soc_dapm_widget *sink)) in snd_soc_dapm_add_path() argument
2942 const char *sink; in snd_soc_dapm_add_route() local
2954 prefix, route->sink); in snd_soc_dapm_add_route()
2955 sink = prefixed_sink; in snd_soc_dapm_add_route()
2960 sink = route->sink; in snd_soc_dapm_add_route()
2965 wsink = dapm_wcache_lookup(&dapm->path_sink_cache, sink); in snd_soc_dapm_add_route()
2975 if (!wsink && !(strcmp(w->name, sink))) { in snd_soc_dapm_add_route()
2985 "ASoC: sink widget %s overwritten\n", in snd_soc_dapm_add_route()
3015 dev_err(dapm->dev, "ASoC: no sink widget found for %s\n", in snd_soc_dapm_add_route()
3016 route->sink); in snd_soc_dapm_add_route()
3032 source, route->control, sink); in snd_soc_dapm_add_route()
3040 const char *sink; in snd_soc_dapm_del_route() local
3055 prefix, route->sink); in snd_soc_dapm_del_route()
3056 sink = prefixed_sink; in snd_soc_dapm_del_route()
3061 sink = route->sink; in snd_soc_dapm_del_route()
3069 if (strcmp(p->sink->name, sink) != 0) in snd_soc_dapm_del_route()
3077 struct snd_soc_dapm_widget *wsink = path->sink; in snd_soc_dapm_del_route()
3091 source, sink); in snd_soc_dapm_del_route()
3103 * Connects 2 dapm widgets together via a named audio path. The sink is
3122 route->sink); in snd_soc_dapm_add_routes()
3163 struct snd_soc_dapm_widget *sink = dapm_find_widget(dapm, in snd_soc_dapm_weak_route() local
3164 route->sink, in snd_soc_dapm_weak_route()
3175 if (!sink) { in snd_soc_dapm_weak_route()
3176 dev_err(dapm->dev, "ASoC: Unable to find sink %s for weak route\n", in snd_soc_dapm_weak_route()
3177 route->sink); in snd_soc_dapm_weak_route()
3183 route->source, route->sink); in snd_soc_dapm_weak_route()
3186 if (path->sink == sink) { in snd_soc_dapm_weak_route()
3194 route->source, route->sink); in snd_soc_dapm_weak_route()
3197 count, route->source, route->sink); in snd_soc_dapm_weak_route()
3836 struct snd_soc_dai *source, *sink; in snd_soc_dai_link_event_pre_pmu() local
3878 sink = path->sink->priv; in snd_soc_dai_link_event_pre_pmu()
3880 ret = snd_soc_dai_startup(sink, substream); in snd_soc_dai_link_event_pre_pmu()
3884 snd_soc_dai_activate(sink, substream->stream); in snd_soc_dai_link_event_pre_pmu()
3934 sink = path->sink->priv; in snd_soc_dai_link_event_pre_pmu()
3936 ret = snd_soc_dai_hw_params(sink, substream, params); in snd_soc_dai_link_event_pre_pmu()
3940 dapm_update_dai_unlocked(substream, params, sink); in snd_soc_dai_link_event_pre_pmu()
3959 struct snd_soc_dai *source, *sink; in snd_soc_dai_link_event() local
3977 sink = path->sink->priv; in snd_soc_dai_link_event()
3979 snd_soc_dai_digital_mute(sink, 0, SNDRV_PCM_STREAM_PLAYBACK); in snd_soc_dai_link_event()
3986 sink = path->sink->priv; in snd_soc_dai_link_event()
3988 snd_soc_dai_digital_mute(sink, 1, SNDRV_PCM_STREAM_PLAYBACK); in snd_soc_dai_link_event()
4000 sink = path->sink->priv; in snd_soc_dai_link_event()
4001 snd_soc_dai_hw_free(sink, substream, 0); in snd_soc_dai_link_event()
4013 sink = path->sink->priv; in snd_soc_dai_link_event()
4014 snd_soc_dai_deactivate(sink, substream->stream); in snd_soc_dai_link_event()
4015 snd_soc_dai_shutdown(sink, substream, 0); in snd_soc_dai_link_event()
4283 struct snd_soc_dapm_widget *src, *sink; in snd_soc_dapm_link_dai_widgets() local
4323 sink = w; in snd_soc_dapm_link_dai_widgets()
4326 sink = dai_w; in snd_soc_dapm_link_dai_widgets()
4328 dev_dbg(dai->dev, "%s -> %s\n", src->name, sink->name); in snd_soc_dapm_link_dai_widgets()
4329 snd_soc_dapm_add_path(w->dapm, src, sink, NULL, NULL); in snd_soc_dapm_link_dai_widgets()
4341 struct snd_soc_dapm_widget *sink) in dapm_connect_dai_routes() argument
4345 sink_dai->component->name, sink->name); in dapm_connect_dai_routes()
4352 snd_soc_dapm_add_path(dapm, src, sink, NULL, NULL); in dapm_connect_dai_routes()