Skip to content

Commit

Permalink
Headset fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dh-harald committed Dec 2, 2011
1 parent 1bd8f85 commit e53939e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions services/java/com/android/server/WiredAccessoryObserver.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ private synchronized final void updateState(String name, int state)
switchState = ((mHeadsetState & (BIT_HEADSET|BIT_HEADSET_NO_MIC|
BIT_USB_HEADSET_DGTL|BIT_USB_HEADSET_ANLG)) |
((state == 1) ? BIT_HDMI_AUDIO : 0));
} else if (name.equals("Headset")) {
switchState = ((mHeadsetState & (BIT_HDMI_AUDIO|BIT_USB_HEADSET_ANLG|
BIT_USB_HEADSET_DGTL)) | (state & (BIT_HEADSET|BIT_HEADSET_NO_MIC)));
} else {
switchState = ((mHeadsetState & (BIT_HDMI_AUDIO|BIT_USB_HEADSET_ANLG|
BIT_USB_HEADSET_DGTL)) |
Expand Down

0 comments on commit e53939e

Please sign in to comment.