@@ -1172,7 +1172,7 @@ Board-specific instructions
11721172 The board uses four **TAD52512 DAC ** and two **PCM6240 ADC ** connected through
11731173 **McASP2 [AXR0,1,3 and 4 for playback, AXR14 for Capture] ** for audio.
11741174 The board features eight TRS 3.5mm jack, that can be used for
1175- simultaneous 8 channel playback and 4 channel recording.
1175+ simultaneous 8 channel playback and 8 channel recording.
11761176
11771177 The AM62D2-EVM audio subsystem provides comprehensive playback and recording
11781178 capabilities through dedicated DACs and ADCs. Use the following command to list
@@ -1242,36 +1242,116 @@ Board-specific instructions
12421242 -> CODEC drivers
12431243 -> Texas Instruments PCM6240 Family Audio chips based on I2C (SND_SOC_PCM6240 [=m])
12441244
1245- Choose active device between two PCM6240 ADC devices :
1245+ Choose active recording profile from the available PCM6240 ADC profiles :
12461246
12471247 .. code-block :: text
12481248
1249- Device 0: PCM6240 at I2C address 0x48 (Connector-J2)
1250- Device 1: PCM6240 at I2C address 0x49 (Connector-J1)
1249+ Profile 0: 8ch Interleaved - All 8 channels from both ADCs in interleaved format
1250+ Profile 1: 8ch Non-Interleaved - All 8 channels from both ADCs in non-interleaved format
1251+ Profile 2: J2A Stereo - Stereo recording from J2A connector (I2C 0x48)
1252+ Profile 3: J2B Stereo - Stereo recording from J2B connector (I2C 0x48)
1253+ Profile 4: J1A Stereo - Stereo recording from J1A connector (I2C 0x49)
1254+ Profile 5: J1B Stereo - Stereo recording from J1B connector (I2C 0x49)
1255+ Profile 6: J2A,J2B 4ch Non-Interleaved - 4-channel non-interleaved from J2 connectors
1256+ Profile 7: J2A,J2B 4ch Interleaved - 4-channel interleaved from J2 connectors
1257+ Profile 8: J1A,J1B 4ch Non-Interleaved - 4-channel non-interleaved from J1 connectors
1258+ Profile 9: J1A,J1B 4ch Interleaved - 4-channel interleaved from J1 connectors
12511259
1252- To select Device 0 (I2C address 0x48) as an active device :
1260+ To select Profile 0 (8ch Interleaved - default profile) :
12531261
12541262 .. code-block :: console
12551263
12561264 root@am62dxx-evm:~# amixer cset name='pcm6240-2dev-reg PCM6240 i2c1 Profile id' 0
12571265 numid=17,iface=MIXER,name='pcm6240-2dev-reg PCM6240 i2c1 Profile id'
1258- type=INTEGER,access=rw------,values=1,min=0,max=3 ,step=0
1266+ type=INTEGER,access=rw------,values=1,min=0,max=9 ,step=0
12591267 values=0
12601268
1261- To select Device 1 (I2C address 0x49) as an active device :
1269+ To select Profile 1 (8ch Non-Interleaved) :
12621270
12631271 .. code-block :: console
12641272
12651273 root@am62dxx-evm:~# amixer cset name='pcm6240-2dev-reg PCM6240 i2c1 Profile id' 1
12661274 numid=17,iface=MIXER,name='pcm6240-2dev-reg PCM6240 i2c1 Profile id'
1267- type=INTEGER,access=rw------,values=1,min=0,max=3 ,step=0
1275+ type=INTEGER,access=rw------,values=1,min=0,max=9 ,step=0
12681276 values=1
12691277
1270- To record 4-channel audio at 48kHz sample rate with 32-bit depth :
1278+ To select Profile 2 (J2A Stereo) :
12711279
12721280 .. code-block :: console
12731281
1274- root@am62dxx-evm:~# arecord -c 4 -r 48000 -f S32_LE test.wav
1282+ root@am62dxx-evm:~# amixer cset name='pcm6240-2dev-reg PCM6240 i2c1 Profile id' 2
1283+ numid=17,iface=MIXER,name='pcm6240-2dev-reg PCM6240 i2c1 Profile id'
1284+ type=INTEGER,access=rw------,values=1,min=0,max=9,step=0
1285+ values=2
1286+
1287+ To select Profile 3 (J2B Stereo):
1288+
1289+ .. code-block :: console
1290+
1291+ root@am62dxx-evm:~# amixer cset name='pcm6240-2dev-reg PCM6240 i2c1 Profile id' 3
1292+ numid=17,iface=MIXER,name='pcm6240-2dev-reg PCM6240 i2c1 Profile id'
1293+ type=INTEGER,access=rw------,values=1,min=0,max=9,step=0
1294+ values=3
1295+
1296+ To select Profile 4 (J1A Stereo):
1297+
1298+ .. code-block :: console
1299+
1300+ root@am62dxx-evm:~# amixer cset name='pcm6240-2dev-reg PCM6240 i2c1 Profile id' 4
1301+ numid=17,iface=MIXER,name='pcm6240-2dev-reg PCM6240 i2c1 Profile id'
1302+ type=INTEGER,access=rw------,values=1,min=0,max=9,step=0
1303+ values=4
1304+
1305+ To select Profile 5 (J1B Stereo):
1306+
1307+ .. code-block :: console
1308+
1309+ root@am62dxx-evm:~# amixer cset name='pcm6240-2dev-reg PCM6240 i2c1 Profile id' 5
1310+ numid=17,iface=MIXER,name='pcm6240-2dev-reg PCM6240 i2c1 Profile id'
1311+ type=INTEGER,access=rw------,values=1,min=0,max=9,step=0
1312+ values=5
1313+
1314+ To select Profile 6 (J2A,J2B 4ch Non-Interleaved):
1315+
1316+ .. code-block :: console
1317+
1318+ root@am62dxx-evm:~# amixer cset name='pcm6240-2dev-reg PCM6240 i2c1 Profile id' 6
1319+ numid=17,iface=MIXER,name='pcm6240-2dev-reg PCM6240 i2c1 Profile id'
1320+ type=INTEGER,access=rw------,values=1,min=0,max=9,step=0
1321+ values=6
1322+
1323+ To select Profile 7 (J2A,J2B 4ch Interleaved):
1324+
1325+ .. code-block :: console
1326+
1327+ root@am62dxx-evm:~# amixer cset name='pcm6240-2dev-reg PCM6240 i2c1 Profile id' 7
1328+ numid=17,iface=MIXER,name='pcm6240-2dev-reg PCM6240 i2c1 Profile id'
1329+ type=INTEGER,access=rw------,values=1,min=0,max=9,step=0
1330+ values=7
1331+
1332+ To select Profile 8 (J1A,J1B 4ch Non-Interleaved):
1333+
1334+ .. code-block :: console
1335+
1336+ root@am62dxx-evm:~# amixer cset name='pcm6240-2dev-reg PCM6240 i2c1 Profile id' 8
1337+ numid=17,iface=MIXER,name='pcm6240-2dev-reg PCM6240 i2c1 Profile id'
1338+ type=INTEGER,access=rw------,values=1,min=0,max=9,step=0
1339+ values=8
1340+
1341+ To select Profile 9 (J1A,J1B 4ch Interleaved):
1342+
1343+ .. code-block :: console
1344+
1345+ root@am62dxx-evm:~# amixer cset name='pcm6240-2dev-reg PCM6240 i2c1 Profile id' 9
1346+ numid=17,iface=MIXER,name='pcm6240-2dev-reg PCM6240 i2c1 Profile id'
1347+ type=INTEGER,access=rw------,values=1,min=0,max=9,step=0
1348+ values=9
1349+
1350+ To record 8-channel audio at 48kHz sample rate with 32-bit depth:
1351+
1352+ .. code-block :: console
1353+
1354+ root@am62dxx-evm:~# arecord -c 8 -r 48000 -f S32_LE test.wav
12751355
12761356 Potential issues
12771357^^^^^^^^^^^^^^^^
@@ -1435,4 +1515,4 @@ Additional Information
14351515 :name: additional-information-mcasp-docs
14361516
14371517#. `McASP Hardware Design Guide
1438- <https://www.ti.com/lit/pdf/sprack0> `__
1518+ <https://www.ti.com/lit/pdf/sprack0> `__
0 commit comments