diff options
author | Venkateshwarlu Domakonda <vdomak@codeaurora.org> | 2014-11-13 10:49:48 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2014-11-12 22:11:31 -0800 |
commit | 69c76c3c19c54ced8373c882228f806b36abefe7 (patch) | |
tree | 8c0e12731140faf20b3071674ea55dffc3e6b7cf /fmapp2 | |
parent | 3dbc41b58eff4bf30cd48141e136ff8308ea1c3b (diff) | |
download | android_hardware_qcom_fm-69c76c3c19c54ced8373c882228f806b36abefe7.tar.gz android_hardware_qcom_fm-69c76c3c19c54ced8373c882228f806b36abefe7.tar.bz2 android_hardware_qcom_fm-69c76c3c19c54ced8373c882228f806b36abefe7.zip |
FM: Fix the issue with A2DP disconnect
When A2DP disconnect, audio is routing to headset even speaker enabled.
Set the proper device path when A2DP disconnected.
Change-Id: Id6d8878b786a365ea637f00a30a4fe609b4a3878
CRs-Fixed: 751702
Diffstat (limited to 'fmapp2')
-rw-r--r-- | fmapp2/src/com/caf/fmradio/FMRadioService.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fmapp2/src/com/caf/fmradio/FMRadioService.java b/fmapp2/src/com/caf/fmradio/FMRadioService.java index 2de50e7..458fb96 100644 --- a/fmapp2/src/com/caf/fmradio/FMRadioService.java +++ b/fmapp2/src/com/caf/fmradio/FMRadioService.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009-2013, The Linux Foundation. All rights reserved. + * Copyright (c) 2009-2014, The Linux Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -375,12 +375,10 @@ public class FMRadioService extends Service Log.d(LOGTAG, "FM Audio Path is Analog Mode: FM Over BT not allowed"); return ; } - //when playback is overA2Dp and A2dp disconnected - //when playback is not overA2DP and A2DP Connected + //when A2dp connected/disconnected // In above two cases we need to Stop and Start FM which // will take care of audio routing if( (isFmOn()) && - (true == ((bA2dpConnected)^(mOverA2DP))) && (false == mStoppedOnFocusLoss)) { Log.d(LOGTAG, "stopping and starting FM\n"); stopFM(); |