works for alsa

This commit is contained in:
Ertuğrul Erata
2015-07-24 01:07:34 +03:00
parent 0ee9cfc448
commit 1a64058d81
18 changed files with 918 additions and 0 deletions
@@ -0,0 +1,20 @@
from comar.service import *
import os
serviceType = "local"
serviceDefault = "on"
serviceDesc = _({"en": "Store/Restore Mixer Levels",
"tr": "Karıştırıcı Seviyeleri Yönetimi"})
@synchronized
def start():
# Store mixer levels
os.system("/sbin/alsactl restore")
@synchronized
def stop():
# Store mixer levels
os.system("/sbin/alsactl store")
def status():
return True