Part Number: TDA2SX
Other Parts Discussed in Thread: TLV320ADC3101
Hello All,
We are working on custom board designed using TDA2SX microprocessor and have TLV320ADC3101 codec interfaced to MCASP.
The configuration in DTS file is as below;
&atl {
assigned-clocks = <&abe_dpll_sys_clk_mux>,
<&atl_gfclk_mux>,
<&dpll_abe_ck>,
<&dpll_abe_m2x2_ck>,
<&atl_clkin1_ck>,
<&atl_clkin2_ck>;
assigned-clock-parents = <&sys_clkin1>, <&dpll_abe_m2_ck>;
assigned-clock-rates = <0>, <0>, <180633600>, <361267200>,
<11289600>, <19200000>;
status = "okay";
atl2 {
bws = <DRA7_ATL_WS_MCASP2_FSX>;
aws = <DRA7_ATL_WS_MCASP3_FSX>;
};
};
snd1: sound0 {
compatible = "simple-audio-card";
simple-audio-card,name = "DRA7xx-EVM-sound0";
/*
simple-audio-card,widgets =
"Headphone", "Headphone Jack",
"Line", "Line Out",
"Microphone", "Mic Jack",
"Line", "Line In";
simple-audio-card,routing =
"Headphone Jack", "HPLOUT",
"Headphone Jack", "HPROUT",
"Line Out", "LLOUT",
"Line Out", "RLOUT",
"MIC3L", "Mic Jack",
"MIC3R", "Mic Jack",
"Mic Jack", "Mic Bias",
"LINE1L", "Line In",
"LINE1R", "Line In";
*/
simple-audio-card,widgets =
"Line", "Line In";
simple-audio-card,routing =
"IN2_R", "Line In",
"IN3_R", "Line In",
"IN2_L", "Line In",
"IN3_L", "Line In";
simple-audio-card,format = "dsp_b";
simple-audio-card,bitclock-master = <&sound0_master>;
simple-audio-card,frame-master = <&sound0_master>;
simple-audio-card,bitclock-inversion;
sound0_master: simple-audio-card,cpu {
sound-dai = <&mcasp6>;
/* system-clock-frequency = <11289600>;*/
};
simple-audio-card,codec {
sound-dai = <&tlv320adc3101>;
clocks = <&atl_clkin2_ck>;
};
};
However, are getting following error while running arecord;
root@dra7xx-evm:~# arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: DRA7xxEVMsound0 [DRA7xx-EVM-sound0], device 0: davinci-mcasp.0-tlv320adc3101-hifi tlv320adc3101-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: DRA7xxEVMsound1 [DRA7xx-EVM-sound1], device 0: davinci-mcasp.0-tlv320aic3x-hifi tlv320aic3x-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: DRA7xxEVMsound2 [DRA7xx-EVM-sound2], device 0: davinci-mcasp.0-tlv320aic3x-hifi tlv320aic3x-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
root@dra7xx-evm:~#
root@dra7xx-evm:~# arecord -D hw:0,0 -c 2 -r 8000 -f cd test.wav
Recording WAVE 'test.wav' : Signed 16 bit Lirate 44100 sysclk 20070175 divs_rate 8000 divs_sysclk 19200000
ttle Endian, Rate 44100 Hz, Stereo
rate 44100 sysclk 20070175 divs_rate 44100 divs_sysclk 19200000
rate 44100 sysclk 20070175 divs_rate 48000 divs_sysclk 19200000
adc3101: sample rate is not supported
adc3101: sampling rate not supported
tlv320adc3101-codec 0-001b: ASoC: can't set tlv320adc3101-hifi hw params: -22
arecord: set_params:1297: Unable to install hw params:
Can someone help on who is changing the sysclk to 20070175 from 19200000 set in DTS file?