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

Commit b1580266 authored by Joseph Pirozzo's avatar Joseph Pirozzo Committed by Gerrit Code Review
Browse files

Merge "Utilize setting for AVRCP Target"

parents 3b4c31a4 8d3d7645
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,