Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.92 KB | None | 0 0
  1. Device (HDEF)
  2. {
  3. Name (_ADR, 0x001B0000)
  4. Method (_PRW, 0, NotSerialized)
  5. {
  6. Return (Package (0x02)
  7. {
  8. 0x0D,
  9. 0x05
  10. })
  11. }
  12.  
  13. Method (_DSM, 4, NotSerialized)
  14. {
  15. Store (Package (0x08)
  16. {
  17. "codec-id",
  18. Buffer (0x04)
  19. {
  20. 0x88, 0x08, 0xEC, 0x10
  21. },
  22.  
  23. "layout-id",
  24. Buffer (0x04)
  25. {
  26. 0x78, 0x03, 0x00, 0x00
  27. },
  28.  
  29. "device-type",
  30. Buffer (0x0F)
  31. {
  32. "Realtek ALC888"
  33. },
  34.  
  35. "PinConfigurations",
  36. Buffer (Zero) {}
  37. }, Local0)
  38. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
  39. Return (Local0)
  40. }
  41. }
  42.  
  43. Name (BUFA, ResourceTemplate ()
  44. {
  45. IRQ (Level, ActiveLow, Shared, )
  46. {3,4,5,6,7,9,10,11,12,14,15}
  47. })
  48. Name (BUFB, ResourceTemplate ()
  49. {
  50. IRQ (Level, ActiveLow, Shared, )
  51. {}
  52. })
  53. CreateWordField (BUFB, One, IRQV)
  54. Device (LNKA)
  55. {
  56. Name (_HID, EisaId ("PNP0C0F"))
  57. Name (_UID, One)
  58. Method (_STA, 0, NotSerialized)
  59. {
  60. And (PIRA, 0x80, Local0)
  61. If (LEqual (Local0, 0x80))
  62. {
  63. Return (0x09)
  64. }
  65. Else
  66. {
  67. Return (0x0B)
  68. }
  69. }
  70. Method (_PRS, 0, NotSerialized)
  71. {
  72. Return (BUFA)
  73. }
  74.  
  75. Method (_DIS, 0, NotSerialized)
  76. {
  77. Or (PIRA, 0x80, PIRA)
  78. }
  79.  
  80. Method (_CRS, 0, NotSerialized)
  81. {
  82. And (PIRA, 0x0F, Local0)
  83. ShiftLeft (One, Local0, IRQV)
  84. Return (BUFB)
  85. }
  86.  
  87. Method (_SRS, 1, NotSerialized)
  88. {
  89. CreateWordField (Arg0, One, IRQ1)
  90. FindSetRightBit (IRQ1, Local0)
  91. Decrement (Local0)
  92. Store (Local0, PIRA)
  93. }
  94. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement