Jump to content

Compile AppleAC97Audio in 10.4.3


4 posts in this topic

Recommended Posts

Hello,

 

I am requesting some help because, as I said in the Drivers forums, I want to add support for SiS 7012 audio chipset to Mac Os X86.

 

I want to start my work on the 'AppleAC97Audio.kext' package found at http://darwinsource.opendarwin.org/10.4.3/.

 

Indeed, I noticed that adding the PCI ID 0x70121039 to the original package shipped with MacOS X86 10.4.3 load the driver without any poblem but computer hangs when something is trying to use the sound device.

 

So, the first thing I want to do is re-compile the package with debug level set to 2 in 'AppleAC97Audio-5/IOAC7Family/IOAC97Debug.h'. This way, I will be able to get a lot of information.

 

But, I am facing one problem : my compiled kext won't load and stop with the following error : "20AppleAC97AudioEngine is not compatible with its superclass, 13IOAudioEngine superclass changed?"

 

I use Mac OS 10.4.3 an xCode 2.2.1.

 

Here is how I compile the package :

- I open the AppleAC97Audio.pbproj with xCode,

- xCode convert it to AppleAC97Audio.xcodeproj,

- I change 2 references to 'AbsoluteTime' with 'uint64_t',

- I add the following code from old 'clock.h' file to the file 'AppleAC97Audio-5/IOAC97Family/IOAC97AudioCodec.cpp' :

#define AbsoluteTime_to_scalar(x) (*(uint64_t *)(x))

 

/* t1 -= t2 */

#define SUB_ABSOLUTETIME(t1, t2) \

(AbsoluteTime_to_scalar(t1) -= \

AbsoluteTime_to_scalar(t2))

- I use the 'Build' button to compile the package.

- I move th file to /S/L/E, chmod 755 it, kextload it.

 

Does someone could help me to compile it ?

 

Thanks,

 

Tristan

Link to comment
Share on other sites

 Share

×
×
  • Create New...