thedopefishlives Posted June 27, 2006 Share Posted June 27, 2006 Hm, that was supposed to be the point of 03. Any chance you could snag some logs, perhaps in verbose mode? Link to comment https://www.insanelymac.com/forum/topic/10903-ati-ac-97-sounds-sb400-effort/page/15/#findComment-135862 Share on other sites More sharing options...
zelda Posted June 27, 2006 Share Posted June 27, 2006 nope ... can't even get to boot.. how do i get the logs ? Link to comment https://www.insanelymac.com/forum/topic/10903-ati-ac-97-sounds-sb400-effort/page/15/#findComment-135866 Share on other sites More sharing options...
rlepage Posted June 27, 2006 Share Posted June 27, 2006 -s option on boot perhaps? Link to comment https://www.insanelymac.com/forum/topic/10903-ati-ac-97-sounds-sb400-effort/page/15/#findComment-135877 Share on other sites More sharing options...
Andras Kenez Posted June 27, 2006 Author Share Posted June 27, 2006 Sometimes i got compile error, than I delete source, copy from original and work again Link to comment https://www.insanelymac.com/forum/topic/10903-ati-ac-97-sounds-sb400-effort/page/15/#findComment-135880 Share on other sites More sharing options...
thedopefishlives Posted June 28, 2006 Share Posted June 28, 2006 Sorry I'm not much help, but I don't know what to try either. I still have some kernel panics, and I can't figure out what set of circumstances causes them, so.... *shrugs helplessly* Link to comment https://www.insanelymac.com/forum/topic/10903-ati-ac-97-sounds-sb400-effort/page/15/#findComment-136205 Share on other sites More sharing options...
zelda Posted June 28, 2006 Share Posted June 28, 2006 pre 1 (slightly modified by me ) is the only one the works ok on my systems (with others i can't even boot most of the times... it hangs/crashes at IO..97 controller ... message) Link to comment https://www.insanelymac.com/forum/topic/10903-ati-ac-97-sounds-sb400-effort/page/15/#findComment-136222 Share on other sites More sharing options...
thedopefishlives Posted June 28, 2006 Share Posted June 28, 2006 Dude, that sucks. I dunno why it's having such a wide array of problems on such a wide array of systems. The Linux guys sure got it right. :censored2: Keep fiddling, let me know what you come up with. Link to comment https://www.insanelymac.com/forum/topic/10903-ati-ac-97-sounds-sb400-effort/page/15/#findComment-136241 Share on other sites More sharing options...
Andras Kenez Posted June 28, 2006 Author Share Posted June 28, 2006 After 10-20 minutes sound paying system will be extremly slow with version 1.0.3 (with or without powersaving). I go back original version ant test it. Link to comment https://www.insanelymac.com/forum/topic/10903-ati-ac-97-sounds-sb400-effort/page/15/#findComment-136296 Share on other sites More sharing options...
EdFlyer Posted June 28, 2006 Share Posted June 28, 2006 Has anyone gotten a KP (kernel panic) with their hardware and the sound drivers in linux? We should make up a list of all the hardware configurations that work in linux with what build (live cd's) and then maybe we'll have to write custom versions for each version. It appears that even though these all share the same device ID, they are in fact wired differently. Errrrrrrrr to KP's and their ability to not leave debugging information. -ed Link to comment https://www.insanelymac.com/forum/topic/10903-ati-ac-97-sounds-sb400-effort/page/15/#findComment-136302 Share on other sites More sharing options...
zelda Posted June 28, 2006 Share Posted June 28, 2006 Never on linux ... (I use ubuntu dapper 6.06) Link to comment https://www.insanelymac.com/forum/topic/10903-ati-ac-97-sounds-sb400-effort/page/15/#findComment-136318 Share on other sites More sharing options...
thedopefishlives Posted June 28, 2006 Share Posted June 28, 2006 Me neither - Linux has been nothing but good to me. Ed, I doubt we'll have to write custom versions, there is only one variable in the code that changes anything, and that's for 6-channel support. Link to comment https://www.insanelymac.com/forum/topic/10903-ati-ac-97-sounds-sb400-effort/page/15/#findComment-136423 Share on other sites More sharing options...
burty89 Posted June 28, 2006 Share Posted June 28, 2006 OK I know my previous efforts haven't done very much in terms of solving the problem, but I think that the problem is getDMAEngineHardwarePointer returning an invlid value. I've changed the method to the following and it seems that the kernel panics have stopped, but I get audio repeating itself a few times after it should have stopped, so its still not right... IOByteCount CLASS::getDMAEngineHardwarePointer(IOAC97DMAEngineID engine) { IOByteCount position; CHECK_DMA_ENGINE_ID(engine, 0); ATIIXPDMADesc *dma = dma_channels[engine]; // Get physical address of sample buffer UInt32 tmp; IOPhysicalAddress buf_addr = dma->sampleMemory->getPhysicalSegment(0, &tmp); // The DMA current pointer returns a physical memory address position = regs->read(dma->currentPointerOffset); // Subtract the sample buffer base address to get an offset IOByteCount ret = position - buf_addr; if (ret < 0) ret = 0; if (ret > dma->ringBufferSize) ret = dma->ringBufferSize; return ret; } As you can see at the end of the code I made it check that the return value is between 0 and dma->ringBufferSize and if not then to change it so it is. I'm not sure exactly what the bounds for the return value should be, I just guessed these from reading through the code (I remind you again this isn't my programming language...). If you try the above code you should see what I mean by the audio repeating itself. I think therefore that the problem has to be in getDMAEngineHardwarePointer as I no longer get kernel panics/system lockups. As always if I'm completely wrong I apologize. Link to comment https://www.insanelymac.com/forum/topic/10903-ati-ac-97-sounds-sb400-effort/page/15/#findComment-136452 Share on other sites More sharing options...
thedopefishlives Posted June 28, 2006 Share Posted June 28, 2006 You may well be right, since I didn't do any error checking on that value (I just took it out because this seemed to be correct). Give it a good, long burn-in test and see if it works. I have a couple of other things to try as well, and I'll throw my original error-checking code in too, and if it all works out I'll release 1.0.4. Link to comment https://www.insanelymac.com/forum/topic/10903-ati-ac-97-sounds-sb400-effort/page/15/#findComment-136456 Share on other sites More sharing options...
burty89 Posted June 28, 2006 Share Posted June 28, 2006 Well so far I've been using the system for a over an hour playing music and videos and my only problem is the sound repeating when it should stop. Hopefully there'll be no kernel panics. Link to comment https://www.insanelymac.com/forum/topic/10903-ati-ac-97-sounds-sb400-effort/page/15/#findComment-136468 Share on other sites More sharing options...
rlepage Posted June 28, 2006 Share Posted June 28, 2006 as others would say... Binary please! ed: Pretty please? <imagine anime cuuuutie eyes that you can't say no to> Link to comment https://www.insanelymac.com/forum/topic/10903-ati-ac-97-sounds-sb400-effort/page/15/#findComment-136470 Share on other sites More sharing options...
burty89 Posted June 28, 2006 Share Posted June 28, 2006 Here is the source and binary to the version I'm currently using. ATIAppleAC97Audio_5.zip Link to comment https://www.insanelymac.com/forum/topic/10903-ati-ac-97-sounds-sb400-effort/page/15/#findComment-136472 Share on other sites More sharing options...
Andras Kenez Posted June 28, 2006 Author Share Posted June 28, 2006 My Notebook (4370) hang up about 10-20 minutes after I playing long mp3 sound with iTunes , I try original and version 1.0.3 drivers. Link to comment https://www.insanelymac.com/forum/topic/10903-ati-ac-97-sounds-sb400-effort/page/15/#findComment-136474 Share on other sites More sharing options...
thedopefishlives Posted June 28, 2006 Share Posted June 28, 2006 Hey Burty, to fix the sound-repeating problem, you need to increase the buffer size in one of the activateConfiguration functions, I can't remember which offhand. The correct ringBufferSize is the full size of the sample buffer, which is bufferBytes * ATI_MAX_DESCRIPTORS. Link to comment https://www.insanelymac.com/forum/topic/10903-ati-ac-97-sounds-sb400-effort/page/15/#findComment-136476 Share on other sites More sharing options...
OldSkoolGamer Posted June 28, 2006 Share Posted June 28, 2006 Hey Ed, Did you ever get the sound to work on your laptop ? I have the same issue as you with it showing as line out, no audio through headphone or speaker jack though, but I can hear a small pop when a sound is supposed to play on the internal speakers. Link to comment https://www.insanelymac.com/forum/topic/10903-ati-ac-97-sounds-sb400-effort/page/15/#findComment-136479 Share on other sites More sharing options...
SkylerF Posted June 28, 2006 Share Posted June 28, 2006 I've had my laptop on for over a day now running 1.0.3 with no problems, both video and music, other than the video is a little jumpy (but I think that's a video driver issue). I had to use Tariq's build, since thedopefishlives's always gets a link/load error for me. Link to comment https://www.insanelymac.com/forum/topic/10903-ati-ac-97-sounds-sb400-effort/page/15/#findComment-136482 Share on other sites More sharing options...
thedopefishlives Posted June 28, 2006 Share Posted June 28, 2006 I've had my laptop on for over a day now running 1.0.3 with no problems, both video and music, other than the video is a little jumpy (but I think that's a video driver issue). I had to use Tariq's build, since thedopefishlives's always gets a link/load error for me. You have a better record with this driver than I do, man. Thanks for the encouragement. I'm going to try to replicate Tariq's build by doing exactly what he did. I think on one of my builds I ran a "clean all" that may be causing all the problems. Link to comment https://www.insanelymac.com/forum/topic/10903-ati-ac-97-sounds-sb400-effort/page/15/#findComment-136486 Share on other sites More sharing options...
zelda Posted June 28, 2006 Share Posted June 28, 2006 I just updated to 10.4.7 (working great, thanks Jas/Dax) and changed this in AppleAC97Audio.kext/Contents/Info.plist <key>com.apple.iokit.IOAudioFamily</key> <string>1.1d25</string> working fine... Dope I have also noticed that if I change any code in any other directory (like IOAC97Family) I always get link/load error... try the compile command I gave earlier.. it works fine with you package. Link to comment https://www.insanelymac.com/forum/topic/10903-ati-ac-97-sounds-sb400-effort/page/15/#findComment-136493 Share on other sites More sharing options...
thedopefishlives Posted June 28, 2006 Share Posted June 28, 2006 On an offtopic note, what software updates are safe to apply? I have a list of updates - things like Quicktime, iTunes, 10.4.7, etc. - that I'm afraid to touch because I don't know if they'll bork my system. Link to comment https://www.insanelymac.com/forum/topic/10903-ati-ac-97-sounds-sb400-effort/page/15/#findComment-136514 Share on other sites More sharing options...
zelda Posted June 28, 2006 Share Posted June 28, 2006 Quciktime, iTunes etc. are safe (at least on my JAS DVD 10.4.6 ) For 10.4.7 you would have to download jas de-crypted package on green daemon Link to comment https://www.insanelymac.com/forum/topic/10903-ati-ac-97-sounds-sb400-effort/page/15/#findComment-136517 Share on other sites More sharing options...
SkylerF Posted June 28, 2006 Share Posted June 28, 2006 Did anybody else have their system crash when they updated Java? Link to comment https://www.insanelymac.com/forum/topic/10903-ati-ac-97-sounds-sb400-effort/page/15/#findComment-136525 Share on other sites More sharing options...
Recommended Posts