Hi all,
i'm using audio codec TLV320AIC3105 on iMX6 platform. Now it can puts sound to HPLOUT, HPROUT and R/L LO (external speasker).
Now i want to use MIC_DET to detection headphone plugged, when playing, if plug headphone, the sound will be muted on external speaker and route to headphone only.
In datasheet i see only one Register 14 to use to config "Headset/Button Press Detection Register B", while Register 13 is Reserved! . Unlike some other codecs as 3104, 3107, they have Register 13 to config Enable Headset Detection.
In my case, i config Mic_Bias (register 25 = 0xC0) = AVDD, when unplug headphone, i measure MIC_DET pin: 3235 mV (= MIC_BIAS pin), when plug headphone (with mic): MIC_DET = 3005mV
But with headphone plugged, both speaker and headphone has sound!
My diagram:
Mic pin (headphone) -> MIC3L/LINE3L/MIC_DET -> Resistor 1K -> MIC_BIAS
Mic pin (headphone) -> capacitor -> MIC1L/LINE1L
How do i config for this?
Thanks!
BG/Hai