From 3cbaf6f6e738ebd9c22b097cc3df68ad3a06e776 Mon Sep 17 00:00:00 2001 From: Ramjee Singh Date: Mon, 26 Oct 2015 15:13:29 +0530 Subject: 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 --- include/hardware/audio.h | 9 +++++---- 1 file 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. */ -- cgit v1.1