This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2564MODA: Removing AVRCP profile from A2DP demo

Part Number: CC2564MODA

Hi

My customer is making their application based on A2DP demo in
http://www.ti.com/tool/CC256XM4BTBLESW

They wants to remove AVRCP profile from A2DP demo to reduce number of listing tests.
It seems AVRCP is integrated by default.
BTPSCFG.h line#296

#define BTPS_CONFIGURATION_AUD_SUPPORT_REMOTE_CONTROL                          1


If I simply change the value to 0, build fails with 33 errors which related to AVRCP configuration in A2DPDemo.c.

Does customer need to check each error and fix it step by step?
Is there easy way to remove AVRCP from A2DP demo?


Thanks and regards,
Koichiro Tashiro

  • Hi Koichiro,

    Correct. AVRCP is integrated into the demo and unfortunately there is no easy disable option that will remove it. I see two ways you around this. One is to not disable AVRCP but to prevent it from getting enabled and the other is to deal with the errors step by step. If preventing enable is an option for the customer please read below, otherwise they will have to get rid of the errors because of the way the example is written.

    To disable it it appears AVRCP is registered when the AUD_Initialize function is called in either the Initialize_Sink or Initialize_Source function through the InitializationInfo structure. This structure refers to the RemoteControlRoleInfo and InitializationInfoAVR structures that are related to AVRCP. I don't have the HW to test this but my guess is if you change the following line:

    FROM:

    InitializationInfo.RemoteControlInitializationInfo = &InitializationInfoAVR;

    TO:

    InitializationInfo.RemoteControlInitializationInfo = NULL;

    When AUD_Initialize gets called it will not receive the AVRCP related parameters and therefore will not be used in the application. 

  • Hi Jesu,

    Thanks for your reply.
    Customer will take your proposal (preventing enable).

    Thanks and regards,
    Koichiro Tashiro