InfiniteMac OSx86

InfiniteMac OSx86 (http://infinitemac.com/forum.php)
-   Snow Leopard 10.6 (http://infinitemac.com/forumdisplay.php?f=87)
-   -   [GUIDE] How to port AppleHDA to SL (http://infinitemac.com/showthread.php?t=3981)

mimayin 11-19-2009 10:57 PM

Interestingly enough, if I leave DSDT with AZAL in it rather than HDEF like this:

Code:

            Device (AZAL)
            {
                Name (_ADR, 0x001B0000)
                Method (_PRW, 0, NotSerialized)
                {
                    Return (Package (0x02)
                    {
                        0x0D,
                        0x05
                    })
                }
            }

VoodooHDA works, but I only get the headphone socket rather than the line-in. But if I patch DSDT (as in previous post), VoodooHDA kernel panics immediately on load.

I'm lost.. i've spent over 3 days messing around with this, i'm almost ready to give up and buy an Xmod :(

mormegil 11-20-2009 08:16 AM

Care to post the other Leopard plist? The one containing Configdata

mimayin 11-20-2009 11:06 AM

leo-HDAController-info.plist

I did actually try putting this block into HDAController/Info.plist in the snow leopard AppleHDA.kext last night:

Code:

      <key>HDAConfigDefault</key>
      <array>
        <dict>
          <key>CodecID</key>
          <integer>283904133</integer>
          <key>ConfigData</key>
          <data>
          AUccEAFHHUABRx4RAUcfAQFXHBIBVx0gAVce
          AQFXHwEBZxwRAWcdYAFnHgEBZx8BAXccFAF3
          HRABdx4BAXcfAQGHHDABhx2ZAYceoQGHHwEB
          lxw/AZcdkAGXHqEBlx8CAaccMQGnHTEBpx6B
          AacfAQG3HB8Btx1AAbceIQG3HwIBxxwyAccd
          AQHHHjMBxx+ZAdccAAHXHQEB1x4AAdcfQAHn
          HGAB5x0BAeceRQHnH4EB9xwAAfcdAQH3HgAB
          9x9A
          </data>
          <key>FuncGroup</key>
          <integer>1</integer>
          <key>LayoutID</key>
          <integer>12</integer>
        </dict>
      </array>

But still didn't work :(

mormegil 11-20-2009 06:16 PM

Your DSDT is fine since you say all ports show up in System Profiler.

I've checked your Leo and SL plists. They all add up too.

I'm afraid there's nothing much I can help here. Sorry.

You sure you installed the kext correctly? Rebuild cache, etc.?

dan10 11-20-2009 08:10 PM

mymayin,

Try this, download the LegacyHDA file Airwalk posted here http://www.infinitemac.com/f57/guide...981/page7.html
modify it using your working Leo data, you know HDAController, Layouts and Pathmaps. Put the LegacyHDA in your Extra folder and trash your extensions.mkext and rebuild it with mkextTool, replace your modify AppleHDA with a vanilla file from SL. It should work and it's a better solution because it maintains AppleHDA untouched no need to modify it every time you update your OS. Don't forget to remove any other audio file i.e. VoodooHDA and any other enabler. Build your DSDT the way he did it don't put the pin configuration, keep it simple for now "codec-id" and "layout-id". Good Luck

mimayin 11-20-2009 08:48 PM

Still not working :(

I think my DSDT might be wrong somehow, I don't see any devices in Profiler->Audio, just the device id and layout id (both are correct).

it says Devices: but the listing is blank.

Vanilla AppleHDA.kext is failing to load.

Code:

            Device (HDEF)
            {
                Name (_ADR, 0x001B0000)
                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x04)
                        {
                            "layout-id",
                            Buffer (0x04)
                            {
                                0x0C, 0x00, 0x00, 0x00
                            },

                            "PinConfigurations",
                            Buffer (Zero) {}
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
            }

I tried adding the codec-id in there and increasing Store(Package) size to 0x08 but that didn't help either :/

dan10 11-20-2009 09:01 PM

So you put the legacyHDA.kext in Extra and rebuild the extensions.mkext reboot and still nothing, that's odd.
Did you add this to your DSDT? DTGP code, read The King's guide, you probably did because the compiler would complain if you didn't.
http://www.projectosx.com/forum/inde...topic=465&st=0

Are you using Chameleon? what version is it?

mimayin 11-20-2009 09:17 PM

Yeah I did all that, I'm using Chameleon 2.0RC1. I'll see if there's a later version..

mormegil 11-20-2009 10:07 PM

update to netkas's pc-efi 10.5 bootloader

mimayin 11-20-2009 10:21 PM

still no luck with pc-efi 10.5, same errors on boot :(

Code:

Nov 20 21:16:46 localhost kernel[0]: Sound assertion "0 != setupHostInterrupt ()" failed in "/SourceCache/AppleHDA/AppleHDA-179.1.4/AppleHDAController/AppleHDAController.cpp" at line 312 goto Exit