We would like to stream multiple analogue microphone inputs through Raspberry Pi.

We have a following configuration:

  • Raspberry Pi 3B/4
  • 2 identical USB audio cards

As the Linux kernel might order the USB cards randomly during bootup, we cannot really rely on the arecord -l output. The ls -la /proc/asound/cards does not help to distinguish by device ID either.

How to identify USB sound cards to avoid this situation?