Collect raw PCM data from DMIC

Hi Team,

Is there any way to collect raw PCM data(from DMIC1) from sysfs/minimal ioctl calls. I want to read these raw PCM data buffers from user space application and compare/post process.

@jonathanh

Thanks,
Arun

Hello!

Not that I am aware of. However, arecord will dump the raw PCM samples to a file.

Regards
Jon

Thanks for reply.

Is there any other way to read it from capture device node pcmC0D0c directly

I am looking for something like this,

$cat /dev/snd/pcmC0D0c

Thanks,
Arun

Hello,

To be honest, I am not sure about that. I believe that cat’ing the device file itself will not be enough because something needs to configure and start the capture. You could look at the alsa-lib and alsa-utils sources to get a better idea of what they do. Otherwise, given that this is a generic linux question, you could ask this on the alsa-user mailing list.

Regards,
Jon