hi just to be sure are you refering to this board?
if yes as it is Linux it is easy to play and record at the same time ( notice the ‘&’:
speaker-test -D plughw:2,0 -l5 -c8 -t wav & arecord -D plughw:2,0 -c8 -f S32_LE -r 48000 test.wav