Tool/software: Linux
Hi exports,
(1) I use MCASP2 with I2S mode to do audio playback / record test.
(2) My DTS configuration (AXR0 tx, AXR1 rx; AXR2 tx, AXR3 rx with LOOPBACK TEST):
-----------------------------------------------------------------
&mcasp2 {
#sound-dai-cells = <0>;
fck_parent = "atl_clkin2_ck";
pinctrl-names = "default";
pinctrl-0 = <&mcasp2_pins>;
status = "okay";
op-mode = <0>; /* MCASP_IIS_MODE */
tdm-slots = <2>;
/* 16 serializer */
serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
1 2 1 2
0 0 0 0
0 0 0 0
0 0 0 0
>;
tx-num-evt = <8>;
rx-num-evt = <8>;
};
-----------------------------------------------------------------
(3) I can detect sound card and device node shows
root@wnc-j6:~# ls -la /dev/snd/
drwxr-xr-x 3 root root 140 Jan 1 1970 .
drwxr-xr-x 12 root root 13840 Sep 3 18:41 ..
drwxr-xr-x 2 root root 60 Jan 1 1970 by-path
crw-rw---- 1 root audio 116, 0 Jan 1 1970 controlC0
crw-rw---- 1 root audio 116, 24 Jan 1 1970 pcmC0D0c
crw-rw---- 1 root audio 116, 16 Jan 1 1970 pcmC0D0p
crw-rw---- 1 root audio 116, 33 Jan 1 1970 timer
root@wnc-j6:~#
(4) The following command only can choose card and device, it cannot choose serializer.
aplay -r8000 -D plughw:0,0 /usr/local/bin/2_mins.wav &
arecord -r8000 -f S16_LE -D plughw:0,0 100_sec.wav -d 100 -t wav -vv
(5) How do I use aplay or arecord to choose specific serializer to do playback/record loopback test?
Thank you very much.
BRs
Louis