S/PDIF output goes to high volume when headphones are plugged in instead of being muted
I have speakers connected to the S/PDIF output. This uses Profile Digital Stereo (IEC958) Output. When I plug in headphones, it correctly switches to Port: Headphones, Profile: Analog Stereo Duplex. The problem is that the speaker's volume is set to high volume (much louder than before) instead of being muted. The sound over headphones works fine. If in this state I change the volume (KDE volume control) it only changes the headphone volume. AFAICS the speaker (S/PDIF) sink is gone completely and I have no way to mute it.
State without headphones
$ wpctl status
PipeWire 'pipewire-0' [0.3.71, ce@desktop, cookie:540170475]
└─ Clients:
32. .xdg-desktop-portal-wrapped [0.3.71, ce@desktop, pid:1422]
33. WirePlumber [0.3.71, ce@desktop, pid:1573]
34. WirePlumber [export] [0.3.71, ce@desktop, pid:1573]
47. pipewire [0.3.71, ce@desktop, pid:1835]
48. Plasma PA [0.3.71, ce@desktop, pid:160283]
49. Signal Calling [0.3.71, ce@desktop, pid:2228]
57. libcanberra [0.3.71, ce@desktop, pid:160283]
58. Firefox [0.3.71, ce@desktop, pid:2302]
68. wpctl [0.3.71, ce@desktop, pid:277446]
83. Plasma PA [0.3.71, ce@desktop, pid:241353]
Audio
├─ Devices:
│ 40. GP106 High Definition Audio Controller [alsa]
│ 41. Built-in Audio [alsa]
│
├─ Sinks:
│ * 60. Built-in Audio Digital Stereo (IEC958) [vol: 0.49]
│
├─ Sink endpoints:
│
├─ Sources:
│ 42. Built-in Audio Analog Stereo [vol: 1.00]
│
├─ Source endpoints:
│
└─ Streams:
59. Firefox
62. output_FR > Plasma PA:input_FR [init]
63. output_FL > ALC898 Digital:playback_FL [init]
71. Plasma PA
50. monitor_FL
65. input_FL < Firefox:output_FL [init]
70. input_FR < Firefox:output_FR [init]
72. monitor_FR
78. Firefox
52. output_FR > ALC898 Digital:playback_FR [active]
69. output_FL > ALC898 Digital:playback_FL [active]
Video
├─ Devices:
│
├─ Sinks:
│
├─ Sink endpoints:
│
├─ Sources:
│
├─ Source endpoints:
│
└─ Streams:
Settings
└─ Default Configured Node Names:
State with headphones
$ wpctl status
PipeWire 'pipewire-0' [0.3.71, ce@desktop, cookie:540170475]
└─ Clients:
32. .xdg-desktop-portal-wrapped [0.3.71, ce@desktop, pid:1422]
33. WirePlumber [0.3.71, ce@desktop, pid:1573]
34. WirePlumber [export] [0.3.71, ce@desktop, pid:1573]
47. pipewire [0.3.71, ce@desktop, pid:1835]
48. Plasma PA [0.3.71, ce@desktop, pid:160283]
49. Signal Calling [0.3.71, ce@desktop, pid:2228]
57. libcanberra [0.3.71, ce@desktop, pid:160283]
58. Firefox [0.3.71, ce@desktop, pid:2302]
68. wpctl [0.3.71, ce@desktop, pid:278302]
83. Plasma PA [0.3.71, ce@desktop, pid:241353]
Audio
├─ Devices:
│ 40. GP106 High Definition Audio Controller [alsa]
│ 41. Built-in Audio [alsa]
│
├─ Sinks:
│ * 67. Built-in Audio Analog Stereo [vol: 0.12]
│
├─ Sink endpoints:
│
├─ Sources:
│ 53. Built-in Audio Analog Stereo [vol: 1.00]
│
├─ Source endpoints:
│
└─ Streams:
59. Firefox
62. output_FR > ALC898 Analog:playback_FR [init]
63. output_FL > ALC898 Analog:playback_FL [init]
71. Plasma PA
50. monitor_FL
65. input_FL < Firefox:output_FL [init]
70. input_FR < Firefox:output_FR [init]
72. monitor_FR
78. Firefox
52. output_FR > ALC898 Analog:playback_FR [init]
69. output_FL > ALC898 Analog:playback_FL [init]
Video
├─ Devices:
│
├─ Sinks:
│
├─ Sink endpoints:
│
├─ Sources:
│
├─ Source endpoints:
│
└─ Streams:
Settings
└─ Default Configured Node Names:
Debug Log
A debug log of wireplumber startup and when plugging in headphones. debug_log_of_wireplumber_with_startup_and_headphone_plugging_in
Versions
$ wireplumber -v
wireplumber
Compiled with libwireplumber 0.4.14
Linked with libwireplumber 0.4.14
$ pipewire -V
pipewire
Compiled with libpipewire 0.3.71
Linked with libpipewire 0.3.71
$ uname -a
Linux desktop 6.1.60 #1-NixOS SMP PREEMPT_DYNAMIC Wed Oct 25 10:03:17 UTC 2023 x86_64 GNU/Linux
Operating System: NixOS 23.05
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.10
Kernel Version: 6.1.60 (64-bit)
Graphics Platform: Wayland
Graphics Processor: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2