Commit 28a7211d authored by Guido Gunther's avatar Guido Gunther
Browse files

media-keys: Suppress OSD title on phones as well

Those usually get port names from UCM. Add common port names from
there.
parent cbb1dfb9
From: =?utf-8?q?Guido_G=C3=BCnther?= <agx@sigxcpu.org>
Date: Thu, 23 Sep 2021 13:37:56 +0200
Subject: media-keys: Suppress OSD title on phones as well
Those usually get port names from UCM. Add common port names from
there.
---
plugins/media-keys/gsd-media-keys-manager.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/plugins/media-keys/gsd-media-keys-manager.c b/plugins/media-keys/gsd-media-keys-manager.c
index 42fa14d..ff55649 100644
--- a/plugins/media-keys/gsd-media-keys-manager.c
+++ b/plugins/media-keys/gsd-media-keys-manager.c
@@ -1415,6 +1415,8 @@ show_volume_osd (GsdMediaKeysManager *manager,
port = gvc_mixer_stream_get_port (stream);
if (g_strcmp0 (gvc_mixer_stream_get_form_factor (stream), "internal") != 0 ||
(port != NULL &&
+ g_strcmp0 (port->port, "[Out] Speaker") != 0 &&
+ g_strcmp0 (port->port, "[Out] Handset") != 0 &&
g_strcmp0 (port->port, "analog-output-speaker") != 0 &&
g_strcmp0 (port->port, "analog-output") != 0)) {
device = gvc_mixer_control_lookup_device_from_stream (priv->volume, stream);
debian/01_debianize_xrdb.patch
debian/meson.build-Lower-polkit-requirement.patch
media-keys-Suppress-OSD-title-on-phones-as-well.patch
Supports Markdown
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