Skip to content

Commit 771345d

Browse files
committed
hctltest2: use 'hw:0' device instead 'default'
Signed-off-by: Jaroslav Kysela <[email protected]>
1 parent bbf35c3 commit 771345d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/hctltest2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def callback(self, element, events):
3434
print('CALLBACK (CLASS)! [%s] %s:%i' % (parse_event_mask(events), element.name, element.index))
3535
print(' ', value.get_tuple(info.type, info.count))
3636

37-
hctl = alsahcontrol.HControl(mode=alsahcontrol.open_mode['NONBLOCK'])
37+
hctl = alsahcontrol.HControl(name='hw:0', mode=alsahcontrol.open_mode['NONBLOCK'])
3838
list = hctl.list()
3939
element1 = alsahcontrol.Element(hctl, list[0][1:])
4040
element1.set_callback(event_callback)

0 commit comments

Comments
 (0)