@@ -153,11 +153,10 @@ public class AudioService extends IAudioService.Stub implements OnFinished {
153153 private static final int MSG_SET_A2DP_CONNECTION_STATE = 22 ;
154154 // end of messages handled under wakelock
155155 private static final int MSG_SET_RSX_CONNECTION_STATE = 23 ; // change remote submix connection
156- private static final int MSG_SET_FORCE_RSX_USE = 24 ; // force remote submix audio routing
157- private static final int MSG_CHECK_MUSIC_ACTIVE = 25 ;
158- private static final int MSG_BROADCAST_AUDIO_BECOMING_NOISY = 26 ;
159- private static final int MSG_CONFIGURE_SAFE_MEDIA_VOLUME = 27 ;
160- private static final int MSG_CONFIGURE_SAFE_MEDIA_VOLUME_FORCED = 28 ;
156+ private static final int MSG_CHECK_MUSIC_ACTIVE = 24 ;
157+ private static final int MSG_BROADCAST_AUDIO_BECOMING_NOISY = 25 ;
158+ private static final int MSG_CONFIGURE_SAFE_MEDIA_VOLUME = 26 ;
159+ private static final int MSG_CONFIGURE_SAFE_MEDIA_VOLUME_FORCED = 27 ;
161160
162161 // flags for MSG_PERSIST_VOLUME indicating if current and/or last audible volume should be
163162 // persisted
@@ -2221,13 +2220,6 @@ public void setRemoteSubmixOn(boolean on, int address) {
22212220 on ? 1 : 0 /*arg1*/ ,
22222221 address /*arg2*/ ,
22232222 null /*obj*/ , 0 /*delay*/ );
2224-
2225- // Note that we are currently forcing use of remote submix as soon as corresponding device
2226- // is made available
2227- sendMsg (mAudioHandler , MSG_SET_FORCE_RSX_USE , SENDMSG_REPLACE ,
2228- AudioSystem .FOR_MEDIA ,
2229- on ? AudioSystem .FORCE_REMOTE_SUBMIX : AudioSystem .FORCE_NONE ,
2230- null /*obj*/ , 0 /*delay*/ );
22312223 }
22322224
22332225 private void onSetRsxConnectionState (int available , int address ) {
@@ -3320,7 +3312,6 @@ public void handleMessage(Message msg) {
33203312
33213313 case MSG_SET_FORCE_USE :
33223314 case MSG_SET_FORCE_BT_A2DP_USE :
3323- case MSG_SET_FORCE_RSX_USE :
33243315 setForceUse (msg .arg1 , msg .arg2 );
33253316 break ;
33263317
0 commit comments