From: Takashi Iwai <tiwai@suse.de>
To: Lars-Peter Clausen <lars@metafoo.de>
Cc: alsa-devel@alsa-project.org, Vinod Koul <vinod.koul@intel.com>,
Mengdong Lin <mengdong.lin@intel.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Peter Ujfalusi <peter.ujfalusi@ti.com>,
Yang A Fang <yang.a.fang@intel.com>,
Mark Brown <broonie@kernel.org>,
Jarkko Nikula <jarkko.nikula@bitmer.com>
Subject: Re: [PATCH 00/18] ALSA: Add helper function to add single value constraint
Date: Mon, 19 Oct 2015 07:37:04 +0200 [thread overview]
Message-ID: <s5hzizfa073.wl-tiwai@suse.de> (raw)
In-Reply-To: <1445175573-11784-1-git-send-email-lars@metafoo.de>
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?
thanks,
Takashi
>
> - Lars
>
> Lars-Peter Clausen (18):
> ALSA: Add helper function to add single value constraint
> ALSA: korg1212: Use snd_pcm_hw_constraint_single()
> ALAA: lx6464es: Use snd_pcm_hw_constraint_single()
> ALSA: rme32: Use snd_pcm_hw_constraint_single()
> ALSA: rme96: Use snd_pcm_hw_constraint_single()
> ALSA: rme9652: Use snd_pcm_hw_constraint_single()
> ASoC: adav80x: Use snd_pcm_hw_constraint_single()
> ASoC: twl4030: Use snd_pcm_hw_constraint_single()
> ASoC: uda134x: Use snd_pcm_hw_constraint_single()
> ASoC: wl1273: Use snd_pcm_hw_constraint_single()
> ASoC: n810: Use snd_pcm_hw_constraint_single()
> ASoC: rx51: Use snd_pcm_hw_constraint_single()
> ASoC: pcm: Use snd_pcm_hw_constraint_single()
> ASoC: ux500: Use snd_pcm_hw_constraint_single()
> ASoC: bytcr_rt5640: Use snd_pcm_hw_constraint_single()
> ASoC: cht_bsw_max98090: Use snd_pcm_hw_constraint_single()
> ASoC: cht_bsw_rt5645: Use snd_pcm_hw_constraint_single()
> ASoC: cht_bsw_rt5672: Use snd_pcm_hw_constraint_single()
>
> include/sound/pcm.h | 16 ++++++++++++++++
> sound/pci/korg1212/korg1212.c | 8 +++++---
> sound/pci/lx6464es/lx6464es.c | 4 ++--
> sound/pci/rme32.c | 4 ++--
> sound/pci/rme96.c | 8 ++++----
> sound/pci/rme9652/hdspm.c | 9 ++++-----
> sound/soc/codecs/adav80x.c | 4 ++--
> sound/soc/codecs/twl4030.c | 13 +++++--------
> sound/soc/codecs/uda134x.c | 6 ++----
> sound/soc/codecs/wl1273.c | 9 ++++-----
> sound/soc/intel/boards/bytcr_rt5640.c | 14 ++------------
> sound/soc/intel/boards/cht_bsw_max98090_ti.c | 14 ++------------
> sound/soc/intel/boards/cht_bsw_rt5645.c | 14 ++------------
> sound/soc/intel/boards/cht_bsw_rt5672.c | 14 ++------------
> sound/soc/omap/n810.c | 3 +--
> sound/soc/omap/rx51.c | 3 +--
> sound/soc/soc-pcm.c | 10 ++++------
> sound/soc/ux500/ux500_msp_dai.c | 4 ++--
> 18 files changed, 62 insertions(+), 95 deletions(-)
>
> --
> 2.1.4
>
>
next prev parent reply other threads:[~2015-10-19 5:37 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-18 13:39 [PATCH 00/18] ALSA: Add helper function to add single value constraint Lars-Peter Clausen
2015-10-18 13:39 ` [PATCH 01/18] " Lars-Peter Clausen
2015-10-18 13:39 ` [PATCH 02/18] ALSA: korg1212: Use snd_pcm_hw_constraint_single() Lars-Peter Clausen
2015-10-18 13:39 ` [PATCH 03/18] ALSA: lx6464es: " Lars-Peter Clausen
2015-10-18 13:39 ` [PATCH 04/18] ALSA: rme32: " Lars-Peter Clausen
2015-10-18 13:39 ` [PATCH 05/18] ALSA: rme96: " Lars-Peter Clausen
2015-10-18 13:39 ` [PATCH 06/18] ALSA: rme9652: " Lars-Peter Clausen
2015-10-18 13:39 ` [PATCH 07/18] ASoC: adav80x: " Lars-Peter Clausen
2015-10-18 13:39 ` [PATCH 08/18] ASoC: twl4030: " Lars-Peter Clausen
2015-10-19 12:05 ` Peter Ujfalusi
2015-10-18 13:39 ` [PATCH 09/18] ASoC: uda134x: " Lars-Peter Clausen
2015-10-18 13:39 ` [PATCH 10/18] ASoC: wl1273: " Lars-Peter Clausen
2015-10-18 13:39 ` [PATCH 11/18] ASoC: n810: " Lars-Peter Clausen
2015-10-18 17:18 ` Jarkko Nikula
2015-10-18 13:39 ` [PATCH 12/18] ASoC: rx51: " Lars-Peter Clausen
2015-10-18 17:19 ` Jarkko Nikula
2015-10-18 13:39 ` [PATCH 13/18] ASoC: pcm: " Lars-Peter Clausen
2015-10-18 13:39 ` [PATCH 14/18] ASoC: ux500: " Lars-Peter Clausen
2015-10-18 13:39 ` [PATCH 15/18] ASoC: bytcr_rt5640: " Lars-Peter Clausen
2015-10-18 13:39 ` [PATCH 16/18] ASoC: cht_bsw_max98090: " Lars-Peter Clausen
2015-10-18 13:39 ` [PATCH 17/18] ASoC: cht_bsw_rt5645: " Lars-Peter Clausen
2015-10-18 13:39 ` [PATCH 18/18] ASoC: cht_bsw_rt5672: " Lars-Peter Clausen
2015-10-19 5:37 ` Takashi Iwai [this message]
2015-10-20 9:00 ` [PATCH 00/18] ALSA: Add helper function to add single value constraint Takashi Iwai
2015-10-21 12:16 ` 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=s5hzizfa073.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=jarkko.nikula@bitmer.com \
--cc=lars@metafoo.de \
--cc=lgirdwood@gmail.com \
--cc=mengdong.lin@intel.com \
--cc=peter.ujfalusi@ti.com \
--cc=vinod.koul@intel.com \
--cc=yang.a.fang@intel.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