Hi We are having an issue with left channel on DA7212 codec connected to iMx8 in I2S mode. (Master clock is 12.288 Mhz and PLL in bypass)Sample rate is 32 kHz, and issue is observed running DA7212 DAI in either master or slave mode.
In about 1:100 recording sessions we observe sign bit error on left channel samples. It seems to be related with signal zero crossings.When it occurs the issue it persistent until the next recording session. ( Reconfigure of audio path).
We narrowed it down by configuring the DAI interface to use the same source for both I2S channels. The screendumps below illustrates the behaviour. Since we route the same signal to both I2S channel, pairs of identical sample values are expected on left and right channel.This is the case for most samples but at zero crossing the sign bit for the left channel is wrong.The signal capture below shows the situation where signal is changing from 0x0001 to 0xFFFF (Left channel MSB is 0 instead of 1 resulting in 0x7FFF) and the next sample (0x0002) but left channel MSB is inverted resulting in 0x8002.The dump below shows a recording of nearly silence, where signal crossings generates sign bit error in left channel