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)

WoZZeR999 07-30-2010 11:57 AM

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

Originally Posted by jonpry (Post 1889583)
Wozzer, here is a new file. Logs more stuff. Hopefully enough :-).

http://pastebin.com/XpL1LcXy

Cool, I'll try it out in an about an hour or so.

jonpry 07-31-2010 04:54 PM

Re: Why sound isn't working on the TP2.
 
this has been very interesting. thanks to all that have helped so far. at this point the windows driver running under android is pretty much in the same shape as the native driver. ie it complains about never getting an interrupt.

i believe this is caused by one of the things we are not doing. probably klt or spm. the native dll's for these can probably be used as well. i will start trying to get those loaded up soon.

for those wanting to help. wrapper could be written for microp spm and adsprtos. collecting data on these dll's will help us get further along. i will write these wrappers if nobody else does. i am moving to the caribean right now. arriving on the 10th. so things are a bit hectic.

hyperfire21 08-02-2010 05:40 AM

Re: Why sound isn't working on the TP2.
 
thanks for all ur hard work guys. please keep updating us on the progress. will keep checking regularly if u need any testers.

jonpry 08-03-2010 01:11 AM

Re: Why sound isn't working on the TP2.
 
Could somebody post a recmodded pm.dll from a WM6.0 gsm rhodium?

WoZZeR999 08-03-2010 07:56 AM

Re: Why sound isn't working on the TP2.
 
As far as I know, Rhod only shipped with 6.1 Pro, there was not an option for WM6.0 Std. I'm downloading the original AT&T shipped rom right now. I'll post the recmodded OEMDrivers and XIP in a few minutes. (File is still downloading)

WoZZeR999 08-03-2010 08:24 AM

Re: Why sound isn't working on the TP2.
 
http://www.4shared.com/file/JA3DWd32...ATT_stuff.html

This is the WM6.1 (earliest I could find) GSM RHOD OEMDrivers and XIP. PM.dll is in the XIP.zip file.

I'm looking through the nk.exe again, and I see it does Interrupt Masking, could this be causing the issues for sound and 3d? Here's the exact text line from the nk - '[K][GuardDog][Interrupt_MASK] owner proc: %s, cur proc: %s, thrd: %08X, int_id: %08X, masked?'. It seems to mask a few other things as well.

[ACL] 08-03-2010 11:16 AM

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

Originally Posted by WoZZeR999 (Post 1895634)
http://www.4shared.com/file/JA3DWd32...ATT_stuff.html

This is the WM6.1 (earliest I could find) GSM RHOD OEMDrivers and XIP. PM.dll is in the XIP.zip file.

I'm looking through the nk.exe again, and I see it does Interrupt Masking, could this be causing the issues for sound and 3d? Here's the exact text line from the nk - '[K][GuardDog][Interrupt_MASK] owner proc: %s, cur proc: %s, thrd: %08X, int_id: %08X, masked?'. It seems to mask a few other things as well.

Thats just a text line i think. If you see the address 0xc0000010 being modified then that might be worth a look.

Check out the wiki on the topaz section. We have a dump there of the whole VIC section there. If the asm you see matches some of those values, let me know and we can take a look.

Do you have a link for 6.1 CDMA rhod files? i'm interested in comparing the nk.exe to the 6.5

[ACL] 08-03-2010 11:18 AM

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

Originally Posted by jonpry (Post 1895403)
Could somebody post a recmodded pm.dll from a WM6.0 gsm rhodium?

Here is the link to the Dzo's code that i wanted you to look at. The irq.c is modified a bit and there are references to the dsp irq.

http://androidhtc.git.sourceforge.ne....git;a=summary

jonpry 08-03-2010 12:36 PM

Re: Why sound isn't working on the TP2.
 
[acl]. are you talking about irq.c from mach-msm? i diffed it with ours and see very few differences and no references to adsp.

wozzer, thanks a bunch.

I thought pm.dll would have stuff like SPM_Open and SPM_IOControl, instead it has only one export, start, and no imports. very weird. I wish there was an easy way to scan through all of the dlls for an export.

EDIT: i found the export in HtcPM.dll

[ACL] 08-03-2010 12:51 PM

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

Originally Posted by jonpry (Post 1896049)
[acl]. are you talking about irq.c from mach-msm? i diffed it with ours and see very few differences and no references to adsp.

wozzer, thanks a bunch.

I thought pm.dll would have stuff like SPM_Open and SPM_IOControl, instead it has only one export, start, and no imports. very weird. I wish there was an easy way to scan through all of the dlls for an export.


sorry i meant vogueirq.c. I know its not our device, but for it looks like the vic types are preset to the same vals that are on wince. We actually set them all to 0. just figured it was worth a look. Also look for the comment "fix for adsp handler".

Once you give me what your pmem.c is set to for sounds i can start testing these changes.

WoZZeR999 08-03-2010 04:06 PM

Re: Why sound isn't working on the TP2.
 
[ACL], I'm downloading what I think is a 6.1 CDMA shipped rom right now, I'll post the XIP and OEMDrivers for you once it's done.

Here is the WM6.1 Sprint OEMDrivers and XIP

[ACL] 08-03-2010 04:28 PM

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

Originally Posted by WoZZeR999 (Post 1896526)
[ACL], I'm downloading what I think is a 6.1 CDMA shipped rom right now, I'll post the XIP and OEMDrivers for you once it's done.

Here is the WM6.1 Sprint OEMDrivers and XIP

thanks man.. ill check it out. im hoping it's really different ..

WoZZeR999 08-03-2010 04:36 PM

Re: Why sound isn't working on the TP2.
 
I checked the Sprint 6.1 NK, and it still has the guarddog, but I don't see anything about masking the interrupt. So that is probably not causing the issue.

jonpry 08-03-2010 11:18 PM

Re: Why sound isn't working on the TP2.
 
[acl]. i don't see what the point of pmem.c is. Looks like it is there so userland applications can have access to physmem that might move around between devices. Basically the same thing and wce_pmem.c. For sound, the only thing that would use it is htc_acoustic, which we don't have. qdsp5 driver finds its own memory and doesn't use pmem.

wce_pmem and wavedev are mapping in *lots* of phys mem. I count at least 5 16mb regions.

my technique of mmapping /dev/mem, doesn't require it. pmem is probably a prettier solution for when it works.

jonpry 08-04-2010 12:57 AM

Re: Why sound isn't working on the TP2.
 
[acl]. i tried removing powermanagement support since i am going to be loading the wince one. Just having it removed gives me a dsp related int somewhere, although it still does not work. Also it is crashing my wce_pmem somehow. That is going to be tough to figure out.

2phonejones 08-04-2010 11:33 AM

Re: Why sound isn't working on the TP2.
 
ur guys pockets will be LOADED when u get everything working ahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhh

[ACL] 08-04-2010 11:34 AM

Re: Why sound isn't working on the TP2.
 
jonpry : i tried the dzo irq changes. It doesnt break the build but it didnt help with 3d either. Replicating the VIC settings dont work too well either since our code disables them anyways. For example i left the 3d bit enabled but once hw3d.c loads, the bit gets disabled during init. I'm not sure if thats the case for all the devices.

jonpry 08-04-2010 09:36 PM

Re: Why sound isn't working on the TP2.
 
[acl]. i don't think we should let anything enable or disable interrupts. We should just setup VIC just like WinCE and then ignore any calls to irq_enable or irq_disable other than hooking up the handlers. Presumably all the linux drivers will be requesting interrupts to get setup the way they already are anyways.

[ACL] 08-09-2010 03:30 AM

Re: Why sound isn't working on the TP2.
 
Jonpry: There was some progress with the nand boot. Wozzer was able to boot but we are crapping out during the usb probe like expected.

compuw22c 08-09-2010 09:50 AM

Re: Why sound isn't working on the TP2.
 
As relatively quiet as this thread has been (stuck to the topic very well!) I find it necessary to state the obvious and just say a HUGE thank you to everyone working so hard on all of this. Not just the sound, but the guys trying to install to NAND for us, the original devs that first got android to boot goofy touchscreen and all. Its guys (and girls) like you that make computers truly interesting. It's because of you that these devices are able to reach their true potential and I think its an absolute shame if you all don't end up in some very high-end programming or systems engineering job. I speak as someone who fixes computers frequently, servers, pcs, you name it, and am regarded as somewhat of a 'guru' around my friends and family, and I know full well your skills far FAR surpass mine.

Just figured a big thank you was in order. With talent like this, I know we'll get it eventually if it CAN be gotten.

[ACL] 08-10-2010 02:14 PM

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

Originally Posted by jonpry (Post 1899055)
[acl]. i don't think we should let anything enable or disable interrupts. We should just setup VIC just like WinCE and then ignore any calls to irq_enable or irq_disable other than hooking up the handlers. Presumably all the linux drivers will be requesting interrupts to get setup the way they already are anyways.

Dood where the f*ck are u? lol. WisTilt2 claims to have irq's working.

2phonejones 08-10-2010 02:16 PM

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

Originally Posted by [ACL] (Post 1906107)
Dood where the f*ck are u? lol. WisTilt2 claims to have irq's working.

whooooooooooooooooooooooooooooooooooooooooo i dont know what acr means? but im sure its good news whoooooooooooooooooooooooooooooooooooooooooooooooo ooo:headbang:=D>

Viper786 08-10-2010 02:47 PM

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

Originally Posted by [ACL] (Post 1906107)
Dood where the f*ck are u? lol. WisTilt2 claims to have irq's working.

Quote:

Originally Posted by jonpry (Post 1892005)
i am moving to the caribean right now. arriving on the 10th. so things are a bit hectic.

He's moving to the Caribbean.

kaos 08-11-2010 04:25 PM

Re: Why sound isn't working on the TP2.
 
can i move with him. you got a extra room hit me up. lol

neudof 08-12-2010 09:09 AM

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

Originally Posted by [ACL] (Post 1906107)
Dood where the f*ck are u? lol. WisTilt2 claims to have irq's working.

what can we test?! :)

pts69666 08-12-2010 12:04 PM

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

Originally Posted by neudof (Post 1908418)
what can we test?! :)

Not sound... just IRQ's

lobfredd 08-12-2010 08:05 PM

Re: Why sound isn't working on the TP2.
 
Probably Been said/tested before but hasnt the hero almost the same hardware? (cpu atleast)
Maybe the hero drivers would work?

hyperfire21 08-12-2010 08:54 PM

Re: Why sound isn't working on the TP2.
 
if any testing needs to be done on hero i might be able to help.. i have both hero and tp2

docnas 08-12-2010 10:14 PM

Re: Why sound isn't working on the TP2.
 
from my following this thread for some time it comes down to the fact that the tp2, the topaz , blackstone have some kind of very different architecture which is why even though the port works great for other phones it doenst work ( atleast with sound and 3d ) on ours.

And i think the problems in the kernel level not the driver level ( correct me if im wrong as my programming and reverse engineering skills are limited to cheering the actual developers on).

jrgolfpro 08-13-2010 12:39 AM

Re: Why sound isn't working on the TP2.
 
They'll figure it out eventually

bitslizer 08-13-2010 08:46 AM

Re: Why sound isn't working on the TP2.
 
ditto, i run a TP2 and my wife a hero

jonpry 08-13-2010 10:28 PM

Re: Why sound isn't working on the TP2.
 
Hi All. I've been hacking away here. Still no interrupts. But I am fairly close to being able to use wince DEX,SPM,RPC,SHM,KLT. which hopefully will get things moving along in the right way.

If there are any linux experts out there. I am having trouble mmap'ing contiguos regions. Like mmap(0xfu,0x1000,somephys), then mmap(0xfu+0x1000,0x1000,someotherphys)

Seems like it needs at least 3 pages for it to work. I *need* it to be contiguous though. Anything including hacking the kernel would be fine. I'm just not sure what the trouble is.

kwiksilver 08-13-2010 11:54 PM

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

Originally Posted by jonpry (Post 1910603)
Hi All. I've been hacking away here. Still no interrupts. But I am fairly close to being able to use wince DEX,SPM,RPC,SHM,KLT. which hopefully will get things moving along in the right way.

If there are any linux experts out there. I am having trouble mmap'ing contiguos regions. Like mmap(0xfu,0x1000,somephys), then mmap(0xfu+0x1000,0x1000,someotherphys)

Seems like it needs at least 3 pages for it to work. I *need* it to be contiguous though. Anything including hacking the kernel would be fine. I'm just not sure what the trouble is.

Have you been able to replicate the half second of sound that was reported early this week?

jonpry 08-14-2010 12:16 AM

Re: Why sound isn't working on the TP2.
 
I haven't got that half second of sound. I've talked to the guy, but he is pretty closed lipped about exactly how they got it to work.

mikezpc 08-14-2010 12:30 AM

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

Originally Posted by jonpry (Post 1910700)
I haven't got that half second of sound. I've talked to the guy, but he is pretty closed lipped about exactly how they got it to work.

been silently watching this post mainly because im an electrical engineer who was never into programing or software dev in general but the fact that the rhodium port has been in the works since february and that people are holding back is just crazy and frustrating, specially when the HD2 went up and running in no time.

compuw22c 08-14-2010 01:05 AM

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

Originally Posted by mikezpc (Post 1910711)
been silently watching this post mainly because im an electrical engineer who was never into programing or software dev in general but the fact that the rhodium port has been in the works since february and that people are holding back is just crazy and frustrating, specially when the HD2 went up and running in no time.

Agreed. There's a reason most professional development teams have more than 1 single person. Everyone has different skills and ideas that should all be used together to solve complex issues like this. Your work will be greatly appreciated by many, whether you do it by yourself or with the aide of other like and different minded people other than yourself.

Regardless, thank you everyone involved and keep up the good work!

dcmedic 08-14-2010 09:57 AM

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

Originally Posted by kwiksilver (Post 1910681)
Have you been able to replicate the half second of sound that was reported early this week?


That is the first I have heard about any sound. Thats sounds like a buffer issue.

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

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

Originally Posted by mikezpc (Post 1910711)
been silently watching this post mainly because im an electrical engineer who was never into programing or software dev in general but the fact that the rhodium port has been in the works since february and that people are holding back is just crazy and frustrating, specially when the HD2 went up and running in no time.

Lol.. Cotulla himself said the tp2 is very difficult.

Frustrating yes.. but imagine how we feel. I been banging my head on irq issues for months now. Out of desperation i decided to make a nand version which we got booting and we are in the same boat.

mikezpc 08-14-2010 07:54 PM

Re: Why sound isn't working on the TP2.
 
ACL i know how you feel and YES the TP2 is a nightmare, if only i ever run into the engineer behind it, that would be interesting lol

sometimes when your working on something else is when you figure out what you were working on initially.
how is it on nand ? compared to a 16gb class 2?
im sure you guys might have heard this before but i was recently tinkering with a friend's HTC Dream/G1 and i gota admit, huge hardware similarities.
oh well i shall wait but wish i could help and sorry if i took this thread off course

Joshszman09 08-16-2010 08:29 PM

Re: Why sound isn't working on the TP2.
 
I found this post on a different thread and figured I would share it in case it helped. It is obviously about the Rhodium sound problem.

"Something just occured to me... I'm a sound engineer... so i know all about feedback, sends/returns etc in a live environment, which is basically the same wherever you have a live microphone near a speaker....

In my industry there are 2 devices you can insert into the "sound chain"...

1. If an artist screams into a microphone, you insert a compressor, which essentially brings the input gain down, preventing the microphone from distorting....
This is practically achieved by "routing" the microphone VIA a compressor 1st, the compressor does it's processing, which you set manually, consisting of:
- Threshold (Input Gain)
- Ratio (How much of the threshold to process)
- Output Gain (How loud the output is)

2. If your microphone environment is too noisy, in otherwords if you are scared of feedback occuring, you can insert a GATE into the sound chain. This basically keeps the microphone "off" (or gated) waiting for input signal to be loud enough, which then switches the microphone on. Practically a simple example would be on a drumkit, where the drum A must not pick up drum B when the drummer hits drum B... the microphone on drum A is "Gated" and only opens when it is hit and the signal is loud enough (or close enough to the microphone)

You also set gates manually, consisting mainly of:
- Threshold (Input Gain)
- Ratio (How much of the threshold to process)
- Attack time (How quickly to process)
- Decay time (How quickly to release)
- Output Gain (How loud the output is)


In our industry, it is a common mistake where new engineers under stress forgets to take the "insert button" out of the chain... so they struggle to get any sound going to the speakers until they take out the insert button.

So with example a (compressors) and example b (gates), either of those 2 components may cause the speaker to stop working, if the device is inserted.

If you say that everything is being routed to the 3.5mm jack, what are the chances the designers have some sort of gating/compressor system in the sound chain, to prevent feedback/echo from happening... and the default settings are simply set to "off" or "maximum"... and its inserted by default.

...like i said - these devices are found everywhere... just in my industry it's something inserted physically as a separate device. So maybe everything works... it's just something in the chain which doesn't....

...hope it makes sense to someone"


Now, this makes me think that the problem has to do with the dual microphones the rhodium uses for noise cancellation. I hope this isn't old news and maybe it is helpful to someone...


All times are GMT -4. The time now is 11:19 AM.

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


Content Relevant URLs by vBSEO 3.6.0