Files
main/hardware/sound/alsa-utils/comar/service.py
T
Ertuğrul Erata 1a64058d81 works for alsa
2015-07-24 01:07:34 +03:00

21 lines
413 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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