Skip to content

Commit

Permalink
add HDAS patching for Skylake/KabyLake/etc
Browse files Browse the repository at this point in the history
  • Loading branch information
RehabMan committed May 6, 2017
1 parent 88ae0fc commit c1d64fd
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 2 deletions.
16 changes: 15 additions & 1 deletion audio/audio_HDEF-layout12.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,18 @@ Method (_DSM, 4, NotSerialized)\n
}\n
end;


into method label _DSM parent_label HDAS remove_entry;
into device label HDAS insert
begin
Method (_DSM, 4, NotSerialized)\n
{\n
If (LEqual (Arg2, Zero)) { Return (Buffer() { 0x03 } ) }\n
Return (Package()\n
{\n
"layout-id", Buffer() { 12, 0x00, 0x00, 0x00 },\n
"hda-gfx", Buffer() { "onboard-1" },\n
"PinConfigurations", Buffer() { },\n
//"MaximumBootBeepVolume", 77,\n
})\n
}\n
end;
22 changes: 22 additions & 0 deletions audio/audio_HDEF-layout12a.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,25 @@ Method (_DSM, 4, NotSerialized)\n
}\n
end;

into method label _DSM parent_label HDAS remove_entry;
into device label HDAS insert
begin
Method (_DSM, 4, NotSerialized)\n
{\n
If (LEqual (Arg2, Zero)) { Return (Buffer() { 0x03 } ) }\n
Return (Package()\n
{\n
"AAPL,slot-name", Buffer() { "Built in" },\n
"device-id", Buffer() { 0x6E, 0x50, 0xF1, 0x14 },\n
"layout-id", Buffer() { 12, 0x00, 0x00, 0x00 },\n
"codec-id", Buffer() { 0x3E, 0x3A, 0xEC, 0x10 },\n
"model", Buffer() { "Conexant 20672 SmartAudio HD" },\n
"name", Buffer() { "Conexant Cx20590" },\n
"device_type", Buffer() { "Audio Controller" },\n
"built-in", Buffer() { 0x00 },\n
"PinConfigurations", Buffer() { },\n
"hda-gfx", Buffer() { "onboard-1" },\n
//"MaximumBootBeepVolume", 77,\n
})\n
}\n
end;
16 changes: 15 additions & 1 deletion audio/audio_HDEF-layout3.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,18 @@ Method (_DSM, 4, NotSerialized)\n
}\n
end;


into method label _DSM parent_label HDAS remove_entry;
into device label HDAS insert
begin
Method (_DSM, 4, NotSerialized)\n
{\n
If (LEqual (Arg2, Zero)) { Return (Buffer() { 0x03 } ) }\n
Return (Package()\n
{\n
"layout-id", Buffer() { 3, 0x00, 0x00, 0x00 },\n
"hda-gfx", Buffer() { "onboard-1" },\n
"PinConfigurations", Buffer() { },\n
//"MaximumBootBeepVolume", 77,\n
})\n
}\n
end;

0 comments on commit c1d64fd

Please sign in to comment.