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
Register Community Search

Notices


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-19-2010, 07:02 PM
slacksoul's Avatar
Lurker
Offline
Pocket PC: Rhodium
Carrier: Sprint
 
Join Date: May 2010
Posts: 2
Reputation: 895
slacksoul knows their stuffslacksoul knows their stuffslacksoul knows their stuffslacksoul knows their stuffslacksoul knows their stuffslacksoul knows their stuffslacksoul knows their stuff
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Why sound isn't working on the TP2.

We did it!

Thanks to the efforts of Jonpry, (with special thanks to [ACL] and Wozzer) we finally have sound on the TP2!
please visit http://forum.xda-developers.com/showthread.php?t=627997 for more information.

Also, please consider donating to Jonpry via paypal at his email address: jonpry [at] gmail *dot* com

For Historical Purposes
I'm posting this thread because I noticed there's a lot of confusion regarding the status of sound in the Rhod android port, information on the exact reason why sound doesn't work is hard to come by and complicated; so hopefully this thread will clear some of that up.

The Rhodium, like most modern smartphones, has more than one processor, it has four to be exact. Of these processors, two of them are general purpose and two are media processors as follows:

- 1 ARM9 processor that handles the communications stack.

- 1 ARM11 processor upon which the OS (winmo or android) runs on.

- 2 DSP processors that handle the sound and camera functions, they are the QDSP5000 and QDSP4000, they are under the control of the ARM9 processor.

Whenever the phone's OS (WinMo or Android) wants to play sound, it needs to invoke the QDSP5000 chip from the ARM9 processor through a special communications channel between the ARM11 and ARM9 processors. Because this is such a common arrangement in smartphones we already have a standardized way of doing this in the Linux kernel, unfortunately when we attempt to invoke the QDSP5000 chip through this method, it simply does not respond.

This has absolutely stumped developers, there is no reason it shouldn't work, there is nothing wrong with it and it works on every other HTC phone with this chipset, except the Rhodium and Topaz.

How come sound during calls works then?
We have absolutely no idea, it's theorized that WinMo somehow sets it up so that sound during calls is handled exclusively by the ARM9 chip, so when we boot up Android via HaRET, this carries over and in-call sounds are handled all by themselves. Unfortunately this does not carry over to application sounds like the ringer, music and other app sounds.

What can we do to help?
The issue is quite complicated, and at this time it's agreed that the only way to make headway on the issue is to decompile the Rhodium's WinMo sound driver: wavedev.dll. Without the crucial information in this driver, we will never be able to get sound working in the TP2, decompiling drivers is a very tedious, time-consuming and complicated task, and none of the current devs are able to do it at the moment.

If you, or someone you know, has experience in reverse-engineering and decompiling as well as strong C++ and C skills, please take a look at the code. The only way we are going to crack this is by having more eyeballs look at the code.

~ALERT!~(07/16/2010)

Jonpry has developed a wrapper that loads the WinCE "wavedev.dll" driver, eliminating the need to reverse engineer it. Unfortunately loading the wince driver in Android is still not giving us sound, so we need people to help test and develop Jonpry's new 'Vial' wrapper system. The git repository for the source is at http://gitorious.org/vial, please contact Jonpry so he can bring you up to speed on the project.

Thanks for all your hard work bringing sound (et al.) to Android Jonpry!

Last edited by slacksoul; 08-27-2010 at 12:18 AM.
Reply With Quote
This post has been thanked 175 times.
  #2 (permalink)  
Old 05-19-2010, 08:21 PM
Unknownforce's Avatar
PPCGeeks Regular
Offline
Pocket PC: HTC Evo 3D™
Carrier: Sprint
 
Join Date: Nov 2008
Posts: 234
Reputation: 545
Unknownforce knows their stuffUnknownforce knows their stuffUnknownforce knows their stuffUnknownforce knows their stuffUnknownforce knows their stuffUnknownforce knows their stuff
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Why sound isn't working on the TP2.

Thanks for posting this, I was looking for a good write up on the reasoning for this. I didn't know where the DSP was buried and looking through lines of the current android code wasn't getting me anywhere...

I'm not particularly adept to reverse engineering, but I know a little bit, enough to try and take a look at it.

If you have any headway so far, I'd love to take a look at it and try to continue or make some more headway. shoot me a msg or something.
__________________

Phone: Sprint HTC EVO 3D
ROM: Synergy Nightly with Own Mods
"If you have the stereo on, why would you turn up the volume on the TV?" 'Cause I like to party
Reply With Quote
This post has been thanked 9 times.
  #3 (permalink)  
Old 05-19-2010, 08:53 PM
x10guy's Avatar
VIP Member
Offline
Pocket PC: Touch Pro 2
Carrier: Sprint
Location: S. Cal
 
Join Date: Jan 2008
Posts: 1,415
Reputation: 1095
x10guy is halfway to VIP status based on repx10guy is halfway to VIP status based on repx10guy is halfway to VIP status based on repx10guy is halfway to VIP status based on repx10guy is halfway to VIP status based on repx10guy is halfway to VIP status based on repx10guy is halfway to VIP status based on repx10guy is halfway to VIP status based on rep
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Why sound isn't working on the TP2.

+1. Probably the best explanation (concise) I've read about "sound" and Android. Thanks.

Let's hope this thread brings more "eyes" to the project to help solve it.
Reply With Quote
This post has been thanked 2 times.
  #4 (permalink)  
Old 05-19-2010, 09:07 PM
jamice4u's Avatar
Regular 'Geeker
Offline
Pocket PC: Samsung Epic with Cyanogenmod 7
Carrier: Sprint
Location: Daly City California
 
Join Date: May 2008
Posts: 404
Reputation: 1170
jamice4u is halfway to VIP status based on repjamice4u is halfway to VIP status based on repjamice4u is halfway to VIP status based on repjamice4u is halfway to VIP status based on repjamice4u is halfway to VIP status based on repjamice4u is halfway to VIP status based on repjamice4u is halfway to VIP status based on repjamice4u is halfway to VIP status based on repjamice4u is halfway to VIP status based on rep
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Why sound isn't working on the TP2.

You are the man. I just sent you some thanks. Thank you for all your hard work try to get the sound working on android. 1 post and a 35 reputation impressive. It surprises me that 60 people read this post and only 8 people had the common courtesy to say thanks. This guy is doing his best to get the sound working!!!! We should show he more appreciation than this!!!! Only one more thanks for me to make 200 reputation.
__________________
4G Hotspot tethering with Samsung Epic just start 3G first and then start up 4G otherwise your phone will restart. wifi_tether_v3_0-pre10.apk wifi_tether_v3_0-pre12.apk

Please don't forget to thank me.

Last edited by jamice4u; 05-19-2010 at 09:30 PM.
Reply With Quote
This post has been thanked 6 times.
  #5 (permalink)  
Old 05-19-2010, 09:35 PM
shaggylive's Avatar
WP Heavy Rot Sloth
Offline
Pocket PC: Mogul, Touch Pro 1&2, Evo, PhotonQ
Carrier: Sprint
Location: Iowa
 
Join Date: Mar 2007
Posts: 3,466
Reputation: 3362
shaggylive is still contributing even after becoming a VIPshaggylive is still contributing even after becoming a VIPshaggylive is still contributing even after becoming a VIPshaggylive is still contributing even after becoming a VIPshaggylive is still contributing even after becoming a VIPshaggylive is still contributing even after becoming a VIPshaggylive is still contributing even after becoming a VIPshaggylive is still contributing even after becoming a VIPshaggylive is still contributing even after becoming a VIPshaggylive is still contributing even after becoming a VIPshaggylive is still contributing even after becoming a VIP
Mentioned: 4 Post(s)
Tagged: 0 Thread(s)
Re: Why sound isn't working on the TP2.

Quote:
Originally Posted by slacksoul View Post
If you, or someone you know, has experience in reverse-engineering and decompiling as well as strong C++ and C skills, please take a look at the code. The only way we are going to crack this is by having more eyeballs look at the code.
well, I've never really considered myself a programmer, but I've got the flight time to certify..
I've gotten very good at reverse engineering/trouble shooting alot of R&D things over the years (like voip, before it was called that) which brings me to my unique skill set of working in both voice and data. I think alot of data type people have a hard time understanding phone logic.
I have been wanting to get into linux for many years, but never had much reason. till now... sounds like a mystery needs solved..
actually I've never more than looked over a sholder of someone working in c, so I don't even know what the good programming tools for it are, but am willing to give it a go if someone wants to hold my hand till I get walking.
__________________
7 windows to rule them all, 7 windows to find them,
7 windows to bring them all, and in the network bind them.
Navizon CM&ResProxyKiller nueRom SuspendResume777
Reply With Quote
This post has been thanked 2 times.
  #6 (permalink)  
Old 05-19-2010, 10:23 PM
undarated's Avatar
PPCGeeks Regular
Offline
Pocket PC: Mogul,Touch,TP2,Hero,Pre,Evo,Evo Shift,Evo 3d
Carrier: Sprint
Location: On a never ending roller coaster
 
Join Date: Dec 2009
Posts: 54
Reputation: 155
undarated is keeping up the good workundarated is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Why sound isn't working on the TP2.

As this is my first post to the site, I have to say THANKS!!!!! I'm constantly checking the site for any news or updates for android on the Rhodium. I wish you guys the best of luck and I can't wait til it's fully function.
Reply With Quote
This post has been thanked 2 times.
  #7 (permalink)  
Old 05-19-2010, 11:26 PM
Unknownforce's Avatar
PPCGeeks Regular
Offline
Pocket PC: HTC Evo 3D™
Carrier: Sprint
 
Join Date: Nov 2008
Posts: 234
Reputation: 545
Unknownforce knows their stuffUnknownforce knows their stuffUnknownforce knows their stuffUnknownforce knows their stuffUnknownforce knows their stuffUnknownforce knows their stuff
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Why sound isn't working on the TP2.

Quote:
Originally Posted by shaggylive View Post
well, I've never really considered myself a programmer, but I've got the flight time to certify..
I've gotten very good at reverse engineering/trouble shooting alot of R&D things over the years (like voip, before it was called that) which brings me to my unique skill set of working in both voice and data. I think alot of data type people have a hard time understanding phone logic.
I have been wanting to get into linux for many years, but never had much reason. till now... sounds like a mystery needs solved..
actually I've never more than looked over a sholder of someone working in c, so I don't even know what the good programming tools for it are, but am willing to give it a go if someone wants to hold my hand till I get walking.
just FYI, ARM ASM is much different than x86 reversing. I looked into it myself and it's much different.
Reply With Quote
  #8 (permalink)  
Old 05-20-2010, 12:55 AM
coolsilver's Avatar
PPCGeeks Regular
Offline
Pocket PC: HTC TP2
Carrier: Verizon
 
Join Date: Oct 2007
Posts: 233
Reputation: 125
coolsilver is keeping up the good workcoolsilver is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Why sound isn't working on the TP2.

My guess is either these are controllers that need firmware from the os to control and run the port for the speakers etc.

Much like most broadcom wifi drivers in linux need a firmware and driver (kernel module) to work. Like most of those you can see you have a wifi card but doesn't work. Firmware can also cause issues like WPA not to work. Most of these chips in the beginning used ndiswrapper which uses the windows firmware to work on linux. Though now there is a built from scratch driver which does have a firmware made for linux.


I also bet more needs built from scratch or hacked from windows to run on linux/android.

Anyway to make a wrapper and process calls through that dll? Is there any specific windows htc audio services that might be the link?

Last edited by coolsilver; 05-20-2010 at 01:03 AM.
Reply With Quote
  #9 (permalink)  
Old 05-20-2010, 01:22 AM
ghost_deini's Avatar
Lurker
Offline
Pocket PC: RhodiumW
Carrier: sprint
Location: Buffalo
 
Join Date: Feb 2008
Posts: 15
Reputation: 25
ghost_deini is just getting started
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Why sound isn't working on the TP2.

Anybody find this file? i can see wapdrv.dll and waveapi.dll with total commander...
I've used IDA for x86 stuff and programmed in arm asm so i'd like to at least look in to it

Last edited by ghost_deini; 05-20-2010 at 03:37 PM.
Reply With Quote
This post has been thanked 2 times.
  #10 (permalink)  
Old 05-20-2010, 02:03 AM
JDM_SOHC's Avatar
PPCGeeks Ladies Man
Offline
Pocket PC: HTC Evo & TP2
Carrier: SpRinT
Location: M-I-YAYO
 
Join Date: Feb 2008
Posts: 2,003
Reputation: 1715
JDM_SOHC is halfway to VIP status based on repJDM_SOHC is halfway to VIP status based on repJDM_SOHC is halfway to VIP status based on repJDM_SOHC is halfway to VIP status based on repJDM_SOHC is halfway to VIP status based on repJDM_SOHC is halfway to VIP status based on repJDM_SOHC is halfway to VIP status based on repJDM_SOHC is halfway to VIP status based on repJDM_SOHC is halfway to VIP status based on repJDM_SOHC is halfway to VIP status based on repJDM_SOHC is halfway to VIP status based on rep
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Send a message via AIM to JDM_SOHC
Re: Why sound isn't working on the TP2.

Thanks for the info, to bad it's not exactly GOOD news lol..
__________________

Reply With Quote
This post has been thanked 1 times.
Reply

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


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:43 AM.


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