IMX8MM mini - PDM audio record

cancel
Showing results for 
Search instead for 
Did you mean: 

IMX8MM mini - PDM audio record

310 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

180 Views
sreedhar_appala
Contributor III

Hi,

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

we are also facing the similar issue.

Regards, Sreedhar

0 Kudos

253 Views
igorpadykov
NXP TechSupport
NXP TechSupport

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