[pulseaudio-tickets] [Bug 103620] New: pulseaudio automatically unmutes S/PDIF on every new stream

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Nov 8 15:21:43 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=103620

            Bug ID: 103620
           Summary: pulseaudio automatically unmutes S/PDIF on every new
                    stream
           Product: PulseAudio
           Version: unspecified
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: pavucontrol
          Assignee: pulseaudio-bugs at lists.freedesktop.org
          Reporter: mail at florianlosch.de
        QA Contact: pulseaudio-bugs at lists.freedesktop.org
                CC: lennart at poettering.net

Hello,
I use Debian 9.2 (stretch) with the default PulseAudio 10.0 installed. My
soundcard is a Realtek ALC892 onboard chip. I use the optical S/PDIF output on
my mainboard.

Whenever I mute my audio via keyboard shortcut, only currently playing audio is
muted. As soon as a new audio stream starts (new tab in browser, terminal-ping,
etc.) the audio device is automatically unmuted and then audio is played. 

I have tried to set "flat-volumes = no" in daemon.conf, without any change in
behaviour.

Below is the log of muting and automatic unmute:

(  10.728|   4.983) D: [pulseaudio] protocol-native.c: Client
gnome-settings-daemon changes mute of sink
alsa_output.pci-0000_00_14.2.iec958-stereo.
(  10.728|   0.000) D: [pulseaudio] sink.c: The mute of sink
alsa_output.pci-0000_00_14.2.iec958-stereo changed from no to yes.
(  10.728|   0.000) I: [pulseaudio] module-device-restore.c: Storing
volume/mute for device+port
sink:alsa_output.pci-0000_00_14.2.iec958-stereo:iec958-stereo-output.
(  20.142|   9.413) D: [pulseaudio] core-scache.c: Created sample
"bell-window-system" (#0), 24604 bytes with sample spec s16le 2ch 44100Hz
(  20.142|   0.000) D: [pulseaudio] core-scache.c: Playing sample
"bell-window-system" on "alsa_output.pci-0000_00_14.2.iec958-stereo"
(  20.142|   0.000) D: [pulseaudio] memblockq.c: memblockq requested:
maxlength=24604, tlength=0, base=4, prebuf=1, minreq=1 maxrewind=0
(  20.142|   0.000) D: [pulseaudio] memblockq.c: memblockq sanitized:
maxlength=24604, tlength=24604, base=4, prebuf=4, minreq=4 maxrewind=0
(  20.142|   0.000) D: [pulseaudio] module-stream-restore.c: Not restoring
device for stream sink-input-by-media-role:event, because already set to
'alsa_output.pci-0000_00_14.2.iec958-stereo'.
(  20.142|   0.000) D: [pulseaudio] module-intended-roles.c: Not setting device
for stream bell-window-system, because already set.
(  20.142|   0.000) D: [pulseaudio] sink-input.c: Negotiated format: pcm,
format.sample_format = "\"s16le\""  format.rate = "44100"  format.channels =
"2"  format.channel_map = "\"front-left,front-right\""
(  20.142|   0.000) I: [pulseaudio] module-stream-restore.c: Restoring volume
for sink input sink-input-by-media-role:event.
(  20.142|   0.000) I: [pulseaudio] module-stream-restore.c: Restoring mute
state for sink input sink-input-by-media-role:event.
(  20.142|   0.000) D: [pulseaudio] module-suspend-on-idle.c: Sink
alsa_output.pci-0000_00_14.2.iec958-stereo becomes busy, resuming.
(  20.142|   0.000) D: [pulseaudio] sink.c: Suspend cause of sink
alsa_output.pci-0000_00_14.2.iec958-stereo is 0x0000, resuming
(  20.142|   0.000) D: [pulseaudio] reserve-wrap.c: Successfully acquired
reservation lock on device 'Audio0'
(  20.142|   0.000) I: [alsa-sink-ALC892 Digital] alsa-sink.c: Trying resume...
(  20.143|   0.000) I: [alsa-sink-ALC892 Digital] alsa-util.c: Trying to
disable ALSA period wakeups, using timers only
(  20.143|   0.000) D: [alsa-sink-ALC892 Digital] alsa-util.c: Maximum hw
buffer size is 11888 ms
(  20.143|   0.000) D: [alsa-sink-ALC892 Digital] alsa-util.c: Set buffer size
first (to 88192 samples), period size second (to 44096 samples).
(  20.143|   0.000) I: [alsa-sink-ALC892 Digital] alsa-util.c: ALSA period
wakeups disabled
(  20.143|   0.000) D: [alsa-sink-ALC892 Digital] alsa-sink.c: hwbuf_unused=0
(  20.143|   0.000) D: [alsa-sink-ALC892 Digital] alsa-sink.c: setting
avail_min=87310
(  20.143|   0.000) I: [alsa-sink-ALC892 Digital] alsa-sink.c: Time scheduling
watermark is 20.00ms
(  20.143|   0.000) I: [alsa-sink-ALC892 Digital] alsa-sink.c: Resumed
successfully...
(  20.143|   0.000) D: [pulseaudio] module-suspend-on-idle.c: Sink
alsa_output.pci-0000_00_14.2.iec958-stereo becomes idle, timeout in 5 seconds.
(  20.143|   0.000) I: [alsa-sink-ALC892 Digital] alsa-sink.c: Starting
playback.
(  20.143|   0.000) D: [alsa-sink-ALC892 Digital] ratelimit.c: 612 events
suppressed
(  20.143|   0.000) D: [alsa-sink-ALC892 Digital] alsa-sink.c: Cutting sleep
time for the initial iterations by half.
(  20.143|   0.000) D: [alsa-sink-ALC892 Digital] alsa-sink.c: Cutting sleep
time for the initial iterations by half.
(  20.143|   0.000) D: [pulseaudio] module-suspend-on-idle.c: Sink
alsa_output.pci-0000_00_14.2.iec958-stereo becomes idle, timeout in 5 seconds.
(  20.143|   0.000) D: [pulseaudio] memblockq.c: memblockq requested:
maxlength=33554432, tlength=0, base=4, prebuf=0, minreq=1 maxrewind=0
(  20.143|   0.000) D: [pulseaudio] memblockq.c: memblockq sanitized:
maxlength=33554432, tlength=33554432, base=4, prebuf=0, minreq=4 maxrewind=0
(  20.143|   0.000) I: [pulseaudio] sink-input.c: Created input 0
"bell-window-system" on alsa_output.pci-0000_00_14.2.iec958-stereo with sample
spec s16le 2ch 44100Hz and channel map front-left,front-right
(  20.143|   0.000) I: [pulseaudio] sink-input.c:     media.name =
"bell-window-system"
(  20.143|   0.000) I: [pulseaudio] sink-input.c:     event.id =
"bell-window-system"
(  20.143|   0.000) I: [pulseaudio] sink-input.c:     media.role = "event"
(  20.143|   0.000) I: [pulseaudio] sink-input.c:     application.process.id =
"3056"
(  20.143|   0.000) I: [pulseaudio] sink-input.c:     application.name =
"gnome-terminal-server"
(  20.143|   0.000) I: [pulseaudio] sink-input.c:     event.description =
"Klangereignis"
(  20.143|   0.000) I: [pulseaudio] sink-input.c:     media.filename =
"/usr/share//sounds/freedesktop/stereo/bell.oga"
(  20.143|   0.000) I: [pulseaudio] sink-input.c:     native-protocol.peer =
"UNIX socket client"
(  20.143|   0.000) I: [pulseaudio] sink-input.c:     native-protocol.version =
"32"
(  20.143|   0.000) I: [pulseaudio] sink-input.c:     application.id =
"org.gnome.Shell"
(  20.143|   0.000) I: [pulseaudio] sink-input.c:     application.icon_name =
"start-here"
(  20.143|   0.000) I: [pulseaudio] sink-input.c:     application.language =
"de_DE.UTF-8"
(  20.143|   0.000) I: [pulseaudio] sink-input.c:     window.x11.screen = "0"
(  20.143|   0.000) I: [pulseaudio] sink-input.c:     window.x11.display = ":0"
(  20.143|   0.000) I: [pulseaudio] sink-input.c:     application.process.user
= "*******"
(  20.143|   0.000) I: [pulseaudio] sink-input.c:     application.process.host
= "****"
(  20.143|   0.000) I: [pulseaudio] sink-input.c:    
application.process.binary = "gnome-shell"
(  20.143|   0.000) I: [pulseaudio] sink-input.c:    
application.process.machine_id = "ea36cd1203114403a03e683d7a3e7d3b"
(  20.143|   0.000) I: [pulseaudio] sink-input.c:    
application.process.session_id = "2"
(  20.143|   0.000) I: [pulseaudio] sink-input.c:     window.x11.xid =
"18875453"
(  20.143|   0.000) I: [pulseaudio] sink-input.c:     window.name =
"*******@****: ~"
(  20.143|   0.000) I: [pulseaudio] sink-input.c:     module-stream-restore.id
= "sink-input-by-media-role:event"
(  20.144|   0.000) D: [pulseaudio] core-util.c: posix_madvise() worked fine!
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] alsa-sink.c: Cutting sleep
time for the initial iterations by half.
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] alsa-sink.c: Requested to
rewind 352768 bytes.
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] alsa-sink.c: Limited to
352456 bytes.
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] alsa-sink.c: before: 88114
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] alsa-sink.c: after: 88114
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] alsa-sink.c: Rewound 352456
bytes.
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] sink.c: Processing rewind...
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] source.c: Processing
rewind...
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] sink.c:
alsa_output.pci-0000_00_14.2.iec958-stereo: Found underrun 327920 bytes ago
(24840 bytes ahead in playback buffer)
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] sink.c:
alsa_output.pci-0000_00_14.2.iec958-stereo: Found underrun 327920 bytes ago
(24836 bytes ahead in playback buffer)
(  20.144|   0.000) D: [pulseaudio] core-subscribe.c: Dropped redundant event
due to change event.
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] sink.c:
alsa_output.pci-0000_00_14.2.iec958-stereo: Found underrun 327920 bytes ago
(24808 bytes ahead in playback buffer)
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] sink.c:
alsa_output.pci-0000_00_14.2.iec958-stereo: Found underrun 327920 bytes ago
(24804 bytes ahead in playback buffer)
(  20.144|   0.000) D: [pulseaudio] sink.c: The mute of sink
alsa_output.pci-0000_00_14.2.iec958-stereo changed from yes to no.
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] sink.c:
alsa_output.pci-0000_00_14.2.iec958-stereo: Found underrun 327920 bytes ago
(24800 bytes ahead in playback buffer)
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] alsa-sink.c: Requested to
rewind 352768 bytes.
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] alsa-sink.c: Limited to
352460 bytes.
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] alsa-sink.c: before: 88115
(  20.144|   0.000) I: [pulseaudio] module-device-restore.c: Storing
volume/mute for device+port
sink:alsa_output.pci-0000_00_14.2.iec958-stereo:iec958-stereo-output.
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] alsa-sink.c: after: 88115
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] alsa-sink.c: Rewound 352460
bytes.
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] sink.c: Processing rewind...
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] sink-input.c: Have to rewind
352460 bytes on render memblockq.
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] source.c: Processing
rewind...
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] sink.c:
alsa_output.pci-0000_00_14.2.iec958-stereo: Found underrun 327984 bytes ago
(24772 bytes ahead in playback buffer)
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] sink.c:
alsa_output.pci-0000_00_14.2.iec958-stereo: Found underrun 327984 bytes ago
(24768 bytes ahead in playback buffer)
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] sink.c:
alsa_output.pci-0000_00_14.2.iec958-stereo: Found underrun 327984 bytes ago
(24764 bytes ahead in playback buffer)
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] sink.c:
alsa_output.pci-0000_00_14.2.iec958-stereo: Found underrun 327984 bytes ago
(24760 bytes ahead in playback buffer)
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] sink.c:
alsa_output.pci-0000_00_14.2.iec958-stereo: Found underrun 327984 bytes ago
(24760 bytes ahead in playback buffer)
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] sink.c:
alsa_output.pci-0000_00_14.2.iec958-stereo: Found underrun 327984 bytes ago
(24756 bytes ahead in playback buffer)
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] sink.c:
alsa_output.pci-0000_00_14.2.iec958-stereo: Found underrun 327984 bytes ago
(24752 bytes ahead in playback buffer)
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] sink.c:
alsa_output.pci-0000_00_14.2.iec958-stereo: Found underrun 327984 bytes ago
(24748 bytes ahead in playback buffer)
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] sink.c:
alsa_output.pci-0000_00_14.2.iec958-stereo: Found underrun 327984 bytes ago
(24744 bytes ahead in playback buffer)
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] sink.c:
alsa_output.pci-0000_00_14.2.iec958-stereo: Found underrun 327984 bytes ago
(24740 bytes ahead in playback buffer)
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] sink.c:
alsa_output.pci-0000_00_14.2.iec958-stereo: Found underrun 327984 bytes ago
(24736 bytes ahead in playback buffer)
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] sink.c:
alsa_output.pci-0000_00_14.2.iec958-stereo: Found underrun 327984 bytes ago
(24736 bytes ahead in playback buffer)
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] sink.c:
alsa_output.pci-0000_00_14.2.iec958-stereo: Found underrun 327984 bytes ago
(24732 bytes ahead in playback buffer)
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] sink.c:
alsa_output.pci-0000_00_14.2.iec958-stereo: Found underrun 327984 bytes ago
(24732 bytes ahead in playback buffer)
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] sink.c:
alsa_output.pci-0000_00_14.2.iec958-stereo: Found underrun 327984 bytes ago
(24728 bytes ahead in playback buffer)
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] sink.c:
alsa_output.pci-0000_00_14.2.iec958-stereo: Found underrun 327984 bytes ago
(24728 bytes ahead in playback buffer)
(  20.144|   0.000) D: [alsa-sink-ALC892 Digital] sink.c:
alsa_output.pci-0000_00_14.2.iec958-stereo: Found underrun 327984 bytes ago
(24724 bytes ahead in playback buffer)
(  20.146|   0.001) D: [alsa-sink-ALC892 Digital] sink.c:
alsa_output.pci-0000_00_14.2.iec958-stereo: Found underrun 327984 bytes ago
(24496 bytes ahead in playback buffer)
(  20.146|   0.000) D: [alsa-sink-ALC892 Digital] sink.c:
alsa_output.pci-0000_00_14.2.iec958-stereo: Found underrun 327984 bytes ago
(24488 bytes ahead in playback buffer)
(  20.146|   0.000) D: [alsa-sink-ALC892 Digital] sink.c:
alsa_output.pci-0000_00_14.2.iec958-stereo: Found underrun 327984 bytes ago
(24484 bytes ahead in playback buffer)
(  20.146|   0.000) D: [alsa-sink-ALC892 Digital] sink.c:
alsa_output.pci-0000_00_14.2.iec958-stereo: Found underrun 327984 bytes ago
(24480 bytes ahead in playback buffer)
(  20.729|   0.583) I: [pulseaudio] module-device-restore.c: Synced.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20171108/8ae6b5da/attachment-0001.html>


More information about the pulseaudio-bugs mailing list