We're Designing Car Head Unit With TI Codec TLV320AIC3106-Q1 And Here Are Some Problems About Bluetooth Hands-Free Use Case.
First We Need To Make Sure We Can Use PCM ( In TLV320AIC3106-Q1 Datasheet Page 42 A Block Diagram Points Out PCM Can Be Enabled By Sharing I2S's DOUT As Blow:
It Very Clear No Doubt But Our Questions Are About Bluetooth Hands-Free Application By USB / When We Use Wireless Modem And Especially Which Required For CarPlay Development In MFI Accessory Interface Specification.
1. First When We Using WL1833Q / Similar Module And Here Is A Coming Call The Voice Data Will Split Off And Transform Into PCM Format By I2S Interface.
So We Follow Your Datasheet And Control TLV320AIC3106-Q1 DAC Line-Out To External Amplifier Then Car Speakers.
The Design Is For Listening Purpose.
On The Other Hand We Use Fortemedia FM1388 To Connect External Microphone Array For Speaking.
The FM1388 Will First Pre-Amplify The Line-In Then ADC To Codec Then Through I2S DOUT To System's DIN. The Voice Will Soon Be Packed And Over Bluetooth HSP Profile By Physical Interface UART To The Air. The Question Is How Can We Handle The Speaking / Listening Voice Data At Same Time? It Is To Say We Need To Use I2C Then By Register Control Internal MUX For Switch Out The Input PCM (Listening) To Car Speaker And In The Meanwhile Switch In The Input Speaking Data. Is It Possible? We May Enable FM1388 I2S Directly To Another I2S Of Host Processor And Packed Input Voice Data Over HSP Profile Then Through UART To Bluetooth Module In Stead But When Considering The USB Mode / Wireless Modem Use Case Here Comes New Problem:
2. USB Mode For Example The Mobile Phone Using USB (CarPlay Case) And iAP2 Over USB Requires Parsing Packet Then Split Voice Data To Codec Through I2S For A Listening Call. In The Same Time We May Push Talk And Input Speaking Voice To FM1388 Then To Codec / Directly To Mentioned Design: Another I2S Of Host Processor. The Problem Is How Can We Deal With Input Voice To Codec By Using Same Data Path For Both Of Speaking Voice And Listening Voice By Using The Same DIN?