From e7b58b249036231b667665fcd6c86ed6f73b16dc Mon Sep 17 00:00:00 2001 From: Mingming Yin Date: Thu, 27 Dec 2012 17:42:23 -0800 Subject: qcom-fm: audio: add support for FM feature -Add set_fm_volume() to set handle fm volume Change-Id: I2a2c6a60b9855d9360ff8fb90849517e77e5faab Conflicts: audio/AudioPolicyManagerBase.cpp include/hardware_legacy/AudioSystemLegacy.h --- include/hardware_legacy/AudioHardwareInterface.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/hardware_legacy/AudioHardwareInterface.h') 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, -- cgit v1.2.3