[imx8mpevk] can't record from pdm micfil mic

cancel
Showing results for 
Search instead for 
Did you mean: 

[imx8mpevk] can't record from pdm micfil mic

Jump to solution
404 Views
kangsub
Contributor II

Hi NXP,

We tried to record from micfil mic on imx8mp evk without i.MX 8MIC-RPI-MX8 Board. (only use imx8mp evk)

We connect microphone on imx8mp evk board, and type following command in console.

root@imx8mpevk:~# arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: imxaudioxcvr [imx-audio-xcvr], device 0: XCVR PCM snd-soc-dummy-dai-0 [XCVR PCM snd-soc-dummy-dai-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: imxaudiomicfil [imx-audio-micfil], device 0: micfil hifi snd-soc-dummy-dai-0 [micfil hifi snd-soc-dummy-dai-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: btscoaudio [bt-sco-audio], device 0: 30c20000.sai-bt-sco-pcm-wb bt-sco-pcm-wb-0 [30c20000.sai-bt-sco-pcm-wb bt-sco-pcm-wb-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 3: wm8960audio [wm8960-audio], device 0: HiFi wm8960-hifi-0 [HiFi wm8960-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 3: wm8960audio [wm8960-audio], device 1: HiFi-ASRC-FE (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
arecord -f S16_LE -D plughw:1,0 -t wav -r 16000 -c 2 -d 30 ./test_mic_0.wav -vvv
Recording WAVE './test_mic_0.wav' : Signed 16 bit Little Endian, Rate 16000 Hz, Stereo
Plug PCM: Linear conversion PCM (S32_LE)
Its setup is:
stream : CAPTURE
access : RW_INTERLEAVED
format : S16_LE
subformat : STD
channels : 2
rate : 16000
exact rate : 16000 (16000/1)
msbits : 16
buffer_size : 8000
period_size : 2000
period_time : 125000
tstamp_mode : NONE
tstamp_type : MONOTONIC
period_step : 1
avail_min : 2000
period_event : 0
start_threshold : 1
stop_threshold : 8000
silence_threshold: 0
silence_size : 0
boundary : 9007199254740992000
Slave: Hardware PCM card 1 'imx-audio-micfil' device 0 subdevice 0
Its setup is:
stream : CAPTURE
access : MMAP_INTERLEAVED
format : S32_LE
subformat : STD
channels : 2
rate : 16000
exact rate : 16000 (16000/1)
msbits : 32
buffer_size : 8000
period_size : 2000
period_time : 125000
tstamp_mode : NONE
tstamp_type : MONOTONIC
period_step : 1
avail_min : 2000
period_event : 0
start_threshold : 1
stop_threshold : 8000
silence_threshold: 0
silence_size : 0
boundary : 9007199254740992000
appl_ptr : 0
hw_ptr : 0
Max peak (4000 samples): 0x00007fff #################### 99%
Max peak (4000 samples): 0x000035d2 ######### 42%
Max peak (4000 samples): 0x0000368b ######### 42%
Max peak (4000 samples): 0x00003cf3 ########## 47%
Max peak (4000 samples): 0x000037e2 ######### 43%
Max peak (4000 samples): 0x00003925 ######### 44%
Max peak (4000 samples): 0x00003754 ######### 43%
Max peak (4000 samples): 0x00003c96 ########## 47%
Max peak (4000 samples): 0x000036df ######### 42%
Max peak (4000 samples): 0x00003aac ########## 45%
Max peak (4000 samples): 0x00003ea4 ########## 48%
Max peak (4000 samples): 0x0000333c ######### 40%
Max peak (4000 samples): 0x00003b63 ########## 46%
Max peak (4000 samples): 0x00003b83 ########## 46%
Max peak (4000 samples): 0x000039d0 ########## 45%
Max peak (4000 samples): 0x000037d9 ######### 43%
Max peak (4000 samples): 0x00004496 ########### 53%
Max peak (4000 samples): 0x000037c6 ######### 43%
Max peak (4000 samples): 0x00003862 ######### 44%
Max peak (4000 samples): 0x0000404a ########### 50%
Max peak (4000 samples): 0x00007fba #################### 99%
Max peak (4000 samples): 0x00007fbd #################### 99%
Max peak (4000 samples): 0x00007ff8 #################### 99%
Max peak (4000 samples): 0x00007ff1 #################### 99%
Max peak (4000 samples): 0x00007fc8 #################### 99%
Max peak (4000 samples): 0x00007ff1 #################### 99%
Max peak (4000 samples): 0x00007ffc #################### 99%
Max peak (4000 samples): 0x00007fef #################### 99%
Max peak (4000 samples): 0x00007fc4 #################### 99%
Max peak (4000 samples): 0x00007fe7 #################### 99%
Max peak (4000 samples): 0x00007ffe #################### 99%
Max peak (4000 samples): 0x00007fe0 #################### 99%
Max peak (4000 samples): 0x00007fff #################### 99%
Max peak (4000 samples): 0x00007feb #################### 99%
Max peak (4000 samples): 0x00007ffb #################### 99%
Max peak (4000 samples): 0x00007fd8 #################### 99%
Max peak (4000 samples): 0x00007fb5 #################### 99%
Max peak (4000 samples): 0x00007ff3 #################### 99%
Max peak (4000 samples): 0x00007fd1 #################### 99%
Max peak (4000 samples): 0x00007fe3 #################### 99%
Max peak (4000 samples): 0x00007fe2 #################### 99%
Max peak (4000 samples): 0x00007fe8 #################### 99%
Max peak (4000 samples): 0x00007ff1 #################### 99%
Max peak (4000 samples): 0x00007fcb #################### 99%
Max peak (4000 samples): 0x00007fd3 #################### 99%
Max peak (4000 samples): 0x00007ff2 #################### 99%
Max peak (4000 samples): 0x00007ffc #################### 99%
Max peak (4000 samples): 0x00007ffd #################### 99%
Max peak (4000 samples): 0x00007fe0 #################### 99%
Max peak (4000 samples): 0x00007ff2 #################### 99%
Max peak (4000 samples): 0x00007ffe #################### 99%
Max peak (4000 samples): 0x00007fdf #################### 99%
Max peak (4000 samples): 0x00007fb6 #################### 99%
Max peak (4000 samples): 0x00007ff5 #################### 99%
Max peak (4000 samples): 0x00007fd3 #################### 99%
Max peak (4000 samples): 0x00007fed #################### 99%
Max peak (4000 samples): 0x00007fff #################### 99%
Max peak (4000 samples): 0x00007ffd #################### 99%
Max peak (4000 samples): 0x00007ffa #################### 99%
Max peak (4000 samples): 0x00007fe5 #################### 99%
Max peak (4000 samples): 0x00007fe7 #################### 99%
Max peak (4000 samples): 0x00007ff7 #################### 99%
Max peak (4000 samples): 0x00007ffb #################### 99%
Max peak (4000 samples): 0x00007ff6 #################### 99%
Max peak (4000 samples): 0x00007ffc #################### 99%
Max peak (4000 samples): 0x00007ffa #################### 99%
Max peak (4000 samples): 0x00007fea #################### 99%
Max peak (4000 samples): 0x00007ffd #################### 99%
Max peak (4000 samples): 0x00007ff9 #################### 99%
Max peak (4000 samples): 0x00007ff2 #################### 99%
Max peak (4000 samples): 0x00007ff7 #################### 99%
Max peak (4000 samples): 0x00007ff9 #################### 99%
Max peak (4000 samples): 0x00007ff2 #################### 99%
Max peak (4000 samples): 0x00007fff #################### 99%
Max peak (4000 samples): 0x00007ffb #################### 99%
Max peak (4000 samples): 0x00007ffc #################### 99%
Max peak (4000 samples): 0x00007ffd #################### 99%
Max peak (4000 samples): 0x00007ffd #################### 99%
Max peak (4000 samples): 0x00007fff #################### 99%
Max peak (4000 samples): 0x00007ff7 #################### 99%
Max peak (4000 samples): 0x00007ff2 #################### 99%
Max peak (4000 samples): 0x00007ffe #################### 99%
Max peak (4000 samples): 0x00007fff #################### 99%
Max peak (4000 samples): 0x00007fff #################### 99%
Max peak (4000 samples): 0x00007ffe #################### 99%
Max peak (4000 samples): 0x00007ff0 #################### 99%
Max peak (4000 samples): 0x00007ffe #################### 99%
Max peak (4000 samples): 0x00007ff7 #################### 99%
Max peak (4000 samples): 0x00007ff8 #################### 99%
Max peak (4000 samples): 0x00007ffc #################### 99%
Max peak (4000 samples): 0x00007ff8 #################### 99%
Max peak (4000 samples): 0x00007fff #################### 99%
Max peak (4000 samples): 0x00007ffb #################### 99%
Max peak (4000 samples): 0x00007ff2 #################### 99%
Max peak (4000 samples): 0x00007ffb #################### 99%
Max peak (4000 samples): 0x00007ffc #################### 99%
Max peak (4000 samples): 0x00007fff #################### 99%
Max peak (4000 samples): 0x00007fff #################### 99%
Max peak (4000 samples): 0x00007fff #################### 99%
Max peak (4000 samples): 0x00007fff #################### 99%
Max peak (4000 samples): 0x00007ff8 #################### 99%
Max peak (4000 samples): 0x00007ffe #################### 99%
Max peak (4000 samples): 0x00007ffe #################### 99%
Max peak (4000 samples): 0x00007ffa #################### 99%
Max peak (4000 samples): 0x00007ffd #################### 99%
Max peak (4000 samples): 0x00007ffd #################### 99%
Max peak (4000 samples): 0x00007ff3 #################### 99%
Max peak (4000 samples): 0x00007ff4 #################### 99%
Max peak (4000 samples): 0x00007ffa #################### 99%
Max peak (4000 samples): 0x00007ffc #################### 99%
Max peak (4000 samples): 0x00007ff3 #################### 99%
Max peak (4000 samples): 0x00007fff #################### 99%
Max peak (4000 samples): 0x00007ff8 #################### 99%
Max peak (4000 samples): 0x00007ff9 #################### 99%
Max peak (4000 samples): 0x00007fd6 #################### 99%
Max peak (4000 samples): 0x00007ffd #################### 99%
Max peak (4000 samples): 0x00007ffa #################### 99%
Max peak (4000 samples): 0x00007ff9 #################### 99%
Max peak (4000 samples): 0x00007ffe #################### 99%
Max peak (4000 samples): 0x00007ffd #################### 99%
Max peak (4000 samples): 0x00007ffd #################### 99%
Max peak (4000 samples): 0x00007ff4 #################### 99%
Max peak (4000 samples): 0x00007fe8 #################### 99%
Max peak (4000 samples): 0x00007ff9 #################### 99%
Max peak (4000 samples): 0x00007ffa #################### 99%
Max peak (4000 samples): 0x00007fff #################### 99%
Max peak (4000 samples): 0x00007ffd #################### 99%
Max peak (4000 samples): 0x00007ff8 #################### 99%
Max peak (4000 samples): 0x00007ff8 #################### 99%
Max peak (4000 samples): 0x00007ff6 #################### 99%
Max peak (4000 samples): 0x00007fcd #################### 99%
Max peak (4000 samples): 0x00007ffb #################### 99%
Max peak (4000 samples): 0x00007ffb #################### 99%
Max peak (4000 samples): 0x00007ffb #################### 99%
Max peak (4000 samples): 0x00007ffe #################### 99%
Max peak (4000 samples): 0x00007ffc #################### 99%
Max peak (4000 samples): 0x00007fff #################### 99%
Max peak (4000 samples): 0x00007ffe #################### 99%
Max peak (4000 samples): 0x00007ffd #################### 99%
Max peak (4000 samples): 0x00007ff9 #################### 99%
Max peak (4000 samples): 0x00007fed #################### 99%
Max peak (4000 samples): 0x00007ff4 #################### 99%
Max peak (4000 samples): 0x00007ffb #################### 99%
Max peak (4000 samples): 0x00007ffc #################### 99%
Max peak (4000 samples): 0x00007ffe #################### 99%
Max peak (4000 samples): 0x00007ffd #################### 99%
Max peak (4000 samples): 0x00007ffe #################### 99%
Max peak (4000 samples): 0x00007ffd #################### 99%
Max peak (4000 samples): 0x00007ff4 #################### 99%
Max peak (4000 samples): 0x00007ffb #################### 99%
Max peak (4000 samples): 0x00007ffd #################### 99%
Max peak (4000 samples): 0x00007ff8 #################### 99%
Max peak (4000 samples): 0x00007ffd #################### 99%
Max peak (4000 samples): 0x00007ffa #################### 99%
Max peak (4000 samples): 0x00007ff8 #################### 99%
Max peak (4000 samples): 0x00007ff2 #################### 99%
Max peak (4000 samples): 0x00007ffe #################### 99%
Max peak (4000 samples): 0x00007fff #################### 99%
Max peak (4000 samples): 0x00007fea #################### 99%
Max peak (4000 samples): 0x00007fec #################### 99%
Max peak (4000 samples): 0x00007ff8 #################### 99%
Max peak (4000 samples): 0x00007fef #################### 99%
Max peak (4000 samples): 0x00007ffc #################### 99%
Max peak (4000 samples): 0x00007ffc #################### 99%
Max peak (4000 samples): 0x00007ff8 #################### 99%
Max peak (4000 samples): 0x00007ff3 #################### 99%
Max peak (4000 samples): 0x00007ff2 #################### 99%
Max peak (4000 samples): 0x00007ffb #################### 99%
Max peak (4000 samples): 0x00007ff8 #################### 99%
Max peak (4000 samples): 0x00007ff7 #################### 99%
Max peak (4000 samples): 0x00007ff9 #################### 99%
Max peak (4000 samples): 0x00007fff #################### 99%
Max peak (4000 samples): 0x00007fff #################### 99%
Max peak (4000 samples): 0x00007ffc #################### 99%
Max peak (4000 samples): 0x00007fff #################### 99%
Max peak (4000 samples): 0x00007fe5 #################### 99%
Max peak (4000 samples): 0x00007ffa #################### 99%
Max peak (4000 samples): 0x00007ff4 #################### 99%
Max peak (4000 samples): 0x00007ffa #################### 99%
Max peak (4000 samples): 0x00007ff9 #################### 99%
Max peak (4000 samples): 0x00007ffc #################### 99%
Max peak (4000 samples): 0x00007ff6 #################### 99%
Max peak (4000 samples): 0x00007ff8 #################### 99%
Max peak (4000 samples): 0x00007ff3 #################### 99%
Max peak (4000 samples): 0x00007ffe #################### 99%
Max peak (4000 samples): 0x00007fef #################### 99%
Max peak (4000 samples): 0x00007ff8 #################### 99%
Max peak (4000 samples): 0x00007ff7 #################### 99%
Max peak (4000 samples): 0x00007fff #################### 99%
Max peak (4000 samples): 0x00007ff5 #################### 99%
Max peak (4000 samples): 0x00007ffb #################### 99%
Max peak (4000 samples): 0x00007fff #################### 99%
Max peak (4000 samples): 0x00007ffc #################### 99%
Max peak (4000 samples): 0x00007fee #################### 99%
Max peak (4000 samples): 0x00007ffb #################### 99%
Max peak (4000 samples): 0x00007ffe #################### 99%
Max peak (4000 samples): 0x00007ff7 #################### 99%
Max peak (4000 samples): 0x00007fe9 #################### 99%
Max peak (4000 samples): 0x00007ffa #################### 99%
Max peak (4000 samples): 0x00007ffd #################### 99%
Max peak (4000 samples): 0x00007ffd #################### 99%
Max peak (4000 samples): 0x00007ff0 #################### 99%
Max peak (4000 samples): 0x00007fff #################### 99%
Max peak (4000 samples): 0x00007ffc #################### 99%
Max peak (4000 samples): 0x00007ff9 #################### 99%
Max peak (4000 samples): 0x00007ff6 #################### 99%
Max peak (4000 samples): 0x00007fff #################### 99%
Max peak (4000 samples): 0x00007ffc #################### 99%
Max peak (4000 samples): 0x00007ffc #################### 99%
Max peak (4000 samples): 0x00007ffc #################### 99%
Max peak (4000 samples): 0x00007ffd #################### 99%
Max peak (4000 samples): 0x00007ff6 #################### 99%
Max peak (4000 samples): 0x00007fff #################### 99%
Max peak (4000 samples): 0x00007fff #################### 99%
Max peak (4000 samples): 0x00007ffa #################### 99%
Max peak (4000 samples): 0x00007ff5 #################### 99%
Max peak (4000 samples): 0x00007ff4 #################### 99%
Max peak (4000 samples): 0x00007fff #################### 99%
Max peak (4000 samples): 0x00007ffc #################### 99%
Max peak (4000 samples): 0x00007ff6 #################### 99%
Max peak (4000 samples): 0x00007ffe #################### 99%
Max peak (4000 samples): 0x00007fea #################### 99%
Max peak (4000 samples): 0x00007ff9 #################### 99%
Max peak (4000 samples): 0x00007ff4 #################### 99%
Max peak (4000 samples): 0x00007ff6 #################### 99%
Max peak (4000 samples): 0x00007ff9 #################### 99%
Max peak (4000 samples): 0x00007fff #################### 99%
Max peak (4000 samples): 0x00007ffe #################### 99%
Max peak (4000 samples): 0x00007ffc #################### 99%
Max peak (4000 samples): 0x00007fff #################### 99%
Max peak (4000 samples): 0x00007ff9 #################### 99%
Max peak (4000 samples): 0x00007fff #################### 99%
Max peak (4000 samples): 0x00007ff8 #################### 99%
Max peak (4000 samples): 0x00007ff9 #################### 99%
Max peak (4000 samples): 0x00007ffe #################### 99%
Max peak (4000 samples): 0x00007ffd #################### 99%
Max peak (4000 samples): 0x00007ff2 #################### 99%
Max peak (4000 samples): 0x00007ffe #################### 99%
Max peak (4000 samples): 0x00007ff9 #################### 99%
Max peak (4000 samples): 0x00007ffe #################### 99%

I can hear white noise only.

From the dmesg, I can find audio input related messages as below:

root@imx8mpevk:~# dmesg -wH | grep mic
[ +0.007200] DMA: preallocated 1024 KiB GFP_KERNEL pool for atomic allocations
[ +0.001247] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ +0.001331] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ +0.000223] optee: dynamic shared memory is enabled
[ +0.009236] fsl-micfil-dai 30ca0000.micfil: failed to get core clock: -517
[ +0.007387] imx-micfil sound-micfil: snd_soc_register_card failed (-517)
[ +0.026438] fsl-micfil-dai 30ca0000.micfil: GET IRQ: 62
[ +0.005262] fsl-micfil-dai 30ca0000.micfil: GET IRQ: 63
[ +0.001105] fsl-micfil-dai 30ca0000.micfil: GET IRQ: 64
[ +0.012273] fsl-micfil-dai 30ca0000.micfil: GET IRQ: 65
[ +0.003231] #1: imx-audio-micfil
[ 3803.585506] audit: type=1006 audit(1642480201.729:5): pid=966 uid=0 old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=4 res=1

 "get core clock failed" messages was shown, does it have some problem?

If the "get core clock failed" is cause of this problem, how can I fix it?

I attached dmesg.log file on this case, please refer that.

BR, kangsub

Tags (4)
0 Kudos
1 Solution
250 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello Kangsub,

Unfortunately I cannot find much on my side, could you connect an osciloscope and check the data and clock lines?

Best regards,
Aldo.

View solution in original post

0 Kudos
12 Replies
375 Views
kangsub
Contributor II

Hi, Aldo.

I found the BSP version from uname command on console as following : 

Linux imx8mpevk 5.10.35-lts-5.10.y+gef3f2cfc6010 #1 SMP PREEMPT Tue Jun 8 14:42:10 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux

And I confirmed dts file that I used from /proc/device-tree/model : 

NXP i.MX8MPlus EVK board

Best regards,

Kangsub.

0 Kudos
368 Views
AldoG
NXP TechSupport
NXP TechSupport

Hi,

Thank you for sharing more information, could you try with the following:

arecord -f S16_LE -d 30 -r 16000 --device="hw:1,0" capture.wav -vvv

Best regards,
Aldo.

0 Kudos
362 Views
kangsub
Contributor II

Hi Aldo,

When I enter the command you sharing, device did not work with following message:

root@imx8mpevk:~# arecord -f S16_LE -d 30 -r 16000 --device="hw:1,0" capture.wav -vvv
Recording WAVE 'capture.wav' : Signed 16 bit Little Endian, Rate 16000 Hz, Mono
arecord: set_params:1343: Sample format non available
Available formats:
- S32_LE

 

I tried recording test with following command : 

arecord -f S32_LE -d 30 -r 16000 --device="hw:1,0" capture.wav -vvv

 

I attach console output log as below:

root@imx8mpevk:~# arecord -f S32_LE -d 30 -r 16000 --device="hw:1,0" capture.wav -vvv
Recording WAVE 'capture.wav' : Signed 32 bit Little Endian, Rate 16000 Hz, Mono
Hardware PCM card 1 'imx-audio-micfil' device 0 subdevice 0
Its setup is:
  stream       : CAPTURE
  access       : RW_INTERLEAVED
  format       : S32_LE
  subformat    : STD
  channels     : 1
  rate         : 16000
  exact rate   : 16000 (16000/1)
  msbits       : 32
  buffer_size  : 8000
  period_size  : 2000
  period_time  : 125000
  tstamp_mode  : NONE
  tstamp_type  : MONOTONIC
  period_step  : 1
  avail_min    : 2000
  period_event : 0
  start_threshold  : 1
  stop_threshold   : 8000
  silence_threshold: 0
  silence_size : 0
  boundary     : 9007199254740992000
  appl_ptr     : 0
  hw_ptr       : 0
Max peak (2000 samples): 0x7fffec00 #################### 99%
Max peak (2000 samples): 0x3f3d6500 ##########           49%
Max peak (2000 samples): 0x43585c00 ###########          52%
Max peak (2000 samples): 0x33a0c600 #########            40%
Max peak (2000 samples): 0x36e53800 #########            42%
Max peak (2000 samples): 0x431dd200 ###########          52%
Max peak (2000 samples): 0x3bd6a900 ##########           46%
Max peak (2000 samples): 0x44a8db00 ###########          53%
Max peak (2000 samples): 0x38361c00 #########            43%
Max peak (2000 samples): 0x39751600 #########            44%
Max peak (2000 samples): 0x39484100 #########            44%
Max peak (2000 samples): 0x36d82900 #########            42%
Max peak (2000 samples): 0x4ac9cc00 ############         58%
Max peak (2000 samples): 0x38fde700 #########            44%
Max peak (2000 samples): 0x37ee7700 #########            43%
Max peak (2000 samples): 0x405bbf00 ###########          50%
Max peak (2000 samples): 0x37524900 #########            43%
Max peak (2000 samples): 0x3841de00 #########            43%
Max peak (2000 samples): 0x3992e400 #########            44%
Max peak (2000 samples): 0x3901ab00 #########            44%
Max peak (2000 samples): 0x36b83f00 #########            42%
Max peak (2000 samples): 0x3c1b3800 ##########           46%
Max peak (2000 samples): 0x38c6ef00 #########            44%
Max peak (2000 samples): 0x35ace000 #########            41%
Max peak (2000 samples): 0x3b2d0600 ##########           46%
Max peak (2000 samples): 0x3ae8b200 ##########           46%
Max peak (2000 samples): 0x3eb12100 ##########           48%
Max peak (2000 samples): 0x38f3df00 #########            44%
Max peak (2000 samples): 0x3a3d6800 ##########           45%
Max peak (2000 samples): 0x3c54f800 ##########           47%
Max peak (2000 samples): 0x360bf200 #########            42%
Max peak (2000 samples): 0x3b918e00 ##########           46%
Max peak (2000 samples): 0x3f9c1400 ##########           49%
Max peak (2000 samples): 0x33606500 #########            40%
Max peak (2000 samples): 0x38988d00 #########            44%
Max peak (2000 samples): 0x3a895000 ##########           45%
Max peak (2000 samples): 0x45517d00 ###########          54%
Max peak (2000 samples): 0x3c6ddd00 ##########           47%
Max peak (2000 samples): 0x3debe000 ##########           48%
Max peak (2000 samples): 0x3e1f5800 ##########           48%
Max peak (2000 samples): 0x3cd42c00 ##########           47%
Max peak (2000 samples): 0x392e7600 #########            44%
Max peak (2000 samples): 0x3e096400 ##########           48%
Max peak (2000 samples): 0x38cbf400 #########            44%
Max peak (2000 samples): 0x3d0b5100 ##########           47%
Max peak (2000 samples): 0x376df400 #########            43%
Max peak (2000 samples): 0x36d88100 #########            42%
Max peak (2000 samples): 0x40433e00 ###########          50%
Max peak (2000 samples): 0x44251900 ###########          53%
Max peak (2000 samples): 0x3b023900 ##########           46%
Max peak (2000 samples): 0x411ce200 ###########          50%
Max peak (2000 samples): 0x399ed100 ##########           45%
Max peak (2000 samples): 0x3bac2f00 ##########           46%
Max peak (2000 samples): 0x3444eb00 #########            40%
Max peak (2000 samples): 0x3c2ac600 ##########           47%
Max peak (2000 samples): 0x45ce5c00 ###########          54%
Max peak (2000 samples): 0x33ea4600 #########            40%
Max peak (2000 samples): 0x3e008a00 ##########           48%
Max peak (2000 samples): 0x41d88700 ###########          51%
Max peak (2000 samples): 0x3adaed00 ##########           45%
Max peak (2000 samples): 0x3d90ab00 ##########           48%
Max peak (2000 samples): 0x409bf500 ###########          50%
Max peak (2000 samples): 0x378baa00 #########            43%
Max peak (2000 samples): 0x35eebd00 #########            42%
Max peak (2000 samples): 0x48930100 ############         56%
Max peak (2000 samples): 0x7fe60900 #################### 99%
Max peak (2000 samples): 0x7fdc3300 #################### 99%
Max peak (2000 samples): 0x7fdb5500 #################### 99%
Max peak (2000 samples): 0x7fff1300 #################### 99%
Max peak (2000 samples): 0x7ff83700 #################### 99%
Max peak (2000 samples): 0x7ff72a00 #################### 99%
Max peak (2000 samples): 0x7fc38a00 #################### 99%
Max peak (2000 samples): 0x7fe92d00 #################### 99%
Max peak (2000 samples): 0x7fffa000 #################### 99%
Max peak (2000 samples): 0x7fe61000 #################### 99%
Max peak (2000 samples): 0x7ff54f00 #################### 99%
Max peak (2000 samples): 0x7ffc1200 #################### 99%
Max peak (2000 samples): 0x7fe80700 #################### 99%
Max peak (2000 samples): 0x7ffe0400 #################### 99%
Max peak (2000 samples): 0x7fc60b00 #################### 99%
Max peak (2000 samples): 0x7fff9600 #################### 99%
Max peak (2000 samples): 0x7fcd4a00 #################### 99%
Max peak (2000 samples): 0x7ffc6300 #################### 99%
Max peak (2000 samples): 0x7ffc6200 #################### 99%
Max peak (2000 samples): 0x7fdd7400 #################### 99%
Max peak (2000 samples): 0x7fedee00 #################### 99%
Max peak (2000 samples): 0x7fed2600 #################### 99%
Max peak (2000 samples): 0x7ff38e00 #################### 99%
Max peak (2000 samples): 0x7ff45800 #################### 99%
Max peak (2000 samples): 0x7fea6a00 #################### 99%
Max peak (2000 samples): 0x7ff4b600 #################### 99%
Max peak (2000 samples): 0x7fe96300 #################### 99%
Max peak (2000 samples): 0x7ff9a800 #################### 99%
Max peak (2000 samples): 0x7fee9b00 #################### 99%
Max peak (2000 samples): 0x7ff5ea00 #################### 99%
Max peak (2000 samples): 0x7fef8c00 #################### 99%
Max peak (2000 samples): 0x7ff77900 #################### 99%
Max peak (2000 samples): 0x7fef7000 #################### 99%
Max peak (2000 samples): 0x7fd4b100 #################### 99%
Max peak (2000 samples): 0x7fe83c00 #################### 99%
Max peak (2000 samples): 0x7ffabe00 #################### 99%
Max peak (2000 samples): 0x7ffadb00 #################### 99%
Max peak (2000 samples): 0x7ff7b200 #################### 99%
Max peak (2000 samples): 0x7ffa8500 #################### 99%
Max peak (2000 samples): 0x7ff33b00 #################### 99%
Max peak (2000 samples): 0x7fda6c00 #################### 99%
Max peak (2000 samples): 0x7fd84200 #################### 99%
Max peak (2000 samples): 0x7fe08400 #################### 99%
Max peak (2000 samples): 0x7fd54900 #################### 99%
Max peak (2000 samples): 0x7ffc2e00 #################### 99%
Max peak (2000 samples): 0x7ff5f700 #################### 99%
Max peak (2000 samples): 0x7fbf1600 #################### 99%
Max peak (2000 samples): 0x7fd4ac00 #################### 99%
Max peak (2000 samples): 0x7fc7c000 #################### 99%
Max peak (2000 samples): 0x7ff88400 #################### 99%
Max peak (2000 samples): 0x7fdc2600 #################### 99%
Max peak (2000 samples): 0x7feed300 #################### 99%
Max peak (2000 samples): 0x7ff83200 #################### 99%
Max peak (2000 samples): 0x7ffc5600 #################### 99%
Max peak (2000 samples): 0x7fd82300 #################### 99%
Max peak (2000 samples): 0x7ffe3100 #################### 99%
Max peak (2000 samples): 0x7ff83200 #################### 99%
Max peak (2000 samples): 0x7ff96300 #################### 99%
Max peak (2000 samples): 0x7ffdd900 #################### 99%
Max peak (2000 samples): 0x7ffa4400 #################### 99%
Max peak (2000 samples): 0x7ff87f00 #################### 99%
Max peak (2000 samples): 0x7ff43100 #################### 99%
Max peak (2000 samples): 0x7ff98e00 #################### 99%
Max peak (2000 samples): 0x7fedff00 #################### 99%
Max peak (2000 samples): 0x7fff9500 #################### 99%
Max peak (2000 samples): 0x7ffe1f00 #################### 99%
Max peak (2000 samples): 0x7ffb6d00 #################### 99%
Max peak (2000 samples): 0x7ff8b800 #################### 99%
Max peak (2000 samples): 0x7ff76100 #################### 99%
Max peak (2000 samples): 0x7feee200 #################### 99%
Max peak (2000 samples): 0x7ffc9400 #################### 99%
Max peak (2000 samples): 0x7ffc9800 #################### 99%
Max peak (2000 samples): 0x7ffd8500 #################### 99%
Max peak (2000 samples): 0x7ff2f600 #################### 99%
Max peak (2000 samples): 0x7fff9600 #################### 99%
Max peak (2000 samples): 0x7ffce300 #################### 99%
Max peak (2000 samples): 0x7fff2400 #################### 99%
Max peak (2000 samples): 0x7ff79d00 #################### 99%
Max peak (2000 samples): 0x7ffe0f00 #################### 99%
Max peak (2000 samples): 0x7ffe0800 #################### 99%
Max peak (2000 samples): 0x7ffd7400 #################### 99%
Max peak (2000 samples): 0x7fff7a00 #################### 99%
Max peak (2000 samples): 0x7ffec000 #################### 99%
Max peak (2000 samples): 0x7ffffd00 #################### 99%
Max peak (2000 samples): 0x7ffbc000 #################### 99%
Max peak (2000 samples): 0x7ffce000 #################### 99%
Max peak (2000 samples): 0x7fff6100 #################### 99%
Max peak (2000 samples): 0x7ff5bc00 #################### 99%
Max peak (2000 samples): 0x7fff4000 #################### 99%
Max peak (2000 samples): 0x7ffe3700 #################### 99%
Max peak (2000 samples): 0x7ffe9600 #################### 99%
Max peak (2000 samples): 0x7ff6f900 #################### 99%
Max peak (2000 samples): 0x7fffed00 #################### 99%
Max peak (2000 samples): 0x7ffb5400 #################### 99%
Max peak (2000 samples): 0x7ffedc00 #################### 99%
Max peak (2000 samples): 0x7ffb2d00 #################### 99%
Max peak (2000 samples): 0x7ffdc400 #################### 99%
Max peak (2000 samples): 0x7fff8600 #################### 99%
Max peak (2000 samples): 0x7fff8d00 #################### 99%
Max peak (2000 samples): 0x7ffcc400 #################### 99%
Max peak (2000 samples): 0x7ffec300 #################### 99%
Max peak (2000 samples): 0x7ffeef00 #################### 99%
Max peak (2000 samples): 0x7ffcd100 #################### 99%
Max peak (2000 samples): 0x7ffe9f00 #################### 99%
Max peak (2000 samples): 0x7fff0e00 #################### 99%
Max peak (2000 samples): 0x7ffb6700 #################### 99%
Max peak (2000 samples): 0x7ffe9700 #################### 99%
Max peak (2000 samples): 0x7ffde000 #################### 99%
Max peak (2000 samples): 0x7ffe3c00 #################### 99%
Max peak (2000 samples): 0x7ff90500 #################### 99%
Max peak (2000 samples): 0x7ffea600 #################### 99%
Max peak (2000 samples): 0x7ff8e400 #################### 99%
Max peak (2000 samples): 0x7ff25200 #################### 99%
Max peak (2000 samples): 0x7ff6a700 #################### 99%
Max peak (2000 samples): 0x7ffd4b00 #################### 99%
Max peak (2000 samples): 0x7ff51600 #################### 99%
Max peak (2000 samples): 0x7ffc7a00 #################### 99%
Max peak (2000 samples): 0x7ffc2d00 #################### 99%
Max peak (2000 samples): 0x7ff78600 #################### 99%
Max peak (2000 samples): 0x7ffd3e00 #################### 99%
Max peak (2000 samples): 0x7ff5d600 #################### 99%
Max peak (2000 samples): 0x7ff99e00 #################### 99%
Max peak (2000 samples): 0x7ffd4500 #################### 99%
Max peak (2000 samples): 0x7fff4100 #################### 99%
Max peak (2000 samples): 0x7ffe5400 #################### 99%
Max peak (2000 samples): 0x7ffe2a00 #################### 99%
Max peak (2000 samples): 0x7fff7a00 #################### 99%
Max peak (2000 samples): 0x7ffbfa00 #################### 99%
Max peak (2000 samples): 0x7ff9b100 #################### 99%
Max peak (2000 samples): 0x7fffca00 #################### 99%
Max peak (2000 samples): 0x7ff94500 #################### 99%
Max peak (2000 samples): 0x7ff8c400 #################### 99%
Max peak (2000 samples): 0x7ffdd800 #################### 99%
Max peak (2000 samples): 0x7ff7f700 #################### 99%
Max peak (2000 samples): 0x7ffffc00 #################### 99%
Max peak (2000 samples): 0x7feefc00 #################### 99%
Max peak (2000 samples): 0x7fff2600 #################### 99%
Max peak (2000 samples): 0x7fedc900 #################### 99%
Max peak (2000 samples): 0x7ffc5600 #################### 99%
Max peak (2000 samples): 0x7ff84b00 #################### 99%
Max peak (2000 samples): 0x7ffc9d00 #################### 99%
Max peak (2000 samples): 0x7ff53e00 #################### 99%
Max peak (2000 samples): 0x7ffcd200 #################### 99%
Max peak (2000 samples): 0x7ffe5400 #################### 99%
Max peak (2000 samples): 0x7ffb5200 #################### 99%
Max peak (2000 samples): 0x7ff61c00 #################### 99%
Max peak (2000 samples): 0x7fff8e00 #################### 99%
Max peak (2000 samples): 0x7ff98900 #################### 99%
Max peak (2000 samples): 0x7ffefe00 #################### 99%
Max peak (2000 samples): 0x7ff8b000 #################### 99%
Max peak (2000 samples): 0x7ffaae00 #################### 99%
Max peak (2000 samples): 0x7ff6ed00 #################### 99%
Max peak (2000 samples): 0x7ffa0700 #################### 99%
Max peak (2000 samples): 0x7ffe6c00 #################### 99%
Max peak (2000 samples): 0x7ffc1400 #################### 99%
Max peak (2000 samples): 0x7ffb9500 #################### 99%
Max peak (2000 samples): 0x7ffd8800 #################### 99%
Max peak (2000 samples): 0x7ffb4500 #################### 99%
Max peak (2000 samples): 0x7fff9a00 #################### 99%
Max peak (2000 samples): 0x7ffd0f00 #################### 99%
Max peak (2000 samples): 0x7ffced00 #################### 99%
Max peak (2000 samples): 0x7ffed300 #################### 99%
Max peak (2000 samples): 0x7ffbfb00 #################### 99%
Max peak (2000 samples): 0x7ffd5500 #################### 99%
Max peak (2000 samples): 0x7ff8da00 #################### 99%
Max peak (2000 samples): 0x7ff74e00 #################### 99%
Max peak (2000 samples): 0x7ff81800 #################### 99%
Max peak (2000 samples): 0x7ffeec00 #################### 99%
Max peak (2000 samples): 0x7ffa4400 #################### 99%
Max peak (2000 samples): 0x7ffda200 #################### 99%
Max peak (2000 samples): 0x7ff52900 #################### 99%
Max peak (2000 samples): 0x7ff88c00 #################### 99%
Max peak (2000 samples): 0x7fffc500 #################### 99%
Max peak (2000 samples): 0x7ffba800 #################### 99%
Max peak (2000 samples): 0x7ffdea00 #################### 99%

And the output wav file plays only white noise still.

 

Best regards, 

Kangsub.

0 Kudos
350 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Thank you for testing, actually the second test is the one we usually do for test, testing with 5.10.35 BSP, default device tree (imx8mp-evk.dtb), with microphone
https://www.adafruit.com/product/3492
 

Spoiler

root@imx8mpevk:~# arecord -f S32_LE -d 10 -r 48000 --device="hw:1,0" capture.wav -vvv

Recording WAVE 'capture.wav' : Signed 32 bit Little Endian, Rate 48000 Hz, Mono
Hardware PCM card 1 'imx-audio-micfil' device 0 subdevice 0
Its setup is:
  stream       : CAPTURE
  access       : RW_INTERLEAVED
  format       : S32_LE
  subformat    : STD
  channels     : 1
  rate         : 48000
  exact rate   : 48000 (48000/1)
  msbits       : 32
  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
Max peak (6000 samples): 0x30ce7100 ########             38%
Max peak (6000 samples): 0x161cea00 ####                 17%
Max peak (6000 samples): 0x066fc700 ##                   5%
Max peak (6000 samples): 0x070dfc00 ##                   5%
Max peak (6000 samples): 0x06bde300 ##                   5%
Max peak (6000 samples): 0x05783000 #                    4%
Max peak (6000 samples): 0x04088900 #                    3%
Max peak (6000 samples): 0x02ea0100 #                    2%
Max peak (6000 samples): 0x02c7b700 #                    2%
Max peak (6000 samples): 0x01c11e00 #                    1%
Max peak (6000 samples): 0x015fb400 #                    1%
Max peak (6000 samples): 0x011c8300 #                    0%
Max peak (6000 samples): 0x00febe00 #                    0%
Max peak (6000 samples): 0x00d98d00 #                    0%
Max peak (6000 samples): 0x00e02f00 #                    0%
Max peak (6000 samples): 0x0163fc00 #                    1%
Max peak (6000 samples): 0x00f8a700 #                    0%
Max peak (6000 samples): 0x009a6300 #                    0%
Max peak (6000 samples): 0x00a46200 #                    0%
Max peak (6000 samples): 0x00b33900 #                    0%
Max peak (6000 samples): 0x01711e00 #                    1%
Max peak (6000 samples): 0x009f9500 #                    0%
Max peak (6000 samples): 0x00cd3300 #                    0%
Max peak (6000 samples): 0x36bf4100 #########            42%
Max peak (6000 samples): 0x6bf24500 #################    84%
Max peak (6000 samples): 0x7ffffb00 #################### 99%
Max peak (6000 samples): 0x01347700 #                    0%
Max peak (6000 samples): 0x086e8200 ##                   6%
Max peak (6000 samples): 0x6a2b3200 #################    82%
Max peak (6000 samples): 0x0c089900 ##                   9%
Max peak (6000 samples): 0x041d8400 #                    3%
Max peak (6000 samples): 0x7f929300 #################### 99%
Max peak (6000 samples): 0x7d62b400 #################### 97%
Max peak (6000 samples): 0x1ec17d00 #####                24%
Max peak (6000 samples): 0x118f9700 ###                  13%
Max peak (6000 samples): 0x1905fc00 ####                 19%
Max peak (6000 samples): 0x1f170a00 #####                24%
Max peak (6000 samples): 0x222f0800 ######               26%
Max peak (6000 samples): 0x22a0fd00 ######               27%
Max peak (6000 samples): 0x22471100 ######               26%
Max peak (6000 samples): 0x2103fe00 ######               25%
Max peak (6000 samples): 0x20145600 ######               25%
Max peak (6000 samples): 0x1e55af00 #####                23%
Max peak (6000 samples): 0x1886dc00 ####                 19%
Max peak (6000 samples): 0x7f878b00 #################### 99%
Max peak (6000 samples): 0x2ee17800 ########             36%
Max peak (6000 samples): 0x123cf000 ###                  14%
Max peak (6000 samples): 0x7f571300 #################### 99%
Max peak (6000 samples): 0x0e6b0700 ###                  11%
Max peak (6000 samples): 0x0cb13600 ##                   9%
Max peak (6000 samples): 0x094e1900 ##                   7%
Max peak (6000 samples): 0x071d6e00 ##                   5%
Max peak (6000 samples): 0x04d5d200 #                    3%
Max peak (6000 samples): 0x02bd5e00 #                    2%
Max peak (6000 samples): 0x01347700 #                    0%
Max peak (6000 samples): 0x01b05700 #                    1%
Max peak (6000 samples): 0x319f4300 ########             38%
Max peak (6000 samples): 0x1579f300 ####                 16%
Max peak (6000 samples): 0x02087900 #                    1%
Max peak (6000 samples): 0x7ea5bc00 #################### 98%
Max peak (6000 samples): 0x46f33c00 ############         55%
Max peak (6000 samples): 0x00a60e00 #                    0%
Max peak (6000 samples): 0x01560000 #                    1%
Max peak (6000 samples): 0x019bf300 #                    1%
Max peak (6000 samples): 0x0264a900 #                    1%
Max peak (6000 samples): 0x0346df00 #                    2%
Max peak (6000 samples): 0x03f2ab00 #                    3%
Max peak (6000 samples): 0x03e9f300 #                    3%
Max peak (6000 samples): 0x0425b400 #                    3%
Max peak (6000 samples): 0x04b64700 #                    3%
Max peak (6000 samples): 0x04d75600 #                    3%
Max peak (6000 samples): 0x04fdff00 #                    3%
Max peak (6000 samples): 0x04df3500 #                    3%
Max peak (6000 samples): 0x0565be00 #                    4%
Max peak (6000 samples): 0x06027200 #                    4%
Max peak (6000 samples): 0x09d3af00 ##                   7%
Max peak (6000 samples): 0x08fd2300 ##                   7%
Max peak (6000 samples): 0x0b7ee800 ##                   8%
Max peak (6000 samples): 0x06f23900 ##                   5%
Max peak (6000 samples): 0x029f4a00 #                    2%

Could you check for a possible faulty HW, a different microphone you could try with?

Best regards,
Aldo.

0 Kudos
327 Views
kangsub
Contributor II

Hi Aldo.

My hardware team member did not accept your request that change to other microphone parts because following reason.
1. do not have other microphone part. (need much time due to internal process)
2. currently connected microphone part is worked well other platform before. (other AI platform board)
3. We confirmed that the microphone part work well in our custom board using NXP solution with similar configuration.

Is there any other consideration point of software?

Best regards,

Kangsub.

0 Kudos
320 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Got it, thank you for checking.
May I ask how are you connecting your mic to the EVK?

Best regards,
Aldo.

0 Kudos
301 Views
kangsub
Contributor II

Hi Aldo,

I cannot attach any files to this site because internal security program.

We used EXP_CN port for connecting mic1 and mic2.

mic1 data pin is connected PDM_STREAM0, mic2 data pin is connected PDM_STREAM3.

When I had requested check this schematic to NXP Korea before, I received message the schematic did not have problem.

 

Best regards, 

Kangsub.

0 Kudos
280 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello Kangsub,

Thank you for sharing, do not worry this should be enough.
I'll keep checking an update as soon as possible.

Best regards,
Aldo.

0 Kudos
251 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello Kangsub,

Unfortunately I cannot find much on my side, could you connect an osciloscope and check the data and clock lines?

Best regards,
Aldo.

0 Kudos
213 Views
kangsub
Contributor II

Hi Aldo,

Thanks for your support.

I'll foward your suggestion to our hardware team.

 

Best Regard,

kangsub

0 Kudos
337 Views
kangsub
Contributor II

Hi Aldo,

Sorry for late response.

We were new year holiday in last week.

I will reply after sending your request to our HW teams.

Best regards,

kangsub.

0 Kudos
378 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Could you share the BSP version that you’re using for your test?
Which dts are you using, default?

Best regards,
Aldo.

0 Kudos