Chameleon

Chameleon Commit Details

Date:2013-05-10 22:57:09 (10 years 11 months ago)
Author:ErmaC
Commit:2215
Parents: 2214
Message:Implementing HDAEnabler module.
Changes:
A/trunk/i386/modules/HDAEnabler/HDAEnabler.dylib
A/trunk/i386/modules/HDAEnabler/Cconfig
A/trunk/package/OptionalSettings/HDAULayout.txt
A/trunk/package/OptionalSettings/Audio.txt
A/trunk/i386/modules/HDAEnabler/Readme.txt
A/trunk/i386/modules/HDAEnabler/Makefile
A/trunk/package/OptionalSettings/HDEFLayout.txt
A/trunk/i386/modules/HDAEnabler
A/trunk/i386/modules/HDAEnabler/include
M/trunk/i386/modules/Makefile
M/trunk/package/buildpkg.sh
M/trunk/i386/libsaio/nvidia.c
M/trunk/i386/modules/Cconfig

File differences

trunk/i386/libsaio/nvidia.c
10361036
10371037
10381038
1039
1039
1040
10401041
1042
10411043
1044
10421045
10431046
10441047
......
11261129
11271130
11281131
1132
11291133
11301134
11311135
......
11461150
11471151
11481152
1149
1153
11501154
1155
1156
11511157
11521158
11531159
......
11711177
11721178
11731179
1174
1180
11751181
11761182
11771183
......
11811187
11821188
11831189
1184
1190
1191
1192
1193
1194
11851195
1196
11861197
11871198
11881199
{ 0x10DE0FFE,"Quadro K2000" },
{ 0x10DE0FFF,"Quadro 410" },
// 1000 - 100F
{ 0x10DE1005,"GeForce GTX TITAN" },
{ 0x10DE1003,"GeForce GTX Titan LE" },
{ 0x10DE1005,"GeForce GTX Titan" },
// 1010 - 101F
{ 0x10DE101F,"Tesla K20" },
// 1020 - 102F
{ 0x10DE1020,"Tesla K20X" },
{ 0x10DE1021,"Tesla K20Xm" },
{ 0x10DE1022,"Tesla K20c" },
{ 0x10DE1026,"Tesla K20s" },
{ 0x10DE1189,"GeForce GTX 670" },
{ 0x10DE118F,"Tesla K10" },
// 1190 - 119F
{ 0x10DE119F,"GeForce GTX 780M" },
// 11A0 - 11AF
{ 0x10DE11A0,"GeForce GTX 680M" },
{ 0x10DE11A1,"GeForce GTX 670MX" },
{ 0x10DE11C6,"GeForce GTX 650 Ti" },
// 11D0 - 11DF
// 11E0 - 11EF
{ 0x10DE11E0,"N14E-GS-A1" },
{ 0x10DE11E0,"GeForce GTX 770M" },
{ 0x10DE11E1,"N14E-GE-B-A1" },
{ 0x10DE11E2,"GeForce GTX 765M" },
{ 0x10DE11E3,"GeForce GTX 760M" },
// 11F0 - 11FF
{ 0x10DE11FA,"Quadro K4000" },
// 1200 - 120F
{ 0x10DE1246,"GeForce GT 550M" },
{ 0x10DE1247,"GeForce GT 555M" },
{ 0x10DE1248,"GeForce GT 555M" },
{ 0x10DE1249,"GeForce GTS 450" }, // 450M?
{ 0x10DE1249,"GeForce GTS 450" },
{ 0x10DE124B,"GeForce GT 640" },
{ 0x10DE124D,"GeForce GT 555M" },
// { 0x10DE1250,"GF116-INT" },
// 1280 - 128F
{ 0x10DE1280,"GeForce GT 635" },
// 1290 - 129F
{ 0x10DE1292,"GeForce GT 740M" }, //
{ 0x10DE1290,"GeForce GT 730M" },
{ 0x10DE1291,"GeForce GT 735M" },
{ 0x10DE1292,"GeForce GT 740M" },
{ 0x10DE1293,"GeForce GT 730M" },
{ 0x10DE1294,"GeForce GT 740M" },
// 12A0 - 12AF
//{ 0x10DE12A0,"GeForce GT ???" },
// 12B0 - 12BF
// 12C0 - 12CF
// 12D0 - 12DF
trunk/i386/modules/HDAEnabler/Cconfig
1
2
3
4
5
6
7
8
9
10
#
# Chameleon Modules
#
config HDAENABLER_MODULE
tristate "HDAEnabler Module"
default y
---help---
Say Y here if you want to enable the use of this module.
trunk/i386/modules/HDAEnabler/Readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Module:HDAEnabler
Description: This module provides a substitute for the Hight Definition Audio DSDT Edits (HDEF and HDAU).
Dependencies: none
Usage:
- Copy the module HDAEnabler.dylib into /Extra/modules folder
- Set HDAEnabler=Yes (Default value is YES if the module is in modules folder)
- Set HDEFLayoutID="a decimal value" for HDEF layout to use with a patched AppleHDA kext.
- Set HDAULayoutID="a decimal value" for HDAU layout to use with a patched AppleHDA kext.
-----
- HDAEnabler=No (Disable the HDAEnabler module with module in modules folder).
trunk/i386/modules/HDAEnabler/Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
MODULE_NAME = HDAEnabler
MODULE_AUTHOR = "ErmaC"
MODULE_DESCRIPTION = This module provides a remplacement for the DSDT edits like HDEF/HDAU
MODULE_VERSION = "1.0.0"
MODULE_COMPAT_VERSION = "1.0.0"
MODULE_START = $(MODULE_NAME)_start
MODULE_DEPENDENCIES =
DIR = HDAEnabler
include ../MakeInc.dir
$(SYMROOT)/modules/$(MODULE_NAME).dylib:
@echo "\t[CP] $(MODULE_NAME).dylib"
@cp $(MODULE_NAME).dylib $(SRCROOT)/sym/i386/modules/$(MODULE_NAME).dylib
$(SRCROOT)/sym/i386/boot_modules.c:
@
trunk/i386/modules/Cconfig
1212
1313
1414
15
1516
source "i386/modules/ACPIcodec/Cconfig"
source "i386/modules/KernelPatcher/Cconfig"
source "i386/modules/FileNVRAM/Cconfig"
source "i386/modules/HDAEnabler/Cconfig"
endmenu
trunk/i386/modules/Makefile
4545
4646
4747
48
49
50
4851
4952
5053
SUBDIRS += FileNVRAM
endif
ifdef CONFIG_HDAENABLER_MODULE
SUBDIRS += HDAEnabler
endif
CFLAGS= -O3 $(MORECPP) -arch i386 -g -static
DEFINES=
trunk/package/OptionalSettings/Audio.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# ---------------------------------------------
# Chameleon Optional Settings List.
# ---------------------------------------------
# Add boot options or kernel flags to the bottom of this file.
# They will appear under the package installer's Settings menu
# in a sub menu named with the filename of this file.
# Use one file or many files - it's flexible to make it easy
# to group different options under separate sub menus.
# ---------------------------------------------
# To add boot option: Structure is:
# type@name:key=value
# example1: Bool@InstantMenu:Instant Menu=Yes
# example2: Text@1024x600x32:Graphics Mode=1024x600x32
# example3: List@Npci:Kernel Flags=npci=0x2000
# ---------------------------------------------
# type can be: Bool, Text or List
# ---------------------------------------------
# The package installer has a setting which controls what
# the user is allowed to choose.
# A) User can select every option from the list.
# B) User can select only one of the options from the list.
# Set Exclusive=False for A, or Exclusive=True for B.
#
Exclusive=False
# ---------------------------------------------
# Note: There must be a carriage return at end of last line
# ---------------------------------------------
#Bool@HDAEnabler:HDAEnabler=Yes
Bool@EnableHDMIAudio:EnableHDMIAudio=Yes
trunk/package/OptionalSettings/HDEFLayout.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# ---------------------------------------------
# Chameleon Optional Settings List.
# ---------------------------------------------
# Add boot options or kernel flags to the bottom of this file.
# They will appear under the package installer's Settings menu
# in a sub menu named with the filename of this file.
# Use one file or many files - it's flexible to make it easy
# to group different options under separate sub menus.
# ---------------------------------------------
# To add boot option: Structure is:
# type@name:key=value
# example1: Bool@InstantMenu:Instant Menu=Yes
# example2: Text@1024x600x32:Graphics Mode=1024x600x32
# example3: List@Npci:Kernel Flags=npci=0x2000
# ---------------------------------------------
# type can be: Bool, Text or List
# ---------------------------------------------
# The package installer has a setting which controls what
# the user is allowed to choose.
# A) User can select every option from the list.
# B) User can select only one of the options from the list.
# Set Exclusive=False for A, or Exclusive=True for B.
#
Exclusive=True
# ---------------------------------------------
# Note: There must be a carriage return at end of last line
# ---------------------------------------------
Text@HDEFLayoutIDx01:HDEFLayoutID=1
Text@HDEFLayoutIDx02:HDEFLayoutID=2
Text@HDEFLayoutIDx03:HDEFLayoutID=3
Text@HDEFLayoutIDx12:HDEFLayoutID=12
Text@HDEFLayoutIDx40:HDEFLayoutID=40
Text@HDEFLayoutIDx65:HDEFLayoutID=65
Text@HDEFLayoutIDx99:HDEFLayoutID=99
Text@HDEFLayoutIDx269:HDEFLayoutID=269
Text@HDEFLayoutIDx387:HDEFLayoutID=387
Text@HDEFLayoutIDx388:HDEFLayoutID=388
Text@HDEFLayoutIDx389:HDEFLayoutID=389
Text@HDEFLayoutIDx392:HDEFLayoutID=392
Text@HDEFLayoutIDx398:HDEFLayoutID=398
Text@HDEFLayoutIDx662:HDEFLayoutID=662
Text@HDEFLayoutIDx663:HDEFLayoutID=663
Text@HDEFLayoutIDx664:HDEFLayoutID=664
Text@HDEFLayoutIDx885:HDEFLayoutID=885
Text@HDEFLayoutIDx887:HDEFLayoutID=887
Text@HDEFLayoutIDx888:HDEFLayoutID=888
Text@HDEFLayoutIDx889:HDEFLayoutID=889
Text@HDEFLayoutIDx892:HDEFLayoutID=892
Text@HDEFLayoutIDx898:HDEFLayoutID=898
Text@HDEFLayoutIDxBD7:HDEFLayoutID=1981
trunk/package/OptionalSettings/HDAULayout.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# ---------------------------------------------
# Chameleon Optional Settings List.
# ---------------------------------------------
# Add boot options or kernel flags to the bottom of this file.
# They will appear under the package installer's Settings menu
# in a sub menu named with the filename of this file.
# Use one file or many files - it's flexible to make it easy
# to group different options under separate sub menus.
# ---------------------------------------------
# To add boot option: Structure is:
# type@name:key=value
# example1: Bool@InstantMenu:Instant Menu=Yes
# example2: Text@1024x600x32:Graphics Mode=1024x600x32
# example3: List@Npci:Kernel Flags=npci=0x2000
# ---------------------------------------------
# type can be: Bool, Text or List
# ---------------------------------------------
# The package installer has a setting which controls what
# the user is allowed to choose.
# A) User can select every option from the list.
# B) User can select only one of the options from the list.
# Set Exclusive=False for A, or Exclusive=True for B.
#
Exclusive=True
# ---------------------------------------------
# Note: There must be a carriage return at end of last line
# ---------------------------------------------
Text@HDAULayoutIDx01:HDAULayoutID=1
Text@HDAULayoutIDx02:HDAULayoutID=2
Text@HDAULayoutIDx03:HDAULayoutID=3
Text@HDAULayoutIDx12:HDAULayoutID=12
Text@HDAULayoutIDx99:HDAULayoutID=99
Text@HDAULayoutIDx40:HDAULayoutID=40
trunk/package/buildpkg.sh
676676
677677
678678
679
679
680680
681681
682682
}
fi
# -
if [[ "${CONFIG_HDAENABLER_MODULE}" == 'm' && -f "${SYMROOT}/i386/modules/HDAEnabler.dylib" ]]; then
if [[ "${CONFIG_HDAENABLER_MODULE}" == 'y' && -f "${SYMROOT}/i386/modules/HDAEnabler.dylib" ]]; then
{
# Start build HDAEnabler package module
choiceId="HDAEnabler"

Archive Download the corresponding diff file

Revision: 2215