thedopefishlives Posted June 26, 2006 Share Posted June 26, 2006 Hold the phone, my system just crashed *laughs* It may or may not be perfect yet. Yep, definitely a regression. I'm going to go back to the version I posted earlier and apply what I just learned and re-test. I tried a lot of things attempting to fix the latency which could've made the kernel panics start up again. Link to comment Share on other sites More sharing options...
thedopefishlives Posted June 26, 2006 Share Posted June 26, 2006 This version should take the best from v. 1.0.1 and v. 1.0.2 - that is, codec detection fixed, kernel panics fixed, AND latency issues fixed. Again, there is a powersaving and a non-powersaving version. I'd test it more, but my flip4mac install just got completely hosed by the kernel panics from the previous version and reinstalling it didn't help. I'll have to work that out soon, my favorite audio stream is only in WMA format. AppleAC97AudioATIIXP_1.0.3_withoutpowersaving.zip AppleAC97AudioATIIXP_1.0.3_withpowersaving.zip Link to comment Share on other sites More sharing options...
Dark Posted June 26, 2006 Share Posted June 26, 2006 This version should take the best from v. 1.0.1 and v. 1.0.2 - that is, codec detection fixed, kernel panics fixed, AND latency issues fixed. Again, there is a powersaving and a non-powersaving version. I'd test it more, but my flip4mac install just got completely hosed by the kernel panics from the previous version and reinstalling it didn't help. I'll have to work that out soon, my favorite audio stream is only in WMA format. You guys totally rock! I don't have sound (yet) but I thought I'd just give you all a huge thumbs up for your work. Dopefish, what motherboard do you have? Just want to compare with mine. Thanks! Link to comment Share on other sites More sharing options...
thedopefishlives Posted June 26, 2006 Share Posted June 26, 2006 *shrugs* It's my laptop, an HP zv6170us. Link to comment Share on other sites More sharing options...
Kilopopo Posted June 26, 2006 Share Posted June 26, 2006 dopefishlives I got a same laptop as you, but as of now i am using dv5000z the follow up series of zv6000. I got it as a loaneer as i was stupid to mod the bios of my zv6000 and load it unsuccessfully. my zv6000 is in the show. thanks for the update ill try it later. Link to comment Share on other sites More sharing options...
Meltro Posted June 26, 2006 Share Posted June 26, 2006 Great work Dopefish, I'll be trying 1.0.1 and 1.0.3 tonight. Keep it up! Link to comment Share on other sites More sharing options...
burty89 Posted June 26, 2006 Share Posted June 26, 2006 I just compiled the latest code from thedopefishlives (the one without powersaving) and I get sound, but only for a few minutes before the system grinds to a halt (can't even move cursor). Then I hear a split second of audio every few seconds and thats all... The system stays dead... I'd help but I only know c#/pascal and never messed with drivers so I don't think I'd be much use... So, instead I'm posting here to ask if anyones had any progress with the system freezes. BTW, this is on a compaq presario V5120EU laptop using Conexant AC-Link audio. EDIT: It seems to work fine if I keep the volume low??? EDIT 2: Nevermind, it locked up again, just took a little longer that time... Link to comment Share on other sites More sharing options...
Fernyman Posted June 26, 2006 Share Posted June 26, 2006 thedopefishlives, can you post a compiled version? Link to comment Share on other sites More sharing options...
EdFlyer Posted June 27, 2006 Share Posted June 27, 2006 Burty that's an interesrting issue. I wonder why it dies faster at higher volumes. Link to comment Share on other sites More sharing options...
thedopefishlives Posted June 27, 2006 Share Posted June 27, 2006 Kernel panics are the worst to debug because we don't get any log information out of them that helps. Basically, if we can figure out why the kernel panics, we can probably fix it. Link to comment Share on other sites More sharing options...
zelda Posted June 27, 2006 Share Posted June 27, 2006 Dope, thanks a ton ... this build seems to have fixed 1. Latency 2. Kernel panics (yet to have one ... keeping my fingers crossed) I am posting the compiled kext if anyone wants to use it on Jas 10.4.6 system... atisound_1.0.3_noPower.tar.bz2.zip Link to comment Share on other sites More sharing options...
zelda Posted June 27, 2006 Share Posted June 27, 2006 Sorry the driver crashes... 02 works better for me. Link to comment Share on other sites More sharing options...
thedopefishlives Posted June 27, 2006 Share Posted June 27, 2006 Heh, 02 works better for you, 03 works better for me. WTF is going on?! At any rate, Tariq, the fix for latency is the same between the two builds. I just modified some other stuff in 1.0.2 that I put back in 1.0.3, since it worked better on my machine that way. The fix is the three lines I added in startDMAEngine() before the lines with dma->interruptReady = true; Link to comment Share on other sites More sharing options...
OldSkoolGamer Posted June 27, 2006 Share Posted June 27, 2006 Does anyone have anything in System Profiler for Onboard Audio ? Just curious to see if maybe that's my issue, because mine says No Built-In Audio. Link to comment Share on other sites More sharing options...
thedopefishlives Posted June 27, 2006 Share Posted June 27, 2006 AC '97 chipsets are not counted as onboard audio in OS X, sorry. Link to comment Share on other sites More sharing options...
fireshark Posted June 27, 2006 Share Posted June 27, 2006 Does this work with 10.4.5? What's the issue with your build system? (same lappy as you) Link to comment Share on other sites More sharing options...
zelda Posted June 27, 2006 Share Posted June 27, 2006 Dope Let me try the 3 release again (I was playing with parallels and that could have caused problems ??) Link to comment Share on other sites More sharing options...
Andras Kenez Posted June 27, 2006 Author Share Posted June 27, 2006 I compiled 1.0.3, works but sound playing stop a bit after 3-4 seconds ........like earlier versions Link to comment Share on other sites More sharing options...
thedopefishlives Posted June 27, 2006 Share Posted June 27, 2006 Andras, go into the code and replace all instances of "DebugLog" with "IOLog". Recompile, reboot, and when your sound stops again, grab your logfile and attach it to a post. Link to comment Share on other sites More sharing options...
Andras Kenez Posted June 27, 2006 Author Share Posted June 27, 2006 I changed Debuglog to IOLog, but jaggies raemain.... Where can I find log file ? Link to comment Share on other sites More sharing options...
burty89 Posted June 27, 2006 Share Posted June 27, 2006 OK I've been messing around with this and I'm pretty sure that the problems in the power saving code. Why? Well, because I commented out the rest of it (not just the one method like in thedopefishlives file) and now I've been playing music in iTunes for about half an hour without problem. I haven't looked into whats wrong with the powersaving code because I think that'd be better left to someone who understands it better than me, this isn't my programming language... However, I have attached the cpp file I modified so that you can see what I did and find out if it works on other machines. If it does, you now know what part of the code is wrong If not, sorry for wasting your time. AppleAC97AudioATIIXP.cpp.txt Link to comment Share on other sites More sharing options...
Andras Kenez Posted June 27, 2006 Author Share Posted June 27, 2006 Andras, go into the code and replace all instances of "DebugLog" with "IOLog". Recompile, reboot, and when your sound stops again, grab your logfile and attach it to a post. Interesting, sound stop occure only when palying first song, first time, if I quit iTunes and tray again, sound stop not occure..... I compiled 1.0.3 without powersaving, but results same.......... I think this is a litle bug I happy with my notebook sound......... Link to comment Share on other sites More sharing options...
thedopefishlives Posted June 27, 2006 Share Posted June 27, 2006 OK I've been messing around with this and I'm pretty sure that the problems in the power saving code. Why? Well, because I commented out the rest of it (not just the one method like in thedopefishlives file) and now I've been playing music in iTunes for about half an hour without problem. I haven't looked into whats wrong with the powersaving code because I think that'd be better left to someone who understands it better than me, this isn't my programming language... However, I have attached the cpp file I modified so that you can see what I did and find out if it works on other machines. If it does, you now know what part of the code is wrong If not, sorry for wasting your time. Burty, fabulous work. I don't know what's wrong with the power saving code either, it was literally a direct copy-and-paste from Ed and scousi's original code. I do have to say, though, that my laptop uses the powersaving version and runs for hours at a time without any problems. Link to comment Share on other sites More sharing options...
burty89 Posted June 27, 2006 Share Posted June 27, 2006 Seems it wasn't such fabulous work... It worked fine for a couple of hours but then it locked up again... EDIT: Have just commented out every call to DebugLog & IOLog, maybe silly maybe not I don't know much about driver development, but I figure if its calling it repeatedly too many times maybe it could cause problems. I've got music playing now, will see how long it lasts... EDIT 2: Nah, thats not it... EDIT 3: Now I've commented out the counts of how many times readCodec and writeCodec are called, I'm not sure if they are called often but if they are then surely the counts will eventually become too high to be stored in a UInt32. Anyway, the counts don't seem to be used anywhere so I've commented them out and commented out the lines that increment them. EDIT 4: Nah, thats not it either... Link to comment Share on other sites More sharing options...
zelda Posted June 27, 2006 Share Posted June 27, 2006 Dope, I managed to get your package working using ... (xcodebuild -alltargets -configuration Deployment) But with 02/03 I am getting a lot of kernel crashes on boot time. Tariq Link to comment Share on other sites More sharing options...
Recommended Posts