This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA2SX: Audio capture with 16 KHz sampling rate and 1 channel on TDA2XX

Part Number: TDA2SX


Hi,

I am working on Custom board with TDA2XX.

I am facing issue audio capture with 16/8 KHz from devicetree.

Actually audio capturing working fine with 48 KHz,2 channels.

Now,My requirement is audio capture should work with 16/8 KHz and 1 channel.

My current devicetree setting for 48 KHz and 2 channels are like below.

sound0: sound@0 {
compatible = "simple-audio-card";
status = "okay";
simple-audio-card,name = "CS48L32";
simple-audio-card,widgets =
"Headphone", "Headphone Jack",
"Line", "Line Out",
"Microphone", "Mic Jack",
"Line", "Line In";

simple-audio-card,format = "i2s";
simple-audio-card,bitclock-master = <&sound0_master>;
simple-audio-card,frame-master = <&sound0_master>;

simple-audio-card,cpu {
sound-dai = <&mcasp3>;
system-clock-frequency = <12288000>;
};

sound0_master: simple-audio-card,codec {
sound-dai = <&cs48l32>;
};

};

&mcasp3 {
#sound-dai-cells = <0>;
status = "okay";

op-mode = <0>;
tdm-slots = <2>;

serial-dir = <
1 2 0 0
>;
tx-num-evt = <32>;
rx-num-evt = <32>;
};

&atl {
assigned-clocks = <&abe_dpll_sys_clk_mux>,
<&atl_gfclk_mux>,
<&dpll_abe_ck>,
<&dpll_abe_m2x2_ck>,
<&atl_clkin1_ck>;
assigned-clock-parents = <&sys_clkin2>, <&dpll_abe_m2_ck>;
assigned-clock-rates = <0>, <0>, <122880000>, <245760000>,
<6144000>;

status = "okay";

atl1 {
bws = <DRA7_ATL_WS_MCASP2_FSX>;
aws = <DRA7_ATL_WS_MCASP3_FSX>;
};
};

Can you please help me how to change devicetree,which is support 16/8 KHz and 1 channel.

Thanks & Regards,

Sankar.