From 7acb4c2a05be4cfb74969333fb26741538013eb3 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 9 Dec 2009 12:52:29 -0600 Subject: [PATCH] Add Microphone volume test script --- test/set-mic-volume | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 test/set-mic-volume diff --git a/test/set-mic-volume b/test/set-mic-volume new file mode 100755 index 00000000..16922093 --- /dev/null +++ b/test/set-mic-volume @@ -0,0 +1,18 @@ +#!/usr/bin/python + +import sys +import dbus + +bus = dbus.SystemBus() + +manager = dbus.Interface(bus.get_object('org.ofono', '/'), + 'org.ofono.Manager') + +properties = manager.GetProperties() + +path = properties["Modems"][0] + +cv = dbus.Interface(bus.get_object('org.ofono', path), + 'org.ofono.CallVolume') + +cv.SetProperty("MicrophoneVolume", dbus.Byte(int(sys.argv[1])))