diff options
author | Dan Murphy <dmurphy@ti.com> | 2020-09-15 21:06:02 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-09-17 15:47:13 +0200 |
commit | 244ac15de75ca62ed7a09c7291b67aeead9e12ac (patch) | |
tree | 8b067a0daf5013c753b8599280aa14836fbf9350 /sound/soc/codecs/rt1308-sdw.c | |
parent | ASoC: tlv320adcx140: Idle the device while writing registers (diff) | |
download | linux-244ac15de75ca62ed7a09c7291b67aeead9e12ac.tar.xz linux-244ac15de75ca62ed7a09c7291b67aeead9e12ac.zip |
ASoC: tlv320adcx140: Fix BCLK inversion for DSP modes
Fix the BCLK inversion for DSP modes
This is how it is defined by ASoC:
* BCLK:
* - "normal" polarity means signal is available at rising edge of BCLK
* - "inverted" polarity means signal is available at falling edge of BCLK
The adcx140 defines the BCLK edge based on coding type.
The PCM (DSP_A/B) should drive on rising and sample on falling edge, so
from ASoC pov, it is IB_NF. But from the codec pov if it is configured in
DSP mode, then the BCLK should not be inverted, defaults to the coding
standard.
For i2s, it is NB_NF from ASoC pov (drive on falling, sample on rising).
>From the codec's pov BCLK should not invert either, as this is the default
for the coding.
So, inversion must take the format into account:
IB_NF + DSP_A/B == the codec bclk inversion should be disabled
NB_NF + DSP_A/B == the codec bclk inversion should be enabled
NB_NF + I2S == the codec bclk inversion should be disabled
Signed-off-by: Dan Murphy <dmurphy@ti.com>
Link: https://lore.kernel.org/r/20200915190606.1744-2-dmurphy@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt1308-sdw.c')
0 files changed, 0 insertions, 0 deletions