IMX8MM mini - PDM audio record

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX8MM mini - PDM audio record

1,643 Views
dudisasson
Contributor I

Hi,

I am trying to record audio from a PDM microphone (SPH0641LM4H-1)

 the microphone is connected as follow:

pastedImage_1.png

 

i tried using gstreamer to record but the file i get is just noise.

i can see the output clock to the microphone and the data outputting from it.

this is one of the commands i tried:

gst-launch-1.0 -v alsasrc device=plughw:1,0 ! queue ! audioconvert ! audio/x-raw, rate=16000 ! vorbisenc ! oggmux ! filesink location=alsasrc.ogg

the PDM is conneted to the micfil driver:


[ 3.225068] imx-micfil sound-micfil: snd-soc-dummy-dai <-> 30080000.micfil mapping ok
[ 3.232926] imx-micfil sound-micfil: ASoC: no DMI vendor name!
[ 4.130242] #1: imx-audio-micfil

 

any suggestions?

0 Kudos
2 Replies

1,513 Views
sreedhar_appala
Contributor IV

Hi,

Are you able to solve the problem? request you share the details.

we are also facing the similar issue.

Regards, Sreedhar

0 Kudos

1,586 Views
igorpadykov
NXP Employee
NXP Employee

Hi Dudi

one can try with pdm unit test:

mxc_pdm_test\test - imx-test - i.MX Driver Test Application Software 

check sect.7.6.4.1 User Interface i.MX Linux Reference Manual

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos