I am using imx-audio-card which uses sai1 snd-soc-dummy-dai-0
I have an external SoC connected to iMX8MP module via I2S, there's no exposed codec for me to use, hence why I'm using a dummy codec.
I can view them in aplay -L which will show:
hw:CARD=imxaudiocard,DEV=0
imx-audio-card, sai1 snd-soc-dummy-dai-0
Direct hardware device without any conversions
plughw:CARD=imxaudiocard,DEV=0
imx-audio-card, sai1 snd-soc-dummy-dai-0
Hardware device with all software conversions
default:CARD=imxaudiocard
imx-audio-card, sai1 snd-soc-dummy-dai-0
Default Audio Device
sysdefault:CARD=imxaudiocard
imx-audio-card, sai1 snd-soc-dummy-dai-0
Default Audio Device
dmix:CARD=imxaudiocard,DEV=0
imx-audio-card, sai1 snd-soc-dummy-dai-0
Direct sample mixing device
I can play audio via this and it works.
aplay -D default:CARD=imxaudiocard music.wav
Similar results in the code snippet above using arecord -L. I'm able to record using:
arecord -D default:CARD=imxaudiocard -r 32000 -c 2 -d 20 -f S24_3LE test.wav
However, the test.wav comes out blank; I cannot seem to record sounds. FYI - there's no amixer controls, so I can't seem to set to CAPTURE.
Any idea how I can accept the audio in via I2S when I can already playback the audio out via I2S?