summaryrefslogtreecommitdiffstats
path: root/fmapp
diff options
context:
space:
mode:
authorVenkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>2013-09-02 16:20:55 +0530
committerVenkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>2013-09-02 17:21:54 +0530
commitb11a44e8ed6a15fbe646264215e6133a926cfeca (patch)
treea8e7f5e349200d9e4b94a35e8a99b768736ae303 /fmapp
parent15ddfeb22142016dceee6c71386e261902b545b7 (diff)
downloadandroid_hardware_qcom_fm-b11a44e8ed6a15fbe646264215e6133a926cfeca.tar.gz
android_hardware_qcom_fm-b11a44e8ed6a15fbe646264215e6133a926cfeca.tar.bz2
android_hardware_qcom_fm-b11a44e8ed6a15fbe646264215e6133a926cfeca.zip
FM: Fix the issue recording service gets stopped
- FMRecording service gets stopped during A2DP connection/disconnection as Fm service sends stop recording intent. - Send the recording service stop only during FM off operation. CRs-Fixed: 529076 Change-Id: I8075bcf400b6f2d0ee803d647bada8f667ef5113
Diffstat (limited to 'fmapp')
-rw-r--r--fmapp/src/com/codeaurora/fmradio/FMRadioService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/fmapp/src/com/codeaurora/fmradio/FMRadioService.java b/fmapp/src/com/codeaurora/fmradio/FMRadioService.java
index 3ca96e9..d0270ca 100644
--- a/fmapp/src/com/codeaurora/fmradio/FMRadioService.java
+++ b/fmapp/src/com/codeaurora/fmradio/FMRadioService.java
@@ -765,7 +765,6 @@ public class FMRadioService extends Service
Log.d(LOGTAG, "FMRadio: Requesting to stop FM");
AudioSystem.setDeviceConnectionState(AudioSystem.DEVICE_OUT_FM,
AudioSystem.DEVICE_STATE_UNAVAILABLE, "");
- sendRecordServiceIntent(RECORD_STOP);
}
mPlaybackInProgress = false;
}
@@ -1640,6 +1639,7 @@ private Runnable mSpeakerDisableTask = new Runnable() {
Log.d(LOGTAG, "audioManager.setFmRadioOn false done \n" );
}
+ sendRecordServiceIntent(RECORD_STOP);
if (isAnalogModeEnabled()) {
SystemProperties.set("hw.fm.isAnalog","false");
misAnalogPathEnabled = false;