This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] TLV320AIC3104:请告诉我如何通过检测麦克风插孔连接来更新麦克风偏置

Guru**** 2481465 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/audio-group/audio/f/audio-forum/839140/tlv320aic3104-please-tell-me-how-to-update-microphone-bias-by-detecting-microphone-jack-connection

器件型号:TLV320AIC3104

由于麦克风插孔连接检测(MIC2L)而尝试更新麦克风偏置
我在器件树和源代码中设置路由、如下所示。
即使插入或移除卡、也不会发生连接检测事件。
*仅在小工具加电(snd_SOC_DAPM_PRE_PMU)事件发生之前、在加电开启时启动过程中才会发生。

您能告诉我是否需要其他设置吗?

1.arch\arm\boot\dts\imx6qdl-pm.dtsi

Sound{
compatible ="FSL、IMX-AUDID-tlv320aic3x";
model ="eukrea_tlv3x";
SSI-controller =<&SSI2>;
FSL、mux-int-port =<2>;
FSL、mux-ext-port =<6>;
音频编解码器=<&codec>;
+音频路由=
+"MIC2L"、"Mic Jack"、
+"Mic Jack"、"Mic Bias";
}

&i2c3{
时钟频率=<100000>;
pinctrl-names ="默认值";
pinctrl-0 =<&pinctrl_i2c3>;
状态="确定";

编解码器:tlv320aic3104@18{
兼容="ti、tlv320aic3104";
reg =<0x18>;
<CLKbias =<CLKs+


}<CLKsbias +<CLKs=<x1+<CLKsb<x1>;<CLKs-beg>}

----------------------------------------
2.sound\soc\codecs\tlv320aic3x.c

/*用于 debuglog */
+static int update_mim_bias (struct snd_soc_dapm_widget *w、struct snd_kcontrol *kcontrol、int event)
+{
+printk (Kern_ERR "**** %s ():[debug]0x%02x\n"、__func__、event);
+return 0;
+}

static const struct snd_soc_dapm_widget aic3x_dapm_widget[]={
。
。
。
+snd_SOC_DAPM_MIC ("麦克风插孔"、update_mic_bias)、
};

静态构造 snd_soc_dapm_route intercon_extra 3104[]={
//*左输入*/
+{"MIC2L"、NULL、"Mic Jack"}、
+{"Mic Jack"、NULL、 "MIC Bias"}、
{"Left PGA Mixer"、"Mic2L Switch"、"MIC2L"}、
{"Left PGA Mixer"、 "MIC2R 开关"、"MIC2R"}、
/*右输入*/
{"Right PGA Mixer (右 PGA 混频器)"、"Mic2L 开关"、"MIC2L"}、
{"Right PGA Mixer (右 PGA 混频器)"、"Mic2R 开关"、 "MIC2R"}、
};

 

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    用户好!

    遗憾的是、我们不提供代码/驱动程序支持。 如果您能够提供任何原理图/示波器截图、我们将乐意为您提供帮助。

    此致、

    Aaron