Loading include/sound/soc-dapm.h +1 −0 Original line number Diff line number Diff line Loading @@ -488,6 +488,7 @@ struct snd_soc_dapm_path { /* status */ u32 connect:1; /* source and sink widgets are connected */ u32 walked:1; /* path has been walked */ u32 walking:1; /* path is in the process of being walked */ u32 weak:1; /* path ignored for power management */ int (*connected)(struct snd_soc_dapm_widget *source, Loading sound/soc/soc-dapm.c +14 −0 Original line number Diff line number Diff line Loading @@ -831,6 +831,9 @@ static int is_connected_output_ep(struct snd_soc_dapm_widget *widget, if (path->weak) continue; if (path->walking) return 1; if (path->walked) continue; Loading @@ -838,6 +841,7 @@ static int is_connected_output_ep(struct snd_soc_dapm_widget *widget, if (path->sink && path->connect) { path->walked = 1; path->walking = 1; /* do we need to add this widget to the list ? */ if (list) { Loading @@ -847,11 +851,14 @@ static int is_connected_output_ep(struct snd_soc_dapm_widget *widget, dev_err(widget->dapm->dev, "ASoC: could not add widget %s\n", widget->name); path->walking = 0; return con; } } con += is_connected_output_ep(path->sink, list); path->walking = 0; } } Loading Loading @@ -931,6 +938,9 @@ static int is_connected_input_ep(struct snd_soc_dapm_widget *widget, if (path->weak) continue; if (path->walking) return 1; if (path->walked) continue; Loading @@ -938,6 +948,7 @@ static int is_connected_input_ep(struct snd_soc_dapm_widget *widget, if (path->source && path->connect) { path->walked = 1; path->walking = 1; /* do we need to add this widget to the list ? */ if (list) { Loading @@ -947,11 +958,14 @@ static int is_connected_input_ep(struct snd_soc_dapm_widget *widget, dev_err(widget->dapm->dev, "ASoC: could not add widget %s\n", widget->name); path->walking = 0; return con; } } con += is_connected_input_ep(path->source, list); path->walking = 0; } } Loading Loading
include/sound/soc-dapm.h +1 −0 Original line number Diff line number Diff line Loading @@ -488,6 +488,7 @@ struct snd_soc_dapm_path { /* status */ u32 connect:1; /* source and sink widgets are connected */ u32 walked:1; /* path has been walked */ u32 walking:1; /* path is in the process of being walked */ u32 weak:1; /* path ignored for power management */ int (*connected)(struct snd_soc_dapm_widget *source, Loading
sound/soc/soc-dapm.c +14 −0 Original line number Diff line number Diff line Loading @@ -831,6 +831,9 @@ static int is_connected_output_ep(struct snd_soc_dapm_widget *widget, if (path->weak) continue; if (path->walking) return 1; if (path->walked) continue; Loading @@ -838,6 +841,7 @@ static int is_connected_output_ep(struct snd_soc_dapm_widget *widget, if (path->sink && path->connect) { path->walked = 1; path->walking = 1; /* do we need to add this widget to the list ? */ if (list) { Loading @@ -847,11 +851,14 @@ static int is_connected_output_ep(struct snd_soc_dapm_widget *widget, dev_err(widget->dapm->dev, "ASoC: could not add widget %s\n", widget->name); path->walking = 0; return con; } } con += is_connected_output_ep(path->sink, list); path->walking = 0; } } Loading Loading @@ -931,6 +938,9 @@ static int is_connected_input_ep(struct snd_soc_dapm_widget *widget, if (path->weak) continue; if (path->walking) return 1; if (path->walked) continue; Loading @@ -938,6 +948,7 @@ static int is_connected_input_ep(struct snd_soc_dapm_widget *widget, if (path->source && path->connect) { path->walked = 1; path->walking = 1; /* do we need to add this widget to the list ? */ if (list) { Loading @@ -947,11 +958,14 @@ static int is_connected_input_ep(struct snd_soc_dapm_widget *widget, dev_err(widget->dapm->dev, "ASoC: could not add widget %s\n", widget->name); path->walking = 0; return con; } } con += is_connected_input_ep(path->source, list); path->walking = 0; } } Loading