summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRamjee Singh <ramjee@codeaurora.org>2015-10-26 15:13:29 +0530
committerSteve Kondik <steve@cyngn.com>2015-12-08 01:48:59 -0800
commit3cbaf6f6e738ebd9c22b097cc3df68ad3a06e776 (patch)
treeb9cf3e2fd071c402217c77fbaf8600b971bd40ac
parentdffd851fe1038a6cbdb95006a33ad6eb00536c8c (diff)
downloadhardware_libhardware-3cbaf6f6e738ebd9c22b097cc3df68ad3a06e776.zip
hardware_libhardware-3cbaf6f6e738ebd9c22b097cc3df68ad3a06e776.tar.gz
hardware_libhardware-3cbaf6f6e738ebd9c22b097cc3df68ad3a06e776.tar.bz2
audio: add set_parameters for listen hal (fix)
-Add listen hal specific set parameters function so that Listen service can call Listen hal directly, by passing audio hal. This is needed since set_parameters call in audio hal does not guarantee the correct return value is returned for any parameters set. Change-Id: I55357c60c9856990e6c5ff0c5cb53b3f0e70d6b4
-rw-r--r--include/hardware/audio.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/hardware/audio.h b/include/hardware/audio.h
index a562554..22e7419 100644
--- a/include/hardware/audio.h
+++ b/include/hardware/audio.h
@@ -656,10 +656,10 @@ struct audio_hw_device {
const struct audio_port_config *config);
#ifdef AUDIO_LISTEN_ENABLED
- /** This method opens the listen session and returns a handle */
+ /** This method creates the listen session and returns handle */
int (*open_listen_session)(struct audio_hw_device *dev,
- struct listen_open_params*,
- struct listen_session** handle);
+ listen_open_params_t *params,
+ struct listen_session** handle);
/** This method closes the listen session */
int (*close_listen_session)(struct audio_hw_device *dev,
@@ -669,7 +669,8 @@ struct audio_hw_device {
int (*set_mad_observer)(struct audio_hw_device *dev,
listen_callback_t cb_func);
- /* This method is used for setting listen hal specfic parameters.
+ /**
+ * This method is used for setting listen hal specfic parameters.
* If multiple paramets are set in one call and setting any one of them
* fails it will return failure.
*/