求助hi3520a+nvp1914音频播放没有声音的问题
2 E币
成为会员,免费下载资料
文件大小:2.03 MB
上传者:crowncandy
时间:2015-11-06 23:38:32
下载量:38
本帖最后由 crowncandy 于 2015-11-6 23:39 编辑
大家好,初次发帖,请多指教:
目前的问题是adec和ao好像都没有问题,ao的E24_SIO2_DOUT引脚也有波形,但是codec的模拟输出没有信号(示波器只能测出一条1.46V的直线)
感觉像是codec时序配置不对,但是反复检查,没有发现异常。
希望大虾帮忙看下是不是配置的有问题,或者提供一个解决思路也行,不胜感激!!!!现在卡住了,没什么思路。
1. 接线
B24_SIO2_XCLK ACLK_PB
E23_SIO2_XFS ASYNC_PB
E24_SIO2_DOUT ADATA_PB
A25_SIO2_RCLK ACLK_REC
C25_SIO2_RFS ASYNC_REC
F24_SIO2_DIN ADATA_REC
2. hi3520A配置: 8KHz, 16bit,slave,单声道,4channel, LPCM输出;
基本参照demo,使用SIO2,使用AdChn0和AdChn0,绑定ADEC和AO,使用ADEC_MODE_PACK模式发送给ADEC。
stAioAttrAenc.enSamplerate = AUDIO_SAMPLE_RATE_8000;
stAioAttrAenc.enBitwidth = AUDIO_BIT_WIDTH_16;
stAioAttrAenc.enWorkmode = AIO_MODE_I2S_SLAVE;
stAioAttrAenc.enSoundmode = AUDIO_SOUND_MODE_MONO;
stAioAttrAenc.u32EXFlag = 1;
stAioAttrAenc.u32FrmNum = 30;
stAioAttrAenc.u32PtNumPerFrm = SAMPLE_AUDIO_PTNUMPERFRM;
stAioAttrAenc.u32ChnCnt = 4;
stAioAttrAenc.u32ClkSel = 1;
3. nvp1914的配置:
0x13:0x80: 采样频率 位宽,时序
[attach]3014[/attach]
[attach]3016[/attach]
0x14: 0x0
[attach]3017[/attach]
0x15:0x0 编码
[attach]3018[/attach]
0x16-0x1d:0x88 输入AI引脚的混音增益
[attach]3019[/attach]
0x1e-0x21:0x88 MIC1-4和PB1-4混音增益
[attach]3020[/attach]
0x22:0x40: 输出信号增益
[attach]3021[/attach]
0x23:0x0 输出增益模式和输出信号选择
[attach]3022[/attach]
0x24:0x14
0x25:0x15 ADATA_SP的左右声道输出选择(此引脚未用到)
[attach]3023[/attach]
4. 执行时没有出错信息:adec和ao的日志信息(连续取2个显示变化)
# cat /proc/umap/adec
[ADEC] Version: [Hi3520A_MPP_V1.0.2.0 Debug], Build Time[Aug 31 2012, 13:21:11]
-----ADEC CHN ATTR--------------------------------------------------------------
ChnId PlType BufSize Attr SendCnt GetCnt PutCnt
0 lpcm 20 387 369 368
# cat /proc/umap/adec
[ADEC] Version: [Hi3520A_MPP_V1.0.2.0 Debug], Build Time[Aug 31 2012, 13:21:11]
-----ADEC CHN ATTR--------------------------------------------------------------
ChnId PlType BufSize Attr SendCnt GetCnt PutCnt
0 lpcm 20 736 718 717
# cat /proc/umap/ao
[AO] Version: [Hi3520A_MPP_V1.0.2.0 Debug], Build Time: [Aug 31 2012, 13:21:11]
-----AO DEV ATTR----------------------------------------------------------------
AoDev WorkMod SampR BitWid ChnCnt ClkSel SondMod PoiNum ExFlag FrmNum
2 i2s_sla 8kHZ 16bit 4 1 mono 320 1 30
-----AO DEV STATUS--------------------------------------------------------------
AoDev IntCnt FrmTime DMAChn DMAReq TranLen DMAPhy0 DMAPhy1
2 949 39998 3 3 2560 89666000 89666a00
-----AO CHN STATUS--------------------------------------------------------------
AoDev AoChn State Read Write BufEmp u32Data0 u32Data1
2 0 enable 10 9 9 3bf772f7 750858fa
# cat /proc/umap/ao
[AO] Version: [Hi3520A_MPP_V1.0.2.0 Debug], Build Time: [Aug 31 2012, 13:21:11]
-----AO DEV ATTR----------------------------------------------------------------
AoDev WorkMod SampR BitWid ChnCnt ClkSel SondMod PoiNum ExFlag FrmNum
2 i2s_sla 8kHZ 16bit 4 1 mono 320 1 30
-----AO DEV STATUS--------------------------------------------------------------
AoDev IntCnt FrmTime DMAChn DMAReq TranLen DMAPhy0 DMAPhy1
2 1204 39997 3 3 2560 89666000 89666a00
-----AO CHN STATUS--------------------------------------------------------------
AoDev AoChn State Read Write BufEmp u32Data0 u32Data1
2 0 enable 25 24 9 4ce2eadf a9dc32dd
5. 选择的音频,通过audacity和adobeaudition测试过,都是能播放的:8K, 16bit, 大端字节序,单声道
[attach]3024[/attach]
大家好,初次发帖,请多指教:
目前的问题是adec和ao好像都没有问题,ao的E24_SIO2_DOUT引脚也有波形,但是codec的模拟输出没有信号(示波器只能测出一条1.46V的直线)
感觉像是codec时序配置不对,但是反复检查,没有发现异常。
希望大虾帮忙看下是不是配置的有问题,或者提供一个解决思路也行,不胜感激!!!!现在卡住了,没什么思路。
1. 接线
B24_SIO2_XCLK ACLK_PB
E23_SIO2_XFS ASYNC_PB
E24_SIO2_DOUT ADATA_PB
A25_SIO2_RCLK ACLK_REC
C25_SIO2_RFS ASYNC_REC
F24_SIO2_DIN ADATA_REC
2. hi3520A配置: 8KHz, 16bit,slave,单声道,4channel, LPCM输出;
基本参照demo,使用SIO2,使用AdChn0和AdChn0,绑定ADEC和AO,使用ADEC_MODE_PACK模式发送给ADEC。
stAioAttrAenc.enSamplerate = AUDIO_SAMPLE_RATE_8000;
stAioAttrAenc.enBitwidth = AUDIO_BIT_WIDTH_16;
stAioAttrAenc.enWorkmode = AIO_MODE_I2S_SLAVE;
stAioAttrAenc.enSoundmode = AUDIO_SOUND_MODE_MONO;
stAioAttrAenc.u32EXFlag = 1;
stAioAttrAenc.u32FrmNum = 30;
stAioAttrAenc.u32PtNumPerFrm = SAMPLE_AUDIO_PTNUMPERFRM;
stAioAttrAenc.u32ChnCnt = 4;
stAioAttrAenc.u32ClkSel = 1;
3. nvp1914的配置:
0x13:0x80: 采样频率 位宽,时序
[attach]3014[/attach]
[attach]3016[/attach]
0x14: 0x0
[attach]3017[/attach]
0x15:0x0 编码
[attach]3018[/attach]
0x16-0x1d:0x88 输入AI引脚的混音增益
[attach]3019[/attach]
0x1e-0x21:0x88 MIC1-4和PB1-4混音增益
[attach]3020[/attach]
0x22:0x40: 输出信号增益
[attach]3021[/attach]
0x23:0x0 输出增益模式和输出信号选择
[attach]3022[/attach]
0x24:0x14
0x25:0x15 ADATA_SP的左右声道输出选择(此引脚未用到)
[attach]3023[/attach]
4. 执行时没有出错信息:adec和ao的日志信息(连续取2个显示变化)
# cat /proc/umap/adec
[ADEC] Version: [Hi3520A_MPP_V1.0.2.0 Debug], Build Time[Aug 31 2012, 13:21:11]
-----ADEC CHN ATTR--------------------------------------------------------------
ChnId PlType BufSize Attr SendCnt GetCnt PutCnt
0 lpcm 20 387 369 368
# cat /proc/umap/adec
[ADEC] Version: [Hi3520A_MPP_V1.0.2.0 Debug], Build Time[Aug 31 2012, 13:21:11]
-----ADEC CHN ATTR--------------------------------------------------------------
ChnId PlType BufSize Attr SendCnt GetCnt PutCnt
0 lpcm 20 736 718 717
# cat /proc/umap/ao
[AO] Version: [Hi3520A_MPP_V1.0.2.0 Debug], Build Time: [Aug 31 2012, 13:21:11]
-----AO DEV ATTR----------------------------------------------------------------
AoDev WorkMod SampR BitWid ChnCnt ClkSel SondMod PoiNum ExFlag FrmNum
2 i2s_sla 8kHZ 16bit 4 1 mono 320 1 30
-----AO DEV STATUS--------------------------------------------------------------
AoDev IntCnt FrmTime DMAChn DMAReq TranLen DMAPhy0 DMAPhy1
2 949 39998 3 3 2560 89666000 89666a00
-----AO CHN STATUS--------------------------------------------------------------
AoDev AoChn State Read Write BufEmp u32Data0 u32Data1
2 0 enable 10 9 9 3bf772f7 750858fa
# cat /proc/umap/ao
[AO] Version: [Hi3520A_MPP_V1.0.2.0 Debug], Build Time: [Aug 31 2012, 13:21:11]
-----AO DEV ATTR----------------------------------------------------------------
AoDev WorkMod SampR BitWid ChnCnt ClkSel SondMod PoiNum ExFlag FrmNum
2 i2s_sla 8kHZ 16bit 4 1 mono 320 1 30
-----AO DEV STATUS--------------------------------------------------------------
AoDev IntCnt FrmTime DMAChn DMAReq TranLen DMAPhy0 DMAPhy1
2 1204 39997 3 3 2560 89666000 89666a00
-----AO CHN STATUS--------------------------------------------------------------
AoDev AoChn State Read Write BufEmp u32Data0 u32Data1
2 0 enable 25 24 9 4ce2eadf a9dc32dd
5. 选择的音频,通过audacity和adobeaudition测试过,都是能播放的:8K, 16bit, 大端字节序,单声道
[attach]3024[/attach]
展开》
折叠》