From: Takashi Iwai Subject: Re: [PATCH 00/18] ALSA: Add helper function to add single value constraint Date: Tue, 20 Oct 2015 11:00:15 +0200 Message-ID: References: <1445175573-11784-1-git-send-email-lars@metafoo.de> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id C3BCD26621A for ; Tue, 20 Oct 2015 11:00:16 +0200 (CEST) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Lars-Peter Clausen Cc: alsa-devel@alsa-project.org, Vinod Koul , Mengdong Lin , Liam Girdwood , Peter Ujfalusi , Yang A Fang , Mark Brown , Jarkko Nikula List-Id: alsa-devel@alsa-project.org On Mon, 19 Oct 2015 07:37:04 +0200, Takashi Iwai wrote: > > On Sun, 18 Oct 2015 15:39:15 +0200, > Lars-Peter Clausen wrote: > > > > Apologies if you got this series twice, forgot to Cc the mailinglist on > > the first try. > > > > This series introduces a new helper function which can be used to constrain > > a configuration parameter to a single. So far the recommended and most > > efficient way to do this was to set a min-max constraint with the same > > value for minimum and maximum. It is not necessarily immediately obvious > > though that this is the right way to do things and some driver have come up > > with different ways to achieve the same effect, e.g. by installing a list > > constraint with a single item. This is less efficient since list > > constraints are dynamic constraints which needed to be re-evaluated > > multiple times at runtime while a min-max constraint is a static > > constraint. > > > > The function introduced in this patch series is called > > snd_pcm_hw_constraint_single() which hopefully is semantically more > > expressive and makes it clear that this is the function to use when setting > > a single value constraint. > > > > All existing drivers that want to set a single value constraint are update > > to use the new helper function. > > Looks good to me. I suppose I'd take all these (including ASoC ones) > through my tree as it adds a new API function. Mark are you OK with > it? I created topic/hw-constraint-single branch in sound git tree containing all these patches. I'm going to keep it for a while for further acks and merge later. thanks, Takashi