View Single Post
  #21 (permalink)  
Old 05-22-2010, 10:36 PM
Kushiel's Avatar
Kushiel
Lurker
Offline
 
Join Date: May 2008
Posts: 12
Reputation: 95
Kushiel is becoming a great contributor
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Why sound isn't working on the TP2.

Is there anything in particular I should be looking for? I have decompiled wavedev.dll and am in the process of identifying and renaming all the subroutines that I can. (This is about 45% done.) I'm normally a Java guy but I have done reverse engineering and C in the past. What I haven't really dealt with is kernel or driver development, so while I can map everything out I'm not going to know what it all means.

I have identified multiple functions involved with the audio path, but two of the most interesting seem to be AudioPath2PDA and AudioPath2GSM. Each of them calls the same 3 main functions, but the order is different. AudioPath2PDA disables the receiver, sets the flags and registry that the phone is not active, and then changes the audio mode. AudioPath2GSM turns the hearing aid on (if enabled), sets the flags, sets the audio mode, and then enables the receiver. There is a conditional check on the last step that I think has to do if speakerphone is enabled or not, but it is dependent on a pointer I haven't mapped yet.

Kushiel

P.S. Before anyone asks why there are GSM functions, I've been using the Topaz drivers referenced by ghost_deini.
Reply With Quote
This post has been thanked 12 times.