Setting Up Digital Mic on Apalis iMX6

I have a digital microphone that uses I2S. It is connected to pins 200, 202, and 204 on the Apalis iMX6. I was attempting to connect it to AUD5 this way (which hopefully I did). I am also using the analogue audio out as I have a speaker. I connected this to pins 316 and 318. I have confirmed that the speaker works and will play the test wav file. I am trying to confirm that the digital microphone works as well, but I cannot get it to record anything. I cannot figure out how to configure the digital audio pins (200, 202, and 204) as their ALT 3 function. I think that needs to happen first. But once that is done, should I just be able to use the arecord command to record a wav file?

All pins you mentioned are connected to SOC directly (no other module’s HW are involved) and theyshould be configured as Alt3 function by default. Please consult with Chapter 7 Audio of i.MX Linux Reference Manual for driver configuration. Please note that I2S input can be configured as master or slave depending of Mic you are using. You can also use NXP community for additional help with configuration.