Prot Posted September 2, 2005 Share Posted September 2, 2005 On Mon, Jan 10, 2005 at 07:49:09AM -0600, Jonathan Fosburgh wrote: > This weekend I upgraded my aging P-III machine to a newAMD Athlon 64 > system. I am running FreeBSD/i386 5.3-STABLE. This onboard sound on > my motherboard (ECS 755-A2) probes and the pcm driver loads, but I do > not get sound. I receive the following error: > > Jan 9 04:27:06 gw kernel: pcm0: ac97 link rate calibration timed out after > 1006794 us > > I have not been able to locate that error message. You can find it in /usr/src/sys/dev/sound/pci/ich.c, in the function ich_calibrate. The error ir reported because two subsequent readings from a register return the same value. Maybe the assumption that subsequent reads from that specific register should be different is invalid. > This is what cat /dev/sndstat says: > > FreeBSD Audio Driver (newpcm) > Installed devices: > pcm0: <SiS 7012> at io 0xe000, 0xe100 irq 18 bufsz 16384 kld snd_ich > (1p/1r/0v channels duplex default) > > Any suggestions on what I should do or should I install my old soundcard? If you're into shotgun debugging you could try returning the default value immediately from ich_calibrate, and see if it works. :-) If you have another working soundcard, I'd plug that in, and disable the onboard sound in the bios. Link to comment Share on other sites More sharing options...
Salasa Posted September 2, 2005 Share Posted September 2, 2005 Thanks to dogbert, we now are a bit closer, (all credit is to dogbert, because he guide me into the modifications, we haven't been able to try the mods because y cannot get this driver to output, i'll try in the next few days. So, download de AppleIntelAC97Audio-6 source from opendarwin, and change the files with the ones attached. If anyone have any debug out, please post them here so we can keep working with dogbert. I'll try to get my debug working again in my Osx86 to keep working. Remember to substitute the info.plist... Link to comment Share on other sites More sharing options...
Salasa Posted September 2, 2005 Share Posted September 2, 2005 Precompiled Binary, please, send debug output Link to comment Share on other sites More sharing options...
Salasa Posted September 2, 2005 Share Posted September 2, 2005 Finally some output in dmesg about the driver!!!! AppleIntelICH3AC97Controller: Controller halt timeout AppleIntelAC97AudioEngine: output sample rate calibration error AC97AudioEngine.cpp.tar.gz AC97Defines.h.tar.gz AC97Controller.cpp.zip Archive.zip Link to comment Share on other sites More sharing options...
maz Posted September 2, 2005 Author Share Posted September 2, 2005 Hi! great to hear that there is some progress going on here! However I don't really understand what to do... 1. Where can I downlaod this AppleIntelAC97 driver? 2. Do I have to compile it on my own? If yes, how? 3. Did you get it to work yet? Thanks for your work, maz Link to comment Share on other sites More sharing options...
Prot Posted September 2, 2005 Share Posted September 2, 2005 some strange behaviour.... boot with platform='X' And system crashes... without it, it does not crash when loading the kext and actually gives option to tweak some setting eg. volume, balance, play iTunes... but only pops sound when doing any of these Link to comment Share on other sites More sharing options...
Salasa Posted September 2, 2005 Share Posted September 2, 2005 The Archive.zip has the very very very alpha module pre-compiled, but it still not working Link to comment Share on other sites More sharing options...
Prot Posted September 3, 2005 Share Posted September 3, 2005 // Calibrate output sample rate. if ( setOutputSampleRate( k48KSampleRate, true ) != k48KSampleRate ) { IOLog("%s: output sample rate calibration error\n", getName()); goto exit; Link to comment Share on other sites More sharing options...
Prot Posted September 3, 2005 Share Posted September 3, 2005 http://darwinsource.opendarwin.org/10.4.2/...dioIntelICH.cpp Link to comment Share on other sites More sharing options...
Merlwiz79 Posted September 3, 2005 Share Posted September 3, 2005 http://www.freebsdforums.org/forums/archiv...php/t-2095.html Has a Netbsd patch any one look at it to get ideas? Link to comment Share on other sites More sharing options...
Salasa Posted September 3, 2005 Share Posted September 3, 2005 auich0: measured ac97 link rate at 48005 Hz, will use 48000 Hz According to bsd I'm asumming that the k48kSampleRate var is 48005, i'll try and let you all know Link to comment Share on other sites More sharing options...
Salasa Posted September 3, 2005 Share Posted September 3, 2005 Prot, i knew that lol Link to comment Share on other sites More sharing options...
Salasa Posted September 3, 2005 Share Posted September 3, 2005 48005 STILL NOT WORKING I'm running out of ideas here, would anyone check the sources? Link to comment Share on other sites More sharing options...
kwood129 Posted September 3, 2005 Share Posted September 3, 2005 Ok here is a wrinkle I cant seem to work out. I know that I was missing the AppleAC97Audio.kext folder. I downloaded Darwin so I could get the necessary files. Everytime I try to extract the AppleAC97Audio.kext folder it only appears as a file. It gives me the option to examine package contents when I right click but it won't extract as a folder with the files and subfolders in it. I tried both with ultra iso in windows and disk utility in mac. I am running osx86 natively on my laptop with the daemoo patched image. I even tried creating a new folder and named it appropriately and when I gave it the .kext extension it then shows as a file. I have seen a few other posts where it appears that they might have had the same problem but was never addressed. Does anyone know why this might happen and please help??? Update: I did what was mentioned here: http://forum.osx86project.org/index.php?sh...40&hl=appleac97 and now sound works! Link to comment Share on other sites More sharing options...
Prot Posted September 3, 2005 Share Posted September 3, 2005 kext Link to comment Share on other sites More sharing options...
Prot Posted September 3, 2005 Share Posted September 3, 2005 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>CFBundleDevelopmentRegion</key> <string>English</string> <key>CFBundleExecutable</key> <string>AppleAC97AudioIntelICH</string> <key>CFBundleGetInfoString</key> <string>1.0.0, Copyright Apple Computer, Inc. 2004</string> <key>CFBundleIdentifier</key> <string>com.apple.driver.AppleAC97AudioIntelICH</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>Intel ICHx AC97 Audio Driver</string> <key>CFBundlePackageType</key> <string>KEXT</string> <key>CFBundleShortVersionString</key> <string>1.0.0</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> <string>1.0.0</string> <key>IOKitPersonalities</key> <dict> <key>ICH2 AC97 Audio</key> <dict> <key>CFBundleIdentifier</key> <string>com.apple.driver.AppleAC97AudioIntelICH</string> <key>ICH Type</key> <integer>2</integer> <key>IOClass</key> <string>AppleAC97AudioIntelICH</string> <key>IOPCIPrimaryMatch</key> <string>0x24458086 0x24358086</string> <key>IOProbeScore</key> <integer>10000</integer> <key>IOProviderClass</key> <string>IOPCIDevice</string> </dict> <key>ICH3 AC97 Audio</key> <dict> <key>CFBundleIdentifier</key> <string>com.apple.driver.AppleAC97AudioIntelICH</string> <key>ICH Type</key> <integer>3</integer> <key>IOClass</key> <string>AppleAC97AudioIntelICH</string> <key>IOPCIPrimaryMatch</key> <string>0x24858086</string> <key>IOProbeScore</key> <integer>10000</integer> <key>IOProviderClass</key> <string>IOPCIDevice</string> </dict> <key>ICH4 AC97 Audio</key> <dict> <key>CFBundleIdentifier</key> <string>com.apple.driver.AppleAC97AudioIntelICH</string> <key>ICH Type</key> <integer>4</integer> <key>IOClass</key> <string>AppleAC97AudioIntelICH</string> <key>IOPCIPrimaryMatch</key> <string>0x24c58086</string> <key>IOProbeScore</key> <integer>10000</integer> <key>IOProviderClass</key> <string>IOPCIDevice</string> </dict> <key>ICH5 AC97 Audio</key> <dict> <key>CFBundleIdentifier</key> <string>com.apple.driver.AppleAC97AudioIntelICH</string> <key>ICH Type</key> <integer>5</integer> <key>IOClass</key> <string>AppleAC97AudioIntelICH</string> <key>IOPCIPrimaryMatch</key> <string>0x70121039 0x24d58086</string> <key>IOProbeScore</key> <integer>10000</integer> <key>IOProviderClass</key> <string>IOPCIDevice</string> </dict> <key>ICH6 AC97 Audio</key> <dict> <key>CFBundleIdentifier</key> <string>com.apple.driver.AppleAC97AudioIntelICH</string> <key>ICH Type</key> <integer>6</integer> <key>IOClass</key> <string>AppleAC97AudioIntelICH</string> <key>IOPCIPrimaryMatch</key> <string>0x266e8086</string> <key>IOProbeScore</key> <integer>10000</integer> <key>IOProviderClass</key> <string>IOPCIDevice</string> </dict> <key>NVIDIA AC97 Audio</key> <dict> <key>CFBundleIdentifier</key> <string>com.apple.driver.AppleAC97AudioIntelICH</string> <key>ICH Type</key> <integer>99</integer> <key>IOClass</key> <string>AppleAC97AudioIntelICH</string> <key>IOPCIPrimaryMatch</key> <string> 0x00da10de 0x006a10de 0x01b110de</string> <key>IOProbeScore</key> <integer>1000</integer> <key>IOProviderClass</key> <string>IOPCIDevice</string> </dict> </dict> <key>OSBundleLibraries</key> <dict> <key>com.apple.driver.AppleAC97Audio</key> <string>1.0.0</string> <key>com.apple.iokit.IOPCIFamily</key> <string>1.1</string> </dict> </dict> </plist> Link to comment Share on other sites More sharing options...
Prot Posted September 3, 2005 Share Posted September 3, 2005 double Link to comment Share on other sites More sharing options...
maz Posted September 5, 2005 Author Share Posted September 5, 2005 Hi, any progress?? Link to comment Share on other sites More sharing options...
lone101 Posted September 7, 2005 Share Posted September 7, 2005 <?xml version="1.0" encoding="UTF-8"?> <key>ICH5 AC97 Audio</key> <dict> <key>CFBundleIdentifier</key> <string>com.apple.driver.AppleAC97AudioIntelICH</string> <key>ICH Type</key> <integer>5</integer> <key>IOClass</key> <string>AppleAC97AudioIntelICH</string> <key>IOPCIPrimaryMatch</key> <string>0x70121039 0x24d58086</string> <key>IOProbeScore</key> <integer>10000</integer> <key>IOProviderClass</key> <string>IOPCIDevice</string> </dict> <{POST_SNAPBACK}> Hi Prot. is this working for u? I've tried it with my Sigmatel C-Mayor Audio a it didn't. Perhaps is a matter of chage the code from ICH5 to ICH2. I've investigated in www.sigmatel.com, and in the windows driver. My AC97 only supports 2 channels. But please tell us if the code works for you. And the brand of your AC97. Thank u. I've test this setting: <key>ICH2 AC97 Audio</key> <dict> <key>CFBundleIdentifier</key> <string>com.apple.driver.AppleAC97AudioIntelICH</string> <key>ICH Type</key> <integer>2</integer> <key>IOClass</key> <string>AppleAC97AudioIntelICH</string> <key>IOPCIPrimaryMatch</key> >>><string>0x70121039 0x24458086 0x24358086</string><<<< <key>IOProbeScore</key> <integer>10000</integer> <key>IOProviderClass</key> <string>IOPCIDevice</string> </dict> Doesn't work. I've readed in another post that the nuber could be 0x10397012. But this doesn't work. I'll keep trying.... Link to comment Share on other sites More sharing options...
Sam0r Posted September 9, 2005 Share Posted September 9, 2005 Hi Prot. is this working for u? I've tried it with my Sigmatel C-Mayor Audio a it didn't. Perhaps is a matter of chage the code from ICH5 to ICH2. I've investigated in www.sigmatel.com, and in the windows driver. My AC97 only supports 2 channels. But please tell us if the code works for you. And the brand of your AC97. Thank u. I've test this setting: <key>ICH2 AC97 Audio</key> <dict> <key>CFBundleIdentifier</key> <string>com.apple.driver.AppleAC97AudioIntelICH</string> <key>ICH Type</key> <integer>2</integer> <key>IOClass</key> <string>AppleAC97AudioIntelICH</string> <key>IOPCIPrimaryMatch</key> >>><string>0x70121039 0x24458086 0x24358086</string><<<< <key>IOProbeScore</key> <integer>10000</integer> <key>IOProviderClass</key> <string>IOPCIDevice</string> </dict> Doesn't work. I've readed in another post that the nuber could be 0x10397012. But this doesn't work. I'll keep trying.... <{POST_SNAPBACK}> Whats your Vendor and Dev id string? Because theres three there. On mine there are only two. Mind you, my sound doesn't work I'm using some ICH2 intel {censored} though. It should work! But it really doesnt like me Link to comment Share on other sites More sharing options...
lone101 Posted September 12, 2005 Share Posted September 12, 2005 hi Sam0r: My ventor/rev id is the infamous 0x70121039. I've readed post saying that with de Maxxuss patches sound works. I'm waiting for a new realease of this patches. I've test all Info.split posibilities and doesn't work. Link to comment Share on other sites More sharing options...
JaS Posted September 12, 2005 Share Posted September 12, 2005 I have noticed that sometimes when adding device id's to the kexts its best to take out all id's except yours.when ive done with my cpu to agp bus id's it worked and also with my intel extreme graphics 2(865 chipset).It looks to me like if you make it so os x only can find one device...your device,you get your hardware working.atleast thats how its been for me Good Luck Guys, JaS Link to comment Share on other sites More sharing options...
wiebeest Posted September 14, 2005 Share Posted September 14, 2005 I have noticed that sometimes when adding device id's to the kexts its best to take out all id's except yours.when ive done with my cpu to agp bus id's it worked and also with my intel extreme graphics 2(865 chipset).It looks to me like if you make it so os x only can find one device...your device,you get your hardware working. Can anyone confirm this? I have the Realtek ALC850 (AC '97 nForce4 Audio onboard) which according to the HCL list is supposed to work no sweat: (requires kext plist file edit). Should I take out the other id's at step 8 from the audio guide: Step 8) Scroll down until you see "<key>NVIDIA AC97 Audio</key>" You will see a part below it that says <string> **Other ids** </string>. Enter yours in so it looks like <string> **other ids** 0x005910de</string ??? Link to comment Share on other sites More sharing options...
BlueScreenOfTOM Posted September 15, 2005 Share Posted September 15, 2005 I too have the infamous 0x70121039... it's definitely not working no matter what I do. If anyone else with the infamous 0x70121039 gets it to work, please let me know what you did. While you're at it, let me know if you get your SiS 900 ethernet working if you have that too. SiS stuff is really nice and works well in windows and every Linux I've ever tried, but Darwin doesn't seem to like it. Thanks all. Link to comment Share on other sites More sharing options...
Merlwiz79 Posted October 8, 2005 Share Posted October 8, 2005 I also have the 70121039 sis sound the reason it will not load is that intel is a 8086 and nvidia is a 10de and a sis ia a 1039 which is not in the intel drive or ethernet. Also a ich 5 8086 I/O ranges are B400 - B4FF B800 -B83F and a sis 1039 ich 5 1039 I/O Ranges are 1400 - 14FF 1080 - 10FF. This is part of the reason you get the com.apple.driver.AppleAC97Audio: No valid version of this dependency can be found. It's not in the driver's so it found the hardware but can't set it up. Link to comment Share on other sites More sharing options...
Recommended Posts