(27-Jul-2021, 20:31)ogs Wrote: You can also look in /proc/asound, maybe /proc/asound/card0/pcm0c/info while playing and see if it displays a sample rate and other information
EDIT: cat /proc/asound/card0/stream0 may be better...
Code:
$ find /proc/asound/ -iname E20
/proc/asound/E20
$ ls -lAh /proc/asound/E20
lrwxrwxrwx 1 root root 5 Jul 28 22:28 /proc/asound/E20 -> card2
Code:
$ exa -T /proc/asound/card2
Unable to determine time zone: No such file or directory (os error 2) <- All FSes can't be ZFS ... ;-p
/proc/asound/card2
├── id
├── pcm0c
│ ├── info
│ └── sub0
│ ├── hw_params
│ ├── info
│ ├── status
│ └── sw_params
├── pcm0p
│ ├── info
│ └── sub0
│ ├── hw_params
│ ├── info
│ ├── status
│ └── sw_params
├── stream0
├── usbbus
├── usbid
└── usbmixer
Code:
$ cat /proc/asound/card2/stream0
DEVIALET Expert Pro USB Audio 2.0 at usb-0000:00:14.0-2, high speed : USB Audio
*** Removed some stuff here for the purpose of this post ***
Capture:
Status: Stop
Interface 2
Altset 1
Format: S32_LE
Channels: 2
Endpoint: 0x82 (2 IN) (ASYNC)
Rates: 44100, 48000, 88200, 96000, 176400, 192000
Data packet interval: 125 us
Bits: 24
Channel map: FL FR