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:
@@ -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 "
|
||||
|
||||
Reference in New Issue
Block a user