[alsa-devel][PATCH 3/3] ASoC: fsl_sai: Add support for Right-J mode
Nicolin Chen
nicoleotsuka at gmail.com
Thu Jan 22 05:53:20 AEDT 2015
On Tue, Jan 20, 2015 at 08:21:20PM +0800, Zidan Wang wrote:
> Add Right-J mode and set TCR5 FBT bit to let data right justify.
>
> Signed-off-by: Zidan Wang <zidan.wang at freescale.com>
> - if (sai->is_lsb_first)
> + if (sai->is_lsb_first && sai->is_right_j_mode)
> val_cr5 |= FSL_SAI_CR5_FBT(0);
Are you sure that FBT(0) is correct for right justified mode?
Because the original code is using FBT(0) for the lsb_first
situation and it shouldn't be right justified mode as default.
Nicolin
More information about the Linuxppc-dev
mailing list