alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
To: broonie@kernel.org
Cc: alsa-devel@alsa-project.org, lars@metafoo.de,
	lgirdwood@gmail.com, patches@opensource.wolfsonmicro.com
Subject: [PATCH v3 1/5] ASoC: Correct typo in SOC_VALUE_ENUM_SINGLE macro
Date: Fri,  1 May 2015 12:37:23 +0100	[thread overview]
Message-ID: <1430480247-28753-1-git-send-email-ckeepax@opensource.wolfsonmicro.com> (raw)

xnitmes is clearly intended to be xnitems, but all other macros just
refer to this as xitems, so change it to that.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
---

Changes since v2:
 - Use snd_soc_enum_item_to_val to get zero value from mux to account for
   non-value enums
 - Improve handling in snd_soc_dapm_put_enum_double of the situation
   where the register and widget views of the control values don't match

Thanks,
Charles

 include/sound/soc.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/sound/soc.h b/include/sound/soc.h
index a73d855..45cfd69 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -190,8 +190,8 @@
 #define SOC_VALUE_ENUM_DOUBLE(xreg, xshift_l, xshift_r, xmask, xitems, xtexts, xvalues) \
 {	.reg = xreg, .shift_l = xshift_l, .shift_r = xshift_r, \
 	.mask = xmask, .items = xitems, .texts = xtexts, .values = xvalues}
-#define SOC_VALUE_ENUM_SINGLE(xreg, xshift, xmask, xnitmes, xtexts, xvalues) \
-	SOC_VALUE_ENUM_DOUBLE(xreg, xshift, xshift, xmask, xnitmes, xtexts, xvalues)
+#define SOC_VALUE_ENUM_SINGLE(xreg, xshift, xmask, xitems, xtexts, xvalues) \
+	SOC_VALUE_ENUM_DOUBLE(xreg, xshift, xshift, xmask, xitems, xtexts, xvalues)
 #define SOC_ENUM_SINGLE_VIRT(xitems, xtexts) \
 	SOC_ENUM_SINGLE(SND_SOC_NOPM, 0, xitems, xtexts)
 #define SOC_ENUM(xname, xenum) \
-- 
1.7.2.5

             reply	other threads:[~2015-05-01 11:45 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-01 11:37 Charles Keepax [this message]
2015-05-01 11:37 ` [PATCH v3 2/5] ASoC: dapm: Remove local OOM error message Charles Keepax
2015-05-04 12:04   ` Mark Brown
2015-05-01 11:37 ` [PATCH v3 3/5] ASoC: dapm: Append "Autodisable" to autodisable widget names Charles Keepax
2015-05-04 12:04   ` Mark Brown
2015-05-01 11:37 ` [PATCH v3 4/5] ASoC: dapm: Add support for autodisable mux controls Charles Keepax
2015-05-06 16:12   ` Mark Brown
2015-05-01 11:37 ` [PATCH v3 5/5] ASoC: arizona: Use auto disable muxes for routing Charles Keepax
2015-05-06 16:16   ` Mark Brown
2015-05-01 14:31 ` [PATCH v3 1/5] ASoC: Correct typo in SOC_VALUE_ENUM_SINGLE macro Lars-Peter Clausen
2015-05-04 12:03 ` Mark Brown
2015-05-04 14:23   ` Charles Keepax

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=1430480247-28753-1-git-send-email-ckeepax@opensource.wolfsonmicro.com \
    --to=ckeepax@opensource.wolfsonmicro.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=lars@metafoo.de \
    --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).