Dolnor / EAPD-Codec-Commander

handles EAPD state updating for power-managed HDA codecs
GNU General Public License v2.0
90 stars 42 forks source link

After sleep sound restored but periodic crackling #20

Open johnryan opened 8 years ago

johnryan commented 8 years ago

Not a huge deal, but I was wondering if anyone might have any guidance.

the kext is properly restoring sound after sleep on my ALC1150 on my GA-Z97X-UD7, but after waking from sleep there are periodic (every minute or two) crackling/skipping sounds noticeable especially when playing music/video.

Restarting the computer fixes the issue until the computer goes through a sleep/wake cycle again

Any suggestions for things to try would be greatly appreciated. Thanks.

johnryan commented 8 years ago

Here's the logs from the console for completeness:

3/26/16 3:02:10.000 PM kernel[0]: CodecCommander: PowerHook: setPowerState 0
3/26/16 3:02:10.000 PM kernel[0]: CodecCommander: setPowerStateExternal 0
3/26/16 3:02:10.000 PM kernel[0]: CodecCommander: --> asleep(0)
3/26/16 3:02:11.000 PM kernel[0]: CodecCommander: SendCommand: node 0x14, verb 0x00070c, payload 0x00.
3/26/16 3:02:11.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x21470c00
3/26/16 3:02:11.000 PM kernel[0]: CodecCommander: ExecutePIO Invalid result received.
3/26/16 3:02:11.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0xffffffff
3/26/16 3:02:11.000 PM kernel[0]: CodecCommander: SendCommand: node 0x1b, verb 0x00070c, payload 0x00.
3/26/16 3:02:11.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x21b70c00
3/26/16 3:02:11.000 PM kernel[0]: CodecCommander: ExecutePIO Invalid result received.
3/26/16 3:02:11.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0xffffffff
3/26/16 3:02:11.000 PM kernel[0]: CodecCommander: --> custom command 0x02050007
3/26/16 3:02:11.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x22050007
3/26/16 3:02:11.000 PM kernel[0]: CodecCommander: ExecutePIO Invalid result received.
3/26/16 3:02:11.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0xffffffff
3/26/16 3:10:50.000 PM kernel[0]: CodecCommander: setPowerState 0
3/26/16 3:10:50.000 PM kernel[0]: CodecCommander: --> asleep(0)
3/26/16 3:10:50.000 PM kernel[0]: CodecCommander: setPowerState 2
3/26/16 3:10:50.000 PM kernel[0]: CodecCommander: --> awake(2)
3/26/16 3:10:50.000 PM kernel[0]: CodecCommander: --> resetting codec
3/26/16 3:10:50.000 PM kernel[0]: CodecCommander: SendCommand: node 0x01, verb 0x0007ff, payload 0x00.
3/26/16 3:10:50.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x2017ff00
3/26/16 3:10:50.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
3/26/16 3:10:50.000 PM kernel[0]: CodecCommander: SendCommand: node 0x01, verb 0x0007ff, payload 0x00.
3/26/16 3:10:50.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x2017ff00
3/26/16 3:10:50.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
3/26/16 3:10:50.000 PM kernel[0]: CodecCommander: SendCommand: node 0x01, verb 0x000705, payload 0x03.
3/26/16 3:10:50.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x20170503
3/26/16 3:10:50.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
3/26/16 3:10:50.000 PM kernel[0]: CodecCommander: --> hda codec power restored
3/26/16 3:10:50.000 PM kernel[0]: CodecCommander: PowerHook: setPowerState 2
3/26/16 3:10:50.000 PM kernel[0]: CodecCommander: setPowerStateExternal 2
3/26/16 3:10:50.000 PM kernel[0]: CodecCommander: --> awake(2)
3/26/16 3:10:50.000 PM kernel[0]: CodecCommander: --> resetting codec
3/26/16 3:10:50.000 PM kernel[0]: CodecCommander: SendCommand: node 0x01, verb 0x0007ff, payload 0x00.
3/26/16 3:10:50.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x2017ff00
3/26/16 3:10:50.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
3/26/16 3:10:50.000 PM kernel[0]: CodecCommander: SendCommand: node 0x01, verb 0x0007ff, payload 0x00.
3/26/16 3:10:50.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x2017ff00
3/26/16 3:10:50.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
3/26/16 3:10:50.000 PM kernel[0]: CodecCommander: SendCommand: node 0x01, verb 0x000705, payload 0x03.
3/26/16 3:10:50.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x20170503
3/26/16 3:10:50.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
3/26/16 3:10:50.000 PM kernel[0]: CodecCommander: --> hda codec power restored
3/26/16 3:10:51.000 PM kernel[0]: CodecCommander: SendCommand: node 0x14, verb 0x00070c, payload 0x02.
3/26/16 3:10:51.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x21470c02
3/26/16 3:10:51.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
3/26/16 3:10:51.000 PM kernel[0]: CodecCommander: SendCommand: node 0x1b, verb 0x00070c, payload 0x02.
3/26/16 3:10:51.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x21b70c02
3/26/16 3:10:51.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
3/26/16 3:10:51.000 PM kernel[0]: CodecCommander: --> custom command 0x02050007
3/26/16 3:10:51.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x22050007
3/26/16 3:10:51.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
3/26/16 3:10:51.000 PM kernel[0]: CodecCommander: --> custom command 0x02047cb0
3/26/16 3:10:51.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x22047cb0
3/26/16 3:10:51.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
3/26/16 3:10:51.000 PM kernel[0]: CodecCommander: SendCommand: node 0x14, verb 0x00070c, payload 0x02.
3/26/16 3:10:51.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x21470c02
3/26/16 3:10:51.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
3/26/16 3:10:51.000 PM kernel[0]: CodecCommander: SendCommand: node 0x1b, verb 0x00070c, payload 0x02.
3/26/16 3:10:51.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x21b70c02
3/26/16 3:10:51.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
3/26/16 3:10:51.000 PM kernel[0]: CodecCommander: --> custom command 0x02050007
3/26/16 3:10:51.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x22050007
3/26/16 3:10:51.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
3/26/16 3:10:51.000 PM kernel[0]: CodecCommander: --> custom command 0x02047cb0
3/26/16 3:10:51.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x22047cb0
3/26/16 3:10:51.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
3/26/16 3:52:02.000 PM kernel[0]: CodecCommander: PowerHook: setPowerState 0
3/26/16 3:52:02.000 PM kernel[0]: CodecCommander: setPowerStateExternal 0
3/26/16 3:52:02.000 PM kernel[0]: CodecCommander: --> asleep(0)
3/26/16 3:52:03.000 PM kernel[0]: CodecCommander: SendCommand: node 0x14, verb 0x00070c, payload 0x00.
3/26/16 3:52:03.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x21470c00
3/26/16 3:52:03.000 PM kernel[0]: CodecCommander: ExecutePIO Invalid result received.
3/26/16 3:52:03.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0xffffffff
3/26/16 3:52:03.000 PM kernel[0]: CodecCommander: SendCommand: node 0x1b, verb 0x00070c, payload 0x00.
3/26/16 3:52:03.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x21b70c00
3/26/16 3:52:03.000 PM kernel[0]: CodecCommander: ExecutePIO Invalid result received.
3/26/16 3:52:03.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0xffffffff
3/26/16 3:52:03.000 PM kernel[0]: CodecCommander: --> custom command 0x02050007
3/26/16 3:52:03.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x22050007
3/26/16 3:52:03.000 PM kernel[0]: CodecCommander: ExecutePIO Invalid result received.
3/26/16 3:52:03.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0xffffffff
3/26/16 4:44:30.000 PM kernel[0]: CodecCommander: setPowerState 0
3/26/16 4:44:30.000 PM kernel[0]: CodecCommander: --> asleep(0)
3/26/16 4:44:30.000 PM kernel[0]: CodecCommander: setPowerState 2
3/26/16 4:44:30.000 PM kernel[0]: CodecCommander: --> awake(2)
3/26/16 4:44:30.000 PM kernel[0]: CodecCommander: --> resetting codec
3/26/16 4:44:30.000 PM kernel[0]: CodecCommander: SendCommand: node 0x01, verb 0x0007ff, payload 0x00.
3/26/16 4:44:30.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x2017ff00
3/26/16 4:44:30.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
3/26/16 4:44:30.000 PM kernel[0]: CodecCommander: SendCommand: node 0x01, verb 0x0007ff, payload 0x00.
3/26/16 4:44:30.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x2017ff00
3/26/16 4:44:30.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
3/26/16 4:44:30.000 PM kernel[0]: CodecCommander: SendCommand: node 0x01, verb 0x000705, payload 0x03.
3/26/16 4:44:30.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x20170503
3/26/16 4:44:30.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
3/26/16 4:44:30.000 PM kernel[0]: CodecCommander: --> hda codec power restored
3/26/16 4:44:30.000 PM kernel[0]: CodecCommander: PowerHook: setPowerState 2
3/26/16 4:44:30.000 PM kernel[0]: CodecCommander: setPowerStateExternal 2
3/26/16 4:44:30.000 PM kernel[0]: CodecCommander: --> awake(2)
3/26/16 4:44:30.000 PM kernel[0]: CodecCommander: --> resetting codec
3/26/16 4:44:30.000 PM kernel[0]: CodecCommander: SendCommand: node 0x01, verb 0x0007ff, payload 0x00.
3/26/16 4:44:30.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x2017ff00
3/26/16 4:44:30.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
3/26/16 4:44:30.000 PM kernel[0]: CodecCommander: SendCommand: node 0x01, verb 0x0007ff, payload 0x00.
3/26/16 4:44:30.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x2017ff00
3/26/16 4:44:30.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
3/26/16 4:44:30.000 PM kernel[0]: CodecCommander: SendCommand: node 0x01, verb 0x000705, payload 0x03.
3/26/16 4:44:30.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x20170503
3/26/16 4:44:30.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
3/26/16 4:44:30.000 PM kernel[0]: CodecCommander: --> hda codec power restored
3/26/16 4:44:31.000 PM kernel[0]: CodecCommander: SendCommand: node 0x14, verb 0x00070c, payload 0x02.
3/26/16 4:44:31.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x21470c02
3/26/16 4:44:31.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
3/26/16 4:44:31.000 PM kernel[0]: CodecCommander: SendCommand: node 0x1b, verb 0x00070c, payload 0x02.
3/26/16 4:44:31.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x21b70c02
3/26/16 4:44:31.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
3/26/16 4:44:31.000 PM kernel[0]: CodecCommander: --> custom command 0x02050007
3/26/16 4:44:31.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x22050007
3/26/16 4:44:31.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
3/26/16 4:44:31.000 PM kernel[0]: CodecCommander: --> custom command 0x02047cb0
3/26/16 4:44:31.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x22047cb0
3/26/16 4:44:31.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
3/26/16 4:44:31.000 PM kernel[0]: CodecCommander: SendCommand: node 0x14, verb 0x00070c, payload 0x02.
3/26/16 4:44:31.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x21470c02
3/26/16 4:44:31.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
3/26/16 4:44:31.000 PM kernel[0]: CodecCommander: SendCommand: node 0x1b, verb 0x00070c, payload 0x02.
3/26/16 4:44:31.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x21b70c02
3/26/16 4:44:31.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
3/26/16 4:44:31.000 PM kernel[0]: CodecCommander: --> custom command 0x02050007
3/26/16 4:44:31.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x22050007
3/26/16 4:44:31.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000
3/26/16 4:44:31.000 PM kernel[0]: CodecCommander: --> custom command 0x02047cb0
3/26/16 4:44:31.000 PM kernel[0]: CodecCommander: SendCommand: (w) --> 0x22047cb0
3/26/16 4:44:31.000 PM kernel[0]: CodecCommander: SendCommand: (r) <-- 0x00000000