Jump to content

ALC268 legacy kext for /Extra/Extensions 32 & 64 bit


  • Please log in to reply
28 replies to this topic

#1
flames

flames

    InsanelyMac Protégé

  • Members
  • Pip
  • 34 posts
hello,

yesterday after i updated snow leo to 10.6.2, audio died, i used a patched applehda. since i didnt found any working kext for 10.6.2 i decided to make my own, legacy one

this kext still needs an device injection, your options are
1. HDAEnabler.kext in /Extra/Extensions
2. patching dsdt
3. efi string for audio hdef

i chosen the dsdt way:

1. find all entries "AZAL" and replace them with "HDEF"

2. replace the whole Device (HDEF) with the following
Device (HDEF)
			{
				Name (_ADR, 0x001B0000)
				OperationRegion (HDAR, PCI_Config, 0x4C, 0x10)
				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)
				}

				Field (HDAR, WordAcc, NoLock, Preserve)
				{
					DCKA,   1, 
							Offset (0x01), 
					DCKM,   1, 
						,   6, 
					DCKS,   1, 
							Offset (0x08), 
						,   15, 
					PMES,   1
				}
			}

dont forget to put Method (DTGP) in your dsdt right after Method (_WAK), or check if it exists from previous fixes
Method (DTGP, 5, NotSerialized)
	{
		If (LEqual (Arg0, Buffer (0x10)
				{
					/* 0000 */	0xC6, 0xB7, 0xB5, 0xA0, 0x18, 0x13, 0x1C, 0x44, 
					/* 0008 */	0xB0, 0xC9, 0xFE, 0x69, 0x5E, 0xAF, 0x94, 0x9B
				}))
		{
			If (LEqual (Arg1, One))
			{
				If (LEqual (Arg2, Zero))
				{
					Store (Buffer (One)
						{
							0x03
						}, Arg4)
					Return (One)
				}

				If (LEqual (Arg2, One))
				{
					Return (One)
				}
			}
		}

		Store (Buffer (One)
			{
				0x00
			}, Arg4)
		Return (Zero)
	}


thanks to THe KiNG for his tutorial about patching applehda and creating legacy kexts for audio
thanks to Siobhan for the DSDT (dsdt part i took from here http://www.insanelym...p...025&st=112# )

for russian support join irc.osx86.hu #applelife.ru

legacy acl268.kext for 32 and 64bit snow leopard, tested on 10.6.2:

Attached Files



#2
leras

leras

    InsanelyMac Protégé

  • Members
  • Pip
  • 18 posts
i think i can not understand clearly so what about a tutorial of how installing ALC268 with snow 10.6.2 thanks i shall wait

#3
flames

flames

    InsanelyMac Protégé

  • Members
  • Pip
  • 34 posts

i think i can not understand clearly so what about a tutorial of how installing ALC268 with snow 10.6.2 thanks i shall wait


edit your dsdt like described in first post
put the attached alc268.kext into /extra/extensions
set permissions
sudo chown -R root:wheel /Extra
sudo chmod -R 755 /Extra

remove voodoohda or replace modified applehda with original in /system/library/extensions
check persmissions for /system/library/extensions
clean caches:
sudo rm -rf /System/Library/Caches/*
sudo touch /System/Library/Extensions
reboot

be aware, this legacy alc268.kext doesnt work with all alc268. in my case it works perfekt on a toshiba satellite L3xx series laptop.

#4
flames

flames

    InsanelyMac Protégé

  • Members
  • Pip
  • 34 posts

In my laptop Acer Aspire 4320 internal speakers not works, mute, mic external internal and lineout works fine, and i have some errors at verbose startup.



the errors in verbose mode are normal with legacy kexts, i guess you get some sound assertions and one dependency error sounding like "applehdacontroller .... kextd not available in early boot" or something like that.

to solve your internal speaker you can try to modify pin configuration in the ALC268.kext/Contents/Info.plist

good luck

#5
bthome

bthome

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts
Worked great for me HP dv9700.

Thanks.

#6
TamauJabuk

TamauJabuk

    InsanelyMac Protégé

  • Members
  • Pip
  • 23 posts
I'll try this in a few hours....

#7
tommyv

tommyv

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 4 posts
Speakers, headphones, built-in mic work on my Dell Mini 9 running 10.6.2. I used HDAEnabler instead. Doesn't work on wake after sleep. I found temporary solution using Sleepwatcher to unload and load AppleHDA on wake. Thanks

#8
flames

flames

    InsanelyMac Protégé

  • Members
  • Pip
  • 34 posts
thanks for response, i am glad, that it helps people.

the "after sleep" issue is appears often with alc268, also with patched applehda and voodoohda. i didnt feagured out why the issue persist.

on my toshiba all is working perfekt, also after sleep audio works fine. so i cant reproduce that.

tommyv: hdaenabler is the most simple way, so its ok to use that. i am a dsdt fetishist, so trying to get all possible stuff working with dsdt ;)
maybe you try the dsdt patch, possibly that would fix audio after sleep? i cant say that for sure, but its worth a try imho.

#9
tommyv

tommyv

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 4 posts

hdaenabler is the most simple way, so its ok to use that. i am a dsdt fetishist, so trying to get all possible stuff working with dsdt :)
maybe you try the dsdt patch, possibly that would fix audio after sleep? i cant say that for sure, but its worth a try imho.


Thanks, tried the dsdt patch instead but still doesn't fix audio after sleep :rolleyes: Any ideas other than unloading and loading on wake ? Cheers :)

#10
flames

flames

    InsanelyMac Protégé

  • Members
  • Pip
  • 34 posts

Thanks, tried the dsdt patch instead but still doesn't fix audio after sleep :D Any ideas other than unloading and loading on wake ? Cheers :P


not really, since i cant reproduce the issue on my laptop, i cant find out, where the problem is.
the idea is to mache a launchdaemon script, that do the unload+load the kext automatically (like the helper for voodoohda)

i dont know which values i can inject in dsdt, to give your audio sleep capability (i.e. method _prw)
and i dont know if its possible at all

good luck

edit: try this in dsdt (just replace the whole device hdev section with this)
Device (HDEF)
				{
					Name (_ADR, 0x001B0000)
					OperationRegion (HDAR, PCI_Config, 0x4C, 0x10)

					Method (_PRW, 0, NotSerialized)
					{
						Return (Package (0x02)
						{
							0x0D, 
							0x05
						})
					}

					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)
					}

					Field (HDAR, WordAcc, NoLock, Preserve)
					{
						DCKA,   1, 
								Offset (0x01), 
						DCKM,   1, 
							,   6, 
						DCKS,   1, 
								Offset (0x08), 
							,   15, 
						PMES,   1
					}
				}


#11
tommyv

tommyv

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 4 posts
Thanks. In the meantime I found a patched IOAudioFamily.kext on Applelife.ru forums that supposedly fixes the EAPD that goes off on sleep and doesn't come back on wake. Works perfectly in conjunction with your kext. Will try your dsdt patch nevertheless and post results.

Another question regarding your kext: I compared your pin config with my verb dump (attached), and found that modified verbs are only the actual ones being used. Can I remove the unused ones?

Thanks again for your effort.

Attached Files



#12
flames

flames

    InsanelyMac Protégé

  • Members
  • Pip
  • 34 posts

Thanks. In the meantime I found a patched IOAudioFamily.kext on Applelife.ru forums that supposedly fixes the EAPD that goes off on sleep and doesn't come back on wake. Works perfectly in conjunction with your kext. Will try your dsdt patch nevertheless and post results.

yea, would be nice to know if method _prw solves sleep issue. if not, then i am out of ideas how to do that in dsdt.
where you put the ioaudiofamily.kext, does it work from extra?

Another question regarding your kext: I compared your pin config with my verb dump (attached), and found that modified verbs are only the actual ones being used. Can I remove the unused ones?

sure, you can remove not used verbs, if you need some info how to do, read the tutorial the king posted on osxproject forums. its damn good!

#13
tommyv

tommyv

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 4 posts

yea, would be nice to know if method _prw solves sleep issue. if not, then i am out of ideas how to do that in dsdt.
where you put the ioaudiofamily.kext, does it work from extra?


I put it in S/L/E replacing the original

sure, you can remove not used verbs, if you need some info how to do, read the tutorial the king posted on osxproject forums. its damn good!


Unfortunately, with method _prw audio doesn't work at all :(

#14
Mettiu

Mettiu

    InsanelyMac Protégé

  • Members
  • PipPip
  • 77 posts
flames... thank you very much!!
I used your kext and the instructions for editing the dsdt and finally I trashed VoodooHDA, which I didn't like at all!

Now the internal microphone works WAY better!! :blink:



I have a problem though... it doesn't recognize my internal speaker.. audio works only if I connect speaker/headphones to the jack.
Having a working patched AppleHDA, which I used when I was under Leopard, could help me finding the informations I need? For example from the info.plist of AppleHDAController.kext ..



Ah, by the way my laptop is an Acer Aspire 5720G


Thank you!

#15
highfiver!!

highfiver!!

    InsanelyMac Protégé

  • Members
  • Pip
  • 14 posts
  • Gender:Male
Hi,

I have been trying to get my ALC269 Audio to work on my Samsung n510 netbook for several weeks now in SL 10.6.2.
VoodooHda 2.5.2 is very scratchy in sound quality although every thing works including internal mike.

I have tried to patch AppleHDA using Kings tutorial but no result.

Interestingly your codecs ALC268 has almost identical pins except for a minor numbering change.

I have tried to patch your kext. ie change it to my verbs and Vendor ID but no result. Maybe I missed something.
I have attached my Linux dump, codec graph, Verbs and pins.
Please can anyone help!


Attached File  ALC269_audio_pins.txt   2.86KB   80 downloads
Attached File  verbs.txt   2.34KB   36 downloads
Attached File  Linux_codec_dump_dec.txt   7.59KB   29 downloads
Attached File  codec_dump_dec.txt.svg.zip   10.33KB   28 downloads

Thanks

#16
lvpython

lvpython

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 2 posts
WOW,Great works.Thank flames. :) :) :)

#17
lvpython

lvpython

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 2 posts
I share IOAudioFamily.kext 23&63bit file for us.
It fixes the wakeup trouble...Have fun. :(

Attached Files



#18
quinielascom

quinielascom

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 749 posts
  • Location:M�xico

I share IOAudioFamily.kext 23&63bit file for us.
It fixes the wakeup trouble...Have fun. :(


Thanks, only a little delay when i press mute/unmute but with it i have sound after sleep in Acer Aspire 4320.

The IOAudioFamily.kext seem is patched for the Dell Mini9, because a lot of those messages in system log:

Mini9MuteControl: setting to 0
Mini9MuteControl: request to change EAPD status timed out.
Mini9MuteControl: done
Mini9MuteControl: setting to 0
Mini9MuteControl: done
Auth result for: 10:20:30:40:50:60 MAC AUTH succeeded
AirPort: Link Up on en1
Mini9MuteControl: setting to 1
Mini9MuteControl: done
Mini9MuteControl: setting to 0
Mini9MuteControl: done
Mini9MuteControl: setting to 1
Mini9MuteControl: done
Mini9MuteControl: setting to 0
Mini9MuteControl: done

then how i can hide those messages ?

#19
bikinifarm

bikinifarm

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 138 posts
  • Gender:Male
  • Location:Chicago, Illinois
@flames

this works extremely well with Dell Mini 9, and Vostro A90. Thanks for fixing this issue. Really appreciated. I posted specific instructions (based on yours) for Dell Mini 9, and Vostro A90 on

Dell Mini 9 Audio with Microphone without VoodooHDA (Snow 10.6.2)

Cheers

#20
shuvro

shuvro

    InsanelyMac Protégé

  • Members
  • Pip
  • 13 posts

hello,

yesterday after i updated snow leo to 10.6.2, audio died, i used a patched applehda. since i didnt found any working kext for 10.6.2 i decided to make my own, legacy one

this kext still needs an device injection, your options are
1. HDAEnabler.kext in /Extra/Extensions
2. patching dsdt
3. efi string for audio hdef

i chosen the dsdt way:

1. find all entries "AZAL" and replace them with "HDEF"

2. replace the whole Device (HDEF) with the following

Device (HDEF)
			 {
				 Name (_ADR, 0x001B0000)
				 OperationRegion (HDAR, PCI_Config, 0x4C, 0x10)
				 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)
				 }
 
				 Field (HDAR, WordAcc, NoLock, Preserve)
				 {
					 DCKA,   1, 
							 Offset (0x01), 
					 DCKM,   1, 
						 ,   6, 
					 DCKS,   1, 
							 Offset (0x08), 
						 ,   15, 
					 PMES,   1
				 }
			 }

dont forget to put Method (DTGP) in your dsdt right after Method (_WAK), or check if it exists from previous fixes
Method (DTGP, 5, NotSerialized)
	 {
		 If (LEqual (Arg0, Buffer (0x10)
				 {
					 /* 0000 */	0xC6, 0xB7, 0xB5, 0xA0, 0x18, 0x13, 0x1C, 0x44, 
					 /* 0008 */	0xB0, 0xC9, 0xFE, 0x69, 0x5E, 0xAF, 0x94, 0x9B
				 }))
		 {
			 If (LEqual (Arg1, One))
			 {
				 If (LEqual (Arg2, Zero))
				 {
					 Store (Buffer (One)
						 {
							 0x03
						 }, Arg4)
					 Return (One)
				 }
 
				 If (LEqual (Arg2, One))
				 {
					 Return (One)
				 }
			 }
		 }
 
		 Store (Buffer (One)
			 {
				 0x00
			 }, Arg4)
		 Return (Zero)
	 }


thanks to THe KiNG for his tutorial about patching applehda and creating legacy kexts for audio
thanks to Siobhan for the DSDT (dsdt part i took from here http://www.insanelym...p...025&st=112# )

for russian support join irc.osx86.hu #applelife.ru

legacy acl268.kext for 32 and 64bit snow leopard, tested on 10.6.2:


hi
how can i install it stap by stap pls





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy