#endif
-#define HAL_BACKEND_SERVICE_APPID "d::HalBackendService"
-
#define HAL_CODEC_IPC_PARAM_KEY_BUFFER "HAL_CODEC_BUFFER_S"
#define HAL_CODEC_IPC_PARAM_KEY_PLANE0_DATA "HAL_CODEC_PLANE0"
#define HAL_CODEC_IPC_PARAM_KEY_PLANE1_DATA "HAL_CODEC_PLANE1"
.disconnected = __hal_codec_ipc_disconnected,
.rejected = __hal_codec_ipc_rejected
};
+ const char *stub_proc_name = NULL;
HAL_CODEC_RETURN_VAL_IF_FAILED(codec_handle, HAL_CODEC_ERROR_INVALID_PARAMETER);
SLOGI("start");
+ ret = hal_common_get_stub_proc_name(HAL_MODULE_CODEC, &stub_proc_name);
+ if (ret != 0) {
+ SLOGE("Failed to get stub proc name for codec: ret(%d)", ret);
+ return ret;
+ }
+
new_handle = g_new0(hal_codec_ipc_s, 1);
- ret = rpc_port_proxy_codec_create(HAL_BACKEND_SERVICE_APPID,
- &rpc_callbacks, NULL, &new_handle->rpc_handle);
+ ret = rpc_port_proxy_codec_create(stub_proc_name, &rpc_callbacks, NULL,
+ &new_handle->rpc_handle);
if (ret != RPC_PORT_ERROR_NONE) {
SLOGE("RPC handle failed[0x%x]", ret);
g_free(new_handle);