主题中讨论的其他器件:AM6528、
我们使用 am6528 + TLV320AIC23、现在它可以在 I2S 模式下工作、但只有左声道输出正常声音、RHPOUT 没有输出、我们使用示波器测量 FS 和 AXR0的信号:当 FS 信号保持高电平时、AXR0线上没有右声道数据。
FS:蓝色 AXR0:绿色
相关配置在 DTS 列表中如下所示:
sound { compatible = "simple-audio-card"; simple-audio-card,name = "AM65x-GHMI+"; simple-audio-card,widgets = "Headphone", "Headphone Jack"; simple-audio-card,routing = "Headphone Jack", "LHPOUT", "Headphone Jack", "RHPOUT"; simple-audio-card,format = "i2s"; simple-audio-card,bitclock-master = <&sound_master>; simple-audio-card,frame-master = <&sound_master>; /*simple-audio-card,bitclock-inversion;*/ simple-audio-card,cpu { sound-dai = <&mcasp1>; }; sound_master: simple-audio-card,codec { sound-dai = <&tlv320aic23>; system-clock-frequency = <12000000>; }; }; ......... mcasp1_pins: mcasp1-pins { pinctrl-single,pins = < AM65X_IOPAD(0x0244, PIN_INPUT_PULLDOWN, 5) /* (AB28) PRG0_PRU1_GPO0.MCASP1_ACLKX */ AM65X_IOPAD(0x0248, PIN_INPUT_PULLDOWN, 5) /* (AC28) PRG0_PRU1_GPO1.MCASP1_AFSX */ AM65X_IOPAD(0x0254, PIN_INPUT_PULLDOWN, 5) /* (AA25) PRG0_PRU1_GPO4.MCASP1_AXR0 */ >; }; ......... tlv320aic23: tlv320aic23@1b { #sound-dai-cells = <0>; compatible = "ti,tlv320aic23"; reg = <0x1b>; status = "okay"; /* Regulators AVDD-supply = <&codec_vcc_3v3>; IOVDD-supply = <&gp_vcc_1v8>; DRVDD-supply = <&codec_vcc_3v3>; DVDD-supply = <&gp_vcc_1v8>;*/ }; ........ &mcasp1 { #sound-dai-cells = <0>; status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&mcasp1_pins>; op-mode = <0>; /* MCASP_IIS_MODE */ tdm-slots = <2>; /* 16 serializers */ /* num-serializer = <10>;*/ serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */ 1 0 0 0 0 0 0 0 0 0 >; tx-num-evt = <32>; rx-num-evt = <32>; };
simple-audio 卡或 McASP1的配置是否有任何问题?
谢谢
肯