From 69c76c3c19c54ced8373c882228f806b36abefe7 Mon Sep 17 00:00:00 2001 From: Venkateshwarlu Domakonda Date: Thu, 13 Nov 2014 10:49:48 +0530 Subject: 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 --- fmapp2/src/com/caf/fmradio/FMRadioService.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'fmapp2/src/com/caf/fmradio/FMRadioService.java') 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(); -- cgit v1.2.3