diff options
author | Mingming Yin <mingming@codeaurora.org> | 2012-12-27 17:42:23 -0800 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2013-03-24 15:37:19 -0700 |
commit | e7b58b249036231b667665fcd6c86ed6f73b16dc (patch) | |
tree | 5ba835c1fcf513d96250e090d3a7fbd560f4199a /audio/AudioPolicyManagerBase.cpp | |
parent | 96a90d85586e6ff080ec1fd3a89d6ef05d99d56e (diff) | |
download | hardware_libhardware_legacy-e7b58b249036231b667665fcd6c86ed6f73b16dc.zip hardware_libhardware_legacy-e7b58b249036231b667665fcd6c86ed6f73b16dc.tar.gz hardware_libhardware_legacy-e7b58b249036231b667665fcd6c86ed6f73b16dc.tar.bz2 |
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
Diffstat (limited to 'audio/AudioPolicyManagerBase.cpp')
-rw-r--r-- | audio/AudioPolicyManagerBase.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/audio/AudioPolicyManagerBase.cpp b/audio/AudioPolicyManagerBase.cpp index 4ea127e..673a5ee 100644 --- a/audio/AudioPolicyManagerBase.cpp +++ b/audio/AudioPolicyManagerBase.cpp @@ -1,5 +1,6 @@ /* * Copyright (C) 2009 The Android Open Source Project + * Copyright (c) 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. @@ -2084,6 +2085,9 @@ AudioPolicyManagerBase::routing_strategy AudioPolicyManagerBase::getStrategy( // while key clicks are played produces a poor result case AudioSystem::TTS: case AudioSystem::MUSIC: +#ifdef QCOM_FM_ENABLED + case AudioSystem::FM: +#endif return STRATEGY_MEDIA; case AudioSystem::ENFORCED_AUDIBLE: return STRATEGY_ENFORCED_AUDIBLE; @@ -2722,6 +2726,14 @@ const AudioPolicyManagerBase::VolumeCurvePoint sSpeakerMediaVolumeCurve, // DEVICE_CATEGORY_SPEAKER sDefaultMediaVolumeCurve // DEVICE_CATEGORY_EARPIECE }, +#ifdef QCOM_FM_ENABLED + { // AUDIO_STREAM_FM + sDefaultMediaVolumeCurve, // DEVICE_CATEGORY_HEADSET + sSpeakerMediaVolumeCurve, // DEVICE_CATEGORY_SPEAKER + sDefaultMediaVolumeCurve // DEVICE_CATEGORY_EARPIECE + }, +#endif + }; void AudioPolicyManagerBase::initializeVolumeCurves() |