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

Commit 535c55be authored by Sridhar Vashist's avatar Sridhar Vashist Committed by android-build-merger
Browse files

Make default SBC bitrate configurable by device.

am: d4e7035d

* commit 'd4e7035d':
  Make default SBC bitrate configurable by device.
parents f1c129c5 d4e7035d
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -153,8 +153,10 @@ enum {
#define BTIF_MEDIA_BITRATE_STEP 5
#endif

/* Middle quality quality setting @ 44.1 khz */
#define DEFAULT_SBC_BITRATE 328
#ifndef BTIF_A2DP_DEFAULT_BITRATE
/* High quality quality setting @ 44.1 khz */
#define BTIF_A2DP_DEFAULT_BITRATE 328
#endif

#ifndef BTIF_A2DP_NON_EDR_MAX_RATE
#define BTIF_A2DP_NON_EDR_MAX_RATE 229
@@ -623,7 +625,7 @@ static void btif_a2dp_data_cb(tUIPC_CH_ID ch_id, tUIPC_EVENT event)

static UINT16 btif_media_task_get_sbc_rate(void)
{
    UINT16 rate = DEFAULT_SBC_BITRATE;
    UINT16 rate = BTIF_A2DP_DEFAULT_BITRATE;

    /* restrict bitrate if a2dp link is non-edr */
    if (!btif_av_is_peer_edr())