Bug 476848

Summary: POLLERR/POLLOUT/PCM state messages on laptop suspend/resume.
Product: [Fedora] Fedora Reporter: Tom London <selinux>
Component: pulseaudioAssignee: Lennart Poettering <lpoetter>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: lkundrak, lpoetter, pierre-bugzilla
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-12-17 21:59:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tom London 2008-12-17 14:42:24 UTC
Description of problem:
I suspended my rawhide system while rhythmbox/pulseaudio was playing.

Audio during suspend was "choppy", that is, it sounded like the "last buffer" was repeated a number of times before the system "went to sleep".  I suspect that cannot be helped...

When I resumed, all came back perfectly, including rhythmbox/pulseaudio continuing to play right where it left off.  This is very impressive.

Examining /var/log/messages, I notice the following.  Not sure this is a bug/issue, or just INFO type logging, so feel free to close as appropriate.

Dec 17 06:28:44 tlondon kernel: PM: resume devices took 3.154 seconds
Dec 17 06:28:44 tlondon pulseaudio[3085]: alsa-util.c: snd_pcm_avail_update() returned a value that is exceptionally large: 534428 bytes (3029 ms) Most likely this is an ALSA driver bug. Please report this issue to the PulseAudio developers.
Dec 17 06:28:44 tlondon pulseaudio[3085]: module-alsa-sink.c: Increasing wakeup watermark to 40.00 ms
Dec 17 06:28:44 tlondon pulseaudio[3085]: alsa-util.c: Got POLLERR from ALSA
Dec 17 06:28:44 tlondon pulseaudio[3085]: alsa-util.c: Got POLLOUT from ALSA
Dec 17 06:28:44 tlondon pulseaudio[3085]: alsa-util.c: PCM state is SUSPENDED
Dec 17 06:28:44 tlondon kernel: Restarting tasks ... done.
Dec 17 06:28:44 tlondon pulseaudio[3085]: alsa-util.c: Got POLLERR from ALSA
Dec 17 06:28:44 tlondon pulseaudio[3085]: alsa-util.c: Got POLLOUT from ALSA
Dec 17 06:28:44 tlondon pulseaudio[3085]: alsa-util.c: PCM state is RUNNING
Dec 17 06:28:44 tlondon pulseaudio[3085]: alsa-util.c: Got POLLERR from ALSA

The last 3 messages are repeated many times.

As stated above, sound appears 100% functional.


Version-Release number of selected component (if applicable):
pulseaudio-0.9.13-7.fc11.x86_64

How reproducible:
Believe so.....

Steps to Reproduce:
1. Suspend while rhythmbox is playing
2. Resume
3. Check log
  
Actual results:


Expected results:


Additional info:

Comment 1 Lennart Poettering 2008-12-17 21:59:16 UTC
These messages are mostly informational to help debugging the cases were resuming does not work properly.

Upstream I have now downgraded the three messages so that they are only shown in verbose/debug mode.