Lines Matching full:sink
55 struct snd_soc_dapm_widget *sink));
243 * or activated with the widget as the sink.
259 * have changed. E.g. if the sink state of a widget changes or a path is added
272 * Resets the cached number of inputs for the sink of the path and the cached
294 dapm_widget_invalidate_input_paths(p->sink); in dapm_path_invalidate()
295 if (p->sink->endpoints[SND_SOC_DAPM_DIR_OUT] != 0) in dapm_path_invalidate()
783 p->sink->kcontrol_news[i].private_value; in dapm_set_mixer_path_status()
792 val = soc_dapm_read(p->sink->dapm, reg); in dapm_set_mixer_path_status()
807 val = soc_dapm_read(p->sink->dapm, mc->rreg); in dapm_set_mixer_path_status()
833 for (i = 0; i < path->sink->num_kcontrols; i++) { in dapm_connect_mixer()
834 if (!strcmp(control_name, path->sink->kcontrol_news[i].name)) { in dapm_connect_mixer()
835 path->name = path->sink->kcontrol_news[i].name; in dapm_connect_mixer()
1463 !path->connected(path->source, path->sink)) in dapm_supply_check_power()
1466 if (dapm_widget_power_check(path->sink)) in dapm_supply_check_power()
1897 dapm_widget_set_peer_power(path->sink, power, in dapm_widget_set_power()
2143 if (p->connected && !p->connected(p->source, p->sink)) in dapm_widget_power_read_file()
2266 dapm_mark_dirty(path->sink, reason); in soc_dapm_connect_path()
2490 * remove source and sink paths associated to this widget. in snd_soc_dapm_free_widget()
2492 * source and sink widgets so that path is removed only once. in snd_soc_dapm_free_widget()
2629 p->source->name, p->sink->name); in dapm_update_dai_chan()
2658 ret = dapm_update_dai_chan(p, p->sink, channels); in dapm_update_dai_unlocked()
2688 * dapm_update_widget_flags() - Re-compute widget sink and source flags
2719 /* On a fully routed card a output is never a sink */ in dapm_update_widget_flags()
2724 if (p->sink->id == snd_soc_dapm_spk || in dapm_update_widget_flags()
2725 p->sink->id == snd_soc_dapm_hp || in dapm_update_widget_flags()
2726 p->sink->id == snd_soc_dapm_line || in dapm_update_widget_flags()
2727 p->sink->id == snd_soc_dapm_input) { in dapm_update_widget_flags()
2748 struct snd_soc_dapm_widget *source, struct snd_soc_dapm_widget *sink, in snd_soc_dapm_check_dynamic_path() argument
2765 switch (sink->id) { in snd_soc_dapm_check_dynamic_path()
2779 source->name, control, sink->name); in snd_soc_dapm_check_dynamic_path()
2784 source->name, control, sink->name); in snd_soc_dapm_check_dynamic_path()
2795 struct snd_soc_dapm_widget *sink)) in snd_soc_dapm_add_path() argument
2898 const char *sink; in snd_soc_dapm_add_route() local
2910 prefix, route->sink); in snd_soc_dapm_add_route()
2911 sink = prefixed_sink; in snd_soc_dapm_add_route()
2916 sink = route->sink; in snd_soc_dapm_add_route()
2921 wsink = dapm_wcache_lookup(&dapm->path_sink_cache, sink); in snd_soc_dapm_add_route()
2931 if (!wsink && !(strcmp(w->name, sink))) { in snd_soc_dapm_add_route()
2941 "ASoC: sink widget %s overwritten\n", in snd_soc_dapm_add_route()
2971 dev_err(dapm->dev, "ASoC: no sink widget found for %s\n", in snd_soc_dapm_add_route()
2972 route->sink); in snd_soc_dapm_add_route()
2988 source, route->control, sink); in snd_soc_dapm_add_route()
2997 const char *sink; in snd_soc_dapm_del_route() local
3012 prefix, route->sink); in snd_soc_dapm_del_route()
3013 sink = prefixed_sink; in snd_soc_dapm_del_route()
3018 sink = route->sink; in snd_soc_dapm_del_route()
3026 if (strcmp(p->sink->name, sink) != 0) in snd_soc_dapm_del_route()
3034 wsink = path->sink; in snd_soc_dapm_del_route()
3048 source, sink); in snd_soc_dapm_del_route()
3060 * Connects 2 dapm widgets together via a named audio path. The sink is
3079 route->sink); in snd_soc_dapm_add_routes()
3120 struct snd_soc_dapm_widget *sink = dapm_find_widget(dapm, in snd_soc_dapm_weak_route() local
3121 route->sink, in snd_soc_dapm_weak_route()
3132 if (!sink) { in snd_soc_dapm_weak_route()
3133 dev_err(dapm->dev, "ASoC: Unable to find sink %s for weak route\n", in snd_soc_dapm_weak_route()
3134 route->sink); in snd_soc_dapm_weak_route()
3140 route->source, route->sink); in snd_soc_dapm_weak_route()
3143 if (path->sink == sink) { in snd_soc_dapm_weak_route()
3151 route->source, route->sink); in snd_soc_dapm_weak_route()
3154 count, route->source, route->sink); in snd_soc_dapm_weak_route()
3797 struct snd_soc_dai *source, *sink; in snd_soc_dai_link_event_pre_pmu() local
3832 sink = path->sink->priv; in snd_soc_dai_link_event_pre_pmu()
3834 ret = snd_soc_dai_startup(sink, substream); in snd_soc_dai_link_event_pre_pmu()
3836 dev_err(sink->dev, in snd_soc_dai_link_event_pre_pmu()
3840 snd_soc_dai_activate(sink, substream->stream); in snd_soc_dai_link_event_pre_pmu()
3891 sink = path->sink->priv; in snd_soc_dai_link_event_pre_pmu()
3893 ret = snd_soc_dai_hw_params(sink, substream, params); in snd_soc_dai_link_event_pre_pmu()
3897 dapm_update_dai_unlocked(substream, params, sink); in snd_soc_dai_link_event_pre_pmu()
3914 struct snd_soc_dai *source, *sink; in snd_soc_dai_link_event() local
3932 sink = path->sink->priv; in snd_soc_dai_link_event()
3934 ret = snd_soc_dai_digital_mute(sink, 0, in snd_soc_dai_link_event()
3937 dev_warn(sink->dev, in snd_soc_dai_link_event()
3945 sink = path->sink->priv; in snd_soc_dai_link_event()
3947 ret = snd_soc_dai_digital_mute(sink, 1, in snd_soc_dai_link_event()
3950 dev_warn(sink->dev, in snd_soc_dai_link_event()
3963 sink = path->sink->priv; in snd_soc_dai_link_event()
3964 snd_soc_dai_hw_free(sink, substream); in snd_soc_dai_link_event()
3976 sink = path->sink->priv; in snd_soc_dai_link_event()
3977 snd_soc_dai_deactivate(sink, substream->stream); in snd_soc_dai_link_event()
3978 snd_soc_dai_shutdown(sink, substream, 0); in snd_soc_dai_link_event()
4238 struct snd_soc_dapm_widget *src, *sink; in snd_soc_dapm_link_dai_widgets() local
4278 sink = w; in snd_soc_dapm_link_dai_widgets()
4281 sink = dai_w; in snd_soc_dapm_link_dai_widgets()
4283 dev_dbg(dai->dev, "%s -> %s\n", src->name, sink->name); in snd_soc_dapm_link_dai_widgets()
4284 snd_soc_dapm_add_path(w->dapm, src, sink, NULL, NULL); in snd_soc_dapm_link_dai_widgets()
4296 struct snd_soc_dapm_widget *sink) in dapm_connect_dai_routes() argument
4300 sink_dai->component->name, sink->name); in dapm_connect_dai_routes()
4307 snd_soc_dapm_add_path(dapm, src, sink, NULL, NULL); in dapm_connect_dai_routes()