From 5b2337c434acff34d85ae14b9cc2d3507fdffe52 Mon Sep 17 00:00:00 2001 From: Scott Mertz Date: Fri, 11 Sep 2015 12:09:06 -0700 Subject: amplifier: add set_parameters method - audio hal should pass the audio_device parameters to the amplifier to allow the amplifier to make decisions based on the additional parameters. For example, we may want to change settings for DTS TrueMedia use case. Change-Id: Iccf6ef7ced2abd2e12e857eea8e580cda15eec04 --- modules/audio/audio_amplifier.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'modules') 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 #include +#include #include #include @@ -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; -- cgit v1.1