Skip to content

Instantly share code, notes, and snippets.

@nickolai
Created April 6, 2021 22:53
Show Gist options
  • Save nickolai/e1118602977542504e20da55e43632a2 to your computer and use it in GitHub Desktop.
Save nickolai/e1118602977542504e20da55e43632a2 to your computer and use it in GitHub Desktop.
Poking around the soundcards with a stick
user@pc:~$ cd /proc/asound/
user@pc:/proc/asound$ ls -alh
total 0
dr-xr-xr-x 23 root root 0 мар 25 10:03 .
dr-xr-xr-x 371 root root 0 мар 25 10:03 ..
lrwxrwxrwx 1 root root 5 апр 7 01:29 C920 -> card3
dr-xr-xr-x 9 root root 0 апр 7 01:28 card0
dr-xr-xr-x 22 root root 0 апр 7 01:29 card1
dr-xr-xr-x 9 root root 0 апр 6 23:04 card2
dr-xr-xr-x 8 root root 0 апр 7 01:29 card3
-r--r--r-- 1 root root 0 апр 7 01:29 cards
-r--r--r-- 1 root root 0 апр 7 01:29 devices
-r--r--r-- 1 root root 0 апр 7 01:29 hwdep
lrwxrwxrwx 1 root root 5 апр 7 01:29 Intel -> card0
-r--r--r-- 1 root root 0 апр 7 01:29 modules
lrwxrwxrwx 1 root root 5 апр 7 01:29 NVidia -> card1
dr-xr-xr-x 4 root root 0 апр 7 01:29 oss
-r--r--r-- 1 root root 0 апр 7 01:29 pcm
dr-xr-xr-x 6 root root 0 апр 7 01:29 seq
-r--r--r-- 1 root root 0 апр 7 01:29 timers
lrwxrwxrwx 1 root root 5 апр 7 01:29 USB -> card2
-r--r--r-- 1 root root 0 апр 7 01:29 version
user@pc:/proc/asound$ cat cards
0 [Intel ]: HDA-Intel - HDA Intel
HDA Intel at 0xf9ff8000 irq 30
1 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0xfbcfc000 irq 17
2 [USB ]: USB-Audio - E-MU Tracker Pre | USB
E-MU Systems, Inc. E-MU Tracker Pre | USB at usb-0000:00:1d.7-4.1.1, high speed
3 [C920 ]: USB-Audio - HD Pro Webcam C920
HD Pro Webcam C920 at usb-0000:00:1d.7-4.1.2, high speed
user@pc:/proc/asound$ cat /proc/asound/card0/codec#0 | grep rates
rates [0x7ff]: 8000 11025 16000 22050 32000 44100 48000 88200 96000 176400 192000
rates [0x7e0]: 44100 48000 88200 96000 176400 192000
rates [0x7e0]: 44100 48000 88200 96000 176400 192000
user@pc:/proc/asound$ cat /proc/asound/card1/codec#0 | grep rates
rates [0x0]:
rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
user@pc:/proc/asound$ cat /proc/asound/card2/codec#0
cat: /proc/asound/card2/codec#0: No such file or directory
user@pc:/proc/asound$ cat /proc/asound/card3/codec#0
cat: /proc/asound/card3/codec#0: No such file or directory
user@pc:/proc/asound$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment