summaryrefslogtreecommitdiff
path: root/AudioManagerPoC/resources/scripts/getvolumes_val.sh
diff options
context:
space:
mode:
Diffstat (limited to 'AudioManagerPoC/resources/scripts/getvolumes_val.sh')
-rwxr-xr-xAudioManagerPoC/resources/scripts/getvolumes_val.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/AudioManagerPoC/resources/scripts/getvolumes_val.sh b/AudioManagerPoC/resources/scripts/getvolumes_val.sh
new file mode 100755
index 0000000..f44cb74
--- /dev/null
+++ b/AudioManagerPoC/resources/scripts/getvolumes_val.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+# SPDX license identifier: MPL-2.0
+#
+# Copyright (C) 2011-2014, Wind River Systems
+# Copyright (C) 2014, GENIVI Alliance
+#
+# This file is part of GENIVI AudioManager PoC.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License (MPL), v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# For further information see http://www.genivi.org/.
+#
+# List of changes:
+#
+# 21.09.2014, Adrian Scarlat, First version of the code;
+# Added Copyright and License information;
+#
+
+dbus-send --session --print-reply --dest=org.genivi.audiomanager /org/genivi/audiomanager/commandinterface org.genivi.audiomanager.commandinterface.GetListMainSinks | awk '/struct/ {getline; FS="\""; getline;NAME=$2; getline; getline; getline; getline;FS=" "; getline;print NAME","$2}'