ASoC: cs4265: Fix setting dai format for Left/Right Justified
authorAxel Lin <axel.lin@ingics.com>
Sun, 19 Jul 2015 04:09:16 +0000 (12:09 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 24 Jul 2015 17:30:46 +0000 (18:30 +0100)
commitbffc4496886683fac86d31e5d0cf9a22f8044e3d
treec55ee81a40b13a440ca5d58b5d97eb4729e3c8a2
parentbc0195aad0daa2ad5b0d76cce22b167bc3435590
ASoC: cs4265: Fix setting dai format for Left/Right Justified

The settings in current code does not match the datasheet, fix it.

DAC Control - Address 03h

DAC Digital Interface Format (Bits 5:4)
        DAC_DIF1 DAC_DIF0 Description
        0        0        Left Justified, up to 24-bit data (default)
        0        1        I²S, up to 24-bit data
        1        0        Right-Justified, 16-bit Data
        1        1        Right-Justified, 24-bit Data

Transmitter Control 2 - Address 12h

Transmitter Digital Interface Format (Bits 7:6)
        Tx_DIF1 Tx_DIF0 Description Format Figure
        0       0       Left Justified, up to 24-bit data (default)
        0       1       I²S, up to 24-bit data
        1       0       Right-Justified, 16-bit Data
        1       1       Right-Justified, 24-bit Data

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs4265.c