Регистры Allwinner H616

Сокращения  |  Дерево шин  |  Карта памяти


I2Sn_FMT1
8.1.6. I2Sn Format 1 - адрес: 0x20850a7003 (смещение: 0x0208+n*0x0100(n=0~3))

Аудио-концентратор: список регистров



31 ||||||||||||||||| 16
15 ||||||||||||||||| 00

  Unused

Bits 31 : 8

  RX_MLS

Bit 7
R/W
0x0

MSB/LSB First Select
0: MSB First
1: LSB First


  TX_MLS

Bit 6
R/W
0x0

MSB/LSB First Select
0: MSB First
1: LSB First


  SEXT

Bits 5 : 4
R/W
0x3

Sign Extend in slot [sample resolution < width]
00: Zeros or audio gain padding at LSB position
01: Sign extension at MSB position
10: Reserved
11: Transfer 0 after each sample in each slot


  RX_PDM

Bits 3 : 2
R/W
0x0

PCM Data Mode
00: Linear PCM
01: reserved
10: 8-bit u-law
11: 8-bit A-law


  TX_PDM

Bits 1 : 0
R/W
0x0

PCM Data Mode
00: Linear PCM
01: reserved
10: 8-bit u-law
11: 8-bit A-law



Команда U-Boot для чтения регистра

md 20850a7003 1



Bit fields structure

typedef union  i2sn_fmt1
{
  struct
  {
   unsigned tx_pdm : 2;
   unsigned rx_pdm : 2;
   unsigned sext : 2;
   unsigned tx_mls : 1;
   unsigned rx_mls : 1;
   unsigned unused0 : 24;
  } b;
   unsigned long w;
} I2Sn_FMT1
   

Allwinner H616 Manual