• Axel Lin's avatar
    ASoC: cs4265: Fix setting dai format for Left/Right Justified · bffc4496
    Axel Lin authored
    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: default avatarAxel Lin <axel.lin@ingics.com>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    bffc4496
cs4265.c 16.7 KB