TristanLeBoss Posted May 1, 2006 Share Posted May 1, 2006 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 More sharing options...
Korrupted Posted May 1, 2006 Share Posted May 1, 2006 "Superclass changed?" means there's a version incompatibility between the two kexts. Link to comment Share on other sites More sharing options...
TristanLeBoss Posted May 1, 2006 Author Share Posted May 1, 2006 First, thanks for your reply and your information. So, if it's a compatibility error, how can I correct it ? I already googled for "superclass changed" but I didn't found any usable information. Tristan Link to comment Share on other sites More sharing options...
Korrupted Posted May 3, 2006 Share Posted May 3, 2006 It means you need to find a different version of the IOAudioFamily(I think it's this one) kext so the two will be compatible. Link to comment Share on other sites More sharing options...
Recommended Posts