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 07/35] ASoC: wm8728: Convert to params_width()
Date: Thu, 31 Jul 2014 12:57:50 +0100 [thread overview]
Message-ID: <1406807898-5927-7-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/wm8728.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sound/soc/codecs/wm8728.c b/sound/soc/codecs/wm8728.c
index bac7fc28fe71..38ff826f589a 100644
--- a/sound/soc/codecs/wm8728.c
+++ b/sound/soc/codecs/wm8728.c
@@ -94,13 +94,13 @@ static int wm8728_hw_params(struct snd_pcm_substream *substream,
dac &= ~0x18;
- 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:
dac |= 0x10;
break;
- case SNDRV_PCM_FORMAT_S24_LE:
+ case 24:
dac |= 0x08;
break;
default:
--
2.0.1
next prev 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 ` Mark Brown [this message]
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 ` [PATCH 33/35] ASoC: wm8995: " Mark Brown
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-7-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 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).