From 55f7247d63863330737ab9d97e7cbce2ed5c26d7 Mon Sep 17 00:00:00 2001 From: Yifan Hong Date: Thu, 16 Feb 2017 15:03:53 -0800 Subject: [PATCH] AudioDevices HAL uses "default" service name The getService() and registerAsService() methods of interface objects now have default parameters of "default" for the service name. HALs will not have to use any service name unless they want to register more than one service. Test: builds Bug: 33844934 Change-Id: I7ccbf802fcded790b4be325f36a34a3af6b42052 --- audio/2.0/default/service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/2.0/default/service.cpp b/audio/2.0/default/service.cpp index 8b608c8002..6dcf7ecda8 100644 --- a/audio/2.0/default/service.cpp +++ b/audio/2.0/default/service.cpp @@ -38,7 +38,7 @@ using android::OK; int main(int /* argc */, char* /* argv */ []) { configureRpcThreadpool(16, true /*callerWillJoin*/); android::status_t status; - status = registerPassthroughServiceImplementation("audio_devices_factory"); + status = registerPassthroughServiceImplementation(); LOG_ALWAYS_FATAL_IF(status != OK, "Error while registering audio service: %d", status); status = registerPassthroughServiceImplementation("audio_effects_factory"); LOG_ALWAYS_FATAL_IF(status != OK, "Error while registering audio effects service: %d", status);