All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: Liam Girdwood <lgirdwood@gmail.com>
Cc: alsa-devel@alsa-project.org, linaro-kernel@lists.linaro.org,
	patches@opensource.wolfsonmicro.com,
	Mark Brown <broonie@linaro.org>
Subject: [PATCH 33/35] ASoC: wm8995: Convert to params_width()
Date: Thu, 31 Jul 2014 12:58:16 +0100	[thread overview]
Message-ID: <1406807898-5927-33-git-send-email-broonie@kernel.org> (raw)
In-Reply-To: <1406807898-5927-1-git-send-email-broonie@kernel.org>

From: Mark Brown <broonie@linaro.org>

The CODEC doesn't care how data is laid out in memory.

Signed-off-by: Mark Brown <broonie@linaro.org>
---
 sound/soc/codecs/wm8995.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/sound/soc/codecs/wm8995.c b/sound/soc/codecs/wm8995.c
index 863a2c38bcb5..cae4ac5a5730 100644
--- a/sound/soc/codecs/wm8995.c
+++ b/sound/soc/codecs/wm8995.c
@@ -1597,21 +1597,21 @@ static int wm8995_hw_params(struct snd_pcm_substream *substream,
 		return bclk_rate;
 
 	aif1 = 0;
-	switch (params_format(params)) {
-	case SNDRV_PCM_FORMAT_S16_LE:
+	switch (params_width(params)) {
+	case 16:
 		break;
-	case SNDRV_PCM_FORMAT_S20_3LE:
+	case 20:
 		aif1 |= (0x1 << WM8995_AIF1_WL_SHIFT);
 		break;
-	case SNDRV_PCM_FORMAT_S24_LE:
+	case 24:
 		aif1 |= (0x2 << WM8995_AIF1_WL_SHIFT);
 		break;
-	case SNDRV_PCM_FORMAT_S32_LE:
+	case 32:
 		aif1 |= (0x3 << WM8995_AIF1_WL_SHIFT);
 		break;
 	default:
 		dev_err(dai->dev, "Unsupported word length %u\n",
-			params_format(params));
+			params_width(params));
 		return -EINVAL;
 	}
 
-- 
2.0.1

  parent reply	other threads:[~2014-07-31 11:59 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-31 11:57 [PATCH 01/35] ASoC: wm8350: Convert to params_width() Mark Brown
2014-07-31 11:57 ` [PATCH 02/35] ASoC: wm8400: " Mark Brown
2014-07-31 11:57 ` [PATCH 03/35] ASoC: wm8510: " Mark Brown
2014-07-31 11:57 ` [PATCH 04/35] ASoC: wm8523: " Mark Brown
2014-07-31 11:57 ` [PATCH 05/35] ASoC: wm8580: " Mark Brown
2014-07-31 11:57 ` [PATCH 06/35] ASoC: wm8711: " Mark Brown
2014-07-31 11:57 ` [PATCH 07/35] ASoC: wm8728: " Mark Brown
2014-07-31 11:57 ` [PATCH 08/35] ASoC: wm8731: " Mark Brown
2014-07-31 11:57 ` [PATCH 09/35] ASoC: wm8737: " Mark Brown
2014-07-31 11:57 ` [PATCH 10/35] ASoC: wm8741: " Mark Brown
2014-07-31 11:57 ` [PATCH 11/35] ASoC: wm8750: " Mark Brown
2014-07-31 11:57 ` [PATCH 12/35] ASoC: wm8753: " Mark Brown
2014-07-31 11:57 ` [PATCH 13/35] ASoC: wm8770: " Mark Brown
2014-07-31 11:57 ` [PATCH 14/35] ASoC: wm8804: " Mark Brown
2014-07-31 11:57 ` [PATCH 15/35] ASoC: wm8900: " Mark Brown
2014-07-31 11:57 ` [PATCH 16/35] ASoC: wm8903: " Mark Brown
2014-07-31 11:58 ` [PATCH 17/35] ASoC: wm8904: " Mark Brown
2014-07-31 11:58 ` [PATCH 18/35] ASoC: wm8940: " Mark Brown
2014-07-31 11:58 ` [PATCH 19/35] ASoC: wm8955: " Mark Brown
2014-07-31 11:58 ` [PATCH 20/35] ASoC: wm8960: " Mark Brown
2014-07-31 11:58 ` [PATCH 21/35] ASoC: wm8961: " Mark Brown
2014-07-31 11:58 ` [PATCH 22/35] ASoC: wm8962: " Mark Brown
2014-07-31 11:58 ` [PATCH 23/35] ASoC: wm8971: " Mark Brown
2014-07-31 11:58 ` [PATCH 24/35] ASoC: wm8974: " Mark Brown
2014-07-31 11:58 ` [PATCH 25/35] ASoC: wm8978: " Mark Brown
2014-07-31 11:58 ` [PATCH 26/35] ASoC: wm8983: " Mark Brown
2014-07-31 11:58 ` [PATCH 27/35] ASoC: wm8985: " Mark Brown
2014-07-31 11:58 ` [PATCH 28/35] ASoC: wm8988: " Mark Brown
2014-07-31 11:58 ` [PATCH 29/35] ASoC: wm8990: " Mark Brown
2014-07-31 11:58 ` [PATCH 30/35] ASoC: wm8991: " Mark Brown
2014-07-31 11:58 ` [PATCH 31/35] ASoC: wm8993: " Mark Brown
2014-07-31 11:58 ` [PATCH 32/35] ASoC: wm8994: " Mark Brown
2014-07-31 11:58 ` Mark Brown [this message]
2014-07-31 11:58 ` [PATCH 34/35] ASoC: wm9081: " Mark Brown
2014-07-31 11:58 ` [PATCH 35/35] ASoC: wm9713: " Mark Brown
2014-07-31 15:15 ` [PATCH 01/35] ASoC: wm8350: " 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=1406807898-5927-33-git-send-email-broonie@kernel.org \
    --to=broonie@kernel.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@linaro.org \
    --cc=lgirdwood@gmail.com \
    --cc=linaro-kernel@lists.linaro.org \
    --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 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.