Repository navigation
fix #3863 and allow user to disable / enable audio cards - #4019
Conversation
|
/claude review |
Claude reviewOne bug: some cards can be disabled but never re-enabled.
Checked: AudioService output choices, card profile switching and disabled-card detection, AudioPortSelector, AudioOutputDetail, AudioTab (confirm dialog, row slots, hidden/shown filters), i18n terms, deprecated shims. Model: claude-opus-5-5. |
|
Fixed the bug found by claude in commit 43669e1 |
|
/claude review |
Claude reviewNo issues found. The earlier UCM/Bluetooth re-enable bug is fixed in 43669e1. Checked: AudioService (output choices, card parsing with sink counts, disabled-card detection, id-based sink-to-card matching, setCardProfile, pending card switch), AudioPortSelector, AudioOutputDetail, AudioTab (disable/enable flow, confirm overlay, shown/hidden filters, card refresh on device-set change), i18n terms, deprecated shims, idle cost. Model: claude-opus-5-5. |
Description
As mentioned in Issue #3863 some users saw more devices inside QuickSetting than in the settings audio page. After investigation I found out that the devices that users see are not real devices but
switchableOutputPortsavailable for different pipewire nodes.Cause: the system had a repeater under the nodes list for
switchableOutputPortswhere if a user clicked one the parent node for that output port had it's port switched.Fix: combine
switchableOutputPortsandsink portsinto a single list and selectable inside of the sametunepopupThis merge tackles a regression that appeared because of this design choice: cards that were disabled no longer have the ability of being re-enabled
Cause: by removing the
switchableOutputPortsrows disabled cards no longer appeared and no longer had the ability to switch onFix: add a new section that looks like the
hidden sinksin theAudiosettings page that allows the user to disable/enable audio cardsThe code was written with Claude Code but it was reviewed, understood and modified by me.
Type of change
Related issues
#3863
Screenshots / video
Issue #3863
Now the audio QuickSettings shows

switchableOutputPortstogether with normal output sinks:After this merge

switchableOutputPortswill be available in thetunesection of a device:Enable/Disable audio cards
Now there is no way for the user to disable an audio card but with this merge the user will be able to do it through the settings tab:
Checklist
I18n.tr()with translator context, reusing existing terms where possiblemake fmt, added/updated tests,make testpasses, andgo mod tidyis cleanmake lint-qmlwith no new warnings