[Samsung Infuse 4G] phazeonphoenix:
Ok *BUMP* with some new information.

I've verified this occurs with ANY audio accessory not just my specific headphones.

I've recently flashed back to stock using Jscotts Odin back to stock and verified that the ringtones play as expected with or without the headphones plugged in.

I then flashed Entropy's CM9, booted and tested this behavior with no further configuration to no avail. The phone rings normally without the headphones being plugged in AND when utilizing a bluetooth headset. The ringer goes silent as soon as you plug in a pair of headphones, and resumes when the headphones are removed (unless of course I silence the ringer by pressing the Vol Up button).

Here's a Logcat from when my phone started ringing with the headphones plugged in. After a few moments I unplugged the headphones. Then plugged them back in moments later. Finally unplugging them just before the call dropped to voicemail and my phone stopped ringing...

D/CallNotifier( 482): RINGING... (new)

D/CallNotifier( 482): onNewRingingConnection(): state = RINGING, conn = { incoming: true state: INCOMING post dial state: NOT_STARTED }

D/CallNotifier( 482): SignalInfoTonePlayer.run(toneId = 98)...

D/AccelerometerListener( 482): enable(false)

D/PhoneStatusBar( 420): disable: < expand icons ALERTS* ticker system_info BACK HOME RECENT CLOCK >

D/AudioHardware( 138): AudioHardware pcm playback is exiting standby.

V/AudioHardware( 138): open pcm_out driver

D/AudioHardware( 138): openPcmOut_l() mPcmOpenCnt: 0

V/AudioManager( 482): shouldVibrate, group: d393035d-ea71-4f2a-bdbd-b65f6bf298f1 mode: DEFAULT

D/CallNotifier( 482): showIncomingCall()... phone state = RINGING

I/power ( 230): *** set_screen_state 0

I/WindowManager( 230): Lock screen displayed!

V/AudioHardware( 138): openMixer_l() mMixerOpenCnt: 0

V/AudioHardware( 138): open playback normal

V/AudioHardware( 138): write() wakeup setting route HP

D/PhoneStatusBar( 420): Notification has fullScreenIntent; sending fullScreenIntent

I/ActivityManager( 230): START {act=android.intent.action.MAIN flg=0x10840000 cmp=com.android.phone/.InCallScreen} from pid -1

E/OMXCodec( 138): Attempting to allocate OMX node 'OMX.google.vorbis.decoder'

E/OMXCodec( 138): Successfully allocated OMX node 'OMX.google.vorbis.decoder'

D/AudioHardwareInterface( 138): setMode(RINGTONE)

V/AudioHardware( 138): setMode() : new 1, old 0

I/AudioService( 230): AudioFocus requestAudioFocus() from AudioFocus_For_Phone_Ring_And_Calls

D/InCallScreen( 482): onNewIntent: intent = Intent { act=android.intent.action.MAIN flg=0x10c40000 cmp=com.android.phone/.InCallScreen }, phone state = RINGING

I/power ( 230): *** set_screen_state 1

D/PhoneStatusBar( 420): disable: < EXPAND* icons ALERTS ticker system_info BACK HOME RECENT CLOCK >

D/OpenGLRenderer( 1266): Flushing caches (mode 1)

D/AccelerometerListener( 482): enable(false)

D/OpenGLRenderer( 1266): Flushing caches (mode 0)

D/dalvikvm( 420): GC_FOR_ALLOC freed 2109K, 30% free 8112K/11463K, paused 30ms

D/PhoneStatusBar( 420): disable: < EXPAND icons ALERTS ticker system_info BACK HOME RECENT clock* >

D/SurfaceFlinger( 135): Screen about to return, flinger = 0xf918

D/dalvikvm( 482): GC_CONCURRENT freed 1626K, 41% free 5324K/8967K, paused 1ms+12ms

D/AudioHardware( 138): AudioStreamOutALSA::setParameters() routing=6

D/AudioHardware( 138): AudioHardware pcm playback is going to standby.

V/AudioHardware( 138): closeMixer_l() mMixerOpenCnt: 1

D/AudioHardware( 138): closePcmOut_l() mPcmOpenCnt: 1

D/AudioHardware( 138): AudioHardware pcm playback is exiting standby.

V/AudioHardware( 138): open pcm_out driver

D/AudioHardware( 138): openPcmOut_l() mPcmOpenCnt: 0

V/AudioHardware( 138): openMixer_l() mMixerOpenCnt: 0

V/AudioHardware( 138): open playback normal

V/AudioHardware( 138): write() wakeup setting route RING_SPK_HP

V/AudioManager( 482): shouldVibrate, group: d393035d-ea71-4f2a-bdbd-b65f6bf298f1 mode: DEFAULT

V/AudioManager( 482): shouldVibrate, group: d393035d-ea71-4f2a-bdbd-b65f6bf298f1 mode: DEFAULT

W/EventHub( 230): could not get event, removed? (fd: 195 size: -1 bufferSize: 256 capacity: 256 errno: 19)

I/EventHub( 230): Removed device: path=/dev/input/event6 name=sec_jack id=15 fd=195 classes=0x1

I/InputReader( 230): Device removed: id=15, name='sec_jack', sources=0x00000101

V/WiredAccessoryObserver( 230): Headset UEVENT: {SUBSYSTEM=switch, SWITCH_STATE=0, DEVPATH=/devices/virtual/switch/h2w, SEQNUM=2018, ACTION=change, SWITCH_NAME=h2w}

V/WiredAccessoryObserver( 230): updateState name: h2w state 0

V/WiredAccessoryObserver( 230): updateState switchState: 0

V/WiredAccessoryObserver( 230): newState = 0, headsetState = 0,mHeadsetState = 1

I/EventHub( 230): Removing device '/dev/input/event6' due to inotify event

I/AudioService( 230): Remote Control registerMediaButtonIntent() for PendingIntent{40efaad8: PendingIntentRecord{4100c880 com.andrew.apollo broadcastIntent}}

D/BluetoothA2dpService( 230): Meta data info is trackname: Unknown artist: Unknown

D/BluetoothA2dpService( 230): mMediaNumber: 0 mediaCount 0

D/BluetoothA2dpService( 230): mPostion 0 album: Unknownduration 0

I/HeadsetService( 757): Headset=true; Bluetooth=false

V/WiredAccessoryObserver( 230): Intent.ACTION_HEADSET_PLUG: state: 0 name: h2w mic: 1

I/HeadsetService( 757): Headset=false; Bluetooth=false

I/HeadsetService( 757): Selected configuration: speaker

D/AudioHardware( 138): AudioStreamOutALSA::setParameters() routing=2

D/AudioHardware( 138): AudioHardware pcm playback is going to standby.

V/AudioHardware( 138): closeMixer_l() mMixerOpenCnt: 1

D/AudioHardware( 138): closePcmOut_l() mPcmOpenCnt: 1

D/AudioHardware( 138): AudioHardware pcm playback is exiting standby.

V/AudioHardware( 138): open pcm_out driver

D/AudioHardware( 138): openPcmOut_l() mPcmOpenCnt: 0

V/AudioHardware( 138): openMixer_l() mMixerOpenCnt: 0

V/AudioHardware( 138): open playback normal

V/AudioHardware( 138): write() wakeup setting route RING_SPK

V/AudioManager( 482): shouldVibrate, group: d393035d-ea71-4f2a-bdbd-b65f6bf298f1 mode: DEFAULT

V/AudioManager( 482): shouldVibrate, group: d393035d-ea71-4f2a-bdbd-b65f6bf298f1 mode: DEFAULT

V/AudioManager( 482): shouldVibrate, group: d393035d-ea71-4f2a-bdbd-b65f6bf298f1 mode: DEFAULT

V/AudioManager( 482): shouldVibrate, group: d393035d-ea71-4f2a-bdbd-b65f6bf298f1 mode: DEFAULT

D/EventHub( 230): No input device configuration file found for device 'sec_jack'.

I/EventHub( 230): New device: id=16, fd=195, path='/dev/input/event6', name='sec_jack', classes=0x1, configuration='', keyLayout='/system/usr/keylayout/sec_jack.kl', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false

I/InputReader( 230): Device added: id=16, name='sec_jack', sources=0x00000101

V/WiredAccessoryObserver( 230): Headset UEVENT: {SUBSYSTEM=switch, SWITCH_STATE=1, DEVPATH=/devices/virtual/switch/h2w, SEQNUM=2022, ACTION=change, SWITCH_NAME=h2w}

V/WiredAccessoryObserver( 230): updateState name: h2w state 1

V/WiredAccessoryObserver( 230): updateState switchState: 1

V/WiredAccessoryObserver( 230): newState = 1, headsetState = 1,mHeadsetState = 0

V/WiredAccessoryObserver( 230): Intent.ACTION_HEADSET_PLUG: state: 1 name: h2w mic: 1

I/HeadsetService( 757): Headset=true; Bluetooth=false

I/HeadsetService( 757): Selected configuration: headset

V/AudioManager( 482): shouldVibrate, group: d393035d-ea71-4f2a-bdbd-b65f6bf298f1 mode: DEFAULT

V/AudioManager( 482): shouldVibrate, group: d393035d-ea71-4f2a-bdbd-b65f6bf298f1 mode: DEFAULT

D/AudioHardware( 138): AudioStreamOutALSA::setParameters() routing=6

D/AudioHardware( 138): AudioHardware pcm playback is going to standby.

V/AudioHardware( 138): closeMixer_l() mMixerOpenCnt: 1

D/AudioHardware( 138): closePcmOut_l() mPcmOpenCnt: 1

D/AudioHardware( 138): AudioHardware pcm playback is exiting standby.

V/AudioHardware( 138): open pcm_out driver

D/AudioHardware( 138): openPcmOut_l() mPcmOpenCnt: 0

V/AudioHardware( 138): openMixer_l() mMixerOpenCnt: 0

V/AudioHardware( 138): open playback normal

V/AudioHardware( 138): write() wakeup setting route RING_SPK_HP

V/AudioManager( 482): shouldVibrate, group: d393035d-ea71-4f2a-bdbd-b65f6bf298f1 mode: DEFAULT

V/AudioManager( 482): shouldVibrate, group: d393035d-ea71-4f2a-bdbd-b65f6bf298f1 mode: DEFAULT

V/AudioManager( 482): shouldVibrate, group: d393035d-ea71-4f2a-bdbd-b65f6bf298f1 mode: DEFAULT

V/AudioManager( 482): shouldVibrate, group: d393035d-ea71-4f2a-bdbd-b65f6bf298f1 mode: DEFAULT

W/EventHub( 230): could not get event, removed? (fd: 195 size: -1 bufferSize: 256 capacity: 256 errno: 19)

I/EventHub( 230): Removed device: path=/dev/input/event6 name=sec_jack id=16 fd=195 classes=0x1

I/InputReader( 230): Device removed: id=16, name='sec_jack', sources=0x00000101

I/EventHub( 230): Removing device '/dev/input/event6' due to inotify event

V/WiredAccessoryObserver( 230): Headset UEVENT: {SUBSYSTEM=switch, SWITCH_STATE=0, DEVPATH=/devices/virtual/switch/h2w, SEQNUM=2027, ACTION=change, SWITCH_NAME=h2w}

V/WiredAccessoryObserver( 230): updateState name: h2w state 0

V/WiredAccessoryObserver( 230): updateState switchState: 0

V/WiredAccessoryObserver( 230): newState = 0, headsetState = 0,mHeadsetState = 1

I/HeadsetService( 757): Headset=true; Bluetooth=false

I/lights ( 230): color 0 fm 0 status 0 is lit 0 brightness

E/lights ( 230): write_int failed to open /sys/class/misc/notification/led

D/CallNotifier( 482): onDisconnect: cause = INCOMING_MISSED, incoming = true, date = 1349811856715

D/CallNotifier( 482): SignalInfoTonePlayer.run(toneId = 98)...

D/AudioHardwareInterface( 138): setMode(NORMAL)

V/AudioHardware( 138): setMode() : new 0, old 1

D/AudioHardware( 138): AudioStreamOutALSA::setParameters() routing=4

D/AudioHardware( 138): AudioHardware pcm playback is going to standby.

V/AudioHardware( 138): closeMixer_l() mMixerOpenCnt: 1

D/AudioHardware( 138): closePcmOut_l() mPcmOpenCnt: 1

I/AudioService( 230): AudioFocus abandonAudioFocus() from AudioFocus_For_Phone_Ring_And_Calls

D/AudioHardware( 138): AudioHardware pcm playback is exiting standby.

V/AudioHardware( 138): open pcm_out driver

D/AudioHardware( 138): openPcmOut_l() mPcmOpenCnt: 0

I/PowerManagerService( 230): clearUserActivity for 10000ms from now

D/InCallScreen( 482): delayedCleanupAfterDisconnect()... Phone state = IDLE

D/InCallScreen( 482): endInCallScreenSession(false)... phone state = IDLE

I/ActivityManager( 230): moveTaskToBack: 5

V/WiredAccessoryObserver( 230): Intent.ACTION_HEADSET_PLUG: state: 0 name: h2w mic: 1

V/AudioHardware( 138): openMixer_l() mMixerOpenCnt: 0

V/AudioHardware( 138): open playback normal

V/AudioHardware( 138): write() wakeup setting route HP

D/AccelerometerListener( 482): enable(false)

I/HeadsetService( 757): Headset=false; Bluetooth=false

I/HeadsetService( 757): Selected configuration: speaker

D/InCallTouchUi( 482): - triggerPing: InCallScreen no longer in foreground; ignoring...

D/PhoneStatusBar( 420): disable: < expand* icons alerts* ticker system_info BACK HOME RECENT CLOCK* >

D/AudioHardware( 138): AudioHardware pcm playback is going to standby.

V/AudioHardware( 138): closeMixer_l() mMixerOpenCnt: 1

D/AudioHardware( 138): closePcmOut_l() mPcmOpenCnt: 1

D/EventHub( 230): No input device configuration file found for device 'sec_jack'.

I/EventHub( 230): New device: id=17, fd=195, path='/dev/input/event6', name='sec_jack', classes=0x1, configuration='', keyLayout='/system/usr/keylayout/sec_jack.kl', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false

I/InputReader( 230): Device added: id=17, name='sec_jack', sources=0x00000101

V/WiredAccessoryObserver( 230): Headset UEVENT: {SUBSYSTEM=switch, SWITCH_STATE=1, DEVPATH=/devices/virtual/switch/h2w, SEQNUM=2032, ACTION=change, SWITCH_NAME=h2w}

V/WiredAccessoryObserver( 230): updateState name: h2w state 1

V/WiredAccessoryObserver( 230): updateState switchState: 1

V/WiredAccessoryObserver( 230): newState = 1, headsetState = 1,mHeadsetState = 0

V/WiredAccessoryObserver( 230): Intent.ACTION_HEADSET_PLUG: state: 1 name: h2w mic: 1

I/HeadsetService( 757): Headset=true; Bluetooth=false

I/HeadsetService( 757): Selected configuration: headset

I/power ( 230): *** set_screen_state 0

D/SurfaceFlinger( 135): About to give-up screen, flinger = 0xf918

I/lights ( 230): color 16777215 fm 1 status 1 is lit 16777215 brightness

E/lights ( 230): write_int failed to open /sys/class/misc/notification/led

D/AccelerometerListener( 482): enable(false)

V/TransportControlView( 230): Create TCV com.android.internal.widget.TransportControlView@41204000

D/dalvikvm( 230): JIT code cache reset in 3 ms (1046804 bytes 1/0)

D/dalvikvm( 230): GC_CONCURRENT freed 2225K, 42% free 6586K/11271K, paused 8ms+8ms

I decided to dig deeper, and watched the kmsgs with

adb shell
$ su
# cat /proc/kmsg

And here's what was displayed at the same time as the logcat above:

<6>[ 2455.069131] request_suspend_state: wakeup (3->0) at 2455114708875 (2012-10
-09 19:44:16.973245038 UTC)
<4>[ 2455.069395] mxt224_power_on
<3>[ 2455.188896] [TSP] ta_status is 1
<3>[ 2455.191023] [TSP] Calibration!!!!!!
<3>[ 2455.194612] [TSP] Calibration End!!!!!!
<3>[ 2455.202365] [TSP]TA_probe MXT224 T28 Byte4 is 63
<3>[ 2455.212664] [TSP] calibration success!!!
<6>[ 2455.215237] s3cfb_late_resume is called
<3>[ 2455.221419] [TSP] Calibration!!!!!![lcd_cfg_gpio_late_resume]
<6>[ 2455.227140] FIMD src sclk = 166750000
<3>[ 2455.253921] [TSP] Calibration End!!!!!!######ldi_common_init###### 4
<4>[ 2455.294363] ######ld9040_sm2_ldi_init###### 1
<4>[ 2455.294375] ######ldi_dev_init complete######
<4>[ 2455.294383] platform brightness level : 9
<4>[ 2455.350319] [VIBETONZ] enable_vibetonz_from_user : time = 0 msec
<4>[ 2455.350334] [VIBETONZ] DISABLE
<4>[ 2455.434984] ######## DISP ON#########
<3>[ 2455.435004] amoled display spi3.0: failed to initialize brightness
<4>[ 2455.440944] ANSARI[s3cfb_late_resume]
<6>[ 2455.440952] s3cfb_late_resume is complete
<6>[ 2455.440962] (hpd_status = 0)++
<6>[ 2455.470145] S5P_RP: late resume
<3>[ 2455.874828] [ wm8994_samsung.c (wm8994_set_path,536) ] audio path[15] does
not exists!!
<3>[ 2455.874837]
<4>[ 2456.930813] [BAT] CHR(1) CAS(1) CHS(1) DCR(0) ACP(2) BAT(76,0,0) TE(34) HE
(1) VO(3940) ED(60) RC(0) CC(0) VF(579) LO(0)
<6>[ 2459.311414] wake disabled for irq 162
<6>[ 2459.311799] sec_jack_set_type : jack_type = 0
<4>[ 2460.412008] ---- mook table_num[70]
<6>[ 2466.607282] wake enabled for irq 162
<6>[ 2466.607295] GPIO Input Driver: Start gpio inputs for sec_jack in interrupt
mode
<6>[ 2466.607472] input: sec_jack as /devices/virtual/input/input15
<6>[ 2466.607655] sec_jack_set_type : jack_type = 1
<3>[ 2467.429540] [ wm8994_samsung.c (wm8994_set_path,536) ] audio path[15] does
not exists!!
<3>[ 2467.429549]
<6>[ 2474.164283] wake disabled for irq 162
<6>[ 2474.164673] sec_jack_set_type : jack_type = 0
<4>[ 2475.129807] [VIBETONZ] enable_vibetonz_from_user : time = 0 msec
<4>[ 2475.129823] [VIBETONZ] DISABLE
<4>[ 2475.190778] [VIBETONZ] enable_vibetonz_from_user : time = 0 msec
<4>[ 2475.190794] [VIBETONZ] DISABLE
<4>[ 2475.191739] [VIBETONZ] enable_vibetonz_from_user : time = 0 msec
<4>[ 2475.191749] [VIBETONZ] DISABLE
<4>[ 2475.221797] [VIBETONZ] enable_vibetonz_from_user : time = 0 msec
<4>[ 2475.221811] [VIBETONZ] DISABLE
<4>[ 2475.230333] ---- mook table_num[70]
<4>[ 2476.992428] [BAT] CHR(1) CAS(1) CHS(1) DCR(0) ACP(2) BAT(76,0,0) TE(34) HE
(1) VO(4000) ED(40) RC(0) CC(0) VF(588) LO(0)
<6>[ 2478.541374] wake enabled for irq 162
<6>[ 2478.541430] GPIO Input Driver: Start gpio inputs for sec_jack in interrupt
mode
<6>[ 2478.542295] input: sec_jack as /devices/virtual/input/input16
<6>[ 2478.543045] sec_jack_set_type : jack_type = 1
<4>[ 2481.283203] platform brightness level : 0
<6>[ 2481.289947] request_suspend_state: sleep (0->3) at 2481335599046 (2012-10-
09 19:44:43.194125499 UTC)
<6>[ 2481.290063] S5P_RP: early suspend
<6>[ 2481.323602] (hpd_status = 0)++
<4>[ 2481.352114] [VIBETONZ] enable_vibetonz_from_user : time = 0 msec
<4>[ 2481.352129] [VIBETONZ] DISABLE

First line of note:

<3>[ 2467.429540] [ wm8994_samsung.c (wm8994_set_path,536) ] audio path[15] does
not exists!!

Next two lines of note:

<6>[ 2466.607472] input: sec_jack as /devices/virtual/input/input15
<6>[ 2478.542295] input: sec_jack as /devices/virtual/input/input16

Is this input number INCREASING? I tested by simply watching the kmsg log and plugging and unplugging the headphones multiple times, here's what I got:

<6>[ 2853.583839] wake disabled for irq 162
<6>[ 2853.585337] sec_jack_set_type : jack_type = 0
<6>[ 2857.709367] wake enabled for irq 162
<6>[ 2857.709423] GPIO Input Driver: Start gpio inputs for sec_jack in interrupt
mode
<6>[ 2857.710280] input: sec_jack as /devices/virtual/input/input17
<6>[ 2857.710932] sec_jack_set_type : jack_type = 1
<6>[ 2860.504173] wake disabled for irq 162
<6>[ 2860.505823] sec_jack_set_type : jack_type = 0
<6>[ 2863.916263] wake enabled for irq 162
<6>[ 2863.916319] GPIO Input Driver: Start gpio inputs for sec_jack in interrupt
mode
<6>[ 2863.917171] input: sec_jack as /devices/virtual/input/input18
<6>[ 2863.917823] sec_jack_set_type : jack_type = 1
<6>[ 2867.205959] wake disabled for irq 162
<6>[ 2867.207441] sec_jack_set_type : jack_type = 0
<6>[ 2869.264012] wake enabled for irq 162
<6>[ 2869.264068] GPIO Input Driver: Start gpio inputs for sec_jack in interrupt
mode
<6>[ 2869.264923] input: sec_jack as /devices/virtual/input/input19
<6>[ 2869.265576] sec_jack_set_type : jack_type = 1

Indeed something is not right here. I beg the devs and kernel devs to give me a hand here... something's not right and it's beyond my abilities to fix...