Other Parts Discussed in Thread: TLV320AIC3254, CC3200AUDBOOST, CC2564
Tool/software: Code Composer Studio
There is one thing in HFPDemo_HF inside http://www.ti.com/tool/CC256XMS432BTBLESW which I don't understand when it comes to configuring the audio codec inside BTmod:
static void ConfigureControllerAudioCodec(unsigned int BluetoothStackID, unsigned long SamplingFrequency, unsigned int NumChannels) { Word_t Channel1Offset; Word_t Channel2Offset; union { VS_Write_Codec_Config_Params_t WriteCodecConfigParams; VS_Write_Codec_Config_Enhanced_Params_t WriteCodecConfigEnhancedParams; } u; /* Set the codec config parameters. The PCM clock rate is set to 80 */ /* times faster than the frame sync clock frequency in order to match*/ /* the BCLK/WCLK ratio expected by the CC3200AUDBOOST's audio codec */ /* (the TLV320AIC3254). */ Channel1Offset = (NumChannels == 1) ? 17 : 1; Channel2Offset = Channel1Offset + 16 + 24;
My questions are about the Channel{1|2}Offset: why is channel 1 being shifted by 17 bits in case of HFP?
And why is Channel2 being shifted by (16 + 24) bits? The first number is clear: 16 bits from channel 1 sample. But why 24 additional bits?
Finally, I'm able to hear the audio of incoming call but the other side (the caller) does either hear nothing or only squelsh... I couldn't find any hints in the http://processors.wiki.ti.com/index.php/CC256x_VS_HCI_Commands how to configure the codec inside BTmod for the various audio use cases (HFP, A2DP).