From: Jassi Brar <jassi.brar@samsung.com>
To: alsa-devel@alsa-project.org
Cc: sbkim73@samsung.com, kgene.kim@samsung.com,
broonie@opensource.wolfsonmicro.com,
Jassi Brar <jassi.brar@samsung.com>,
lrg@slimlogic.co.uk
Subject: [PATCHv2] ASoC: WM8580: Debug BCLK and sample size
Date: Wed, 8 Dec 2010 16:50:24 +0900 [thread overview]
Message-ID: <1291794624-13982-1-git-send-email-jassi.brar@samsung.com> (raw)
In-Reply-To: <1291717387-11961-1-git-send-email-jassi.brar@samsung.com>
In case of SNDRV_PCM_FORMAT_S32_LE, we need to set
WM8580_AIF_LENGTH_32, rather than WM8580_AIF_LENGTH_24.
Also, the BCLK has to be 64fs, for sample size of 20, 24 and 32 bits.
Signed-off-by: Jassi Brar <jassi.brar@samsung.com>
---
sound/soc/codecs/wm8580.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/sound/soc/codecs/wm8580.c b/sound/soc/codecs/wm8580.c
index cb7765f..6296946 100644
--- a/sound/soc/codecs/wm8580.c
+++ b/sound/soc/codecs/wm8580.c
@@ -491,16 +491,13 @@ static int wm8580_paif_hw_params(struct snd_pcm_substream *substream,
paifa |= 0x8;
break;
case SNDRV_PCM_FORMAT_S20_3LE:
- paifa |= 0x10;
paifb |= WM8580_AIF_LENGTH_20;
break;
case SNDRV_PCM_FORMAT_S24_LE:
- paifa |= 0x10;
paifb |= WM8580_AIF_LENGTH_24;
break;
case SNDRV_PCM_FORMAT_S32_LE:
- paifa |= 0x10;
- paifb |= WM8580_AIF_LENGTH_24;
+ paifb |= WM8580_AIF_LENGTH_32;
break;
default:
return -EINVAL;
--
1.6.2.5
next prev parent reply other threads:[~2010-12-08 8:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-07 10:23 [PATCH] ASoC: WM8580: Debug BCLK and sample size Jassi Brar
2010-12-07 12:48 ` Liam Girdwood
2010-12-07 13:41 ` Jassi Brar
2010-12-08 7:50 ` Jassi Brar [this message]
2010-12-08 8:06 ` [PATCHv2] " 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=1291794624-13982-1-git-send-email-jassi.brar@samsung.com \
--to=jassi.brar@samsung.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=kgene.kim@samsung.com \
--cc=lrg@slimlogic.co.uk \
--cc=sbkim73@samsung.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