Part Number: AM5728
Other Parts Discussed in Thread: PCM5102A, , PCM5102
Tool/software: Linux
I want to playing audio files via my gstreamer application and mcasp6, connected to PCM5102a audio codec on my board, based on Sitara am5728 processor.
I followed the steps, described in this guide http://processors.wiki.ti.com/index.php/Sitara_Linux_Audio_DAC_Example#The_PCM5102a_Driver
Specifically:
1. I've created a dummy driver for PCM5102a.
2. Binded it with a ALSA machine layer in the davinci-evm.c
3. Build this driver into the kernel
4. Added following strings in the dts file:
pcm5102a: pcm5102a {
compatible = "ti,pcm5102a";
};
sound {
compatible = "ti,pcm5102a-evm-audio";
ti,model = "TI PCM5102A";
ti,audio-codec = <&pcm5102a>;
ti,mcasp-controller = <&mcasp4>;
ti,codec-clock-rate = <24000000>;
};
&mcasp6 {
#sound-dai-cells = <0>;
assigned-clocks = <&mcasp6_ahclkx_mux>;
assigned-clock-parents = <&sys_clkin2>;
pinctrl-names = "default";
pinctrl-0 = <&mcasp6_pins_default>;
status = "okay";
op-mode = <0>; /* MCASP_IIS_MODE */
tdm-slots = <2>;
/* 4 serializers */
serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
0 1 0 0
>;
tx-num-evt = <32>;
rx-num-evt = <32>;
};
But when kernel starts, I see that pcm5102 driver is correctly probing, but it doesn't binds with mcasp:
[ 1.829667] pcm5102a probes...
[ 6.280474] ALSA device list:
[ 6.283455] No soundcards found.
Is there any way to bind pcm5102, mcasp and my gstreamer application? If not, how can I use method, described above with sitara am5728 processor?