Show only available profiles in Pulseaudio KCM
ClosedPublic

Authored by nicolasfella on Jan 5 2018, 1:35 AM.

Details

Summary

Pulseaudio tells us whether a profile is available or not. Right now, all profiles are shown. This patch limits the selection to the available ones, making it a bit easier to choose the right one.

Test Plan

Compare to output of 'pactl show cards'. Add and remove audio sinks.

Diff Detail

Repository
R115 Plasma Audio Volume Applet
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
nicolasfella created this revision.Jan 5 2018, 1:35 AM
Restricted Application added a subscriber: plasma-devel. · View Herald TranscriptJan 5 2018, 1:35 AM
nicolasfella requested review of this revision.Jan 5 2018, 1:35 AM
nicolasfella planned changes to this revision.Jan 5 2018, 2:57 PM

Filtering gives us wrong indices

drosca requested changes to this revision.Jan 5 2018, 4:19 PM

I'm ok with the part of the patch that moves availability property from Port to Profile. Adding availableProfiles is not a good way to achieve what you want though. Profiles should be filtered on QML side.

I'd like to have this in, do you think you could finish it? If not, I will take over.

Feel free to take over, I can't promise to finish it anytime soon

This revision was not accepted when it landed; it landed in state Changes Planned.Jan 27 2018, 6:03 PM
This revision was automatically updated to reflect the committed changes.
broulik added a subscriber: broulik.Feb 3 2018, 8:46 PM

This breaks the context menu of output devices:

org.kde.plasma.volume/contents/ui/ListItemBase.qml:315: ReferenceError: Port is not defined

This breaks the context menu of output devices:

org.kde.plasma.volume/contents/ui/ListItemBase.qml:315: ReferenceError: Port is not defined

see D10280