Jump to content

Cannot Get Ac97 Soundcard To Work


maz
 Share

90 posts in this topic

Recommended Posts

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

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

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

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

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

<?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

<?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>

 

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

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. :D  :)

 

I've readed in another post that the nuber could be 0x10397012. But this doesn't work. I'll keep trying....

Whats your Vendor and Dev id string? Because theres three there. On mine there are only two. Mind you, my sound doesn't work :P I'm using some ICH2 intel {censored} though. It should work! But it really doesnt like me :(

Link to comment
Share on other sites

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

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

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

  • 4 weeks later...

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

 Share

×
×
  • Create New...