已经有提示了, 基本就是参考sink的代码, 最重要的是在av_headset_kymera_a2dp.c/appKymeraA2dpStartMaster() and appKymeraA2dpStartSlave()添加
// Get the PEQ operator id
Operator peq_op = PanicZero(ChainGetOperatorByRole(chain_handle, OPR_PEQ));
// Setting the sample rate for the PEQ as the default is 8kHz
OperatorsStandardSetSampleRate(peq_op, rate);
AudioMusicProcessingUnregisterRole(audio_music_processing_user_peq_role);
AudioMusicProcessingRegisterRole(audio_music_processing_user_peq_role, peq_op);
这样peq op才有注册进去.
如果还有疑问请提出.