]> git.alsa-project.org Git - alsa-python.git/commitdiff
hctltest2: use 'hw:0' device instead 'default'
authorJaroslav Kysela <perex@perex.cz>
Tue, 27 Mar 2018 08:19:16 +0000 (10:19 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 27 Mar 2018 08:19:43 +0000 (10:19 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
test/hctltest2.py

index f34ee63862affe03cc044230bcbf948310f8684d..d16873e3b49564cc2795197b40c08921fa217fbc 100755 (executable)
@@ -34,7 +34,7 @@ class MyElementEvent:
                print('CALLBACK (CLASS)! [%s] %s:%i' % (parse_event_mask(events), element.name, element.index))
                print('  ', value.get_tuple(info.type, info.count))
 
-hctl = alsahcontrol.HControl(mode=alsahcontrol.open_mode['NONBLOCK'])
+hctl = alsahcontrol.HControl(name='hw:0', mode=alsahcontrol.open_mode['NONBLOCK'])
 list = hctl.list()
 element1 = alsahcontrol.Element(hctl, list[0][1:])
 element1.set_callback(event_callback)