From f9a22dae130a0ad03c61fb36e0a2edfe00406216 Mon Sep 17 00:00:00 2001 From: Rupesh Tatiya <rtatiya@codeaurora.org> Date: Wed, 22 Feb 2017 19:32:07 +0530 Subject: [PATCH] Do not reset slimbus on audio focus loss This workaround is not needed as avoiding reset of underflow/overflow setting in kernel fixes the original issue. Change-Id: Ia5f177f6f6727d837f7422505d196968ea0cd332 --- fmapp2/src/com/caf/fmradio/FMRadioService.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/fmapp2/src/com/caf/fmradio/FMRadioService.java b/fmapp2/src/com/caf/fmradio/FMRadioService.java index e5a7d83..52f9f77 100644 --- a/fmapp2/src/com/caf/fmradio/FMRadioService.java +++ b/fmapp2/src/com/caf/fmradio/FMRadioService.java @@ -1586,8 +1586,6 @@ public class FMRadioService extends Service switch (msg.arg1) { case AudioManager.AUDIOFOCUS_LOSS_TRANSIENT: Log.v(LOGTAG, "AudioFocus: received AUDIOFOCUS_LOSS_TRANSIENT"); - if (mReceiver != null) - mReceiver.EnableSlimbus(RESET_SLIMBUS_DATA_PORT); if (true == isFmRecordingOn()) stopRecording(); case AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK: @@ -1600,9 +1598,6 @@ public class FMRadioService extends Service case AudioManager.AUDIOFOCUS_LOSS: Log.v(LOGTAG, "AudioFocus: received AUDIOFOCUS_LOSS"); //intentional fall through. - if (mReceiver != null) - mReceiver.EnableSlimbus(RESET_SLIMBUS_DATA_PORT); - if (mSpeakerPhoneOn) { mSpeakerDisableHandler.removeCallbacks(mSpeakerDisableTask); mSpeakerDisableHandler.postDelayed(mSpeakerDisableTask, 0); -- GitLab