PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro 2 > Android On TP2 > Android On TP2 Development
Register Community Search

Notices


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #11 (permalink)  
Old 01-12-2012, 01:09 AM
[ACL]'s Avatar
VIP Member
Offline
Pocket PC: tp2
Carrier: Sprint
Threadstarter
Location: NY
 
Join Date: Feb 2010
Posts: 1,534
Reputation: 6350
[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] - NAND OMGB (1.2.3)

Quote:
Originally Posted by detule View Post
As far as hacks go, this does wonders for my missing ringer.

Also there's stuff up on gitorious for the mic on incoming calls issue.

Though, I guess differences from gbx0b to omgb might render these ineffectual. Plus it sounds like you are on your way to figuring out more elegant solutions.
I havent actually solved the issue and havent commited the change either until i get enough feedback from the other guys. We are a few commits behind on AudioHardware.cpp since i'm not sure if we even need them. But its simple. here is what i added.

Code:
--- a/libaudio-wince/AudioHardware.cpp
+++ b/libaudio-wince/AudioHardware.cpp
@@ -1028,6 +1028,12 @@ status_t AudioHardware::doRouting()
             audProcess = (ADRC_ENABLE | EQ_ENABLE | RX_IIR_ENABLE);
         } else {
             LOGI("Routing audio to Handset\n");
+                       if ((mMode == AudioSystem::MODE_NORMAL) && (mCurSndDevice != -1)) {
+                               LOGI("BUG: We are ignoring request to allow ring!!\n");
+                               LOGI("Mode %d out devices %x currentdevice %d)\n", mMode, outputDevices, mCurSndDevice);
+                               mCurSndDevice = sndDevice;
+                               return NO_ERROR;
+                       }
             sndDevice = SND_DEVICE_HANDSET;
         }
     }
On the cdma rhod, this condition exists where the sound is routed to handset right before it swaps to the speaker. Simply bypassing this condition helps it ring.
Reply With Quote
 

  PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro 2 > Android On TP2 > Android On TP2 Development


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 10:26 PM.


Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com