diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2017-12-19 22:39:05 -0800 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2017-12-21 19:58:33 +0000 |
commit | 47695d79a938eb52c116062c218147049b994246 (patch) | |
tree | 382ee4e545cb114360f2add30ba15087422e66f5 /app/paclient.cpp | |
parent | bd9276be767d5ee09f46b71c90c92b9e12f63dfe (diff) |
mixer: add clearer pulseaudio control namingeel_5.0.3eel_5.0.2eel_5.0.1eel_5.0.0eel_4.99.5eel/5.0.3eel/5.0.2eel/5.0.1eel/5.0.0eel/4.99.55.0.35.0.25.0.15.0.04.99.5
Use the role name for the control name in the Mixer UI instead
of overall vague control description
Bug-AGL: SPEC-1196
Change-Id: I34b5c3378fa3bca7464067490907f9ae0adb6364
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'app/paclient.cpp')
-rw-r--r-- | app/paclient.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/app/paclient.cpp b/app/paclient.cpp index afe0fad..bd53cde 100644 --- a/app/paclient.cpp +++ b/app/paclient.cpp @@ -104,8 +104,12 @@ void get_source_list_cb(pa_context *c, if (!eol) { self->addOneControlState(C_SOURCE, i->index, &i->volume); for (chan = 0; chan < i->channel_map.channels; chan++) { - emit self->controlAdded(i->index, QString(i->description), C_SOURCE, chan, - channel_position_string[i->channel_map.map[chan]], + // NOTE: hide input control + if (QString(i->name).endsWith("monitor")) + continue; + + emit self->controlAdded(i->index, QString(i->name), QString(i->description), + C_SOURCE, chan, channel_position_string[i->channel_map.map[chan]], i->volume.values[chan]); } } @@ -129,9 +133,9 @@ void get_sink_list_cb(pa_context *c, if(!eol) { self->addOneControlState(C_SINK, i->index, &i->volume); for (chan = 0; chan < i->channel_map.channels; chan++) { - emit self->controlAdded(i->index, QString(i->description), C_SINK, chan, - channel_position_string[i->channel_map.map[chan]], - i->volume.values[chan]); + emit self->controlAdded(i->index, QString(i->name), QString(i->description), + C_SINK, chan, channel_position_string[i->channel_map.map[chan]], + i->volume.values[chan]); } } } |