summaryrefslogtreecommitdiff
path: root/qahw_api/src/qahw_api.cpp
diff options
context:
space:
mode:
authorTrinath Thammishetty <tthamish@codeaurora.org>2018-09-28 12:43:24 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2018-10-29 20:09:03 -0700
commit580f1de09e9724ba0c44a097e644b2eb3f568c9c (patch)
treec37775097daf966376178dd6f2b968570643aa12 /qahw_api/src/qahw_api.cpp
parentcb5b57891769acd7d9a8e6081c326c16e072664c (diff)
hal: add support for configuring render window
Add support to set render window in transcode loopback usecase. Render window is used by DSP to take rendering decision, i.e, whether input frame should be rendered, dropped or repeated. Change-Id: I87560a8e437b33dcd15094f30a532b3ed3d3749f
Diffstat (limited to 'qahw_api/src/qahw_api.cpp')
-rw-r--r--qahw_api/src/qahw_api.cpp20
1 files changed, 19 insertions, 1 deletions
diff --git a/qahw_api/src/qahw_api.cpp b/qahw_api/src/qahw_api.cpp
index cbd90410..f1c75f45 100644
--- a/qahw_api/src/qahw_api.cpp
+++ b/qahw_api/src/qahw_api.cpp
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
+* Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -915,6 +915,15 @@ int qahw_release_audio_patch(qahw_module_handle_t *hw_module,
}
}
+int qahw_loopback_set_param_data(qahw_module_handle_t *hw_module __unused,
+ audio_patch_handle_t handle __unused,
+ qahw_loopback_param_id param_id __unused,
+ qahw_loopback_param_payload *payload __unused)
+{
+ ALOGD("%d:%s", __LINE__, __func__);
+ return -ENOSYS;
+}
+
int qahw_get_audio_port(qahw_module_handle_t *hw_module,
struct audio_port *port)
{
@@ -1699,6 +1708,15 @@ int qahw_release_audio_patch(qahw_module_handle_t *hw_module,
return qahw_release_audio_patch_l(hw_module, handle);
}
+int qahw_loopback_set_param_data(qahw_module_handle_t *hw_module,
+ audio_patch_handle_t handle,
+ qahw_loopback_param_id param_id,
+ qahw_loopback_param_payload *payload)
+{
+ ALOGV("%d:%s\n", __LINE__, __func__);
+ return qahw_loopback_set_param_data_l(hw_module, handle, param_id, payload);
+}
+
int qahw_get_audio_port(qahw_module_handle_t *hw_module,
struct audio_port *port)
{