...
test-8bit-8KHz.wav
test-16bit-48KHz.wav
Code Block | ||
---|---|---|
| ||
arecord -vvv -f dat /dev/null |
example output
Code Block | ||
---|---|---|
| ||
# arecord -vvv -f dat /dev/null
Plug PCM: Hardware PCM card 0 'cv182xa_adc' device 0 subdevice 0
Its setup is:
stream : CAPTURE
access : RW_INTERLEAVED
format : S16_LE
subformat : STD
channels : 2
rate : 48000
exact rate : 48000 (48000/1)
msbits : 16
buffer_size : 24000
period_size : 6000
period_time : 125000
tstamp_mode : NONE
tstamp_type : MONOTONIC
period_step : 1
avail_min : 6000
period_event : 0
start_threshold : 1
stop_threshold : 24000
silence_threshold: 0
silence_size : 0
boundary : 6755399441055744000
appl_ptr : 0
hw_ptr : 0
Recording WAVE '/dev/null' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
# open a door
Max peak (12000 samples): 0x00004969 ############ 57%
Max peak (12000 samples): 0x00000e9b ### 11%
Max peak (12000 samples): 0x000005f3 # 4%
Max peak (12000 samples): 0x00000775 ## 5%
Max peak (12000 samples): 0x00000877 ## 6%
Max peak (12000 samples): 0x000005cf # 4%
Max peak (12000 samples): 0x0000057a # 4%
Max peak (12000 samples): 0x000004a8 # 3%
Max peak (12000 samples): 0x000004f1 # 3%
Max peak (12000 samples): 0x000005cb # 4%
Max peak (12000 samples): 0x00000584 # 4%
Max peak (12000 samples): 0x00000667 ## 5%
Max peak (12000 samples): 0x000004f2 # 3%
# knoking Sipeed KVM case
Max peak (12000 samples): 0x00007fed #################### 99%
Max peak (12000 samples): 0x00000a20 ## 7%
Max peak (12000 samples): 0x00007f85 #################### 99%
Max peak (12000 samples): 0x000004b4 # 3%
Max peak (12000 samples): 0x00007ff2 #################### 99%
Max peak (12000 samples): 0x00001961 #### 19%
...
|
use of microfon is logged in dmesg
Code Block | ||
---|---|---|
| ||
[ 6414.994675] dwc2 4340000.usb: new address 5 [ 6496.347712] cvi_rtc 5026000.rtc: time set to 1743594916. 4/2/2025 11:55:16 [ 6496.347751] cvi_rtc 5026000.rtc: time read as 1743594916. 4/2/2025 11:55:16 [ 6521.754364] LT6911--:-- INT!!## [ 6521.942638] LT6911--:-- INT!!## [ 6523.084032] LT6911--:-- INT!!## [ 6523.299090] LT6911--:-- INT!!## root@kvm-b42c:~# sleep 4; arecord test-8bit-8KHz.wav -d 10 Warning: Some sources (like microphones) may produce inaudible results with 8-bit sampling. Use '-f' argument to increase resolution e.g. '-f S16_LE'. Recording WAVE 'test-8bit-8KHz.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono root@kvm-b42c:~# dmesg |tail [ 7002.512363] cvitekaadc 300a100.adc: turn I2S3 aud_en on [ 7002.512381] cvitekaadc 300a100.adc: adc_clk_on, I2S3 clk_ctrl0 = 0x180 [ 7002.519083] cvitekaadc 300a100.adc: adc_hw_params, set rate to 8000 [ 7002.519158] cvitek-i2s-subsys 4108000.i2s_subsys: Set clk_sdma_aud0~3 to 16384000 [ 7002.519884] cvitek-i2s 4100000.i2s: Audio system clk=16384000, sample rate=8000 [ 7002.520115] cvitekaadc 300a100.adc: adc_on, before rxadc reg val=0x00000000 [ 7002.520130] cvitekaadc 300a100.adc: adc_on, after rxadc reg val=0x00000003 [ 7012.525215] cvi_i2s_shutdown not start *dai = 00000000901b59cc, *dai->playback_dma_data = 000000004c4de0bc [ 7012.525254] cvitekaadc 300a100.adc: turn I2S3 aud_en off [ 7012.525266] cvitekaadc 300a100.adc: adc_clk_off, I2S3 clk_ctrl0 = 0x80 |
dmesg of Sipeed KVM after reboot
...