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

Commit e2c6ab17 authored by Joseph Pirozzo's avatar Joseph Pirozzo
Browse files

Utilize setting for AVRCP Target

There is a setting that controls which AVRCP Target
version is enabled, use the same setting for both
source and sink devices.

Bug: 62397951
Test: Observe SDP record on sink device.
Change-Id: I65b307d011048ec88b3af8c542ce70601294cca8
(cherry picked from commit a39e5bfe6eec9571105ec8ce90c705f4281de7fd)
parent 2d1c6f89
Loading
Loading
Loading
Loading
+11 −16
Original line number Diff line number Diff line
@@ -468,12 +468,11 @@ static void bta_av_api_register(tBTA_AV_DATA* p_data) {
                        BTA_ID_AV);
#endif

        /* For the Audio Sink role we support additional TG 1.3 to support
        /* For the Audio Sink role we support additional TG to support
         * absolute volume.
         */
        uint16_t profile_version = AVRC_REV_1_0;

        if (profile_initialized == UUID_SERVCLASS_AUDIO_SOURCE) {
        if (!strncmp(AVRCP_1_6_STRING, avrcp_version,
                     sizeof(AVRCP_1_6_STRING))) {
          profile_version = AVRC_REV_1_6;
@@ -486,10 +485,6 @@ static void bta_av_api_register(tBTA_AV_DATA* p_data) {
        } else {
          profile_version = AVRC_REV_1_4;
        }
        } else if (profile_initialized == UUID_SERVCLASS_AUDIO_SINK) {
          // Initialize AVRCP1.4 to provide Absolute Volume control.
          profile_version = AVRC_REV_1_4;
        }

        bta_ar_reg_avrc(
            UUID_SERVCLASS_AV_REM_CTRL_TARGET, "AV Remote Control Target", NULL,