Teclast-X98-Air-3G_C6J6_custom_DSDT.git
5 years agoFix audio interrupt index to make the mainline kernel driver work master
Antonio Ospite [Sun, 16 Dec 2018 21:50:24 +0000 (22:50 +0100)]
Fix audio interrupt index to make the mainline kernel driver work

The mainline kernel audio driver assumes the right interrupt at index
5 while the device DSDT places it at index 0.

Fix the ordering to make the mainline kernel driver work without
changes.

7 years agoRemove useless audio devices
Antonio Ospite [Mon, 8 Aug 2016 10:51:41 +0000 (12:51 +0200)]
Remove useless audio devices

9 years agoEnable support for the accelerometer
Antonio Ospite [Tue, 24 Mar 2015 15:33:21 +0000 (16:33 +0100)]
Enable support for the accelerometer

9 years agoFix the TCS0 identifier and get rid of the _DSM method
Antonio Ospite [Thu, 26 Feb 2015 12:49:38 +0000 (13:49 +0100)]
Fix the TCS0 identifier and get rid of the _DSM method

The touchscreen is not an I2C-HID device, so don't use the "PNP0C50"
identifier and the _DSM method.

While at it, also use "GDIX1001" as an _HID so that the linux driver
does not need to be changed.

9 years agoRemove extra sensor definitions
Antonio Ospite [Wed, 18 Feb 2015 10:20:09 +0000 (11:20 +0100)]
Remove extra sensor definitions

Teclast X98 Air 3G does not have ambient light sensors, magnetometers or
gyroscopes.

9 years agoFix the pin number for TCD3
Antonio Ospite [Wed, 18 Feb 2015 10:00:22 +0000 (11:00 +0100)]
Fix the pin number for TCD3

TCD3 is the touchscreen reset pin, fix the pin definition so that the
touchscreen can be resetted properly.

9 years agoFix the gpio definition for the touchscreen interrupt
Antonio Ospite [Tue, 3 Feb 2015 11:36:43 +0000 (12:36 +0100)]
Fix the gpio definition for the touchscreen interrupt

9 years agoRemove the extra TCS0 device
Antonio Ospite [Wed, 18 Feb 2015 09:58:32 +0000 (10:58 +0100)]
Remove the extra TCS0 device

There are two TCS0 devices, only leave the one with the correct I2C bus.

9 years agoFix all the remaining remarks about NotSerialized methods
Antonio Ospite [Tue, 3 Feb 2015 11:35:01 +0000 (12:35 +0100)]
Fix all the remaining remarks about NotSerialized methods

dsdt.dsl   1026:                 Method (_CRS, 0, NotSerialized)
Remark   2120 -                            ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl   1044:                 Method (_DOD, 0, NotSerialized)
Remark   2120 -                            ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl   3883:             Method (_CRS, 0, NotSerialized)
Remark   2120 -                        ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl   3926:             Method (_CRS, 0, NotSerialized)
Remark   2120 -                        ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl   3964:             Method (_CRS, 0, NotSerialized)
Remark   2120 -                        ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl   6129:             Method (_CRS, 0, NotSerialized)
Remark   2120 -                        ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl   6146:             Method (_AEI, 0, NotSerialized)
Remark   2120 -                        ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl   6250:             Method (_CRS, 0, NotSerialized)
Remark   2120 -                        ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl   6329:             Method (_CRS, 0, NotSerialized)
Remark   2120 -                        ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl   6390:             Method (_CRS, 0, NotSerialized)
Remark   2120 -                        ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl   6411:             Method (_AEI, 0, NotSerialized)
Remark   2120 -                        ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl   8617:                 Method (_CRS, 0, NotSerialized)
Remark   2120 -                            ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl   8666:                 Method (_CRS, 0, NotSerialized)
Remark   2120 -                            ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl   8717:                 Method (_CRS, 0, NotSerialized)
Remark   2120 -                            ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl   9346:                 Method (_CRS, 0, NotSerialized)
Remark   2120 -                            ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl   9384:                 Method (_CRS, 0, NotSerialized)
Remark   2120 -                            ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl   9524:                 Method (_CRS, 0, NotSerialized)
Remark   2120 -                            ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl   9615:                 Method (_CRS, 0, NotSerialized)
Remark   2120 -                            ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl   9844:                 Method (_CRS, 0, NotSerialized)
Remark   2120 -                            ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl   9952:                 Method (_CRS, 0, NotSerialized)
Remark   2120 -                            ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl  10018:                 Method (_CRS, 0, NotSerialized)
Remark   2120 -                            ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl  10187:                 Method (_CRS, 0, NotSerialized)
Remark   2120 -                            ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl  10373:                 Method (_CRS, 0, NotSerialized)
Remark   2120 -                            ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl  10555:                 Method (_CRS, 0, NotSerialized)
Remark   2120 -                            ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl  10728:                 Method (_CRS, 0, NotSerialized)
Remark   2120 -                            ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl  10901:                 Method (_CRS, 0, NotSerialized)
Remark   2120 -                            ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl  11074:                 Method (_CRS, 0, NotSerialized)
Remark   2120 -                            ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl  11216:                 Method (_CRS, 0, NotSerialized)
Remark   2120 -                            ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl  11360:                 Method (_CRS, 0, NotSerialized)
Remark   2120 -                            ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl  11565:                 Method (_CRS, 0, NotSerialized)
Remark   2120 -                            ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl  11601:                 Method (_CRS, 0, NotSerialized)
Remark   2120 -                            ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl  11649:                 Method (_CRS, 0, NotSerialized)
Remark   2120 -                            ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl  11679:                 Method (_CRS, 0, NotSerialized)
Remark   2120 -                            ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl  11716:                 Method (_CRS, 0, NotSerialized)
Remark   2120 -                            ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl  11758:                 Method (_CRS, 0, NotSerialized)
Remark   2120 -                            ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl  11800:                 Method (_CRS, 0, NotSerialized)
Remark   2120 -                            ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl  11836:                 Method (_CRS, 0, NotSerialized)
Remark   2120 -                            ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl  11865:                 Method (_CRS, 0, NotSerialized)
Remark   2120 -                            ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl  11903:             Method (_CRS, 0, NotSerialized)
Remark   2120 -                        ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl  12037:                 Method (_CRS, 0, NotSerialized)
Remark   2120 -                            ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl  12292:                 Method (_CRS, 0, NotSerialized)
Remark   2120 -                            ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl  12739:                 Method (_CRS, 0, NotSerialized)
Remark   2120 -                            ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl  13188:                 Method (_CRS, 0, NotSerialized)
Remark   2120 -                            ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl  13241:                 Method (_CRS, 0, NotSerialized)
Remark   2120 -                            ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl  13898:                 Method (_CRS, 0, NotSerialized)
Remark   2120 -                            ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl  14260:             Method (_CRS, 0, NotSerialized)
Remark   2120 -                        ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl  14616:         Method (_CRS, 0, NotSerialized)
Remark   2120 -                    ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt.dsl  16010:             Method (SBTP, 0, NotSerialized)
Remark   2120 -                        ^ Control Method should be made Serialized (due to creation of named objects within)

9 years agoFix some warnings about missing return values
Antonio Ospite [Tue, 3 Feb 2015 11:21:03 +0000 (12:21 +0100)]
Fix some warnings about missing return values

dsdt.dsl   4065:             Method (_PS0, 0, Serialized)
Warning  3115 -                        ^ Not all control paths return a value (_PS0)

dsdt.dsl   4280:             Method (_PS3, 0, Serialized)
Warning  3115 -                        ^ Not all control paths return a value (_PS3)

dsdt.dsl  12210:             Method (_PS3, 0, NotSerialized)
Warning  3115 -                        ^ Not all control paths return a value (_PS3)

9 years agoFix some unreferenced object remarks
Antonio Ospite [Tue, 3 Feb 2015 11:14:08 +0000 (12:14 +0100)]
Fix some unreferenced object remarks

dsdt.dsl   3752:                         Memory32Fixed (ReadWrite,
Remark   2089 -                       Object is not referenced ^  (Name is within method [_CRS])

dsdt.dsl   3754:                             0x00001000,
Remark   2089 -             Object is not referenced ^  (Name is within method [_CRS])

dsdt.dsl   3788:                         Memory32Fixed (ReadWrite,
Remark   2089 -                       Object is not referenced ^  (Name is within method [_CRS])

dsdt.dsl   3790:                             0x00001000,
Remark   2089 -             Object is not referenced ^  (Name is within method [_CRS])

dsdt.dsl   6407:                 Name (RBUF, ResourceTemplate ()
Remark   2089 - Object is not referenced ^  (Name is within method [_AEI])

dsdt.dsl   9896:                         CreateByteField (Arg3, Zero, FARG)
Remark   2089 -                                Object is not referenced ^  (Name is within method [_DSM])

dsdt.dsl  14369:                 Name (RBU0, ResourceTemplate ()
Remark   2089 - Object is not referenced ^  (Name is within method [_CRS])

9 years agoFix some remarks about using compiler reserverd names
Antonio Ospite [Tue, 3 Feb 2015 10:51:45 +0000 (11:51 +0100)]
Fix some remarks about using compiler reserverd names

dsdt.dsl   3804:                     Name (_T_0, Zero)
Remark   2011 -                              ^ Use of compiler reserved name (_T_0)

9 years agoInitial import
Antonio Ospite [Tue, 3 Feb 2015 10:41:33 +0000 (11:41 +0100)]
Initial import

Import the original DSDT and a simple Makefile to make the editing
process a little easier.