Skip to content

Commit

Permalink
New Script audio, updated CodecCommander,USBInjectAll and ALCPLUGINFIX
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnynunez committed Jan 14, 2020
1 parent ff2e749 commit 6106fd0
Show file tree
Hide file tree
Showing 58 changed files with 762 additions and 198 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file modified ALCPlugFix_Xiaomi_Air_13_alc255Gen/.DS_Store
Binary file not shown.
Binary file modified ALCPlugFix_Xiaomi_Air_13_alc255Gen/ALCPlugFix
Binary file not shown.
4 changes: 2 additions & 2 deletions ALCPlugFix_Xiaomi_Air_13_alc255Gen/good.win.ALCPlugFix.plist
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
<string>good.win.ALCPlugFix</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/ALCPlugFix</string>
<string>/usr/local/bin/ALCPlugFix</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>ServiceIPC</key>
<false/>
<!--Shuold be directory that hda-verb at-->
<key>WorkingDirectory</key>
<string>/usr/bin/</string>
<string>/usr/local/bin/</string>
</dict>
</plist>
14 changes: 7 additions & 7 deletions ALCPlugFix_Xiaomi_Air_13_alc255Gen/install.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
#!/bin/bash

DAEMON_PATH=/Library/LaunchDaemons/
BIN_PATH=/usr/bin/
BIN_PATH=/usr/local/bin/
DAEMON_FILE=good.win.ALCPlugFix.plist
VERB_FILE=hda-verb
FIX_FILE=ALCPlugFix

echo "Installing ALCPlugFix. Root user is required."
echo "Installing ALCPlugFix v1.6"

# check if the root filesystem is writeable (starting with macOS 10.15 Catalina, the root filesystem is read-only by default)
if sudo test ! -w "/"; then
echo "Root filesystem is not writeable. Remounting as read-write and restarting Finder."
sudo mount -uw /
sudo killall Finder
# check if the directory "usr/local/bin" exist, if not then create the directory

if [ ! -d "$BIN_PATH" ] ; then
mkdir "$BIN_PATH" ;
fi

# stop the daemon if it's already running
Expand All @@ -22,6 +21,7 @@ if sudo launchctl list | grep --quiet ALCPlugFix; then
fi

# copy over the files to their respective locations (overwrite automatically if files exist)

sudo cp -f ALCPlugFix $BIN_PATH
sudo cp -f hda-verb $BIN_PATH
sudo cp -f good.win.ALCPlugFix.plist $DAEMON_PATH
Expand Down
2 changes: 2 additions & 0 deletions ALCPlugFix_Xiaomi_Air_13_alc255Gen/uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ sudo rm /usr/bin/hda-verb
sudo launchctl unload -w /Library/LaunchDaemons/good.win.ALCPlugFix.plist
sudo launchctl remove good.win.ALCPlugFix
sudo rm /Library/LaunchDaemons/good.win.ALCPlugFix.plist
sudo rm /usr/local/bin/ALCPlugFix
sudo rm /usr/local/bin/hda-verb

echo "Done!"
exit 0
Binary file modified EFI/.DS_Store
Binary file not shown.
Binary file modified EFI/BOOT/BOOTX64.efi
Binary file not shown.
Binary file modified EFI/CLOVER/.DS_Store
Binary file not shown.
Binary file modified EFI/CLOVER/ACPI/.DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions EFI/CLOVER/ACPI/origin/.empty
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Binary file modified EFI/CLOVER/ACPI/patched/.DS_Store
Binary file not shown.
Binary file removed EFI/CLOVER/ACPI/patched/SSDT-ALC255.aml
Binary file not shown.
Binary file removed EFI/CLOVER/ACPI/patched/SSDT-PMCR.aml
Binary file not shown.
Binary file modified EFI/CLOVER/CLOVERX64.efi
Binary file not shown.
12 changes: 3 additions & 9 deletions EFI/CLOVER/config.plist
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<key>Comment</key>
<string>_WAK to ZWAK(1,S)</string>
<key>Disabled</key>
<false/>
<true/>
<key>Find</key>
<data>X1dBSwk=</data>
<key>Replace</key>
Expand All @@ -85,7 +85,7 @@
<key>Comment</key>
<string>_PTS to ZPTS(1,N)</string>
<key>Disabled</key>
<false/>
<true/>
<key>Find</key>
<data>X1BUUwE=</data>
<key>Replace</key>
Expand Down Expand Up @@ -180,7 +180,7 @@
<key>APSN</key>
<true/>
<key>PluginType</key>
<true/>
<false/>
</dict>
<key>NoOemTableId</key>
<false/>
Expand Down Expand Up @@ -636,8 +636,6 @@
<string>Mac-9AE82516C7C6B903</string>
<key>BoardManufacturer</key>
<string>Apple Inc.</string>
<key>BoardSerialNumber</key>
<string>C02619130GUFV48JC</string>
<key>BoardType</key>
<integer>10</integer>
<key>BoardVersion</key>
Expand Down Expand Up @@ -704,10 +702,6 @@
<string>0x1A</string>
<key>ProductName</key>
<string>MacBook9,1</string>
<key>SerialNumber</key>
<string>C02RPVZQHDNK</string>
<key>SmUUID</key>
<string>49801CDD-0A13-4BB3-9BDC-503AB87DFA33</string>
<key>Version</key>
<string>1.0</string>
</dict>
Expand Down
Binary file modified EFI/CLOVER/drivers/.DS_Store
100644 → 100755
Binary file not shown.
Empty file modified EFI/CLOVER/drivers/UEFI/.DS_Store
100644 → 100755
Empty file.
Empty file modified EFI/CLOVER/drivers/UEFI/VirtualSmc.efi
100644 → 100755
Empty file.
Binary file modified EFI/CLOVER/kexts/.DS_Store
Binary file not shown.
Binary file modified EFI/CLOVER/kexts/Other/.DS_Store
Binary file not shown.
Empty file modified EFI/CLOVER/kexts/Other/AppleALC.kext/Contents/Info.plist
100644 → 100755
Empty file.
Binary file modified EFI/CLOVER/kexts/Other/AppleALC.kext/Contents/MacOS/AppleALC
Binary file not shown.
Empty file.
Empty file modified EFI/CLOVER/kexts/Other/CPUFriend.kext/Contents/Info.plist
100644 → 100755
Empty file.
Binary file modified EFI/CLOVER/kexts/Other/CPUFriend.kext/Contents/MacOS/CPUFriend
Binary file not shown.
Empty file.
28 changes: 11 additions & 17 deletions EFI/CLOVER/kexts/Other/CodecCommander.kext/Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>16E195</string>
<string>19C57</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>CodecCommander</string>
<key>CFBundleGetInfoString</key>
<string>2.6.3, Copyright © 2013-2014 TimeWalker. All rights reserved.</string>
<string>2.7.1, Copyright © 2013-2014 TimeWalker. All rights reserved.</string>
<key>CFBundleIdentifier</key>
<string>org.tw.CodecCommander</string>
<key>CFBundleInfoDictionaryVersion</key>
Expand All @@ -19,29 +19,29 @@
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
<string>2.6.3</string>
<string>2.7.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>2.6.3</string>
<string>2.7.2</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>8E2002</string>
<string>11C29</string>
<key>DTPlatformVersion</key>
<string>GM</string>
<key>DTSDKBuild</key>
<string>10M2518</string>
<string>19B90</string>
<key>DTSDKName</key>
<string>macosx10.6</string>
<string>macosx10.15</string>
<key>DTXcode</key>
<string>0832</string>
<string>1130</string>
<key>DTXcodeBuild</key>
<string>8E2002</string>
<string>11C29</string>
<key>IOKitPersonalities</key>
<dict>
<key>CodecCommander</key>
Expand Down Expand Up @@ -92,12 +92,8 @@
<integer>3000</integer>
<key>Custom Commands</key>
<array/>
<key>Perform Reset</key>
<true/>
<key>Perform Reset on EAPD Fail</key>
<false/>
<key>Perform Reset on External Wake</key>
<true/>
<key>Send Delay</key>
<integer>300</integer>
<key>Sleep Nodes</key>
Expand Down Expand Up @@ -239,10 +235,6 @@
<true/>
</dict>
<dict>
<key>Command</key>
<data>
AhcIgw==
</data>
<key>Comment</key>
<string>0x21 SET_UNSOLICITED_ENABLE 0x83</string>
<key>On Init</key>
Expand Down Expand Up @@ -451,6 +443,8 @@
<string>CodecCommanderClient</string>
</dict>
</dict>
<key>LSMinimumSystemVersion</key>
<string>10.6</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2013-2014 TimeWalker/RehabMan. All rights reserved.</string>
<key>OSBundleLibraries</key>
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// CodecCommander configuration for ALC1220
// provided by daliansky @github

DefinitionBlock ("", "SSDT", 1, "hack", "_ALC1220", 0)
{
External(_SB.PCI0.HDEF, DeviceObj)
Name(_SB.PCI0.HDEF.RMCF, Package()
{
"CodecCommander", Package()
{
"Custom Commands", Package()
{
Package(){}, // signifies Array instead of Dictionary
Package()
{
// 0x19 SET_PIN_WIDGET_CONTROL 0x24
"Command", Buffer() { 0x01, 0x97, 0x07, 0x24 },
"On Init", ">y",
"On Sleep", ">n",
"On Wake", ">y",
},
Package()
{
// 0x1B SET_UNSOLICITED_ENABLE 0x83
"Command", Buffer() { 0x01, 0xB7, 0x08, 0x83 },
"On Init", ">y",
"On Sleep", ">n",
"On Wake", ">y",
},
},
"Perform Reset", ">y",
//"Perform Reset on External Wake", ">n", // enable if using AppleALC
"Send Delay", 10,
"Sleep Nodes", ">n",
},
})
}
//EOF
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// CodecCommander configuration for ALC256 to fix various issue
// repo: https://github.com/insanelydeepak/cloverHDA-for-Mac-OS-Sierra-10.12

DefinitionBlock ("", "SSDT", 1, "hack", "_ALC256i", 0)
{
External(_SB.PCI0.HDEF, DeviceObj)
Name(_SB.PCI0.HDEF.RMCF, Package()
{
"CodecCommander", Package()
{
"Custom Commands", Package()
{
Package(){}, // signifies Array instead of Dictionary
Package()
{
// 0x19 SET_PIN_WIDGET_CONTROL 0x24
"Command", Buffer() { 0x01, 0x97, 0x07, 0x24 },
"On Init", ">y",
"On Sleep", ">n",
"On Wake", ">y",
},
Package()
{
// 0x1A SET_PIN_WIDGET_CONTROL 0x20
"Command", Buffer() { 0x01, 0xA7, 0x07, 0x20 },
"On Init", ">y",
"On Sleep", ">n",
"On Wake", ">y",
},
Package()
{
// 0x21 SET_UNSOLICITED_ENABLE 0x83
"Command", Buffer() { 0x02, 0x17, 0x08, 0x83 },
"On Init", ">y",
"On Sleep", ">n",
"On Wake", ">y",
}
},
"Perform Reset", ">n",
//"Perform Reset on External Wake", ">n", // enable if using AppleALC
"Send Delay", 10,
"Sleep Nodes", ">n",
},
})
}
//EOF
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
// CodecCommander configuration for ALC256
// From: https://github.com/vbourachot/XPS13-9350-OSX/blob/master/ssdt/SSDT-ALC256.dsl

DefinitionBlock ("", "SSDT", 1, "hack", "_ALC256v", 0x00003000)
{
External(_SB.PCI0.HDEF, DeviceObj)
Name(_SB.PCI0.HDEF.RMCF, Package()
{
"CodecCommander", Package()
{
"Custom Commands", Package()
{
Package(){}, // signifies Array instead of Dictionary
Package()
{
// 0x19 SET_PIN_WIDGET_CONTROL 0x25
"Command", Buffer() { 0x01, 0x97, 0x07, 0x25 },
"On Init", ">y",
"On Sleep", ">n",
"On Wake", ">y",
},
Package()
{
// 0x21 SET_UNSOLICITED_ENABLE 0x83
"Command", Buffer() { 0x02, 0x17, 0x08, 0x83 },
"On Init", ">y",
"On Sleep", ">n",
"On Wake", ">y",
},
Package()
{
// 0x20 SET_COEF_INDEX 0x36
"Command", Buffer() { 0x02, 0x05, 0x00, 0x36 },
"On Init", ">y",
"On Sleep", ">n",
"On Wake", ">y",
},
Package()
{
// 0x20 SET_PROC_COEF 0x1737
"Command", Buffer() { 0x02, 0x04, 0x17, 0x37 },
"On Init", ">y",
"On Sleep", ">n",
"On Wake", ">y",
},
},
"Perform Reset", ">n",
//"Perform Reset on External Wake", ">n", // enable if using AppleALC
"Send Delay", 10,
"Sleep Nodes", ">n",
},
})
}
//EOF
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// This SSDT demonstrates a custom configuration for ALC280.

// If you had a codec that needed the same configuration, you could
// load this SSDT in order to implement it without modifying the kext.
// It will override the defaults specfied by the CodecCommander Info.plist

// Customize to suit your needs.

// This data provided by @zirkaiva.
// See here: http://www.tonymacx86.com/el-capitan-laptop-guides/175935-guide-lenovo-t430-el-capitan-34.html#post1239765

DefinitionBlock ("", "SSDT", 1, "hack", "_ALC280", 0)
{
External(_SB.PCI0.HDEF, DeviceObj)
Name(_SB.PCI0.HDEF.RMCF, Package()
{
"CodecCommander", Package()
{
"Custom Commands", Package()
{
Package(){}, // signifies Array instead of Dictionary
Package()
{
// 0x15 SET_UNSOLICITED_ENABLE 0x83
"Command", Buffer() { 0x01, 0x57, 0x08, 0x83 },
"On Init", ">y",
"On Sleep", ">n",
"On Wake", ">y",
},
Package()
{
// 0x1a SET_PIN_WIDGET_CONTROL 0x24
// Node 0x1a - Pin Control (In Enable / VRefEn)
"Command", Buffer() { 0x01, 0xa7, 0x07, 0x24 },
"On Init", ">y",
"On Sleep", ">n",
"On Wake", ">y",
},
},
//"Perform Reset", ">n", // enable if using AppleALC
//"Perform Reset on External Wake", ">n", // enable if using AppleALC
},
})
}
//EOF
Loading

0 comments on commit 6106fd0

Please sign in to comment.