Hi TI,
We've found a strange behavior that can cause the PCM1791A to output digital noise (sound like an airplane), and in this "state", the Digital attenuation control is not not working.
We're running Linux (AM335x/McAsp master for I2S) and have done the following test.
- aplay with /dev/urandom
digital attenuation works - change to incorrect i2s format = "white noise"
digital attenuation works - unknown even causing random "airplane cabin" like noise
digital attenuation doesn't work..!?
Any clues why this might happen / what could cause this type of noise and the fact the attenuation is not helping to mute the audio output?
The issue is quite difficult to replicate, but what we do is to have a simple shell-script run 'aplay' over an over in a loop, i.e. alsa (davinci / mcasp) setup and teardown. Sometimes this result in a short ~10-200msec zip-noise, but every now and then the loud random noise continues until we reset.
We do have compared register settings before and after the noise and I can confirm it's correct, i.e. 1:1 with how it should be, so I'd say we can assume it's not related to glitches on the i2c-bus.
See logic-analysis of the I2S sequence overlayed with the audio-output attached: