Skip to content

Commit

Permalink
audio-caf: Remove STE fmradio
Browse files Browse the repository at this point in the history
Change-Id: Id57a0ad5f3175d4e146b77ee51abca36f2add3e5
  • Loading branch information
hey-o authored and mikeNG committed Jul 27, 2014
1 parent 0911dcd commit 5e3a9a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions legacy/msm8660/AudioPolicyManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1624,7 +1624,7 @@ audio_devices_t AudioPolicyManager::getDeviceForStrategy(routing_strategy strate
}
break;
}
#if defined(QCOM_FM_ENABLED) || defined(STE_FM)
#ifdef QCOM_FM_ENABLED
if (mAvailableOutputDevices & AUDIO_DEVICE_OUT_FM) {
if (mForceUse[AudioSystem::FOR_MEDIA] == AudioSystem::FORCE_SPEAKER) {
device &= ~(AUDIO_DEVICE_OUT_WIRED_HEADSET);
Expand Down Expand Up @@ -1717,7 +1717,7 @@ audio_devices_t AudioPolicyManager::getDeviceForStrategy(routing_strategy strate
if (device2 == AUDIO_DEVICE_NONE) {
device2 = mAvailableOutputDevices & AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET;
}
#if defined(QCOM_FM_ENABLED) || defined(STE_FM)
#ifdef QCOM_FM_ENABLED
if (device2 == AUDIO_DEVICE_NONE) {
device2 = mAvailableOutputDevices & AUDIO_DEVICE_OUT_FM_TX;
}
Expand Down Expand Up @@ -1873,7 +1873,7 @@ audio_devices_t AudioPolicyManager::getDeviceForInputSource(int inputSource)
device = AUDIO_DEVICE_IN_REMOTE_SUBMIX;
}
break;
#if defined(QCOM_FM_ENABLED) || defined(STE_FM)
#ifdef QCOM_FM_ENABLED
case AUDIO_SOURCE_FM_RX:
device = AUDIO_DEVICE_IN_FM_RX;
break;
Expand Down Expand Up @@ -1935,7 +1935,7 @@ AudioPolicyManager::device_category AudioPolicyManager::getDeviceCategory(audio_
case AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET:
case AUDIO_DEVICE_OUT_BLUETOOTH_A2DP:
case AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES:
#if defined(QCOM_FM_ENABLED) || defined(STE_FM)
#ifdef QCOM_FM_ENABLED
case AUDIO_DEVICE_OUT_FM:
#endif
return DEVICE_CATEGORY_HEADSET;
Expand Down
4 changes: 2 additions & 2 deletions legacy/msm8660/audio_hw_hal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ static uint32_t adev_get_supported_devices(const struct audio_hw_device *dev)
AUDIO_DEVICE_OUT_ANC_HEADSET |
AUDIO_DEVICE_OUT_ANC_HEADPHONE |
#endif
#if defined(QCOM_FM_ENABLED) || defined(STE_FM)
#ifdef QCOM_FM_ENABLED
AUDIO_DEVICE_OUT_FM |
AUDIO_DEVICE_OUT_FM_TX |
#endif
Expand All @@ -535,7 +535,7 @@ static uint32_t adev_get_supported_devices(const struct audio_hw_device *dev)
#ifdef QCOM_ANC_HEADSET_ENABLED
AUDIO_DEVICE_IN_ANC_HEADSET |
#endif
#if defined(QCOM_FM_ENABLED) || defined(STE_FM)
#ifdef QCOM_FM_ENABLED
AUDIO_DEVICE_IN_FM_RX |
AUDIO_DEVICE_IN_FM_RX_A2DP |
#endif
Expand Down

0 comments on commit 5e3a9a1

Please sign in to comment.