alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Piotr Stankiewicz <piotrs@opensource.wolfsonmicro.com>
To: Mark Brown <broonie@kernel.org>
Cc: alsa-devel@alsa-project.org, patches@opensource.wolfsonmicro.com,
	lgirdwood@gmail.com
Subject: Re: [PATCH v2 1/2] ASoC: dapm: support user-defined stop condition in dai_get_connected_widgets
Date: Fri, 13 May 2016 15:59:51 +0100	[thread overview]
Message-ID: <20160513145951.GA631@localhost.localdomain> (raw)
In-Reply-To: <20160513134320.GS22038@sirena.org.uk>

On Fri, May 13, 2016 at 02:43:20PM +0100, Mark Brown wrote:
> On Fri, May 13, 2016 at 02:01:43PM +0100, Piotr Stankiewicz wrote:
> > On Fri, May 13, 2016 at 01:09:05PM +0100, Mark Brown wrote:
> 
> > > This seems really weird and uncomfortable.  From the naming I would
> > > expect it to be a boolean function and I'm struggling to understand when
> > > it would be useful to report multiple endpoints on a widget (edge
> > > widgets normally being single objects).  The whole counting thing is
> > > mainly a combination of debugging and an artefact of the implementation.
> > > What's the motivation here?
> 
> > I don't have a strong reason for this. My motivation here was - since I
> > am adding support for stopping an arbitrary point, it could be that
> > someone would find a use in stopping the graph walk part-way through, and
> > still reporting the number of endpoints as normal. But, if that's
> > unlikely to be of use, I'm happy to make it a boolean function.
> 
> Why would the number of endpoints at the edge of the graph ever be
> something other than 0 or 1?

Now that I think about it, indeed it does not make sense. I'll respin my
pathes with custom_stop_condition returning a bool.

  reply	other threads:[~2016-05-13 15:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-14 13:03 [PATCH v2 1/2] ASoC: dapm: support user-defined stop condition in dai_get_connected_widgets Piotr Stankiewicz
2016-04-14 13:03 ` [PATCH v2 2/2] ASoC: dpcm: play nice with CODEC<->CODEC links Piotr Stankiewicz
2016-05-13 12:09 ` [PATCH v2 1/2] ASoC: dapm: support user-defined stop condition in dai_get_connected_widgets Mark Brown
2016-05-13 13:01   ` Piotr Stankiewicz
2016-05-13 13:43     ` Mark Brown
2016-05-13 14:59       ` Piotr Stankiewicz [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-05-04 12:28 Piotr Stankiewicz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160513145951.GA631@localhost.localdomain \
    --to=piotrs@opensource.wolfsonmicro.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=patches@opensource.wolfsonmicro.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).