From 193082c2b179054f1755eb6890c3864ca9936222 Mon Sep 17 00:00:00 2001 From: Arun Shamanna Lakshmi Date: Tue, 16 Sep 2014 23:17:59 -0700 Subject: [PATCH] ASoC: tegra-alt: Fix byte mask for AMX for 512fs Bug 1540137 Change-Id: I51d006721407e2bf66d2c9dd461ca228754a9079 Signed-off-by: Arun Shamanna Lakshmi Reviewed-on: http://git-master/r/499649 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Justin Kim (SW-TEGRA) --- sound/soc/tegra-alt/tegra210_amx_alt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/tegra-alt/tegra210_amx_alt.c b/sound/soc/tegra-alt/tegra210_amx_alt.c index 9fcdd197..363647ff 100644 --- a/sound/soc/tegra-alt/tegra210_amx_alt.c +++ b/sound/soc/tegra-alt/tegra210_amx_alt.c @@ -356,9 +356,9 @@ int tegra210_amx_set_channel_map(struct snd_soc_dai *dai, /* making byte_mask */ if (i > 32) - byte_mask2 |= 1 << (32 - i); + byte_mask2 |= (1 << (i - 32)); else - byte_mask1 |= 1 << i; + byte_mask1 |= (1 << i); } }