summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNicholas Ambur <nambur@google.com>2019-12-09 09:57:49 -0800
committerNicholas Ambur <nambur@google.com>2020-01-07 14:03:20 -0800
commit581c67326f3cb6a55dbfc1d8a4e9071669a90de5 (patch)
treec9ab923ef938e89b311a95846168ab66fc1d7746 /include
parent038dfb1b1c7a6378393703a695687ea9ab548c7e (diff)
downloadplatform_hardware_libhardware-581c67326f3cb6a55dbfc1d8a4e9071669a90de5.tar.gz
platform_hardware_libhardware-581c67326f3cb6a55dbfc1d8a4e9071669a90de5.tar.bz2
platform_hardware_libhardware-581c67326f3cb6a55dbfc1d8a4e9071669a90de5.zip
add get_properties_extended soundtrigger api
Bug: 142414689 Test: GTS assist test suite and manual testing Change-Id: I86c78e46bfee5072619d38784c29cd871ede731c
Diffstat (limited to 'include')
-rw-r--r--include/hardware/sound_trigger.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/hardware/sound_trigger.h b/include/hardware/sound_trigger.h
index 573ada84..dbb56ce4 100644
--- a/include/hardware/sound_trigger.h
+++ b/include/hardware/sound_trigger.h
@@ -150,11 +150,22 @@ struct sound_trigger_hw_device {
* handle. Along with determining the valid range, this API is also used
* to determine if a given parameter ID is supported at all by the
* modelHandle for use with getParameter and setParameter APIs.
+ * Only supported for device api versions SOUND_TRIGGER_DEVICE_API_VERSION_1_3 or above.
*/
int (*query_parameter)(const struct sound_trigger_hw_device *dev,
sound_model_handle_t sound_model_handle,
sound_trigger_model_parameter_t model_param,
sound_trigger_model_parameter_range_t* param_range);
+
+ /*
+ * Retrieve verbose extended implementation properties.
+ * The header pointer is intented to be cast to the proper extended
+ * properties struct based on the header version.
+ * The returned pointer is valid throughout the lifetime of the driver.
+ * Only supported for device api versions SOUND_TRIGGER_DEVICE_API_VERSION_1_3 or above.
+ */
+ const struct sound_trigger_properties_header* (*get_properties_extended)
+ (const struct sound_trigger_hw_device *dev);
};
typedef struct sound_trigger_hw_device sound_trigger_hw_device_t;