diff options
Diffstat (limited to 'include/hardware_legacy')
-rw-r--r-- | include/hardware_legacy/AudioHardwareInterface.h | 6 | ||||
-rw-r--r-- | include/hardware_legacy/AudioPolicyInterface.h | 6 | ||||
-rw-r--r-- | include/hardware_legacy/AudioSystemLegacy.h | 3 |
3 files changed, 15 insertions, 0 deletions
diff --git a/include/hardware_legacy/AudioHardwareInterface.h b/include/hardware_legacy/AudioHardwareInterface.h index 82fc633..a456baf 100644 --- a/include/hardware_legacy/AudioHardwareInterface.h +++ b/include/hardware_legacy/AudioHardwareInterface.h @@ -1,5 +1,6 @@ /* * Copyright (C) 2007 The Android Open Source Project + * Copyright (c) 2011-2013, The Linux Foundation. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -223,6 +224,11 @@ public: /** set the audio volume of a voice call. Range is between 0.0 and 1.0 */ virtual status_t setVoiceVolume(float volume) = 0; +#ifdef QCOM_FM_ENABLED + /** set the fm volume. Range is between 0.0 and 1.0 */ + virtual status_t setFmVolume(float volume) { return 0; } +#endif + /** * set the audio volume for all audio activities other than voice call. * Range between 0.0 and 1.0. If any value other than NO_ERROR is returned, diff --git a/include/hardware_legacy/AudioPolicyInterface.h b/include/hardware_legacy/AudioPolicyInterface.h index 51f4822..b0f4c39 100644 --- a/include/hardware_legacy/AudioPolicyInterface.h +++ b/include/hardware_legacy/AudioPolicyInterface.h @@ -1,5 +1,6 @@ /* * Copyright (C) 2009 The Android Open Source Project + * Copyright (c) 2011-2013, The Linux Foundation. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -245,6 +246,11 @@ public: audio_io_handle_t srcOutput, audio_io_handle_t dstOutput) = 0; +#ifdef QCOM_FM_ENABLED + // set FM volume. + virtual status_t setFmVolume(float volume, int delayMs = 0) { return 0; } +#endif + }; extern "C" AudioPolicyInterface* createAudioPolicyManager(AudioPolicyClientInterface *clientInterface); diff --git a/include/hardware_legacy/AudioSystemLegacy.h b/include/hardware_legacy/AudioSystemLegacy.h index 971a633..762b6be 100644 --- a/include/hardware_legacy/AudioSystemLegacy.h +++ b/include/hardware_legacy/AudioSystemLegacy.h @@ -87,6 +87,9 @@ public: ENFORCED_AUDIBLE = 7, // Sounds that cannot be muted by user and must be routed to speaker DTMF = 8, TTS = 9, +#ifdef QCOM_FM_ENABLED + FM = 10, +#endif NUM_STREAM_TYPES }; |