ASoC: cs4349: Fix setting digital interface format
authorAxel Lin <axel.lin@ingics.com>
Sun, 19 Jul 2015 14:42:49 +0000 (22:42 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 20 Jul 2015 17:16:16 +0000 (18:16 +0100)
commitda304ac37efc1900892b5067c65f0ab8acfe3955
tree743bd49ec65e1f2370f74c603b7b57c14cc6577a
parentdedae86d4da6c88ec2105e0bd038acc57c203bca
ASoC: cs4349: Fix setting digital interface format

Mode Control - Register 02h

Digital Interface Format (DIF[2:0]) Bits 6-4

DIF2    DIF1    DIF0    Description
0       0       0       Left-Justified, up to 24-bit data
0       0       1       I²S, up to 24-bit data
0       1       0       Right-Justified, 16-bit data
0       1       1       Right-Justified, 24-bit data
1       0       0       TDM slot 0
1       0       1       TDM slot 1
1       1       0       TDM slot 2
1       1       1       TDM slot 3

The DIF_MASK is 0x70, so current code does not correctly set the DIFx
setting. Fix it.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs4349.c
This page took 0.025223 seconds and 5 git commands to generate.