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

Commit 3b114d98 authored by Zhihai Xu's avatar Zhihai Xu Committed by Android (Google) Code Review
Browse files

Merge "a2dp media packet sent too slow, which cause packet overflow." into klp-dev

parents c4b41d0d e4b8c116
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@
#include "utils.h"
#include "bt_vendor_lib.h"
#include <sys/prctl.h>
#include "bt_utils.h"

/******************************************************************************
**  Constants & Macros
@@ -247,6 +248,8 @@ static void *userial_read_thread(void *arg)
    rx_flow_on = TRUE;
    userial_running = 1;

    raise_priority_a2dp(TASK_HIGH_USERIAL_READ);

    while (userial_running)
    {
        if (bt_hc_cbacks)
+3 −0
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@
#include "userial.h"
#include "utils.h"
#include "bt_vendor_lib.h"
#include "bt_utils.h"

/******************************************************************************
**  Constants & Macros
@@ -148,6 +149,8 @@ static void *userial_read_thread(void *arg)
    rx_flow_on = TRUE;
    userial_running = 1;

    raise_priority_a2dp(TASK_HIGH_USERIAL_READ);

    while (userial_running)
    {
        /* Initialize the input fd set */
+1 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ typedef enum {
    TASK_HIGH_GKI_TIMER,
    TASK_HIGH_BTU,
    TASK_HIGH_HCI_WORKER,
    TASK_HIGH_USERIAL_READ,
    TASK_HIGH_MAX
} tHIGH_PRIORITY_TASK;