All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: [PATCH] ALSA: pcm: Mostly constify constraints
Date: Thu, 05 Jul 2012 12:41:05 +0200	[thread overview]
Message-ID: <s5h8veylcce.wl%tiwai@suse.de> (raw)
In-Reply-To: <20120705103527.GM4111@opensource.wolfsonmicro.com>

At Thu, 5 Jul 2012 11:35:28 +0100,
Mark Brown wrote:
> 
> On Thu, Jul 05, 2012 at 11:55:36AM +0200, Takashi Iwai wrote:
> 
> > The rule->private pointer isn't designed to be always const.  The data
> > purely depends on each rule function, thus whether it can be const or
> > not also depends on the rule, too.  For simple rules like list take
> > indeed the constant list.  But more complex rules may take a struct
> > containing variables changed on the fly (e.g. the max rate set by
> > user via control API).
> 
> Well, it's mostly const - it's const unless the rule itself starts
> fiddling with stuff which I'd have expected to be the exception rather
> than the rule.

Well, the only rule is that rule (function) rules the meaning of the
private pointer :)


Takashi

  reply	other threads:[~2012-07-05 10:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-04 17:35 [PATCH] ALSA: pcm: Mostly constify constraints Mark Brown
2012-07-05  7:06 ` Takashi Iwai
2012-07-05  9:28   ` Mark Brown
2012-07-05  9:55     ` Takashi Iwai
2012-07-05 10:35       ` Mark Brown
2012-07-05 10:41         ` Takashi Iwai [this message]
2012-07-05 11:14           ` Mark Brown

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=s5h8veylcce.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@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 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.