mirror of
https://gitee.com/open-loongarch/buildroot-2024.08.git
synced 2026-10-28 14:07:12 +08:00
first commit: base 2024.08
Signed-off-by: maoxiaochuan <maoxiaochuan@loongson.cn>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#! /usr/bin/env python3
|
||||
|
||||
from pyalsa import alsacard
|
||||
|
||||
print('asoundlibVersion:', alsacard.asoundlib_version())
|
||||
print('cardLoad:', alsacard.card_load(0))
|
||||
print('cardList:', alsacard.card_list())
|
||||
print('deviceNameHint for all cards:')
|
||||
print(alsacard.device_name_hint(-1, "pcm"))
|
||||
for card in alsacard.card_list():
|
||||
print('deviceNameHint for card #%i:' % card)
|
||||
print(alsacard.device_name_hint(card, "pcm"))
|
||||
Reference in New Issue
Block a user