Skip to content
Snippets Groups Projects
Commit f9a22dae authored by Rupesh Tatiya's avatar Rupesh Tatiya
Browse files

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
parent 2cfb9a95
No related branches found
No related tags found
No related merge requests found
...@@ -1586,8 +1586,6 @@ public class FMRadioService extends Service ...@@ -1586,8 +1586,6 @@ public class FMRadioService extends Service
switch (msg.arg1) { switch (msg.arg1) {
case AudioManager.AUDIOFOCUS_LOSS_TRANSIENT: case AudioManager.AUDIOFOCUS_LOSS_TRANSIENT:
Log.v(LOGTAG, "AudioFocus: received AUDIOFOCUS_LOSS_TRANSIENT"); Log.v(LOGTAG, "AudioFocus: received AUDIOFOCUS_LOSS_TRANSIENT");
if (mReceiver != null)
mReceiver.EnableSlimbus(RESET_SLIMBUS_DATA_PORT);
if (true == isFmRecordingOn()) if (true == isFmRecordingOn())
stopRecording(); stopRecording();
case AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK: case AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK:
...@@ -1600,9 +1598,6 @@ public class FMRadioService extends Service ...@@ -1600,9 +1598,6 @@ public class FMRadioService extends Service
case AudioManager.AUDIOFOCUS_LOSS: case AudioManager.AUDIOFOCUS_LOSS:
Log.v(LOGTAG, "AudioFocus: received AUDIOFOCUS_LOSS"); Log.v(LOGTAG, "AudioFocus: received AUDIOFOCUS_LOSS");
//intentional fall through. //intentional fall through.
if (mReceiver != null)
mReceiver.EnableSlimbus(RESET_SLIMBUS_DATA_PORT);
if (mSpeakerPhoneOn) { if (mSpeakerPhoneOn) {
mSpeakerDisableHandler.removeCallbacks(mSpeakerDisableTask); mSpeakerDisableHandler.removeCallbacks(mSpeakerDisableTask);
mSpeakerDisableHandler.postDelayed(mSpeakerDisableTask, 0); mSpeakerDisableHandler.postDelayed(mSpeakerDisableTask, 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment