内容简介
本文介绍在qcc5171下切换equalizer的测试过程。
测试工具
mde:mde_win_2.8.0.37_x64
toolkit:adk toolkit 1.2.13.21_x64
qact:null
bluesuite:null
hardware:qualcomm qcc5171 dev.
software:adk-src-1-0_qtil_standard_oem_qcc517x-qcc307x,adk-22.3-cs-r00344.1 0.0.344.1 headset
here we go
切换eq的最终调用函数为:operatorsstandardsetucid(peq_op,0x00);
其中ucid这个参数就是这里的:
上面第一组是off,第二、三、四、五、六组为固定eq,第七为user eq。
设置eq可以通过本地事件触发,也可以通过gaia,gaia就直接通过app进入到equalizer选项进行设置即可。
本地事件触发在headset_test.c中有一个测试函数:
这里的参数就一个preset,就是上面截图中的ucid,如果是user eq则直接输入preset=0x3f,如果是其他eq,则输入preset = ucid-1,比如需要选择rock这组,则可以直接输入:
apps1.fw.call.apptest_musicprocessingsetpreset(1)
实际测试下来,
通过apptest_musicprocessingsetpreset来设置eq,其log如下:
866.695 apps1: b0: apptest_musicprocessingsetpresetpreset:8
866.695 apps1: b1: musicprocessing_setpreset 8
866.695 apps1: b2: musicprocessing_setpreset, sendgaia notification
866.695 apps1: b3: musicprocessinggaiaplugin_eqactivechanged,new preset id is: 8
866.695 apps1: b4:musicprocessinggaiaplugin_eqsetchange
866.695 apps1: b5: gaiaframework_sendnotification,feature_id 5, notification_id 1 not active on transport 48d08
866.697 apps1: b6:kymera_internal_user_eq_select_eq_bank
866.697 apps1: b7: kymera_selecteqbanknow 8
866.697 apps1: b8: kymera_selecteqbanknow selecting8
866.785 apps1: b9:musicprocessinggaiaplugin_mainhandler, transport 48340, pdu_id 5
866.785 apps1: ba:musicprocessinggaiaplugin_getusereqsetconfiguration
866.785 apps1: bb:musicprocessing_getnumberofactivebands 5
866.785 apps1: bc:musicprocessinggaiaplugin_getusereqsetconfiguration start 0 end 4 num 5 numrequested 5
866.785 apps1: bd:musicprocessinggaiaplugin_populateeqbandinformation start_band 0, end_band 4
866.785 apps1: be:musicprocessinggaiaplugin_loadeqparameterstopayload for band: 0
866.785 apps1: bf:musicprocessinggaiaplugin_loadeqparameterstopayload freq 120, q 2867, type 13,gain 180
866.785 apps1: c0:musicprocessinggaiaplugin_loadeqparameterstopayload for band: 1
866.785 apps1: c1:musicprocessinggaiaplugin_loadeqparameterstopayload freq 500, q 2867, type 13,gain 180
866.785 apps1: c2: musicprocessinggaiaplugin_loadeqparameterstopayloadfor band: 2
866.785 apps1: c3:musicprocessinggaiaplugin_loadeqparameterstopayload freq 1500, q 2867, type 13,gain 180
866.785 apps1: c4:musicprocessinggaiaplugin_loadeqparameterstopayload for band: 3
866.785 apps1: c5:musicprocessinggaiaplugin_loadeqparameterstopayload freq 5000, q 2867, type 13,gain 180
866.785 apps1: c6:musicprocessinggaiaplugin_loadeqparameterstopayload for band: 4
866.785 apps1: c7:musicprocessinggaiaplugin_loadeqparameterstopayload freq 12000, q 2867, type13, gain 180
866.785 apps1: c8: response_length 37
866.785 apps1: c9: 00 04 00 78 0b 33 0d 00
866.785 apps1: ca: b4 01 f4 0b 33 0d 00 b4
866.785 apps1: cb: 05 dc 0b 33 0d 00 b4 13
866.785 apps1: cc: 88 0b 33 0d 00 b4 2e e0
866.785 apps1: cd: 0b 33 0d 00 b4
866.788 apps1: ce:musicprocessinggaiaplugin_printdata, payload length is 2
866.788 apps1: cf:musicprocessinggaiaplugin_printdata payload[0] = 0
866.788 apps1: d0: musicprocessinggaiaplugin_printdatapayload[1] = 4
如果要对设置eq过程中做一些其他操作的话,可以参考上面的log来分析代码。
东芝以缺乏细节为由拒绝了CVC提出的200亿美元收购要约
Cree宣布将投资10亿美元用于扩大碳化硅产能
放大器自身的电流噪声通过何种方案可以降低呢?是在前端进行抑制还是后端过滤?
VIAV推出一系列产品和服务,可简化并加速高速网络测试
2019,实现物联网的最佳通信技术是……
介绍在QCC5171下切换Equalizer的测试过程
天线基础知识(三)
物联网可以为资产管理带来什么好处
联想乐檬K12 Pro发布:首发价899起
关于LCD黑白液晶屏,它的屏显示方式一般有哪些
传统节能灯调节器是否是用于LED电路?LED灯芯11点缺点详细剖析
国芯思辰|中微爱芯音频功率放大器AIP8002应用于蓝牙音箱,连续输出功率典型值2W
光储融合 天合光能助力北美清洁能源价值升级
基于SVPWM算法实现串级调速系统的优化设计
使用外部N沟道MOSFET驱动的步进马达MS35711T
简述便携式地物光谱仪的应用
Omniverse Connectors功能及区别简析
在校园中有哪些场景应用到人脸识别系统?
努比亚红魔3手机评测 非常值得入手的国产游戏手机
自力式减压阀是什么,它的工作原理是怎样的