power: ADPF: make uclamp.min stable

Considering the previous uclamp.min value is the base of PID output.
Instead of:
  `next_min = std::min(sUclampMinHighLimit, output);`
We should use:
  `next_min = std::min(sUclampMinHighLimit, current_min + output);`

When session status entered stale state, set the uclamp to 0, but keep
the current_min. That would be helpful for boosting the heavy workload
of the first few frames.

Bug: 204444691
Test: build && manual test

Change-Id: Idb19e2bfd8e9522fae5fd452b1fcc58786e96e65
2 files changed
tree: 1c44f16bfda216418929300ed1c6b7ff3b7d1a8d
  1. aidl/
  2. alsa_utils_legacy/
  3. BesLoudness/
  4. hidl/
  5. interfaces/
  6. libmtkperf_client/
  7. Android.bp
  8. Android.mk
  9. README.md
README.md

Common hardware components for MediaTek devices