3499
- 收藏
- 点赞
- 分享
- 举报
HDM音频输入是静音
HDM音视频输入,通过ADV7611后,视频转成bt1120信号,音频通过I2S接入。用海思的sample_audio测试程序,把ai的数据保存到文件,使工具播放出来的是静音,保存的是PCM格式。
stAioAttr.enSamplerate = AUDIO_SAMPLE_RATE_44100;
stAioAttr.enBitwidth = AUDIO_BIT_WIDTH_16;
stAioAttr.enWorkmode = AIO_MODE_I2S_MASTER;
stAioAttr.enSoundmode = AUDIO_SOUND_MODE_STEREO;
stAioAttr.u32EXFlag = 0;
stAioAttr.u32FrmNum = 30;
stAioAttr.u32PtNumPerFrm = SAMPLE_AUDIO_PTNUMPERFRM;
stAioAttr.u32ChnCnt = 2;
stAioAttr.u32ClkSel = 1;
内置,外置的AudioCodec都试过了。
针脚复用配置了:
himm 0x200f01ac 0x2; # i2s2_mclk
himm 0x200f01b0 0x2; # i2s2_bclk_tx
himm 0x200f01b4 0x2; # i2s2_ws_tx
himm 0x200f01b8 0x2; # i2s2_sd_tx
himm 0x200f01bc 0x2; # i2s2_bclk_rx
himm 0x200f01c0 0x2; # i2s2_ws_rx
himm 0x200f01c4 0x2; # i2s2_sd_rx
/mnt # 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 44.1kHZ 16bit 2 1 stereo 320 0 30
-----AI DEV STATUS-------------------------------------------------------------------------------------------------------
AiDev IntCnt fifoCnt buffInt FrmTime MaxFrmTime TranLen IsrTime MaxIsrTime CBPhy CBSize ROffSet WOffSet
0 1139 0 0 7257 7260 1280 160 209 84236000 2560 500 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 30000 20002
0 1 enable 0 0 0 0 10003 0
-----AI CHN RESAMPLE STATUS----------------------------------------------------------------------------------------------
AiDev AiChn State bResmp PoiNum InSampR OutSampR
0 0 enable disable 0 (null) (null)
0 1 enable disable 0 (null) (null)
/mnt # 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 lpcm NULL 320 30 NULL
-----AENC CHN STATUS------------------------------------------------------------
ChnId RcvFrm AiQueLost EncOk FrmErr BufFull GetStrm RlsStrm WtFile
0 0 0 0 0 0 0 0 disable
stAioAttr.enSamplerate = AUDIO_SAMPLE_RATE_44100;
stAioAttr.enBitwidth = AUDIO_BIT_WIDTH_16;
stAioAttr.enWorkmode = AIO_MODE_I2S_MASTER;
stAioAttr.enSoundmode = AUDIO_SOUND_MODE_STEREO;
stAioAttr.u32EXFlag = 0;
stAioAttr.u32FrmNum = 30;
stAioAttr.u32PtNumPerFrm = SAMPLE_AUDIO_PTNUMPERFRM;
stAioAttr.u32ChnCnt = 2;
stAioAttr.u32ClkSel = 1;
内置,外置的AudioCodec都试过了。
针脚复用配置了:
himm 0x200f01ac 0x2; # i2s2_mclk
himm 0x200f01b0 0x2; # i2s2_bclk_tx
himm 0x200f01b4 0x2; # i2s2_ws_tx
himm 0x200f01b8 0x2; # i2s2_sd_tx
himm 0x200f01bc 0x2; # i2s2_bclk_rx
himm 0x200f01c0 0x2; # i2s2_ws_rx
himm 0x200f01c4 0x2; # i2s2_sd_rx
/mnt # 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 44.1kHZ 16bit 2 1 stereo 320 0 30
-----AI DEV STATUS-------------------------------------------------------------------------------------------------------
AiDev IntCnt fifoCnt buffInt FrmTime MaxFrmTime TranLen IsrTime MaxIsrTime CBPhy CBSize ROffSet WOffSet
0 1139 0 0 7257 7260 1280 160 209 84236000 2560 500 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 30000 20002
0 1 enable 0 0 0 0 10003 0
-----AI CHN RESAMPLE STATUS----------------------------------------------------------------------------------------------
AiDev AiChn State bResmp PoiNum InSampR OutSampR
0 0 enable disable 0 (null) (null)
0 1 enable disable 0 (null) (null)
/mnt # 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 lpcm NULL 320 30 NULL
-----AENC CHN STATUS------------------------------------------------------------
ChnId RcvFrm AiQueLost EncOk FrmErr BufFull GetStrm RlsStrm WtFile
0 0 0 0 0 0 0 0 disable
我来回答
回答6个
时间排序
认可量排序
认可0
认可0
认可0
认可0
认可0
认可0
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片![alt](url)
相关问答
-
2017-03-09 16:09:30
-
2015-11-23 17:26:36
-
2020-09-24 10:42:23
-
2016-08-02 10:57:33
-
2018-01-10 10:44:29
-
2018-01-29 18:36:15
-
2017-12-12 09:25:03
-
2023-02-20 17:54:12
-
2018-04-20 17:42:33
-
2014-04-01 10:21:24
-
2018-02-28 19:51:26
-
2015-03-03 22:09:20
-
2018-06-21 11:42:33
-
2017-08-15 13:53:45
-
2018-03-27 10:19:20
-
2015-07-22 17:02:35
-
2022-08-20 13:52:41
-
2018-04-09 14:35:01
-
2022-10-26 15:44:38
无更多相似问答 去提问
点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
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处理并显示
-
10EB-RV1126-BC-191板子运行自己编码的程序
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认