Hi Dhruvit-san.
Thank you for reply!
Kindly take a reference of the below documents to describe the channel number and width.
Documentation/devicetree/bindings/sound/tdm-slot.txtfrom the Linux source code.
Thanks for the documentation, I think I can handle the tdm setup.
For clock-related configuration, it can be done using the "assigned-clock-rates" property. For more information, kindly refer to the Documentation/devicetree/bindings/clock/clock-bindings.txtfrom the Linux source code.
This is not well understood. The codec I plan to use does not output MCLK, TX/RX_BCLK, or TX/RX_SYNC. Or is this item unrelated to the Audio clock?
Also, is there any clear documentation on "simple-audio-card,widgets" and "simple-audio-card,routing"? (I looked at the simple-card.yaml, but could not figure out which item in the driver I should write in relation to which.)
adda16ch:codec{
compatible = "teac,adda16ch";
#sound-dai-cells = <0>;
status = "okay";
};
sound-adda16ch{
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
compatible = "simple-audio-card";
simple-audio-card,name = "ADDA16InOut";
simple-audio-card,format = "left_j";
simple-audio-card,bitclock-master = <&testADDA>;
simple-audio-card,frame-master = <&testADDA>;
simple-audio-card,widgets =
"Line", "Line In Jack",
"Line", "Line Out Jack";
simple-audio-card,routing =
"AIN1", "Line In Jack",
"AIN2", "Line In Jack",
"AIN3", "Line In Jack",
"AIN4", "Line In Jack",
"AIN5", "Line In Jack",
"AIN6", "Line In Jack",
"AIN7", "Line In Jack",
"AIN8", "Line In Jack",
"AIN9", "Line In Jack",
"AIN10", "Line In Jack",
"AIN11", "Line In Jack",
"AIN12", "Line In Jack",
"AIN13", "Line In Jack",
"AIN14", "Line In Jack",
"AIN15", "Line In Jack",
"AIN16", "Line In Jack",
"AOUT1", "Line Out Jack",
"AOUT2", "Line Out Jack",
"AOUT3", "Line Out Jack",
"AOUT4", "Line Out Jack",
"AOUT5", "Line Out Jack",
"AOUT6", "Line Out Jack",
"AOUT7", "Line Out Jack",
"AOUT8", "Line Out Jack",
"AOUT9", "Line Out Jack",
"AOUT10", "Line Out Jack",
"AOUT11", "Line Out Jack",
"AOUT12", "Line Out Jack",
"AOUT13", "Line Out Jack",
"AOUT14", "Line Out Jack",
"AOUT15", "Line Out Jack",
"AOUT16", "Line Out Jack";
testADDA:simple-audio-card,cpu {
sound-dai = <&sai1>;
dai-tdm-slot-num = <16>;
dai-tdm-slot-width = <32>;
};
simple-audio-card,codec {
sound-dai = <&adda16ch>;
};
};
Best Regards,
KASHIWAGI TAKASHI