Other Parts Discussed in Thread: TLV320AIC3106
Hi
excuse me,
want to ask AM625 with rt5640 codec tinyplay question as below information
OS:android 12
kernel: 5.10.153 (08.05)
driver was integrated successfully (codec driver & machine driver), when I use 'tinyplay' test a wav file
as below part of log (Error playing sample), we modified davinci-mcasp.c or machine driver clock, but it no work. (no sound)
is it possible modify BIT clock from SOC side to 2.822 Mhz (I want to try it matches codec or not)
because, from the attachment file waveform (blue wave), soc BIT clock about 1.4Mhz
or what else cay try
thx
console:/ # tinyplay /data/16bit441k-15s.wav
[ 1210.734785] imx-rt5640.c imx_aif1_hw_params in.....params_rate(params) is 44100
[ 1210.742175] davinci-mcasp.c davinci_mcasp_set_dai_fmt...
[ 1210.747481] davinci-mcasp.c SND_SOC_DAIFMT_CBS_CFS...
[ 1210.752531] rt5640.c rt5640_set_dai_fmt...
[ 1210.756633] rt5640.c rt5640_set_dai_pll...
[ 1210.760722] rt5640.c rt5640_set_dai_pll...1
[ 1210.766195] rt5640.c rt5640_set_dai_sysclk
[ 1210.766625] imx-rt5640.c imx_aif1_hw_params end
[ 1210.775275] rt5640.c rt5640_hw_params....
[ 1210.779281] soc-utils.c snd_soc_params_to_frame_size.... sample_size is 16
[ 1210.786142] soc-utils.c ready into snd_soc_calc_frame_size
[ 1210.791619] soc-utils.c snd_soc_calc_frame_size.... sample_size is 16, channels is 2, tdm_slots is 1
[ 1210.800734] bclk is 1411200Hz and lrck is 44100Hz
[ 1210.805431] bclk_ms is 0 and pre_div is 1 for iis 0
[ 1210.810306] davinci-mcasp.c channels is 2
[ 1210.814310] davinci-mcasp.c davinci_mcasp_set_dai_fmt...
[ 1210.819615] davinci-mcasp.c SND_SOC_DAIFMT_CBS_CFS...
[ 1210.824661] davinci-mcasp.c mcasp->bclk_master is 1, mcasp->bclk_div is 0, mcasp->sysclk_freq is 0
[ 1210.833604] davinci-mcasp.c slots is 4, rate is 44100, sbits is 16
[ 1210.839772] davinci-mcasp.c ready into davinci_mcasp_calc_clk_div...
[ 1210.839772]
[ 1210.847618] bclk_freq is 2822400
[ 1210.850860] davinci-mcasp 2b00000.mcasp: Sample-rate is off by -1000000 PPM
Playing sample: 2 ch, 44100 hz, 16 bit 2646000 bytes
aaaaaa........
cccccc........
Error playing sample