Jump to content

AppleALC — dynamic AppleHDA patching


  • Please log in to reply
1864 replies to this topic

#41
pmcnano

pmcnano

    Preguntaaame caom!

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,240 posts
  • Gender:Male
  • Location:Merida, Mexico

This log runs something ancient, probably the release version. Download ZIP Use this big button on github project if you fail to use git/svn to obtain the recent source code.

 

Weird, I tried with your last compiled kext and I compiled one myself. I will try again though.

 

edit:

 

Ok here's the new log, I think files get mixed somehow while testing:

 

http://pastebin.com/YnDuvM02



#42
Riley Freeman

Riley Freeman

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,630 posts
  • Gender:Male
  • Location:The Streets
ALC269VC - revision 0x100202, layout 28

 

And now it works :)

 

I'd been using layout 3 for my ALC269VC. Changed it to 28 and now it's working on all 3 hacks in my sig.



#43
pico joe

pico joe

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 306 posts
  • Gender:Male

Wow .. it's cool .. Good Job bro

 

I tried with "release" AppleALC (887) toleda = Ok

Change layout+platform+pinconfig with mirone patched & compile = Ok

 

thanks 



#44
cecekpawon

cecekpawon

    InsanelyMac Legend

  • Developers
  • 897 posts
  • Gender:Male

Eh… I really don't know what's going on. I have just tried a standard svn co https://github…and it built for me with Xcode 7.

 

So my current xcode version is 6.1.1 (6A2008a), try to updating



#45
vit9696

vit9696

    InsanelyMac Geek

  • Developers
  • 249 posts
  • Gender:Male

Oh, Xcode 6. I was able to reproduce and fix this. Looks like it was a compiler bug :/ Check the latest commit.



#46
al6042

al6042

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 126 posts
  • Gender:Male
  • Location:Germany - www.hackintosh-forum.de

I love the idea of your project... this will have a major effect for Ozmosis users, while Clover users still can patch their AppleHDAs with their config.plist...



#47
cecekpawon

cecekpawon

    InsanelyMac Legend

  • Developers
  • 897 posts
  • Gender:Male

Mega thanks @vit9696, after 5 days of trying and now it just works like advertised with xcode 6, both Toledas & Mirones ALC892 cfg.



#48
Download-Fritz

Download-Fritz

    ygolohcysp desreveR

  • Developers
  • 780 posts
  • Gender:Not Telling

I love the idea of your project... this will have a major effect for Ozmosis users, while Clover users still can patch their AppleHDAs with their config.plist...

 

Clover users can use this as well, there is no difference between Oz and Clover in that aspect.



#49
JorgeMax

JorgeMax

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 473 posts
  • Gender:Male
  • Location:Brasil-Piauí-Teresina

Wow .. it's cool .. Good Job bro

 

I tried with "release" AppleALC (887) toleda = Ok

Change layout+platform+pinconfig with mirone patched & compile = Ok

 

thanks 

 

Friend, how did you get? I've been trying to compile with my settings, but the kext compiled does not charge.

Could you do this for me? Thank you very much in advance.
Files: Attached File  Jorge.zip   13.49KB   11 downloads


#50
pico joe

pico joe

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 306 posts
  • Gender:Male

This for you Jorge http://cl.ly/0I3s2R3M391L

 

Attached File  Screen Shot 2016-03-13 at 11.21.25 PM.jpg   85.4KB   13 downloads



#51
Mirone

Mirone

    InsanelyMacaholic

  • Retired
  • 3,585 posts
  • Gender:Male
  • Location:Brazil

@vit9696,

Before adding requests for codecs

your driver check the sources of the same and
give due credit.


#52
vit9696

vit9696

    InsanelyMac Geek

  • Developers
  • 249 posts
  • Gender:Male

Hi Mirone,

I am unsure if I got you right, are you asking for credits for something?

I will respectfully accept a due credit line for yourself in a pull request form.

Unfortunately it is not possible for me to include all the people who contributed to AppleALC, and I might actually add a line to credit the nameless contributors.



#53
JorgeMax

JorgeMax

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 473 posts
  • Gender:Male
  • Location:Brasil-Piauí-Teresina

 

Unsuccessful friend. Try on: S / L / E, L / E and EFI / Clover / Kext / 10:11.

The same is loaded, as you can see in the image below:

 

Attached File  Captura de Tela 2016-03-13 às 14.39.52.png   738.59KB   9 downloads

 

But without sound.

 

Already the original kext works, but without the front microphone.
Thank you for your help.


#54
Rockey12

Rockey12

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 666 posts
  • Gender:Male
  • Location:Earth
  • Interests:no comi

Hi Mirone,

I am unsure if I got you right, are you asking for credits for something?

I will respectfully accept a due credit line for yourself in a pull request form.

Unfortunately it is not possible for me to include all the people who contributed to AppleALC, and I might actually add a line to credit the nameless contributors.

 

 

Respect to all of u



#55
cecekpawon

cecekpawon

    InsanelyMac Legend

  • Developers
  • 897 posts
  • Gender:Male

Hello @vit9696

 

What does "Count" actually stand for? Count of pattern to be search? (Wiki said "number of required replacements").
Can we leave this empty so patcher can search & replace to whole bytes of target binary?

<key>Patches</key>
<array>
  <dict>
    <key>Count</key>
    <integer>2</integer>
    <key>Find</key>
    <data>
    xxx
    </data>
    <key>MinKernel</key>
    <integer>13</integer>
    <key>Name</key>
    <string>AppleHDA</string>
    <key>Replace</key>
    <data>
    yyy
    </data>
  </dict>


#56
pmcnano

pmcnano

    Preguntaaame caom!

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,240 posts
  • Gender:Male
  • Location:Merida, Mexico

@vit9696 sorry to bother so much. I just tried the 1.0.2 release, still nothing. Honestly I'm confused as I am not able to make it work anymore, even with Nvidia disabled.

 

http://pastebin.com/WBKCM4U2

 

Cheers.



#57
cecekpawon

cecekpawon

    InsanelyMac Legend

  • Developers
  • 897 posts
  • Gender:Male

try set nvram boot-args if you dont have one



#58
ellaosx

ellaosx

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 482 posts

Oh, Xcode 6. I was able to reproduce and fix this. Looks like it was a compiler bug :/ Check the latest commit.

would it be better to support SL too?



#59
vit9696

vit9696

    InsanelyMac Geek

  • Developers
  • 249 posts
  • Gender:Male

Weird, I tried with your last compiled kext and I compiled one myself. I will try again though.

 

edit:

 

Ok here's the new log, I think files get mixed somehow while testing:

 

http://pastebin.com/YnDuvM02

I am afraid they were, since the log corresponds to a pre-1.0.2 version. And it is better to use something more recent, e. g. trunk.

 

 

 

What does "Count" actually stand for? Count of pattern to be search? (Wiki said "number of required replacements").
Can we leave this empty so patcher can search & replace to whole bytes of target binary?

It's the number or replacements one must do in a file. Currently not, although it is technically possible. The reason for not doing that is a sanity check.

@vit9696 sorry to bother so much. I just tried the 1.0.2 release, still nothing. Honestly I'm confused as I am not able to make it work anymore, even with Nvidia disabled.

 

http://pastebin.com/WBKCM4U2

 

Cheers.

 

This is a newer log indeed. But it looks like AppleALC starts after both AppleHDA and AppleHDAController, which results in no audio. Generally I would solve this by loading it with a bootloader.

 

try set nvram boot-args if you dont have one

 

This is no longer an issue

 

 

 

would it be better to support SL too?

If SL means Snow Leopard, then I see not many reasons. 10.6 has different layout formats used, and does not need AppleALC to hack the kernel/kexts.

As for later versions, it was designed to work on 10.7 and newer. Most of the patches submitted were only tested on 10.9 and newer though.



#60
azlvda

azlvda

    InsanelyMac Protégé

  • Members
  • Pip
  • 47 posts
  • Gender:Male
  • Location:Banjarmasin - Indonesia

dual boot os x el capitan and windows 10 on ga-z170n-gaming 5

 

boot to osx work perfectly

boot to windows then restart to osx no sound

osx -> windows -> osx no sound







10 user(s) are reading this topic

1 members, 9 guests, 0 anonymous users


© 2017 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy