• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/python
2#  -*- coding: utf-8 -*-
3#  -*- Python -*-
4
5from os.path import dirname
6from pyalsa.alsacontrol import Control
7from sys import path
8path.insert(0, dirname(__file__))
9
10def alsacode(module):
11  execfile(dirname(__file__)+'/'+module+'.py', globals())
12
13ctl = Control(device)
14info = ctl.cardInfo()
15#mixername = info['mixername']
16components = info['components']
17del ctl
18
19if components.find('HDA:') >= 0:
20  module = 'hda'
21else:
22  raise ValueError, "Mixer for this hardware is not implemented in python"
23
24alsacode(module)
25