Unverified Commit 5dc7cca5 authored by Stefanos Harhalakis's avatar Stefanos Harhalakis Committed by David Rosca

Don't ignore default virtual devices

Ignoring virtual PA devices for volume control results in ignoring the
"Simultaneous output" devices. This makes it impossible to control them
with the volume keys, which is not what the user expects. As a workaround,
prefer not to ignore virtual devices that are marked as default.

Reviewers: broulik, drosca

Reviewed By: drosca

Subscribers: filipf, ngraham, cfeck, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D17784
parent a629c625
......@@ -297,7 +297,8 @@ Sink *SinkModel::findPreferredSink() const
QMapIterator<quint32, Sink *> it(context()->sinks().data());
while (it.hasNext()) {
if (it.value()->isVirtualDevice() || it.value()->state() != state) {
if ((it.value()->isVirtualDevice() && !it.value()->isDefault())
|| it.value()->state() != state) {
if (!ret) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment