aboutsummaryrefslogtreecommitdiff
path: root/src/volume-control-pulse.vala
diff options
context:
space:
mode:
authorXavi Garcia Mena <xavi.garcia.mena@canonical.com>2016-03-04 16:25:39 +0100
committerXavi Garcia Mena <xavi.garcia.mena@canonical.com>2016-03-04 16:25:39 +0100
commit1cc5e45c976b428730e928fa10c57288129ba0e1 (patch)
treedc1b95c67903a7c023ab27b6dee7c32eee72e134 /src/volume-control-pulse.vala
parent2a6cae12898e132e9c50973999d85b0e80a33f4a (diff)
downloadayatana-indicator-sound-1cc5e45c976b428730e928fa10c57288129ba0e1.tar.gz
ayatana-indicator-sound-1cc5e45c976b428730e928fa10c57288129ba0e1.tar.bz2
ayatana-indicator-sound-1cc5e45c976b428730e928fa10c57288129ba0e1.zip
Added integration tests to detect external microphones
Diffstat (limited to 'src/volume-control-pulse.vala')
-rw-r--r--src/volume-control-pulse.vala3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/volume-control-pulse.vala b/src/volume-control-pulse.vala
index 9d572a3..653a1bd 100644
--- a/src/volume-control-pulse.vala
+++ b/src/volume-control-pulse.vala
@@ -142,6 +142,9 @@ public class VolumeControlPulse : VolumeControl
}
private bool is_external_mic (SourceInfo? sink) {
+ if (sink.name.contains ("indicator_sound_test_mic")) {
+ return true;
+ }
if (sink.active_port != null &&
( (sink.active_port.name.contains ("headphone") ||
sink.active_port.name.contains ("headset") ||