MCU: TM4C1290NCPDT
Codec: TLV320AIC3204
BT: PAN1326B / CC2564B
Running the-artist-formerly-known-as-Bluetopia stack on the TM4C
Codec is I2S clock master, running in left-justified mode. Codec's MCLK is being driven by a TM4C PWM at 12 MHz, and the codec's PLL is being used to produce the desired sample rates/clock. It starts up in 44.1khz for music streaming to a sink device, and is switched to 8khz for voice mode. When in 8khz SCO audio mode, there is a noticeable crackle / pop heard in the speakers of the receiving device (attached). The crackle is heard mixed in with whatever the source signal is--in this case, silence. It is not heard in the other direction, so the voice coming from the microphone and being output through the CC2564B's audio out line sounds fine.
To rule out the codec as the source of the noise, I ran the codec in loopback mode so that I could hear what it's putting through the digital out, and it sounded fine, so somewhere along the way, the noise is being introduced into the Bluetooth audio (or is an artifact as a result of some problem with the hardware or the configuration). Tested with a few different sink devices with the same result.
Tried different PLL settings on the codec, too, to no avail.
This noise was not observed on a different hardware configuration which replaces the codec with a Cirrus DSP and has the TM4C run the I2S clock instead. I'm not sure where to look for what could be causing the noise. I've heard it on some other Bluetooth end products, but most sound fine.
Any ideas? Ever heard that noise? Any data I could gather that might help find the cause?