PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   Android On TP2 (http://forum.ppcgeeks.com/forumdisplay.php?f=179)
-   -   Why sound isn't working on the TP2. (http://forum.ppcgeeks.com/showthread.php?t=121743)

[ACL] 06-04-2010 12:08 PM

Re: Why sound isn't working on the TP2.
 
Quote:

Originally Posted by variance (Post 1791357)
Please. let me know of some of these possibilities
I've been hoping the TP2 running android with sound reasonbly fast would be all I need to hold me over.

because Im being tempted with a free HTC evo right now.
and I'm playing with it.
but I realllly like my SERO plan.
and having a hardware keyboard.

but it's tempting me towards the darkside.

Well i was talking to the Kernel gurus about this an with this caliber of debugging power at the hardware level im sure everything can be figured out..

im tempted by the Evo as well. I might just get it but programming is a old passion of mine. I'll prob continue butchering code until the the tp2 gets a solid android running.

sd73ta 06-06-2010 08:55 PM

Re: Why sound isn't working on the TP2.
 
Glad to see this progressing and thanks for shedding some light on this subject

sd73ta 06-08-2010 05:26 PM

Re: Why sound isn't working on the TP2.
 
I just rememberer asking PHH awhile ago about the sound and he said the rhodium was more like the iphone than any of the other phones. maybe the answer lies in the android on the iphone that just got finished. heres the link if that helps http://linuxoniphone.blogspot.com/20...uietly-in.html wish I knew more to try and help

[ACL] 06-08-2010 06:50 PM

Re: Why sound isn't working on the TP2.
 
If im not mistaken that code was already examined. No luck with it.

We are still waiting on BinaryDroid on xda to see if his hardware debugging can help. So far i havent heard back from him.

pts69666 06-08-2010 08:38 PM

Re: Why sound isn't working on the TP2.
 
I think I remember reading that there was some code that disabled the sound in Android because without that line of code in there there was cracking sounds in the speaker and such. I wonder, kinda like how the earpiece didn't work unless you were in a call whilst booting Android. Well, If they can take that line of code out, and then load some music playlist in windows media player while booting Android, would it be worth a shot?

Just an idea.

=/

jdpman 06-13-2010 04:48 AM

Re: Why sound isn't working on the TP2.
 
Its been 5 days since a reply in this thread so I'm bumping it up to ask if theres been any more progress? Winmo is pissing me off more and more every day and sound is the only thing keeping me from using Android all the time....

tron1point0 06-13-2010 03:25 PM

Re: Why sound isn't working on the TP2.
 
Yep. BinaryDroid on the xda fora is still working on it as of the 10th.

Link: http://forum.xda-developers.com/show...6&postcount=41

[ACL] 06-14-2010 11:46 AM

Re: Why sound isn't working on the TP2.
 
i waited all week on the irc room hoping BinaryDroid would jump in. I think he is just really busy right now to do anything heavy.

sd73ta 06-14-2010 09:36 PM

Re: Why sound isn't working on the TP2.
 
I was just wondering if the startup sound in wm somehow triggers the speaker? since there is no sound during haret maybe thats the problem. im guessing here but maybe some of the higher ups should try and replace wm on their phone and see if the sound works then :scratch:

gface2k 06-14-2010 10:27 PM

Re: Why sound isn't working on the TP2.
 
I was thinking the same thing and called my voice mail with the spkr phone on while booting android, I also tried playing an MP3 while booting but no luck.

I did notice that if you check your dmesg in a terminal emulator, you can see were the boot process tries to initiate the sound system but it errors out saying its already started.

Quote:

Rhodium audio registering drivers
Error: Driver 'rhodium_audio' is already registered, aborting...
Now im wondering if we can get some kind of bare bone Winmo rom with no sound drivers and then try launching android to see what happens.

gface2k 06-15-2010 02:30 PM

Re: Why sound isn't working on the TP2.
 
Well I used the sprint shipped rom and I found a utility were i could delete the waveapi.dll, waveapi.dll.0409.mui and wavedev.dll. After deleting these files there was no sound on the phone in winmo and no sound in android.

From what I read, winmo initiates the hardware and android loads up its own drivers to use it. I was curious as to what would happen if there was no sound in winmo, would android be able to control the spkr volume (im referring to the front spkr not the one in back of the phone)? Apparently that is not the case, I guess we will have to wait till some one hacks the hardware.

scuckinghunter 06-16-2010 01:41 PM

Re: Why sound isn't working on the TP2.
 
awesome info. gonna start learnin more about dev this weekend on my time off. time to put on the thinking cap =P

pts69666 06-16-2010 06:25 PM

Re: Why sound isn't working on the TP2.
 
Quote:

Originally Posted by gface2k (Post 1815362)
I was thinking the same thing and called my voice mail with the spkr phone on while booting android, I also tried playing an MP3 while booting but no luck.

IIRC, in the development of the Android port, the speaker made a lot of loud hissing and cracking noises because it wasn't working properly. Because of this, they added some code to completely disable the speakers altogether. I think I remember seeing a boot option that would re-enable the speakers, even tho it just caused the hissing and cracking sounds. My question lies in the fact that mic/ear piece didn't work before using them during boot-up. So, if we were to re-enable speakers, and then like play an MP3 during boot up. Only issue I can find there lies in the fact that the program you are using to play the MP3 file dies when WinMo dies. Where as the phone call will stay active after WinMo dies. So, if there is a way to make a sound play over the loud speaker without having to be in a phone call, after the speaker is re-enabled, it might be able to work. My idea is to try having someone call you so your phone is ringing during boot up. But again, this is just an idea from someone who doesn't know any of the code or anything.

tl;dr
idea that will prolly not work and prolly has been thought of already

gface2k 06-16-2010 11:31 PM

Re: Why sound isn't working on the TP2.
 
thanx for the info regarding the boot switch for the spkr. I'm by no means a programmer but I have been using linux on and off for over 5 yrs which android is based off. I'm sure a lot of our ideas have been tried by the devs but the way I look at it, if enough of us keep trying either were going to stumble across something significant or it might inspire some hard core dev to waste some of his time getting it done.

nevergonnauseth 06-17-2010 04:56 AM

Re: Why sound isn't working on the TP2.
 
^No time is ever wasted if we learn from it. ;-)

[ACL] 06-17-2010 11:09 AM

Re: Why sound isn't working on the TP2.
 
I'm on the chat logs everyday .. and i can tell you that no one is actively working on this right now. BinaryDroid on XDA took apart his tp2 in hopes to do some hardware debugging but we haven't heard back at all in a while, so im not holding my breath on that.

There was some discussion yesterday about it and i'm puttnig it here so everyone can see what the issue really is.

21:52 Scotchy How come in-call audio works ? I don't get it. Is it handled by the ARM11 ?
21:53 Scotchy I thought audio was handled by the DSP processors through the ARM9
21:53 Scotchy And if we can get in-call audio working, why won't all of it work ? Mixer issue ?
21:53 phh Scotchy: no, in-call is done through A9
21:53 phh that's the thing.
21:54 phh we don't have anything to do to get sound call working
21:54 phh A9 sets up everything on its own
21:55 Scotchy oh
21:55 phh while for software sound we have to set it up
21:55 Scotchy What happens when we invoke the DSP chip ? No answer ? Error ?
21:55 phh I already said
21:55 phh no adsp interrupt
21:55 phh it answers to everything
21:55 phh just no interrupt.
21:55 Scotchy lol
21:56 Scotchy well WinMo does it someway. Think we gotta reverse that. What was it again ? wavedev or something ?
21:56 phh yup wavedev
21:56 phh and we already tried to reverse it
21:56 phh our code just seem perfect


These rest is here for everyone to read if they are interesed

http://irclog.netripper.com/?chan=ht...month=6&day=16

variance 06-17-2010 05:24 PM

Re: Why sound isn't working on the TP2.
 
Quote:

Originally Posted by [ACL] (Post 1820616)
I'm on the chat logs everyday .. and i can tell you that no one is actively working on this right now. BinaryDroid on XDA took apart his tp2 in hopes to do some hardware debugging but we haven't heard back at all in a while, so im not holding my breath on that.

There was some discussion yesterday about it and i'm puttnig it here so everyone can see what the issue really is.

21:52 Scotchy How come in-call audio works ? I don't get it. Is it handled by the ARM11 ?
21:53 Scotchy I thought audio was handled by the DSP processors through the ARM9
21:53 Scotchy And if we can get in-call audio working, why won't all of it work ? Mixer issue ?
21:53 phh Scotchy: no, in-call is done through A9
21:53 phh that's the thing.
21:54 phh we don't have anything to do to get sound call working
21:54 phh A9 sets up everything on its own
21:55 Scotchy oh
21:55 phh while for software sound we have to set it up
21:55 Scotchy What happens when we invoke the DSP chip ? No answer ? Error ?
21:55 phh I already said
21:55 phh no adsp interrupt
21:55 phh it answers to everything
21:55 phh just no interrupt.
21:55 Scotchy lol
21:56 Scotchy well WinMo does it someway. Think we gotta reverse that. What was it again ? wavedev or something ?
21:56 phh yup wavedev
21:56 phh and we already tried to reverse it
21:56 phh our code just seem perfect


These rest is here for everyone to read if they are interesed

http://irclog.netripper.com/?chan=ht...month=6&day=16

I've been watching it too. waiting for some news on that front.
I'm wondering if I should go ahead and pull the trigger on hiring those chinese/taiwanese devs to reverse engineer/decompile the windows drivers.

also .
wait.. you already tried? or you did?

[ACL] 06-17-2010 05:34 PM

Re: Why sound isn't working on the TP2.
 
Quote:

Originally Posted by variance (Post 1821507)
I've been watching it too. waiting for some news on that front.
I'm wondering if I should go ahead and pull the trigger on hiring those chinese/taiwanese devs to reverse engineer/decompile the windows drivers.

also .
wait.. you already tried? or you did?

Nope. i havent tried anything on sound. Jonpry and Phh on xda are the ones i know who were working on it last.

Begin the fundraiser to buy devs ..lol

Unknownforce 06-17-2010 05:48 PM

Re: Why sound isn't working on the TP2.
 
Quote:

Originally Posted by [ACL] (Post 1821524)
Nope. i havent tried anything on sound. Jonpry and Phh on xda are the ones i know who were working on it last.

Begin the fundraiser to buy devs ..lol

I'd definitely donate to this cause.

justinxtreme 06-17-2010 07:49 PM

Re: Why sound isn't working on the TP2.
 
Well my first poss and well um My guess is the new extUSB thing is a part of the problem. I think it requires a special driver to detect if video and audio is also being outputted to the new extusb thus this is the reason USB is charging only for now and audio is not there as all three are connected and when the extusb doesn't send a response to it's status their is no response . Either way decompiling is likely required.
I may be wrong but that's just my point of view. Do the other htc phones that have fully working audio have an extusb port?

gface2k 06-17-2010 09:31 PM

Re: Why sound isn't working on the TP2.
 
interesting stuff, so the sound system should be working but its not because of an unknown variable. I like the extUSB theory, I guess I'll focus on gathering info on the usb system.

justinxtreme 06-18-2010 03:20 AM

Re: Why sound isn't working on the TP2.
 
How do I decompile a Windows driver. I'm just a starter and I want to get into this stuff :). I have plenty of time in my hands just need some more information.

I was wondering if you guys can use the G1's driver. I was doing some researc and found resemblance wit the processor/graphics chip it has (MSM7201 which is I think on the GSM versions of the TP2) and both are ARM9 architecture and allow te use of complex and extended propietary instructions and signals. The G1 features a extUSB port... and of course likely reports to the whole QSD thing to tell it's status and process sound.
Another phone is the HTC Droid Eris which also features the MSM7600 that is on te CDMA versions of the Touch Pro 2. Also features a extUSB thing. Is it possible to get the driver for audio off the Droid Eris or G1 and port it to the Touch Pro 2..... since they basically use the same processors (CPU/GPU/ and Multimedia-wise) (More notes below) and feature the extUSB..... it's basically porting the same thing over :)......

I may be wrong though but it's just a suggestion since I thought that extUSB really has something to do with it.... maybe the developers just overlooked it or something (no offense).

I heard the MSM7200 and the MSM7201 have some key differences. 45nm nand shrink for MSM7201 and the oter one is technically just produced by Broadcom (older nand shrink techniques but same ARM9 architecture) and was seperated numerically for legal purposes. All in all they use the same ARM9 architecture. MSM7200 on TP2 and MSM7201 on G1. :)

MSM7600 in Droid Eris and Touch Pro 2 CDMA are exactly the same. Well from what I've researched that is

Thanks for all the developer's efforts to making Android on TP2 possible :)

variance 06-18-2010 06:17 AM

Re: Why sound isn't working on the TP2.
 
Quote:

Originally Posted by justinxtreme (Post 1822380)
How do I decompile a Windows driver. I'm just a starter and I want to get into this stuff :). I have plenty of time in my hands just need some more information.

I was wondering if you guys can use the G1's driver. I was doing some researc and found resemblance wit the processor/graphics chip it has (MSM7201 which is I think on the GSM versions of the TP2) and both are ARM9 architecture and allow te use of complex and extended propietary instructions and signals. The G1 features a extUSB port... and of course likely reports to the whole QSD thing to tell it's status and process sound.
Another phone is the HTC Droid Eris which also features the MSM7600 that is on te CDMA versions of the Touch Pro 2. Also features a extUSB thing. Is it possible to get the driver for audio off the Droid Eris or G1 and port it to the Touch Pro 2..... since they basically use the same processors (CPU/GPU/ and Multimedia-wise) (More notes below) and feature the extUSB..... it's basically porting the same thing over :)......

I may be wrong though but it's just a suggestion since I thought that extUSB really has something to do with it.... maybe the developers just overlooked it or something (no offense).

I heard the MSM7200 and the MSM7201 have some key differences. 45nm nand shrink for MSM7201 and the oter one is technically just produced by Broadcom (older nand shrink techniques but same ARM9 architecture) and was seperated numerically for legal purposes. All in all they use the same ARM9 architecture. MSM7200 on TP2 and MSM7201 on G1. :)

MSM7600 in Droid Eris and Touch Pro 2 CDMA are exactly the same. Well from what I've researched that is

Thanks for all the developer's efforts to making Android on TP2 possible :)

just because teh chipsets are the same doesnt mean shit is initialized or that I/O between the processors/coprocessor/sound chipset is the same. please read and re-read OP explanation.

furthermore. Sound is working on TP1 which has extusb and similar chipset so there goes that explanation.

so far they've come to the conclusion that the only way to know for sure. without making wild guesses would either be the hardware debugging (which someone on xda is doing) and/or decompiling the windows drivers
to see exactly how windows initializes the sound for use.

I highly doubt it's extusb though given all the other extusb winmo phones that work just fine with android and have sound.

sovereignty03 06-18-2010 11:35 AM

Re: Why sound isn't working on the TP2.
 
Quote:

Originally Posted by justinxtreme (Post 1822380)
...The G1 features a extUSB port... and of course likely reports to the whole QSD thing to tell it's status and process sound.
Another phone is the HTC Droid Eris which also features the MSM7600 that is on te CDMA versions of the Touch Pro 2. Also features a extUSB thing. Is it possible to get the driver for audio off the Droid Eris or G1 and port it to the Touch Pro 2..... since they basically use the same processors (CPU/GPU/ and Multimedia-wise) (More notes below) and feature the extUSB..... it's basically porting the same thing over :)......

I may be wrong though but it's just a suggestion since I thought that extUSB really has something to do with it....


extUSB is just a modified miniUSB that includes analog audio pinouts. If the data can't be read on regular USB or miniUSB, then it can't be read on extUSB...one can actually plug in a miniUSB cable into the extUSB jack and get all the same USB functions (just be careful 'cause the extUSB jack is delicate)...

pringlet 06-18-2010 11:35 AM

Re: Why sound isn't working on the TP2.
 
Brainstorming..

One of the differences regarding sound output between the TP1 and TP2 is the TP2 has a 3.5mm jack. Maybe the issue has to do with whatever IC routes the sound to either the 3.5mm jack or the speaker.

pt

sovereignty03 06-18-2010 11:53 AM

Re: Why sound isn't working on the TP2.
 
Quote:

Originally Posted by pringlet (Post 1822766)
Brainstorming..

One of the differences regarding sound output between the TP1 and TP2 is the TP2 has a 3.5mm jack. Maybe the issue has to do with whatever IC routes the sound to either the 3.5mm jack or the speaker.

pt

Good thought...I have a Tilt 2 (a variant of the Rhodium/TP2 family) from AT&T and is does not have a 3.5mm audio jack. But, with that being said, I don't know if the functionality is actually there and they (HTC/AT&T) just decided not to include a jack, or if the functionality was completely deleted from the PCB/Kernel...

sd73ta 06-18-2010 12:12 PM

Re: Why sound isn't working on the TP2.
 
pretty sure the "earlier" Tilt2's did not have 3.5 jacks the newer ones do.

[ACL] 06-18-2010 12:29 PM

Re: Why sound isn't working on the TP2.
 
Quote:

Originally Posted by variance (Post 1822431)
so far they've come to the conclusion that the only way to know for sure. without making wild guesses would either be the hardware debugging (which someone on xda is doing) and/or decompiling the windows drivers
to see exactly how windows initializes the sound for use.

You can also trace calls in haret. I'm doing that now for the 3d. Requires a lot of patience.

For those of you who haven't started playing with haret. What are you waiting for ?

HeXeD 06-18-2010 01:06 PM

Re: Why sound isn't working on the TP2.
 
Quote:

Originally Posted by sd73ta (Post 1822836)
pretty sure the "earlier" Tilt2's did not have 3.5 jacks the newer ones do.

I think you are mistaken. A buddy of mine received a Tilt2 in late March and it still does not have the headphone jack, as well as the different keyboard not having the numeric row at the top. Even the AT&T site has a 360 degree view of the phone that looks like it used to when it first came out.

...and on that note, I am definitely curious what this means for TP2 development. I wonder if there is a serious difference in the coding between the GSM and CDMA devices that there will have to be more work involved with the TP2 as opposed to the other phones. Also, could this have anything to do with the problem of not having sound? I would assume not but it is funny how the TP2 seems to be the only device out of all of them that is significantly different by having a hardware refresh in between the development of the GSM versions and CDMA.

sd73ta 06-18-2010 01:14 PM

Re: Why sound isn't working on the TP2.
 
sorry bout that looks like all the tilt2's had no 3.5 jack but the cdam phones do

sovereignty03 06-18-2010 01:37 PM

Re: Why sound isn't working on the TP2.
 
Quote:

Originally Posted by sovereignty03 (Post 1822805)
Good thought...I have a Tilt 2 (a variant of the Rhodium/TP2 family) from AT&T and is does not have a 3.5mm audio jack. But, with that being said, I don't know if the functionality is actually there and they (HTC/AT&T) just decided not to include a jack, or if the functionality was completely deleted from the PCB/Kernel...

Well...didn't think of this earlier...has anyone actually tried their headphones with the extUSB adapter plugged in to see if there is sound there? I don't have my adapter at the moment so can't try it.

sovereignty03 06-18-2010 01:46 PM

Re: Why sound isn't working on the TP2.
 
Quote:

Originally Posted by sovereignty03 (Post 1822805)
Good thought...I have a Tilt 2 (a variant of the Rhodium/TP2 family) from AT&T and is does not have a 3.5mm audio jack. But, with that being said, I don't know if the functionality is actually there and they (HTC/AT&T) just decided not to include a jack, or if the functionality was completely deleted from the PCB/Kernel...

Another thought...Going by my experience with universal PCB/circuit design it would be more logical/cost effective to leave the entire kernel and pcb intact and just remove the 3.5mm jack along with changing the phone enclosure to not include a hole for it. I think I remember reading that the functionality is actually there for the front camera also, but AT&T decided they didn't want it on there phones so the camera and the phone enclosure was changed to not include it. (probably had something to do with AT&T not wanting any more bandwidth taken up by video conferencing)

So...it may be true that something is happening that is causing the audio to output on the headset instead of the handset rear speaker...it's only a thought. I would guess that somebody has already tried plugging in a headset for sound...

sd73ta 06-18-2010 01:56 PM

Re: Why sound isn't working on the TP2.
 
tried it and still nothing

uranidiot 06-18-2010 04:48 PM

Re: Why sound isn't working on the TP2.
 
keep trying guys, we know u can do it.

gface2k 06-18-2010 05:20 PM

Re: Why sound isn't working on the TP2.
 
Since my previous test on removing the wavedev.dll was totally wrong because I didn't put the
Quote:

Enable External Speaker - external.rhod_speaker=1
switch in my start up txt I re did it again.

What I found was that removing wavedev.dll from winmo results in no sound during calls from the front spkr and hiss from the back spkr all the time. Having wavedev.dll in winmo results in hiss from the back spkr but ass soon as a call is made the phone shuts down the back spkr (no hiss durin this point) and you can hear the call in the front spkr. As soon as the call ends the hiss returns to the back spkr.

sovereignty03 06-18-2010 07:39 PM

Re: Why sound isn't working on the TP2.
 
Hmm...my rep doesn't go up...someone click that thanks button :headbang:

variance 06-18-2010 09:57 PM

Re: Why sound isn't working on the TP2.
 
Quote:

Originally Posted by sovereignty03 (Post 1823650)
Hmm...my rep doesn't go up...someone click that thanks button :headbang:

it's kind of old news. it's been done. but i gave you props anyway.

as for the 3.5mm jack havng anything to do with it.
sound comes from both the extusb and the 3.5mm jack

I've come to believe the 3.5mm jack is just hooked into the same sound circuit that's on extusb. ive concluded this by trial and error playing with the ext usb dongle from mogul and touch pro1 trying two earphones at once. pulling one out of the jack and into the dongle and vice versa. etc.

so the detection and functionality should be the same regardless. if that hardware guy can just post a comparison/results on his hardware debugging/tracing of the difference between wm6.5 bootin up and android with the current drivers booting up. see if the way it initializes the sound really is different from all the other htc wm phones using the similar chipset.

only thing about tp2 sound wise diff from the other HTC phones using xda-android may be it's awesome speakerphone functionality? but then again that all ties into how sound is initialized and all that.
one thing the TP2 has down is call quality.

variance 06-18-2010 10:02 PM

Re: Why sound isn't working on the TP2.
 
Quote:

Originally Posted by [ACL] (Post 1822867)
You can also trace calls in haret. I'm doing that now for the 3d. Requires a lot of patience.

For those of you who haven't started playing with haret. What are you waiting for ?

+1 on playing with haret.

and respect for having the patience..
after a few hours of tracing calls, my add kicked in as I started trying to think of a way to write a program to automatically do it for me. then I forgot about that when I saw a post of someone who posted up some builds of Froyo on xda that he was requesting someone test with rhodium.. which i'm trying to do now.


TP2 would have made a much better android device.

justinxtreme 06-18-2010 10:58 PM

Re: Why sound isn't working on the TP2.
 
.... lol i was totally off..... i didn't know the touch pro 1 had a ext usb sorry :)

oh and i kno the extusb is usable as a microusb port i'm just saying it's modified and sends requests to the board since it's uses digital output....

Either way the whole debugging thing and how windows works wit the sound is nice

ill try taking a look at the files (i'm looking for it :) i know how to decompile drivers now (it's kind of complicated )

[ACL] 06-18-2010 11:45 PM

Re: Why sound isn't working on the TP2.
 
Quote:

Originally Posted by variance (Post 1823866)
+1 on playing with haret.

and respect for having the patience..
after a few hours of tracing calls, my add kicked in as I started trying to think of a way to write a program to automatically do it for me. then I forgot about that when I saw a post of someone who posted up some builds of Froyo on xda that he was requesting someone test with rhodium.. which i'm trying to do now.


TP2 would have made a much better android device.

I tried a while back when Klinux gave me his copy he had running on the blackstone. It never ran on my tp2 but it may be because its cdma. I'm not really sure since the logs made no sense at all.

Yes, Haret is retardedly powerful. Dzo a while back released some scripts to help parse the dumps.


All times are GMT -4. The time now is 08:27 AM.

Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0