2913
- 收藏
- 点赞
- 分享
- 举报
3516A 配置内置audio codec,没有声音
调试过3516a的大神帮忙看一下,
/************************************/
please choose the case which you want to run:
0: start AI to AO loop
1: send audio frame to AENC channel from AI, save them
2: read audio stream from file, decode and send AO
3: start AI(AEC/ANR/ALC process), then send to AO
q: quit whole audio sample
sample command:
选择1录制音频,然后选择2播放音频
stAioAttr.enSamplerate = AUDIO_SAMPLE_RATE_8000; /*音频采样率*/
stAioAttr.enBitwidth = AUDIO_BIT_WIDTH_16; /*音频采样精度*/
stAioAttr.enWorkmode = AIO_MODE_I2S_MASTER; /*音频输入输出设备工作模式*/
stAioAttr.enSoundmode = AUDIO_SOUND_MODE_MONO; /*音频声道模式,单声道、双声道*/
stAioAttr.u32EXFlag = 0; /*扩展标志(只对 AI 采样精度为 8bit 时有效*/
stAioAttr.u32FrmNum = 30; /*缓存帧数目*/
stAioAttr.u32PtNumPerFrm = SAMPLE_AUDIO_PTNUMPERFRM; /*每帧的采样点个数*/
stAioAttr.u32ChnCnt = 1; /*支持的通道数目 Hi3516A/Hi3518EV200 输入最多支持 16 个通道,输出最多支持2 个通道*/
stAioAttr.u32ClkSel = 0;
当配置stAioAttr.u32ClkSel = 0; 时,输出完全没有声音,
当配置stAioAttr.u32ClkSel = 1; 时,会有“沙沙”声,
另外,himm 0x201200E0 0xd配置了内置audio codec。
附上log信息:
1、ai
~ # cat /proc/umap/ai
[AI] Version: [Hi3516A_MPP_V1.0.5.0 B030 Release], Build Time: [Oct 29 2015, 20:51:06]
-----AI DEV ATTR---------------------------------------------------------------------------------------------------------
AiDev WorkMod SampR BitWid ChnCnt ClkSel SoundMod PoiNum ExFlag FrmNum
0 i2s_mas 8kHZ 16bit 1 1 mono 320 0 30
-----AI DEV STATUS-------------------------------------------------------------------------------------------------------
AiDev IntCnt fifoCnt buffInt FrmTime MaxFrmTime TranLen IsrTime MaxIsrTime CBPhy CBSize ROffSet WOffSet
0 204 0 0 40001 40007 640 105 130 88236000 1280 0 0
-----AI DEV EXTEND STATUS------------------------------------------------------------------------------------------------
AiDev enTrack bMute Volume
0 0 0 0
-----AI CHN STATUS-------------------------------------------------------------------------------------------------------
AiDev AiChn State Read Write BufFul UsrQueLost u32Data0 u32Data1
0 0 enable 0 0 0 0 ec00f800 f3fff600
-----AI CHN RESAMPLE STATUS----------------------------------------------------------------------------------------------
AiDev AiChn State bResmp PoiNum InSampR OutSampR
0 0 enable disable 0 (null) (null)
-----AI CHN VQE STATUS0---------------------------------------------------------------------------------------------------
AiDev AiChn State bVqe workmod RATE PoiNum WrFile
0 0 enable disable comm (null) 0 disable
-----AI CHN VQE STATUS1---------------------------------------------------------------------------------------------------
AiDev AiChn State bAnr bUsrmod NrIntensity NoiseDbThr SpProSwi bHdr bUsrmod MaxGain MinGain MicGainStp MicGain
0 0 enable disable auto 0 0 0 disable auto 0 0 0 0
-----AI CHN VQE STATUS2---------------------------------------------------------------------------------------------------
AiDev AiChn State bAgc bUsrmod NoiseSupSwi AdjustSpeed ImproveSNR MaxGain NoiseFloor OutputMode TargetLevel UseHPF
0 0 enable disable auto 0 0 0 0 -50 0 -40 0
-----AI CHN VQE STATUS3---------------------------------------------------------------------------------------------------
AiDev AiChn State bEq 100 200 250 350 500 800 1.2k 2.5k 4k 8k
0 0 enable disable 0 0 0 0 0 0 0 0 0 0
-----AI CHN VQE STATUS4---------------------------------------------------------------------------------------------------
AiDev AiChn State bHpf bUsrmod HpfFreq bRnr bUsrmod MaxNrLevel NsThresh NrMode GainVol
0 0 enable disable auto 0 disable auto 0 0 0 0
-----AI CHN VQE STATUS5---------------------------------------------------------------------------------------------------
AiDev AiChn State bAec bUsrmod CngMode DTHnlStQTh NrAlPsEngy NrClnSupEngy AecAo AecFail
0 0 enable disable auto close 0 0 0 (-1,-1) 0
-----AI CHN VQE STATUS6---------------------------------------------------------------------------------------------------
AiDev AiChn State bAec bUsrmod VcPrtctFrqL VcPrtctFrqL1 EcoBndLow EcoBndHgh EcoBndLow2 EcoBndHgh2
0 0 enable disable auto 0 0 0 0 0 0
-----AI CHN VQE STATUS7---------------------------------------------------------------------------------------------------
AiDev AiChn State bAec bUsrmod ERLBND[0] ERLBND[1] ERLBND[2] ERLBND[3] ERLBND[4] ERLBND[5]
0 0 enable disable auto 0 0 0 0 0 0
-----AI CHN VQE STATUS8---------------------------------------------------------------------------------------------------
AiDev AiChn State bAec bUsrmod ERL[0] ERL[1] ERL[2] ERL[3] ERL[4] ERL[5] ERL[6]
0 0 enable disable auto 0 0 0 0 0 0 0
2、aenc
~ # cat /proc/umap/aenc
[AENC] Version: [Hi3516A_MPP_V1.0.5.0 B030 Release], Build Time[Oct 29 2015, 20:51:06]
-----AENC CHN ATTR--------------------------------------------------------------
ChnId PlType ADPCMType PoiNum BufSize G726Rate
0 adpcm DVI4 320 30 NULL
-----AENC CHN STATUS------------------------------------------------------------
ChnId RcvFrm AiQueLost EncOk FrmErr BufFull GetStrm RlsStrm WtFile
0 2015 0 2015 0 0 2015 2015 disable
3、ao
cat /proc/umap/ao
[AO] Version: [Hi3516A_MPP_V1.0.5.0 B030 Release], Build Time: [Oct 29 2015, 20:51:06]
-----AO DEV ATTR---------------------------------------------------------------------------------------------------------
AoDev WorkMod SampR BitWid ChnCnt ClkSel SoundMod PoiNum ExFlag FrmNum
0 i2s_mas 8kHZ 16bit 1 1 mono 320 0 30
-----AO DEV STATUS-------------------------------------------------------------------------------------------------------
AoDev IntCnt fifoCnt buffInt FrmTime MaxFrmTime TranLen IsrTime MaxIsrTime CBPhy CBSize ROffSet WOffSet
0 166 0 0 40002 40008 640 81 93 88236000 2560 0 0
-----AO DEV EXTEND STATUS------------------------------------------------------------------------------------------------
AoDev enTrack bMute Volume
0 0 0 5
-----AO CHN STATUS-------------------------------------------------------------------------------------------------------
AoDev AoChn State Read Write BufEmp u32Data0 u32Data1 bResmp PoiNum InSampR OutSampR
0 0 enable 16 15 0 2e80462 fdaafee2 disable 0 (null) (null)
-----AO CHN VQE STATUS0---------------------------------------------------------------------------------------------------
AoDev AoChn State bVqe workmod RATE PoiNum WrFile
0 0 enable disable comm (null) 0 disable
-----AO CHN VQE STATUS1---------------------------------------------------------------------------------------------------
AoDev AoChn State bAnr bUsrmod NrIntensity NoiseDbThr SpProSwi
0 0 enable disable auto 0 0 0
-----AO CHN VQE STATUS2---------------------------------------------------------------------------------------------------
AoDev AoChn State bAgc bUsrmod NoiseSupSwi AdjustSpeed ImproveSNR MaxGain NoiseFloor OutputMode TargetLevel UseHPF
0 0 enable disable auto 0 0 0 0 0 0 0 0
-----AO CHN VQE STATUS3---------------------------------------------------------------------------------------------------
AoDev AoChn State bEq 100 200 250 350 500 800 1.2k 2.5k 4k 8k
0 0 enable disable 0 0 0 0 0 0 0 0 0 0
-----AO CHN VQE STATUS4---------------------------------------------------------------------------------------------------
AoDev AoChn State bHpf bUsrmod HpfFreq
0 0 enable disable auto 0
4、adec
[ADEC] Version: [Hi3516A_MPP_V1.0.5.0 B030 Release], Build Time[Oct 29 2015, 20:51:06]
-----ADEC CHN ATTR--------------------------------------------------------------
ChnId PlType ADPCMType BufSize G726Rate Mode OriSendCnt SendCnt GetCnt PutCnt
0 adpcm DVI4 20 NULL stream 195 645 626 625
~ #
请坛子里的大神帮忙看一下
/************************************/
please choose the case which you want to run:
0: start AI to AO loop
1: send audio frame to AENC channel from AI, save them
2: read audio stream from file, decode and send AO
3: start AI(AEC/ANR/ALC process), then send to AO
q: quit whole audio sample
sample command:
选择1录制音频,然后选择2播放音频
stAioAttr.enSamplerate = AUDIO_SAMPLE_RATE_8000; /*音频采样率*/
stAioAttr.enBitwidth = AUDIO_BIT_WIDTH_16; /*音频采样精度*/
stAioAttr.enWorkmode = AIO_MODE_I2S_MASTER; /*音频输入输出设备工作模式*/
stAioAttr.enSoundmode = AUDIO_SOUND_MODE_MONO; /*音频声道模式,单声道、双声道*/
stAioAttr.u32EXFlag = 0; /*扩展标志(只对 AI 采样精度为 8bit 时有效*/
stAioAttr.u32FrmNum = 30; /*缓存帧数目*/
stAioAttr.u32PtNumPerFrm = SAMPLE_AUDIO_PTNUMPERFRM; /*每帧的采样点个数*/
stAioAttr.u32ChnCnt = 1; /*支持的通道数目 Hi3516A/Hi3518EV200 输入最多支持 16 个通道,输出最多支持2 个通道*/
stAioAttr.u32ClkSel = 0;
当配置stAioAttr.u32ClkSel = 0; 时,输出完全没有声音,
当配置stAioAttr.u32ClkSel = 1; 时,会有“沙沙”声,
另外,himm 0x201200E0 0xd配置了内置audio codec。
附上log信息:
1、ai
~ # cat /proc/umap/ai
[AI] Version: [Hi3516A_MPP_V1.0.5.0 B030 Release], Build Time: [Oct 29 2015, 20:51:06]
-----AI DEV ATTR---------------------------------------------------------------------------------------------------------
AiDev WorkMod SampR BitWid ChnCnt ClkSel SoundMod PoiNum ExFlag FrmNum
0 i2s_mas 8kHZ 16bit 1 1 mono 320 0 30
-----AI DEV STATUS-------------------------------------------------------------------------------------------------------
AiDev IntCnt fifoCnt buffInt FrmTime MaxFrmTime TranLen IsrTime MaxIsrTime CBPhy CBSize ROffSet WOffSet
0 204 0 0 40001 40007 640 105 130 88236000 1280 0 0
-----AI DEV EXTEND STATUS------------------------------------------------------------------------------------------------
AiDev enTrack bMute Volume
0 0 0 0
-----AI CHN STATUS-------------------------------------------------------------------------------------------------------
AiDev AiChn State Read Write BufFul UsrQueLost u32Data0 u32Data1
0 0 enable 0 0 0 0 ec00f800 f3fff600
-----AI CHN RESAMPLE STATUS----------------------------------------------------------------------------------------------
AiDev AiChn State bResmp PoiNum InSampR OutSampR
0 0 enable disable 0 (null) (null)
-----AI CHN VQE STATUS0---------------------------------------------------------------------------------------------------
AiDev AiChn State bVqe workmod RATE PoiNum WrFile
0 0 enable disable comm (null) 0 disable
-----AI CHN VQE STATUS1---------------------------------------------------------------------------------------------------
AiDev AiChn State bAnr bUsrmod NrIntensity NoiseDbThr SpProSwi bHdr bUsrmod MaxGain MinGain MicGainStp MicGain
0 0 enable disable auto 0 0 0 disable auto 0 0 0 0
-----AI CHN VQE STATUS2---------------------------------------------------------------------------------------------------
AiDev AiChn State bAgc bUsrmod NoiseSupSwi AdjustSpeed ImproveSNR MaxGain NoiseFloor OutputMode TargetLevel UseHPF
0 0 enable disable auto 0 0 0 0 -50 0 -40 0
-----AI CHN VQE STATUS3---------------------------------------------------------------------------------------------------
AiDev AiChn State bEq 100 200 250 350 500 800 1.2k 2.5k 4k 8k
0 0 enable disable 0 0 0 0 0 0 0 0 0 0
-----AI CHN VQE STATUS4---------------------------------------------------------------------------------------------------
AiDev AiChn State bHpf bUsrmod HpfFreq bRnr bUsrmod MaxNrLevel NsThresh NrMode GainVol
0 0 enable disable auto 0 disable auto 0 0 0 0
-----AI CHN VQE STATUS5---------------------------------------------------------------------------------------------------
AiDev AiChn State bAec bUsrmod CngMode DTHnlStQTh NrAlPsEngy NrClnSupEngy AecAo AecFail
0 0 enable disable auto close 0 0 0 (-1,-1) 0
-----AI CHN VQE STATUS6---------------------------------------------------------------------------------------------------
AiDev AiChn State bAec bUsrmod VcPrtctFrqL VcPrtctFrqL1 EcoBndLow EcoBndHgh EcoBndLow2 EcoBndHgh2
0 0 enable disable auto 0 0 0 0 0 0
-----AI CHN VQE STATUS7---------------------------------------------------------------------------------------------------
AiDev AiChn State bAec bUsrmod ERLBND[0] ERLBND[1] ERLBND[2] ERLBND[3] ERLBND[4] ERLBND[5]
0 0 enable disable auto 0 0 0 0 0 0
-----AI CHN VQE STATUS8---------------------------------------------------------------------------------------------------
AiDev AiChn State bAec bUsrmod ERL[0] ERL[1] ERL[2] ERL[3] ERL[4] ERL[5] ERL[6]
0 0 enable disable auto 0 0 0 0 0 0 0
2、aenc
~ # cat /proc/umap/aenc
[AENC] Version: [Hi3516A_MPP_V1.0.5.0 B030 Release], Build Time[Oct 29 2015, 20:51:06]
-----AENC CHN ATTR--------------------------------------------------------------
ChnId PlType ADPCMType PoiNum BufSize G726Rate
0 adpcm DVI4 320 30 NULL
-----AENC CHN STATUS------------------------------------------------------------
ChnId RcvFrm AiQueLost EncOk FrmErr BufFull GetStrm RlsStrm WtFile
0 2015 0 2015 0 0 2015 2015 disable
3、ao
cat /proc/umap/ao
[AO] Version: [Hi3516A_MPP_V1.0.5.0 B030 Release], Build Time: [Oct 29 2015, 20:51:06]
-----AO DEV ATTR---------------------------------------------------------------------------------------------------------
AoDev WorkMod SampR BitWid ChnCnt ClkSel SoundMod PoiNum ExFlag FrmNum
0 i2s_mas 8kHZ 16bit 1 1 mono 320 0 30
-----AO DEV STATUS-------------------------------------------------------------------------------------------------------
AoDev IntCnt fifoCnt buffInt FrmTime MaxFrmTime TranLen IsrTime MaxIsrTime CBPhy CBSize ROffSet WOffSet
0 166 0 0 40002 40008 640 81 93 88236000 2560 0 0
-----AO DEV EXTEND STATUS------------------------------------------------------------------------------------------------
AoDev enTrack bMute Volume
0 0 0 5
-----AO CHN STATUS-------------------------------------------------------------------------------------------------------
AoDev AoChn State Read Write BufEmp u32Data0 u32Data1 bResmp PoiNum InSampR OutSampR
0 0 enable 16 15 0 2e80462 fdaafee2 disable 0 (null) (null)
-----AO CHN VQE STATUS0---------------------------------------------------------------------------------------------------
AoDev AoChn State bVqe workmod RATE PoiNum WrFile
0 0 enable disable comm (null) 0 disable
-----AO CHN VQE STATUS1---------------------------------------------------------------------------------------------------
AoDev AoChn State bAnr bUsrmod NrIntensity NoiseDbThr SpProSwi
0 0 enable disable auto 0 0 0
-----AO CHN VQE STATUS2---------------------------------------------------------------------------------------------------
AoDev AoChn State bAgc bUsrmod NoiseSupSwi AdjustSpeed ImproveSNR MaxGain NoiseFloor OutputMode TargetLevel UseHPF
0 0 enable disable auto 0 0 0 0 0 0 0 0
-----AO CHN VQE STATUS3---------------------------------------------------------------------------------------------------
AoDev AoChn State bEq 100 200 250 350 500 800 1.2k 2.5k 4k 8k
0 0 enable disable 0 0 0 0 0 0 0 0 0 0
-----AO CHN VQE STATUS4---------------------------------------------------------------------------------------------------
AoDev AoChn State bHpf bUsrmod HpfFreq
0 0 enable disable auto 0
4、adec
[ADEC] Version: [Hi3516A_MPP_V1.0.5.0 B030 Release], Build Time[Oct 29 2015, 20:51:06]
-----ADEC CHN ATTR--------------------------------------------------------------
ChnId PlType ADPCMType BufSize G726Rate Mode OriSendCnt SendCnt GetCnt PutCnt
0 adpcm DVI4 20 NULL stream 195 645 626 625
~ #
请坛子里的大神帮忙看一下
我来回答
回答0个
时间排序
认可量排序
暂无数据
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片![alt](url)
相关问答
-
2023-07-10 16:16:54
-
2017-10-16 17:27:10
-
2015-05-21 17:13:46
-
2017-04-28 16:48:01
-
2017-08-08 19:17:55
-
2017-04-05 19:45:18
-
2020-11-11 11:39:03
-
2018-12-04 11:31:34
-
2020-10-12 16:35:23
-
2020-08-14 14:47:38
-
2017-07-06 10:25:53
-
2015-10-15 18:27:29
-
2015-11-06 23:09:13
-
2016-12-01 14:50:16
-
2015-12-09 19:23:20
-
2019-12-06 08:52:44
-
2018-07-24 17:27:23
-
2019-08-22 20:08:20
-
2016-11-02 16:36:14
无更多相似问答 去提问
点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
20帮忙交叉编译个源码
-
5Hi3516CV610 如何使用SD卡升级固件
-
5cat /dev/logmpp 报错 <3>[ vi] [func]:vi_send_frame_node [line]:99 [info]:vi pic queue is full!
-
50如何获取vpss chn的图像修改后发送至vo
-
5FPGA通过Bt1120传YUV422数据过来,vi接收不到数据——3516dv500
-
50SS928 运行PQtools 拼接 推到设备里有一半画面会异常
-
53536AV100的sample_vdec输出到CVBS显示
-
10海思板子mpp怎么在vi阶段改变视频数据尺寸
-
10HI3559AV100 多摄像头同步模式
-
9海思ss928单路摄像头vio中加入opencv处理并显示
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认