Disable throttling of SoundTrigger

Currently we don't have a way of throttling sound trigger events without
upsettings the DSP.

Bug: 78212455, 78310504
Test: Played music while having song detection enabled. Saw songs being
      detected

Change-Id: I3494d608f097532f02e6a588e22d9fe2d06048b1
This commit is contained in:
Philip P. Moltmann
2018-05-07 15:53:51 -07:00
parent 49fe27de4b
commit 3d1683be84

View File

@@ -965,8 +965,9 @@ public class SoundTriggerService extends SystemService {
MAX_SOUND_TRIGGER_DETECTION_SERVICE_OPS_PER_DAY,
Integer.MAX_VALUE);
// As we currently cannot dropping an op safely, disable throttling
int opsAdded = mNumOps.getOpsAdded();
if (mNumOps.getOpsAdded() >= opsAllowed) {
if (false && mNumOps.getOpsAdded() >= opsAllowed) {
try {
if (DEBUG || opsAllowed + 10 > opsAdded) {
Slog.w(TAG, mPuuid + ": Dropped operation as too many operations "