OSDN Git Service

AudioService: reduce EU volume warning thresdhold for USB headsets
authorEric Laurent <elaurent@google.com>
Fri, 1 Sep 2017 22:12:42 +0000 (15:12 -0700)
committerDavid Lin <dtwlin@google.com>
Tue, 19 Sep 2017 16:11:24 +0000 (16:11 +0000)
commit630f37a4ad13126d0bbdaa47052177e2c43c358f
tree8af456dbe5478dbe9bab310a1ffd4d3c7e3b7e5e
parent60af01bec90cbc59463554c5fda3a4acad4bbb32
AudioService: reduce EU volume warning thresdhold for USB headsets

Take into account additional gain due to simultaneous application of
EQ and bass boost by substracting 7dB from current warning message threshold.

Bug: 65225835
Test: check warning displayed when playing over USB headset after boot when
no SIM is present

Change-Id: I1bfcbf571d72122f4df6ff5e40be227c42d555e3
(cherry picked from commit 0e5deb3967398834c9d2321b31d3c56b380e98b5)
services/core/java/com/android/server/audio/AudioService.java