[alsa-devel] [PATCH] ALSA: pcm: Mostly constify constraints

Mark Brown broonie at opensource.wolfsonmicro.com
Thu Jul 5 12:35:28 CEST 2012


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20120705/0122f45c/attachment.sig 


More information about the Alsa-devel mailing list