Bug 357214 - Volume control affects all inputs
Summary: Volume control affects all inputs
Status: RESOLVED FIXED
Alias: None
Product: plasma-pa
Classification: Plasma
Component: general (show other bugs)
Version: 5.4.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-27 13:24 UTC by Stefanos Harhalakis
Modified: 2016-04-05 14:08 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefanos Harhalakis 2015-12-27 13:24:13 UTC
Hi there,

I tested plasma-pa and while it looks nice, I believe that there are two issues: OSD and volume control. This bug report is about the latter.

In short, the issue is that when you adjust the volume with the keyboard's volume keys, the volume gets adjusted for all inputs (in contrast with kmix where you can select a master channel). I find this to be an issue for any setup that has multiple outputs.

My setup is as follows:
* Pulseaudio
* 3 outputs: Onboard sound card, USB sound card, Bluetooth headphones
* Pulseaudio is configured to have a simultaneous output
* Everything uses the simultaneous output by default
The above mean that there are 4 outputs: 3 plus the simultaneous one.

I'm setting up the volume individually to relatively adjust them, or set them to the maximum to preserve quality. I then control the volume with the master channel (simultaneous output), which is 100% feasible with kmix, but impossible with plasma-pa.

But it gets worse: If I mute one of the outputs (which I do, because one has a pair of cabled headphones connected and I don't want them playing anything when I use the bluetooth ones) and I use the keyboard's volume control keys, it unmutes the output.

As such, please consider making the volume control keys only affect one output and not all of them. I.e. add an option for the master channel/output a'la kmix.

Thanks,
Stefanos


Reproducible: Always

Steps to Reproduce:
Use the keyboard to adjust the volume

Actual Results:  
All outputs are adjusted

Expected Results:  
Only one output should be affected
Comment 1 David Rosca 2016-04-05 12:53:36 UTC
Git commit 1e95d867a6296ca4b3fa8f021e82b0e6feec6edd by David Rosca.
Committed on 05/04/2016 at 12:37.
Pushed by drosca into branch 'master'.

Use default output device when changing global volume

Global shortcuts now changes volume of default output device
only, instead of all output devices. Applet icon now displays
volume of default output device only, instead of first output device
in list.

Changing volume with wheel and muting with middle click on applet icon
no longer shows OSD.

Added tooltip subtext for applet showing volume level and name of
default output device.
Related: bug 352370, bug 352727

Differential Revision: https://phabricator.kde.org/D1289

M  +4    -4    applet/contents/code/icon.js
M  +1    -36   applet/contents/ui/ListItemBase.qml
M  +41   -22   applet/contents/ui/main.qml
M  +10   -9    src/pulseaudio.cpp
M  +7    -2    src/pulseaudio.h
M  +5    -1    src/qml/plugin.cpp

http://commits.kde.org/plasma-pa/1e95d867a6296ca4b3fa8f021e82b0e6feec6edd
Comment 2 Rex Dieter 2016-04-05 14:08:27 UTC
Boo, does this now mean that scroll up/down in applet will no longer change volume on my usb headset (ie, not default output device)?

If so, that's too bad, and gives a regression in behavior for this use-case :(