Регистры Allwinner H616

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


DAM_VOL_CTRL1
8.1.6. DAM GAIN Control 1 - адрес: 0xa54509f001 (смещение: 0x0A54+n*0x0080(n=0,1))

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



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

  Unused

Bits 31 : 28

  TXCH3_GAIN_RXCH2

Bits 27 : 24
R/W
0x1

RX2 Channel NUM to TXDIF Channel 3 Gain
0000: Mute
0001: 0dB
0010: -6dB
0100:-12dB
Others: Reserved


  TXCH3_GAIN_RXCH1

Bits 23 : 20
R/W
0x1

RX1 Channel NUM to TXDIF Channel 3 Gain
0000: Mute
0001: 0dB
0010: -6dB
0100:-12dB
Others: Reserved


  TXCH3_GAIN_RXCH0

Bits 19 : 16
R/W
0x1

RX0 Channel NUM to TXDIF Channel 3 Gain
0000: Mute
0001: 0dB
0010: -6dB
0100: -12dB
Others: Reserved


  Unused

Bits 15 : 12

  TXCH2_GAIN_RXCH2

Bits 11 : 8
R/W
0x1

RX2 Channel NUM to TXDIF Channel 2 Gain
0000: Mute
0001: 0dB
0010: -6dB
0100:-12dB
Others: Reserved


  TXCH2_GAIN_RXCH1

Bits 7 : 4
R/W
0x1

RX1 Channel NUM to TXDIF Channel 2 Gain
0000: Mute
0001: 0dB
0010: -6dB
0100:-12dB
Others: Reserved


  TXCH2_GAIN_RXCH0

Bits 3 : 0
R/W
0x1

RX0 Channel NUM to TXDIF Channel 2 Gain
0000: Mute
0001: 0dB
0010: -6dB
0100:-12dB
Others: Reserved



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

md a54509f001 1



Bit fields structure

typedef union  dam_vol_ctrl1
{
  struct
  {
   unsigned txch2_gain_rxch0 : 4;
   unsigned txch2_gain_rxch1 : 4;
   unsigned txch2_gain_rxch2 : 4;
   unsigned unused0 : 4;
   unsigned txch3_gain_rxch0 : 4;
   unsigned txch3_gain_rxch1 : 4;
   unsigned txch3_gain_rxch2 : 4;
   unsigned unused1 : 4;
  } b;
   unsigned long w;
} DAM_VOL_CTRL1
   

Allwinner H616 Manual