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

Commit 3ea004dd authored by Andy Hung's avatar Andy Hung
Browse files

Remove throttle logcat for bluetooth

Due to reduced buffer sizes for bluetooth it is possible to throttle
regularly, do not logcat throttle for bluetooth to avoid spamming.

Bug: 28286313
Change-Id: I9a572077a58c8e5cce3d5ac4de3cc6d97d94d7a0
parent 26583ffe
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3147,7 +3147,9 @@ bool AudioFlinger::PlaybackThread::threadLoop()
                            uint32_t diff = mThreadThrottleTimeMs - mThreadThrottleEndMs;
                            if (diff > 0) {
                                // notify of throttle end on debug log
                                ALOGD("mixer(%p) throttle end: throttle time(%u)", this, diff);
                                // but prevent spamming for bluetooth
                                ALOGD_IF(!audio_is_a2dp_out_device(outDevice()),
                                        "mixer(%p) throttle end: throttle time(%u)", this, diff);
                                mThreadThrottleEndMs = mThreadThrottleTimeMs;
                            }
                        }