No sound when resuming from suspend on 0.3.72
- PipeWire version: 0.3.72 and master
- Distribution and distribution version: Ubuntu 20.04.6
- Kernel version: 6.3.9
- Sound card: 01:02.0 Multimedia audio controller: Creative Labs EMU10k1 [Sound Blaster Live! Series] (rev 07)
Description of Problem:
When resuming from S3, audio playback stops and pipewire spams the following line over and over.
[E][05922.833311] spa.alsa | [ alsa-pcm.c: 2264 spa_alsa_write()] front:0: snd_pcm_mmap_begin error: Streams pipe error
[E][05922.848323] spa.alsa | [ alsa-pcm.c: 2264 spa_alsa_write()] iec958:1: snd_pcm_mmap_begin error: Streams pipe error
Restarting pipewire only is enough to restore audio.
Bisecting indicated the following commit:
29e6544baeb18fc194eabec6e351e905cf4aa0a0 is the first bad commit
commit 29e6544baeb18fc194eabec6e351e905cf4aa0a0
Author: Wim Taymans <wtaymans@redhat.com>
Date: Mon Jun 5 16:49:58 2023 +0200
alsa: enable htimestamp mode
Use snd_pcm_htimestamp to get both the available space and the timestamp
when this was calculated. We can then use this to get a better estimate
of the delay in the device against the graph start and get a more
reliable delay between capture and playback.
spa/plugins/alsa/alsa-pcm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Reverting this commit on top of master "fixes" the issue.
How Reproducible:
Always
Steps to Reproduce:
- Have presumably an emu10k1 card
- Suspend to RAM
- Resume
Actual Results:
No audio and the same error messages are being spammed.
Expected Results:
Working audio and no message spam.