All of lore.kernel.org
 help / color / mirror / Atom feed
* dapm_widget_power_read_file() symmetry issue?
@ 2012-06-04 22:39 Stephen Warren
  2012-06-05 16:46 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Warren @ 2012-06-04 22:39 UTC (permalink / raw)
  To: Mark Brown, Liam Girdwood; +Cc: alsa-devel@alsa-project.org

In dapm_widget_power_read_file(), there is first:

> 	list_for_each_entry(p, &w->sources, list_sink) {
> 		if (p->connected && !p->connected(w, p->sink))
> 			continue;

then right after that:

> 	list_for_each_entry(p, &w->sinks, list_source) {
> 		if (p->connected && !p->connected(w, p->sink))
> 			continue;

Should that last call to p->connected() be p->connected(p->source, w),
since the function's parameters are (source, sink)?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-06-05 16:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-04 22:39 dapm_widget_power_read_file() symmetry issue? Stephen Warren
2012-06-05 16:46 ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.