Openmoko Bug #1599: Suspend / resume breaks audio

Openmoko Public Trac bugs at docs.openmoko.org
Sat Jul 19 13:05:16 CEST 2008


#1599: Suspend / resume breaks audio
----------------------------------------+-----------------------------------
 Reporter:  phyce                       |        Owner:  openmoko-kernel
     Type:  defect                      |       Status:  new            
 Priority:  normal                      |    Milestone:  OM-2007.2      
Component:  System Software             |      Version:  GTA02v5        
 Severity:  normal                      |   Resolution:                 
 Keywords:  sound audio suspend resume  |     Blocking:                 
Blockedby:                              |  
----------------------------------------+-----------------------------------

Comment(by andy):

 Great work finding a workaround... we play a trick to get fast resume,
 reloading WM8753 registers takes 700ms, so we push it off into a workqueue
 so it can complete parallel with rest of resume rather than holding us up.
 Alsa stuff has good locking concept that allows us to freeze stuff using
 Alsa assets until this is completed, but I wonder if this /sys guy is not
 under that lock, in which case pulseaudio might be exposed to stuff that
 is still "in a state of undress". (BTW this trick originated here has gone
 into upstream Alsa).

 I confirmed here just now that aplay still continues to play fine without
 pulseaudio around if interrupted by apm -s, it does throw underrun
 complaint but it is legitimate considering what we are doing.

 I guess we need a change to pulseaudio package so it inserts these
 /etc/apm/* actions I am afraid I have no idea how to do that with OE.

-- 
Ticket URL: <https://docs.openmoko.org/trac/ticket/1599#comment:13>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac


More information about the buglog mailing list