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,
	Mark Brown <broonie@linaro.org>
Subject: [PATCH 5/8] ASoC: da7213: Use params_width() rather than memory format
Date: Wed,  8 Jan 2014 19:52:00 +0000	[thread overview]
Message-ID: <1389210723-16535-5-git-send-email-broonie@kernel.org> (raw)
In-Reply-To: <1389210723-16535-1-git-send-email-broonie@kernel.org>

From: Mark Brown <broonie@linaro.org>

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

diff --git a/sound/soc/codecs/da7213.c b/sound/soc/codecs/da7213.c
index 4a6f1daf911f..0c77e7ad7423 100644
--- a/sound/soc/codecs/da7213.c
+++ b/sound/soc/codecs/da7213.c
@@ -1067,17 +1067,17 @@ static int da7213_hw_params(struct snd_pcm_substream *substream,
 	u8 fs;
 
 	/* Set DAI format */
-	switch (params_format(params)) {
-	case SNDRV_PCM_FORMAT_S16_LE:
+	switch (params_width(params)) {
+	case 16:
 		dai_ctrl |= DA7213_DAI_WORD_LENGTH_S16_LE;
 		break;
-	case SNDRV_PCM_FORMAT_S20_3LE:
+	case 20:
 		dai_ctrl |= DA7213_DAI_WORD_LENGTH_S20_LE;
 		break;
-	case SNDRV_PCM_FORMAT_S24_LE:
+	case 24:
 		dai_ctrl |= DA7213_DAI_WORD_LENGTH_S24_LE;
 		break;
-	case SNDRV_PCM_FORMAT_S32_LE:
+	case 32:
 		dai_ctrl |= DA7213_DAI_WORD_LENGTH_S32_LE;
 		break;
 	default:
-- 
1.8.5.2

  parent reply	other threads:[~2014-01-08 19:55 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-08 19:51 [PATCH 1/8] ASoC: alc5623: Use params_width() rather than memory format Mark Brown
2014-01-08 19:51 ` [PATCH 2/8] ASoC: alc5632: " Mark Brown
2014-01-09  4:55   ` Leon Romanovsky
2014-01-09 10:16     ` Lars-Peter Clausen
2014-01-09 10:33     ` Mark Brown
2014-01-10 13:44       ` Leon Romanovsky
2014-01-10 13:51         ` Takashi Iwai
2014-01-08 19:51 ` [PATCH 3/8] ASoC: cs42l51: " Mark Brown
2014-01-08 19:51 ` [PATCH 4/8] ASoC: da7210: " Mark Brown
2014-01-08 19:52 ` Mark Brown [this message]
2014-01-08 19:52 ` [PATCH 6/8] ASoC: da732x: " Mark Brown
2014-01-08 19:52 ` [PATCH 7/8] ASoC: da9055: " Mark Brown
2014-01-08 19:52 ` [PATCH 8/8] ASoC: isabelle: " 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=1389210723-16535-5-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 \
    /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.