From: Michal Bachraty <michal.bachraty@streamunlimited.com>
To: tiwai@suse.de, perex@perex.cz
Cc: lrg@ti.com, linux-kernel@vger.kernel.org,
alsa-devel@alsa-project.org, broonie@opensource.wolfsonmicro.com,
Michal Bachraty <michal.bachraty@streamunlimited.com>
Subject: [PATCH] ALSA: ASoC: McASP: Fix data rotation for playback. Enables 24bit audio playback
Date: Tue, 15 Jan 2013 15:41:00 +0100 [thread overview]
Message-ID: <1358260860-10370-1-git-send-email-michal.bachraty@streamunlimited.com> (raw)
Signed-off-by: Michal Bachraty <michal.bachraty@streamunlimited.com>
---
sound/soc/davinci/davinci-mcasp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/davinci-mcasp.c
index 13f8d73..a03bece 100644
--- a/sound/soc/davinci/davinci-mcasp.c
+++ b/sound/soc/davinci/davinci-mcasp.c
@@ -626,7 +626,7 @@ static int davinci_config_channel_size(struct davinci_audio_dev *dev,
int word_length)
{
u32 fmt;
- u32 rotate = (32 - word_length) / 4;
+ u32 rotate = (word_length / 4) & 0x7;
u32 mask = (1ULL << word_length) - 1;
/*
--
1.7.9.5
next reply other threads:[~2013-01-15 14:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-15 14:41 Michal Bachraty [this message]
2013-01-18 8:22 ` [alsa-devel] " Hebbar, Gururaja
2013-01-18 8:43 ` Michal Bachraty
2013-01-18 8:48 ` Hebbar, Gururaja
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=1358260860-10370-1-git-send-email-michal.bachraty@streamunlimited.com \
--to=michal.bachraty@streamunlimited.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lrg@ti.com \
--cc=perex@perex.cz \
--cc=tiwai@suse.de \
/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
all inboxes | Powered by JetHome®