aaudio: disable MMAP mode by not creating AAudioService

Only Legacy mode will work, which uses AudioFlinger.

Note that another CL with the same ID in oc-mr1-dev is used to prevent
AAudio MMAP from being disabled in MR1 and master.

Bug: 65280854
Bug: 65262790
Test: See bugs. Any attempt to use MMAP will fail to open the service.
Merged-In: Ic68d136c99c16134aa704495311ab25285fd76a9
Change-Id: Ic68d136c99c16134aa704495311ab25285fd76a9
gugelfrei
Phil Burk 7 years ago
parent 0e4a89e436
commit 969f2c97f0

@ -132,7 +132,8 @@ int main(int argc __unused, char **argv)
ALOGI("ServiceManager: %p", sm.get());
AudioFlinger::instantiate();
AudioPolicyService::instantiate();
AAudioService::instantiate();
// AAudioService disabled because we do not support MMAP mode in OC or OC-DR1.
// AAudioService::instantiate();
RadioService::instantiate();
SoundTriggerHwService::instantiate();
ProcessState::self()->startThreadPool();

Loading…
Cancel
Save