summaryrefslogtreecommitdiffstats
path: root/include/hardware_legacy/AudioPolicyManagerBase.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hardware_legacy/AudioPolicyManagerBase.h')
-rw-r--r--include/hardware_legacy/AudioPolicyManagerBase.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/hardware_legacy/AudioPolicyManagerBase.h b/include/hardware_legacy/AudioPolicyManagerBase.h
index b175670..16c3b16 100644
--- a/include/hardware_legacy/AudioPolicyManagerBase.h
+++ b/include/hardware_legacy/AudioPolicyManagerBase.h
@@ -340,7 +340,11 @@ protected:
// change the route of the specified output. Returns the number of ms we have slept to
// allow new routing to take effect in certain cases.
+#ifdef QCOM_HARDWARE
+ virtual uint32_t setOutputDevice(audio_io_handle_t output,
+#else
uint32_t setOutputDevice(audio_io_handle_t output,
+#endif
audio_devices_t device,
bool force = false,
int delayMs = 0);
@@ -361,7 +365,11 @@ protected:
virtual float computeVolume(int stream, int index, audio_io_handle_t output, audio_devices_t device);
// check that volume change is permitted, compute and send new volume to audio hardware
+#ifdef QCOM_HARDWARE
+ virtual status_t checkAndSetVolume(int stream, int index, audio_io_handle_t output, audio_devices_t device, int delayMs = 0, bool force = false);
+#else
status_t checkAndSetVolume(int stream, int index, audio_io_handle_t output, audio_devices_t device, int delayMs = 0, bool force = false);
+#endif
// apply all stream volumes to the specified output and device
void applyStreamVolumes(audio_io_handle_t output, audio_devices_t device, int delayMs = 0, bool force = false);
@@ -374,7 +382,11 @@ protected:
audio_devices_t device = (audio_devices_t)0);
// Mute or unmute the stream on the specified output
+#ifdef QCOM_HARDWARE
+ virtual void setStreamMute(int stream,
+#else
void setStreamMute(int stream,
+#endif
bool on,
audio_io_handle_t output,
int delayMs = 0,
@@ -477,7 +489,11 @@ protected:
uint32_t samplingRate,
uint32_t format,
uint32_t channelMask);
+#ifdef QCOM_HARDWARE
+ virtual IOProfile *getProfileForDirectOutput(audio_devices_t device,
+#else
IOProfile *getProfileForDirectOutput(audio_devices_t device,
+#endif
uint32_t samplingRate,
uint32_t format,
uint32_t channelMask,