Is there a method to list asound.conf pcms?
pcm.donglein {
type=plug
slave = {
pcm "plughw:3,0"
channels 1
rate 4800}
}
It will list everything else but the pcm I want to use (rate change)
(venv) stuart@ubuntu:~/g-kws$ python3 -m sounddevice --help
0 Loopback: PCM (hw:0,0), ALSA (32 in, 32 out)
1 Loopback: PCM (hw:0,1), ALSA (32 in, 32 out)
2 HDA Intel PCH: ALC221 Analog (hw:1,0), ALSA (2 in, 2 out)
3 HDA Intel PCH: ALC221 Alt Analog (hw:1,2), ALSA (2 in, 0 out)
4 HDA NVidia: HDMI 0 (hw:2,3), ALSA (0 in, 8 out)
5 HDA NVidia: HDMI 1 (hw:2,7), ALSA (0 in, 2 out)
6 HDA NVidia: HDMI 2 (hw:2,8), ALSA (0 in, 8 out)
7 HDA NVidia: HDMI 3 (hw:2,9), ALSA (0 in, 8 out)
8 HDA NVidia: HDMI 4 (hw:2,10), ALSA (0 in, 8 out)
9 HDA NVidia: HDMI 5 (hw:2,11), ALSA (0 in, 8 out)
10 HDA NVidia: HDMI 6 (hw:2,12), ALSA (0 in, 8 out)
11 VIA USB Dongle: Audio (hw:3,0), ALSA (2 in, 2 out)
12 USB Audio Device: - (hw:4,0), ALSA (1 in, 2 out)
13 sysdefault, ALSA (128 in, 128 out)
14 front, ALSA (0 in, 32 out)
15 surround21, ALSA (32 in, 32 out)
16 surround40, ALSA (0 in, 32 out)
17 surround41, ALSA (0 in, 32 out)
18 surround50, ALSA (0 in, 32 out)
19 surround51, ALSA (0 in, 32 out)
20 surround71, ALSA (0 in, 32 out)
21 lavrate, ALSA (128 in, 128 out)
22 samplerate, ALSA (128 in, 128 out)
23 speexrate, ALSA (128 in, 128 out)
24 pulse, ALSA (32 in, 32 out)
25 speex, ALSA (1 in, 1 out)
26 upmix, ALSA (8 in, 8 out)
27 vdownmix, ALSA (6 in, 6 out)
28 pipewire, ALSA (64 in, 64 out)
29 dmix, ALSA (0 in, 2 out)
* 30 default, ALSA (32 in, 32 out)
Maybe it has something to do with Pulseaudio or there is a limit on devices returned?
Just tried a lite version on a pi3 that doesn't have pulseaudio running
* 0 VIA USB Dongle: Audio (hw:1,0), ALSA (2 in, 2 out)
1 ladspa, ALSA (128 in, 128 out)
2 deepfilter, ALSA (128 in, 128 out)
3 donglein, ALSA (128 in, 128 out)
All those are alsa pcms that just don't show on my x86 machine with pulseaudio / desktop install, but list fine on the pi