Lines Matching refs:dir

47 #define snd_soc_dapm_for_each_direction(dir) \  argument
48 for ((dir) = SND_SOC_DAPM_DIR_IN; (dir) <= SND_SOC_DAPM_DIR_OUT; \
49 (dir)++)
207 struct snd_soc_dapm_widget *w, enum snd_soc_dapm_direction dir) in dapm_widget_invalidate_paths() argument
209 enum snd_soc_dapm_direction rdir = SND_SOC_DAPM_DIR_REVERSE(dir); in dapm_widget_invalidate_paths()
216 if (w->endpoints[dir] == -1) in dapm_widget_invalidate_paths()
220 w->endpoints[dir] = -1; in dapm_widget_invalidate_paths()
223 snd_soc_dapm_widget_for_each_path(w, dir, p) { in dapm_widget_invalidate_paths()
227 if (node->endpoints[dir] != -1) { in dapm_widget_invalidate_paths()
228 node->endpoints[dir] = -1; in dapm_widget_invalidate_paths()
1017 enum snd_soc_dapm_direction dir; in dapm_new_mux() local
1024 dir = SND_SOC_DAPM_DIR_OUT; in dapm_new_mux()
1028 dir = SND_SOC_DAPM_DIR_IN; in dapm_new_mux()
1042 if (list_empty(&w->edges[dir])) { in dapm_new_mux()
1051 snd_soc_dapm_widget_for_each_path(w, dir, path) { in dapm_new_mux()
1158 enum snd_soc_dapm_direction dir) in invalidate_paths_ep() argument
1160 enum snd_soc_dapm_direction rdir = SND_SOC_DAPM_DIR_REVERSE(dir); in invalidate_paths_ep()
1163 widget->endpoints[dir] = -1; in invalidate_paths_ep()
1174 invalidate_paths_ep(path->node[dir], dir); in invalidate_paths_ep()
1188 struct list_head *list, enum snd_soc_dapm_direction dir, in is_connected_ep() argument
1195 enum snd_soc_dapm_direction rdir = SND_SOC_DAPM_DIR_REVERSE(dir); in is_connected_ep()
1199 if (widget->endpoints[dir] >= 0) in is_connected_ep()
1200 return widget->endpoints[dir]; in is_connected_ep()
1208 if (custom_stop_condition && custom_stop_condition(widget, dir)) { in is_connected_ep()
1213 if ((widget->is_ep & SND_SOC_DAPM_DIR_TO_EP(dir)) && widget->connected) { in is_connected_ep()
1214 widget->endpoints[dir] = snd_soc_dapm_suspend_check(widget); in is_connected_ep()
1215 return widget->endpoints[dir]; in is_connected_ep()
1227 trace_snd_soc_dapm_path(widget, dir, path); in is_connected_ep()
1231 con += fn(path->node[dir], list, custom_stop_condition); in is_connected_ep()
1236 widget->endpoints[dir] = con; in is_connected_ep()
2095 enum snd_soc_dapm_direction dir, rdir; in dapm_widget_power_read_file() local
2132 snd_soc_dapm_for_each_direction(dir) { in dapm_widget_power_read_file()
2133 rdir = SND_SOC_DAPM_DIR_REVERSE(dir); in dapm_widget_power_read_file()
2134 snd_soc_dapm_widget_for_each_path(w, dir, p) { in dapm_widget_power_read_file()
2497 enum snd_soc_dapm_direction dir; in snd_soc_dapm_free_widget() local
2509 snd_soc_dapm_for_each_direction(dir) { in snd_soc_dapm_free_widget()
2510 snd_soc_dapm_widget_for_each_path_safe(w, dir, p, next_p) in snd_soc_dapm_free_widget()
2687 int dir = substream->stream; in dapm_update_dai_unlocked() local
2693 w = snd_soc_dai_get_widget(dai, dir); in dapm_update_dai_unlocked()
2699 dir == SNDRV_PCM_STREAM_PLAYBACK ? "playback" : "capture"); in dapm_update_dai_unlocked()
2754 enum snd_soc_dapm_direction dir; in dapm_update_widget_flags() local
2791 snd_soc_dapm_for_each_direction(dir) { in dapm_update_widget_flags()
2792 if (!list_empty(&w->edges[dir])) in dapm_update_widget_flags()
2793 ep |= SND_SOC_DAPM_DIR_TO_EP(dir); in dapm_update_widget_flags()
2853 enum snd_soc_dapm_direction dir; in snd_soc_dapm_add_path() local
2930 snd_soc_dapm_for_each_direction(dir) in snd_soc_dapm_add_path()
2931 list_add(&path->list_node[dir], &path->node[dir]->edges[dir]); in snd_soc_dapm_add_path()
2933 snd_soc_dapm_for_each_direction(dir) { in snd_soc_dapm_add_path()
2934 dapm_update_widget_flags(path->node[dir]); in snd_soc_dapm_add_path()
2935 dapm_mark_dirty(path->node[dir], "Route added"); in snd_soc_dapm_add_path()
3630 enum snd_soc_dapm_direction dir; in snd_soc_dapm_new_control_unlocked() local
3757 snd_soc_dapm_for_each_direction(dir) { in snd_soc_dapm_new_control_unlocked()
3758 INIT_LIST_HEAD(&w->edges[dir]); in snd_soc_dapm_new_control_unlocked()
3759 w->endpoints[dir] = -1; in snd_soc_dapm_new_control_unlocked()