From: Jaroslav Kysela Date: Tue, 27 Mar 2018 08:19:16 +0000 (+0200) Subject: hctltest2: use 'hw:0' device instead 'default' X-Git-Tag: v1.1.6~6 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=771345d949f4029369afdf5bf393b3c6f7e9ca23;p=alsa-python.git hctltest2: use 'hw:0' device instead 'default' Signed-off-by: Jaroslav Kysela --- diff --git a/test/hctltest2.py b/test/hctltest2.py index f34ee63..d16873e 100755 --- a/test/hctltest2.py +++ b/test/hctltest2.py @@ -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)