summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorService qcabuildsw <qcabuildsw@localhost>2016-11-14 17:23:06 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2016-11-14 17:23:06 -0800
commit7e4074908c5682bf7ccfeb8cf5fbab2e7d29034b (patch)
treecc4060df1cb7673cbfc11af9d11ac3b0d9081941
parentb93bf776ec88b2ed2dabaac7235cf954db264c5d (diff)
parentfaef7cd61012645916a15f0e0e73a3301eab0311 (diff)
downloadandroid_hardware_qcom_fm-7e4074908c5682bf7ccfeb8cf5fbab2e7d29034b.tar.gz
android_hardware_qcom_fm-7e4074908c5682bf7ccfeb8cf5fbab2e7d29034b.tar.bz2
android_hardware_qcom_fm-7e4074908c5682bf7ccfeb8cf5fbab2e7d29034b.zip
Merge "Add checks to listen for A2dp state changes" into fm.lnx.2.1-dev
-rw-r--r--fmapp2/src/com/caf/fmradio/FMRadioService.java5
-rw-r--r--helium/radio_helium_hal.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/fmapp2/src/com/caf/fmradio/FMRadioService.java b/fmapp2/src/com/caf/fmradio/FMRadioService.java
index 43e91a6..54654fa 100644
--- a/fmapp2/src/com/caf/fmradio/FMRadioService.java
+++ b/fmapp2/src/com/caf/fmradio/FMRadioService.java
@@ -608,6 +608,7 @@ public class FMRadioService extends Service
*/
public void registerHeadsetListener() {
if (mHeadsetReceiver == null) {
+ boolean fm_a2dp_disabled = SystemProperties.getBoolean("fm.a2dp.conc.disabled",true);
mHeadsetReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
@@ -682,7 +683,9 @@ public class FMRadioService extends Service
AudioManager am = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
IntentFilter iFilter = new IntentFilter();
iFilter.addAction(Intent.ACTION_HEADSET_PLUG);
- iFilter.addAction(mA2dpDeviceState.getActionSinkStateChangedString());
+ if (!fm_a2dp_disabled) {
+ iFilter.addAction(mA2dpDeviceState.getActionSinkStateChangedString());
+ }
iFilter.addAction("HDMI_CONNECTED");
iFilter.addAction(Intent.ACTION_SHUTDOWN);
iFilter.addCategory(Intent.CATEGORY_DEFAULT);
diff --git a/helium/radio_helium_hal.c b/helium/radio_helium_hal.c
index 3f68812..3fa4587 100644
--- a/helium/radio_helium_hal.c
+++ b/helium/radio_helium_hal.c
@@ -623,7 +623,7 @@ static inline void hci_ev_program_service(char *buff)
memcpy(data+RDS_OFFSET, &buff[RDS_PS_DATA_OFFSET], len-RDS_OFFSET);
- ALOGE("SSK call ps-callback");
+ ALOGV("call ps-callback");
hal->jni_cb->ps_update_cb(data);
free(data);