From f8fa47123887452f48d0b523289ca6990c8a2e25 Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Fri, 15 May 2026 19:22:41 -0400 Subject: Devices tab: per-sink/source port switching Add Output port / Input port dropdowns in the Devices tab for any sink or source that has 2+ ports. Selecting a port calls pa_context_set_sink/source_port_by_index live. Active port selection updates in-place when PA reports a port change externally. Co-Authored-By: Claude Sonnet 4.6 --- TODO | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'TODO') diff --git a/TODO b/TODO index c53933e..1234388 100644 --- a/TODO +++ b/TODO @@ -151,11 +151,9 @@ Run through this before any release / major refactor. ### To do - [x] Devices tab — PA card profile switcher (dropdown per card, set active profile) -- [ ] Switches tab (like KMix "Switches" view) - Enumerate PA card profiles + ports (pa_context_get_card_info_list). - Show as checkboxes/comboboxes: active profile, port retasking, IEC958 enable, - Auto-Mute Mode, etc. May need ALSA fallback for raw HDA switches not - surfaced by PulseAudio (snd-hda-intel ctl elements via alsa-lib). +- [x] Port switching in Devices tab — Output port / Input port dropdowns per card + (pa_context_set_sink_port_by_index / set_source_port_by_index); only shown + when a sink/source has 2+ ports. Active port updates in-place on PA events. - [ ] Profiles / sources management tab List all PA sources and sinks with their active profile (e.g. "analog-stereo", "hdmi-stereo-extra1"). Allow switching profiles via dropdown. -- cgit v1.2.3