From 135a6383b72db0df5227f6b12e5c203954e630ab Mon Sep 17 00:00:00 2001 From: Ethan Chen Date: Fri, 3 Jul 2015 21:07:13 -0700 Subject: audio: Notify amplifier HAL of device enable/disable Change-Id: I34ec900c9850e8ed3edecf2b92e12801bdbd4fe5 --- include/hardware/audio_amplifier.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'include') diff --git a/include/hardware/audio_amplifier.h b/include/hardware/audio_amplifier.h index 075ae77..bb788c2 100644 --- a/include/hardware/audio_amplifier.h +++ b/include/hardware/audio_amplifier.h @@ -62,6 +62,22 @@ typedef struct amplifier_device { int (*set_output_devices)(struct amplifier_device *device, uint32_t devices); /** + * Notify amplifier device of output device enable/disable + * + * This function should handle only output devices. + */ + int (*enable_output_devices)(struct amplifier_device *device, + uint32_t devices, bool enable); + + /** + * Notify amplifier device of input device enable/disable + * + * This function should handle only input devices. + */ + int (*enable_input_devices)(struct amplifier_device *device, + uint32_t devices, bool enable); + + /** * Notify amplifier device about current audio mode */ int (*set_mode)(struct amplifier_device *device, audio_mode_t mode); -- cgit v1.1