|
【应用开发】
rk3308产生i2s时钟问题
发表于 2020-10-9 20:56:39
浏览:18014
|
回复:11
打印
只看该作者
[复制链接]
楼主
运行eq_drc_process的应用程序,运行正常,log如下:
# ./eq_drc_process
WAKE_LOCK[open_file_descriptors] fatal error opening "/sys/power/wake_lock": No such file or directory
==========EQ/DRC process release version 1.23===============
snd_pcm_open
snd_pcm_hw_params_malloc
snd_pcm_hw_params_any!
snd_pcm_hw_params_set_access!
snd_pcm_hw_params_set_format
channels = 2
bufferSize = 20480
periodSize = 1024
Rate = 48000
Open record device done
Open PCM: fake_play
[ 7736.090919] rockchip_i2s_tdm_set_sysclk:dir=tx ,sysclk=12288000, trcm=0x10000000
[ 7736.090967] rk_aif1_hw_params:snd_soc_dai_set_sysclk ok!
[ 7736.091246] rockchip_i2s_tdm_hw_params:mclk_rate=12288000,bclk_rate=3072000,fs=48000,div_bclk=4,div_lrck=64
[ 7736.091272] rockchip_i2s_tdm_hw_params:channel=2, bit=16
interleaved mode
snd_pcm_hw_params_alloca
interleaved mode
format successed
channels = 2
setting sampling rate (48000)
write_bufferSize = 4096
write_periodSize = 1024
rk eq_drc v2.02 2019-07-20 Oct 11 2019 09:26:56
psEqualizer->m_pfControlValue = 0.000000
open write device is successful
WAKE_LOCK[RK_acquire_wake_lock] id=eq_drc_process
param_name = /data/cfg/eq_bin/Para_48000Hz_2ch.bin
EQ/DRC Algorithm 3BAND_IIR_DIVFREQ PEAK VALUE V1.0...Oct 11 2019 09:26:56
GetLMTVersion v1.03 2019-10-10 Oct 11 2019 09:26:57,force=0 firstInit=1
但是,我要产生8k采用率的话,修改Rate=8000后,运行异常,log如下:
# ./eq_drc_process
WAKE_LOCK[open_file_descriptors] fatal error opening "/sys/power/wake_lock": No such file or directory
==========EQ/DRC process release version 1.23===============
snd_pcm_open
snd_pcm_hw_params_malloc
snd_pcm_hw_params_any!
snd_pcm_hw_params_set_access!
snd_pcm_hw_params_set_format
channels = 2
bufferSize = 20480
periodSize = 1024
Rate = 8000
Open record device done
Open PCM: fake_play
[ 7939.417371] rockchip_i2s_tdm_set_sysclk:dir=tx ,sysclk=12288000, trcm=0x10000000
[ 7939.417426] rk_aif1_hw_params:snd_soc_dai_set_sysclk ok!
[ 7939.417699] rockchip_i2s_tdm_hw_params:mclk_rate=12288000,bclk_rate=3072000,fs=48000,div_bclk=4,div_lrck=64
[ 7939.417725] rockchip_i2s_tdm_hw_params:channel=2, bit=16
interleaved mode
snd_pcm_hw_params_alloca
interleaved mode
format successed
channels = 2
setting sampling rate (8000)
write_bufferSize = 682
write_periodSize = 170
rk eq_drc v2.02 2019-07-20 Oct 11 2019 09:26:56
psEqualizer->m_pfControlValue = 0.000000
open write device is successful
WAKE_LOCK[RK_acquire_wake_lock] id=eq_drc_process
param_name = /data/cfg/eq_bin/Para_8000Hz_2ch.bin
copy eq_bin...
AudioPost_Init fopen failed, pcParaName = /data/cfg/eq_bin/Para_8000Hz_2ch.bin
Segmentation fault
请问。除了修改Rate=8000,还需要修改什么吗? |
|