Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/arduino/app_peripherals/speaker/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def _list_usb_speakers() -> list:
desc_str = desc[1] if isinstance(desc, tuple) else str(desc)
if "usb" in card_name.lower() or "usb" in desc_str.lower():
# Find all plughw devices for this card
for dev in alsaaudio.pcms(alsaaudio.PCM_CAPTURE):
for dev in alsaaudio.pcms(alsaaudio.PCM_PLAYBACK):
if dev.startswith("plughw:CARD=") and f"CARD={card_name}" in dev:
usb_devices.append(dev)
except Exception as e:
Expand Down