内容简介
本文介绍在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来分析代码。
审核编辑:刘清
-
测试
+关注
关注
8文章
5155浏览量
126461 -
OEM
+关注
关注
4文章
400浏览量
50264 -
Software
+关注
关注
0文章
25浏览量
11664 -
Equalizer
+关注
关注
0文章
18浏览量
8201
原文标题:QCC5171 headset工程切换EQ测试
文章出处:【微信号:TalkBT,微信公众号:蓝牙】欢迎添加关注!文章转载请注明出处。
发布评论请先 登录
相关推荐
评论