Fixing audio after deep sleep: Work Thread
#3
Well, some progress!

I added a function to dump the config registers out - and after resume, they're (not surprisingly) nonsense compared to what they started as after initialized and working.

I decided to just save all the config registers (0x50 of them) on suspend, and restore them on resume. Calling the _probe function again didn't work - I tried that as well. Even though unbind/rebind calls that, it calls a bunch of other stuff too, and I don't think fully re-initializing the sound system is the right answer.

The unbind/rebind, as noted in the other thread, reliably kernel panics the system if done while sound is playing, so that's not a great option.

Restoring the config registers, I have sound after resume, with the caveat that if sound is playing (say, in a browser tab), it doesn't work after resume - but if I close that tab, or reload it, I then have sound again. It seems like if a process is doing something with sound, that something sticks until it lets go, then things can reset - but I don't have do anything other than close/reload the tab. Chrome is somewhat worse and seems to require the browser to be killed before sound will re-init for some reason - but only if you're actively playing sound. Otherwise, it seems to work halfway sanely.

Given all this, I'm going to contact the authors of the es8316.c file and see if they've got any insights into the proper sequence for restoring the card. I don't think I need to save/restore all the registers, but I'm uncertain as to what else would work. Unless anyone happens to have some insight into this card...


Messages In This Thread
RE: Fixing audio after deep sleep: Work Thread - by Syonyk - 06-29-2020, 10:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Manjaro ARM: enabling external monitors & fixing Broadcom WiFi after updating trifleneurotic 2 1,527 11-14-2023, 10:57 AM
Last Post: trifleneurotic
  Sleep and external display - Are there any options? chris88233 7 2,862 09-04-2023, 09:03 PM
Last Post: wdt
  PineBook Pro seems to go to deep sleep, but doesn't wake up pogo 11 7,073 08-31-2023, 04:20 PM
Last Post: TRS-80
  Audio on Armbian Hobbes42 1 1,191 08-04-2023, 01:18 AM
Last Post: Humid Stylus
  Audio Driver on the pbp korreckj328 5 2,421 05-01-2023, 12:58 PM
Last Post: korreckj328
  With the help of a friend, I installed a beautiful deep os distribution, but I won't wangyukunshan 0 781 03-03-2023, 10:56 PM
Last Post: wangyukunshan
  Any chance of fixing the audio issues on the new batch PBP(it can't be just me...) crazyquark 0 990 09-30-2022, 10:15 AM
Last Post: crazyquark
  manjaro on pinebook pro low audio quality over jack alcck 1 1,329 09-22-2022, 11:31 AM
Last Post: petersen77
  No audio on Pinebook Pro with Fedora? foobar 1 1,751 08-22-2022, 12:12 PM
Last Post: snorwood
  How to make manjaro sleep or hibernate? KDE? regretfulpineuser 0 1,168 06-20-2022, 12:56 AM
Last Post: regretfulpineuser

Forum Jump:


Users browsing this thread: 1 Guest(s)