summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/hardware/audio_amplifier.h6
-rw-r--r--modules/audio/audio_amplifier.c8
2 files changed, 14 insertions, 0 deletions
diff --git a/include/hardware/audio_amplifier.h b/include/hardware/audio_amplifier.h
index bb788c2..4305094 100644
--- a/include/hardware/audio_amplifier.h
+++ b/include/hardware/audio_amplifier.h
@@ -105,6 +105,12 @@ typedef struct amplifier_device {
*/
int (*input_stream_standby)(struct amplifier_device *device,
struct audio_stream_in *stream);
+
+ /**
+ * set/get output audio device parameters.
+ */
+ int (*set_parameters)(struct amplifier_device *device,
+ struct str_parms *parms);
} amplifier_device_t;
typedef struct amplifier_module {
diff --git a/modules/audio/audio_amplifier.c b/modules/audio/audio_amplifier.c
index 05f3641..816b636 100644
--- a/modules/audio/audio_amplifier.c
+++ b/modules/audio/audio_amplifier.c
@@ -21,6 +21,7 @@
#include <sys/types.h>
#include <cutils/log.h>
+#include <cutils/str_parms.h>
#include <hardware/audio_amplifier.h>
#include <hardware/hardware.h>
@@ -76,6 +77,12 @@ static int amp_input_stream_standby(amplifier_device_t *device,
return 0;
}
+static int amp_set_parameters(struct amplifier_device *device,
+ struct str_parms *parms)
+{
+ return 0;
+}
+
static int amp_dev_close(hw_device_t *device)
{
if (device)
@@ -114,6 +121,7 @@ static int amp_module_open(const hw_module_t *module, const char *name,
amp_dev->input_stream_start = amp_input_stream_start;
amp_dev->output_stream_standby = amp_output_stream_standby;
amp_dev->input_stream_standby = amp_input_stream_standby;
+ amp_dev->set_parameters = amp_set_parameters;
*device = (hw_device_t *) amp_dev;