From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757245Ab3AOOmz (ORCPT ); Tue, 15 Jan 2013 09:42:55 -0500 Received: from mailbackup.inode.at ([213.229.60.24]:33270 "EHLO mailbackup.inode.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755810Ab3AOOmy (ORCPT ); Tue, 15 Jan 2013 09:42:54 -0500 From: Michal Bachraty 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 Subject: [PATCH] ALSA: ASoC: McASP: Fix data rotation for playback. Enables 24bit audio playback Date: Tue, 15 Jan 2013 15:41:00 +0100 Message-Id: <1358260860-10370-1-git-send-email-michal.bachraty@streamunlimited.com> X-Mailer: git-send-email 1.7.9.5 X-Authenticated-Sender: michal.bachraty@streamunlimited.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Michal Bachraty --- 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