Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d264f538 authored by Ajay Panicker's avatar Ajay Panicker Committed by android-build-merger
Browse files

Merge "Add default AVRCP version to prevent confusing log message"

am: 0d29a184

Change-Id: I06dca69bf293436434bf95acb193c5a60a07e3bc
parents f146abf7 0d29a184
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -76,6 +76,10 @@
#define AVRCP_1_5_STRING "avrcp15"
#endif

#ifndef AVRCP_1_4_STRING
#define AVRCP_1_4_STRING "avrcp14"
#endif

/* state machine states */
enum { BTA_AV_INIT_ST, BTA_AV_OPEN_ST };

@@ -477,7 +481,8 @@ static void bta_av_api_register(tBTA_AV_DATA* p_data) {
        if (profile_initialized == UUID_SERVCLASS_AUDIO_SOURCE) {
          // This check can override the AVRCP profile version with a property
          char avrcp_version[PROPERTY_VALUE_MAX] = {0};
          osi_property_get(AVRCP_VERSION_PROPERTY, avrcp_version, "");
          osi_property_get(AVRCP_VERSION_PROPERTY, avrcp_version,
                           AVRCP_1_4_STRING);
          LOG_INFO(LOG_TAG, "AVRCP version used for sdp: \"%s\"",
                   avrcp_version);