Add Microphone volume test script

This commit is contained in:
Denis Kenzior 2009-12-09 12:52:29 -06:00
parent 62ba3b30d2
commit 7acb4c2a05
1 changed files with 18 additions and 0 deletions

18
test/set-mic-volume Executable file
View File

@ -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])))