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

Commit 55a95706 authored by Andy Hung's avatar Andy Hung
Browse files

AudioTrack: Enable CONTENT_TYPE_SPEECH for automatic power savings

Flag: EXEMPT bugfix
Test: play audible podcast, check DEEP_BUFFER sink
Bug: 352145375
Merged-In: I4adfe8aa573a04d7a873f029d04c51eb6ca12d91
Change-Id: I4adfe8aa573a04d7a873f029d04c51eb6ca12d91
parent 2e1a903f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1797,6 +1797,7 @@ public class AudioTrack extends PlayerBase
                (flags != 0  // cannot have any special flags
                || attributes.getUsage() != AudioAttributes.USAGE_MEDIA
                || (attributes.getContentType() != AudioAttributes.CONTENT_TYPE_UNKNOWN
                    && attributes.getContentType() != AudioAttributes.CONTENT_TYPE_SPEECH
                    && attributes.getContentType() != AudioAttributes.CONTENT_TYPE_MUSIC
                    && attributes.getContentType() != AudioAttributes.CONTENT_TYPE_MOVIE))) {
            return false;