Hi,
I am interfacing TLV320AIC3254 with beaglebone black. Unable to play a .wav with aplay. Below are the device tree configurations & dmesg logs. Please let me know where i am going wrong.
Kernel : 4.1
Rootfs : Debian
Clock source for TLV320AIC3254 : Externel 24MHz crystal
Device tree configaurations.
bone_audio_cape_audio_pins: pinmux_bone_audio_cape_audio_pins {
pinctrl-single,pins = <
0x1ac (PIN_INPUT | MUX_MODE0) /* mcasp0_ahclkx /
0x19c (PIN_OUTPUT_PULLUP | MUX_MODE2) / mcasp0_ahclkr, /
0x194 (PIN_OUTPUT_PULLUP | MUX_MODE0) / mcasp0_fsx, /
0x190 (PIN_OUTPUT_PULLUP | MUX_MODE0) / mcasp0_aclkr.mcasp0_aclkx,*/
0x198 (PIN_OUTPUT_PULLUP | MUX_MODE0)
;
};
&i2c2 {
pinctrl-names = “default”;
pinctrl-0 = <&i2c2_pins>;
status = “okay”;
clock-frequency = <100000>;
tlv320aic32x4: tlv320aic32x4@18 {
compatible = “ti,tlv320aic32x4”;
reg = <0x18>;
status = “okay”;
};
};
&mcasp0 {
pinctrl-names = “default”;
pinctrl-0 = <&bone_audio_cape_audio_pins>;
status = “okay”;
op-mode = <0>; /* MCASP_IIS_MODE /
tdm-slots = <2>;
num-serializer = <16>;
serial-dir = < / 0: INACTIVE, 1: TX, 2: RX */
2 0 1 0
0 0 0 0
0 0 0 0
0 0 0 0
;
tx-num-evt = <1>;
rx-num-evt = <1>;
};
sound {
compatible = “ti,beaglebone-black-audio”;
ti,model = “TI BeagleBone Black”;
ti,audio-codec = <&tlv320aic32x4>;
ti,mcasp-controller = <&mcasp0>;
ti,codec-clock-rate = <12000000>;
ti,audio-routing =
“Headphone Jack”, “HPLOUT”,
“Headphone Jack”, “HPROUT”,
“LINE1L”, “Line In”,
“LINE1R”, “Line In”;
clock-names = “mclk”;
};
Dmesg log:
[ 15.986046] tlv320aic32x4 2-0018: Failed getting the mclk. The current implementation does not support the usage of this codec without mclk
[ 16.125732] tilcdc 4830e000.lcdc: no encoders/connectors found
[ 16.156996] tlv320aic32x4: probe of 2-0018 failed with error -2
[ 16.181105] tilcdc 4830e000.lcdc: failed to initialize mode setting
[ 16.309482] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
[ 16.619921] ERROR: could not get clock /sound:mclk(0)
[ 16.625080] davinci_evm sound: ASoC: CODEC DAI hdmi-hifi not registered
[ 16.773564] davinci_evm sound: snd_soc_register_card failed (-517)