|
|
@@ -1145,8 +1145,8 @@ static __always_inline int is_connected_ep(struct snd_soc_dapm_widget *widget,
|
|
|
list_add_tail(&widget->work_list, list);
|
|
|
|
|
|
if (custom_stop_condition && custom_stop_condition(widget, dir)) {
|
|
|
- widget->endpoints[dir] = 1;
|
|
|
- return widget->endpoints[dir];
|
|
|
+ list = NULL;
|
|
|
+ custom_stop_condition = NULL;
|
|
|
}
|
|
|
|
|
|
if ((widget->is_ep & SND_SOC_DAPM_DIR_TO_EP(dir)) && widget->connected) {
|
|
|
@@ -1183,8 +1183,8 @@ static __always_inline int is_connected_ep(struct snd_soc_dapm_widget *widget,
|
|
|
*
|
|
|
* Optionally, can be supplied with a function acting as a stopping condition.
|
|
|
* This function takes the dapm widget currently being examined and the walk
|
|
|
- * direction as an arguments, it should return true if the walk should be
|
|
|
- * stopped and false otherwise.
|
|
|
+ * direction as an arguments, it should return true if widgets from that point
|
|
|
+ * in the graph onwards should not be added to the widget list.
|
|
|
*/
|
|
|
static int is_connected_output_ep(struct snd_soc_dapm_widget *widget,
|
|
|
struct list_head *list,
|