1#!/usr/bin/python 2# -*- coding: utf-8 -*- 3# -*- Python -*- 4 5alsacode('common') 6 7CONTROLS = { 8'Headphone Playback Switch//0//'+MIXERS:["Headphone", 0, 1, "StandardElement"], 9'IEC958 Playback Switch//0//'+MIXERS:["IEC958", 0, 2, "StandardElement"], 10'Front Playback Volume//0//'+MIXERS:["Front", 0, 3, "StandardElement"], 11'Front Playback Switch//0//'+MIXERS:["Front", 0, 3, "StandardElement"], 12'Surround Playback Volume//0//'+MIXERS:["Surround", 0, 4, "StandardElement"], 13'Surround Playback Switch//0//'+MIXERS:["Surround", 0, 4, "StandardElement"], 14'Center Playback Volume//0//'+MIXERS:["Center", 0, 5, "StandardElement"], 15'Center Playback Switch//0//'+MIXERS:["Center", 0, 5, "StandardElement"], 16'LFE Playback Volume//0//'+MIXERS:["LFE", 0, 6, "StandardElement"], 17'LFE Playback Switch//0//'+MIXERS:["LFE", 0, 6, "StandardElement"], 18'Line Playback Volume//0//'+MIXERS:["Line", 0, 7, "StandardElement"], 19'Line Playback Switch//0//'+MIXERS:["Line", 0, 7, "StandardElement"], 20'CD Playback Volume//0//'+MIXERS:["CD", 0, 8, "StandardElement"], 21'CD Playback Switch//0//'+MIXERS:["CD", 0, 8, "StandardElement"], 22'Mic Playback Volume//0//'+MIXERS:["Mic", 0, 9, "StandardElement"], 23'Mic Playback Switch//0//'+MIXERS:["Mic", 0, 9, "StandardElement"], 24'PC Speaker Playback Volume//0//'+MIXERS:["PC Speaker", 0, 10, "StandardElement"], 25'PC Speaker Playback Switch//0//'+MIXERS:["PC Speaker", 0, 10, "StandardElement"], 26'Front Mic Playback Volume//0//'+MIXERS:["Front Mic", 0, 11, "StandardElement"], 27'Front Mic Playback Switch//0//'+MIXERS:["Front Mic", 0, 11, "StandardElement"], 28'Capture Switch//0//'+MIXERS:["Capture", 0, 12, "StandardElement"], 29'Capture Volume//0//'+MIXERS:["Capture", 0, 12, "StandardElement"], 30'Capture Switch//1//'+MIXERS:["Capture", 1, 13, "StandardElement"], 31'Capture Volume//1//'+MIXERS:["Capture", 1, 13, "StandardElement"], 32'Capture Switch//2//'+MIXERS:["Capture", 2, 14, "StandardElement"], 33'Capture Volume//2//'+MIXERS:["Capture", 2, 14, "StandardElement"], 34'Input Source//0//'+MIXERS:["Input Source", 0, 15, "EnumElementCapture"], 35'Input Source//1//'+MIXERS:["Input Source", 1, 16, "EnumElementCapture"], 36'Input Source//2//'+MIXERS:["Input Source", 2, 17, "EnumElementCapture"], 37} 38 39def event(evmask, helem, melem): 40 return eventHandler(evmask, helem, melem) 41 42init() 43