Other Parts Discussed in Thread: AM4378,
So we use TLV320AIC3106 with AM4378 and TI Linux. The design works fine when we play back recording audio so the Codec is properly connected to the processor. We are trying to determine the proper device tree setting and console command to select one of Line1/Line2/Line3 inputs to control which codec input gets routed to the output.
We have added to our Device Tree File based on what we see in other posts:
sound {
compatible = "simple-audio-card";
simple-audio-card,name = "AudioCard";
simple-audio-card,widgets =
"Headphone", "Headphone Jack",
"Line", "Line In";
simple-audio-card,routing =
"Headphone Jack", "HPLOUT",
"Headphone Jack", "HPROUT",
"LINE1L", "Line In",
"LINE1R", "Line In";
simple-audio-card,format = "dsp_b";
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 = <&tlv320aic3106>;
system-clock-frequency = <24000000>;
};
};
From the console we send:
'amixer sset 'Left PGA Mixer Line1L' on'
'amixer sset 'Right PGA Mixer Line1R' on'
We also run alsamixer and increase volume of PGA.
To test we try to record and file is empty. An another board design we have Microphone input and this process with correct input names works fine.
If you see something we are missing let us know.
The audio comes in from board edge through series cap to device pins this is intact so we feel this is OK signal. We use function generator to create audible waveform.
Thanks
Pete