Mac OS X guest sound support driver UPDATE [See Attachment]

Post Reply
OmegaX
Posts: 24
Joined: 12. May 2010, 06:19
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: OS X Snow Leopard

Mac OS X guest sound support driver UPDATE [See Attachment]

Post by OmegaX »

EDIT: Added installer package for easier installation.
[See Below Attachments]
Put this together after setting up an OS X guest in VirtualBox and thought i'd share with the community.

This driver supports both Leopard and Snow Leopard guests
(Please note this driver is for 32-bit mode only)

To install, download and run package in guest, reboot and enjoy sound!
VirtualBox ICH AC97 Audio Driver.zip
VirtualBox ICH AC97 Audio Driver for OS X 10.5.x/10.6.x Package with installer
(57.79 KiB) Downloaded 94880 times
Image

To Install manual way (Simplified for those who aren't familiar with kext loading):
VirtualBoxICHAC97DriverOSX.zip
VirtualBox ICH AC97 Audio driver for OS X 10.5.x/10.6.x Manual install
(65.47 KiB) Downloaded 19232 times
You can use Kext Helper to install if you don't want to use the terminal: http://cheetha.net http://web.mac.com/v1.42ghz/Kext_Helper ... r%20b7.zip
It's recommended to delete Extensions.mkext after still to ensure the new kext gets loaded.

Terminal method:

1.Extract the zip to your guest OS X desktop (not into a folder, literally to your desktop) this means there should be a file on your desktop called AppleAC97Audio.kext?
2. Open Terminal, (/applications/utilities/terminal.app)?
3. Type sudo -s in terminal then your admin password following this, now you should be root.?
4. Type sudo mv /users/(YOUR USERNAME)/desktop/AppleAC97Audio.kext /system/library/extensions ?
at this point the file AppleAC97Audio.kext should have disappeared from the desktop,?
5. Type sudo chmod -R 755 /System/Library/Extensions/AppleAC97Audio.kext
?6. Type sudo chown -R root:wheel /System/Library/Extensions/AppleAC97Audio.kext?
7. Now, CLOSE TERMINAL ?then go to /system/library/caches/com.apple.kext.caches/ and trash? Extensions.mkext
(This cache will regenerate automatically on boot with the current kext library)
8. Reboot and enjoy sound support!


Image

Anyone looking to build these drivers see the source here: http://www.opensource.apple.com/source/ ... 97Audio-5/

UPDATE: x86-64 source with VirtualBox tweaks here:
AppleAC97Audio-5-x86-64_sources.zip
AppleAC97Audio x86-64 source with VirtualBox tweaks, needs work for proper sound quality.
(131.45 KiB) Downloaded 10332 times
Note: This is just the source and requires XCode to compile, theres some issues with the audio quality that came with the 64-bit port that I haven't the time to track down so i'm putting it up to the community and the VirtualBox devs to take a crack at it, the important thing is this source is full 32/62-bit compliant.

Info on sound device:

Code: Select all

00:05.0 Multimedia audio controller [0401]: Intel Corporation 82801AA AC'97 Audio Controller [8086:2415] (rev 01)	Subsystem: Intel Corporation Unknown device 0000
	Flags: bus master, medium devsel, latency 0, IRQ 21
	I/O ports at 1000
	I/O ports at 1100
Notice the vendor ID is 8086 (intel) and the device id is 2415 which will be entered as 0x24158086 in IOPCIPrimaryMatch in the extension's info.plist.

info.plist from the driver package:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//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>VirtualBox ICH 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>0x24158086</string>
			<key>IOProbeScore</key>
			<integer>10000</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>
Last edited by OmegaX on 16. Jun 2010, 12:11, edited 12 times in total.
Post Reply