内容简介
本文介绍在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来分析代码。
审核编辑:刘清
全部0条评论
快来发表一下你的评论吧 !