[Optimus One, P500 Original Android Development] :
Adfad,

It seems the audio is routing always Speakerphone.

Can we apply this patch on ics?

I can't test it without a real phone.

D/CallNotifier( 366): RINGING... (new)
D/CallNotifier( 366): onNewRingingConnection(): state = RINGING, conn = { incoming: true state: INCOMING post dial state: NOT_STARTED }
W/Smack/Packet( 314): notify conn break (IOEx), close connection
D/CallNotifier( 366): SignalInfoTonePlayer.run(toneId = 98)...
I/dalvikvm(24329): Turning on JNI app bug workarounds for target SDK version 7...
I/qtaguid ( 314): Failed write_ctrl(u 77) res=-1 errno=22
I/qtaguid ( 314): Untagging socket 77 failed errno=-22
W/NetworkManagementSocketTagger( 314): untagSocket(77) failed with errno -22
D/AccelerometerListener( 366): enable(false)
D/PhoneStatusBar( 249): disable: < expand icons ALERTS* ticker system_info back home recent clock >
D/ConnectivityService( 183): handleInetConditionChange: no active default network - ignore
V/AudioManager( 366): shouldVibrate, group: d393035d-ea71-4f2a-bdbd-b65f6bf298f1 mode: DEFAULT
D/CallNotifier( 366): showIncomingCall()... phone state = RINGING
D/PhoneStatusBar( 249): Notification has fullScreenIntent; sending fullScreenIntent
I/ActivityManager( 183): START {act=android.intent.action.MAIN flg=0x10840000 cmp=com.android.phone/.InCallScreen} from pid -1
V/AudioManager( 366): shouldVibrate, group: d393035d-ea71-4f2a-bdbd-b65f6bf298f1 mode: DEFAULT
D/InCallScreen( 366): onNewIntent: intent = Intent { act=android.intent.action.MAIN flg=0x10c40000 cmp=com.android.phone/.InCallScreen }, phone state = RINGING
D/PhoneStatusBar( 249): disable: < EXPAND* icons ALERTS ticker system_info back home recent clock >
D/dalvikvm( 366): GC_FOR_ALLOC freed 374K, 10% free 8896K/9863K, paused 228ms
I/dalvikvm-heap( 366): Grow heap (frag case) to 8.854MB for 46672-byte allocation
E/OMXCodec( 110): Attempting to allocate OMX node 'OMX.google.vorbis.decoder'
E/OMXCodec( 110): Successfully allocated OMX node 'OMX.google.vorbis.decoder'
D/dalvikvm( 183): JIT code cache reset in 17 ms (524260 bytes 12/0)
D/dalvikvm( 249): GC_CONCURRENT freed 347K, 19% free 7812K/9543K, paused 4ms+28ms
D/dalvikvm( 183): GC_CONCURRENT freed 1875K, 24% free 15598K/20423K, paused 7ms+81ms
D/dalvikvm( 366): GC_FOR_ALLOC freed 16K, 11% free 8925K/9927K, paused 206ms
D/dalvikvm( 366): GC_FOR_ALLOC freed <1K, 11% free 8925K/9927K, paused 80ms
D/AudioHardwareInterface( 110): setMode(RINGTONE)
I/AudioService( 183): AudioFocus requestAudioFocus() from AudioFocus_For_Phone_Ring_And_Calls
V/MediaPlaybackService(24306): AudioFocus: received AUDIOFOCUS_LOSS_TRANSIENT
D/OpenGLRenderer( 381): Flushing caches (mode 1)
I/dalvikvm-heap( 366): Grow heap (frag case) to 8.882MB for 46672-byte allocation
D/BluetoothA2dpService( 183): PlayState changed 0
D/dalvikvm( 366): GC_FOR_ALLOC freed <1K, 11% free 8971K/9991K, paused 169ms
I/AudioHardwareMSM72XX( 110): Routing audio to Speakerphone
D/AudioHardwareMSM72XX( 110): doAudioRouteOrMute() device 0, mMode 1, mMicMute 0, mBuiltinMicSelected 1, muted
D/PhoneStatusBar( 249): disable: < EXPAND icons ALERTS ticker system_info BACK* HOME* RECENT* clock >
I/AudioHardwareMSM72XX( 110): set device to SND_DEVICE_HEADSET_STEREO/SND_DEVICE_HEADSET device_id=2
I/AudioHardwareMSM72XX( 110): disabling post proc features with mask 0x0000
I/AudioHardwareMSM72XX( 110): set device to SND_DEVICE_SPEAKER device_id=0
I/AudioHardwareMSM72XX( 110): Enabling post proc features with mask 0x0000
I/AudioHardwareMSM72XX( 110): Routing audio to Speakerphone