Регистры Allwinner H616

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


DAC_REG
8.4.5. DAC Analog Control Register - адрес: 0x5096310 (смещение: 0x0310)

Аудиокодек: список регистров



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

  Unused

Bits 31 : 24

  CURRENT_TEST_SELECT

Bit 23
R/W
0x0

Internal Current Sink Test Enable
0: Normal
1: For Debug


  Unused

Bit 22

  IOPVRS

Bits 21 : 20
R/W
0x1

VRA2 Buffer OP Bias Current Select
00: 6uA
01: 7uA
10: 8uA
11: 9uA


  ILINEOUTAMPS

Bits 19 : 18
R/W
0x1

LINEOUTL/R AMP Bias Current Select
00: 6uA
01: 7uA
10: 8uA
11: 9uA


  IOPDACS

Bits 17 : 16
R/W
0x1

OPDAC Bias Current Select

00: 7uA
01: 8uA
10: 9uA
11: 10uA


  DACLEN

Bit 15
R/W
0x0

DACL Enable
0: Disable
1: Enable


  DACREN

Bit 14
R/W
0x0

DACR Enable
0: Disable
1: Enable


  LINEOUTLEN

Bit 13
R/W
0x0

Left Channel LINEOUT Enable
0: Disable
1: Enable


  LMUTE

Bit 12
R/W
0x0

Left MIXER to Left Channel LINEOUT Mute Control
0: Mute
1: Not mute


  LINEOUTREN

Bit 11
R/W
0x0

Right Channel LINEOUT Enable
0: Disable
1: Enable


  RMUTE

Bit 10
R/W
0x0

Right MIXER to Right Channel LINEOUT Mute Control
0: Mute
1: Not mute


  RSWITCH

Bit 9
R/W
0x0

0: OUTPUT of RAMP_DAC
1: VRA1


  RAMPEN

Bit 8
R/W
0x0

Ramp DAC Enable
0: Disable
1: Enable


  Unused

Bit 7

  LEFT_LIENOUT_SOURCE

Bit 6
R/W
0x0

Left LIENOUT Source Select
0: Left Output Mixer
1: Left Output Mixer + Right Output Mixer


  RIGHT_LIENOUT_SOURCE

Bit 5
R/W
0x0

Right LIENOUT Source Select
0: Right Output Mixer
1: Left LINEOUT, for Differential Output


  LINEOUT_VOL_CNTRL

Bits 4 : 0
R/W
0x0

LINEOUT Volume Control, Total 30 level from 0x1F to 0x02 with the volume
0dB to -43.5dB, -1.5dB/step, mute when 00000 & 00001.



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

md 5096310 1



Bit fields structure

typedef union  dac_reg
{
  struct
  {
   unsigned lineout_vol_cntrl : 5;
   unsigned right_lienout_source : 1;
   unsigned left_lienout_source : 1;
   unsigned unused0 : 1;
   unsigned rampen : 1;
   unsigned rswitch : 1;
   unsigned rmute : 1;
   unsigned lineoutren : 1;
   unsigned lmute : 1;
   unsigned lineoutlen : 1;
   unsigned dacren : 1;
   unsigned daclen : 1;
   unsigned iopdacs : 2;
   unsigned ilineoutamps : 2;
   unsigned iopvrs : 2;
   unsigned unused1 : 1;
   unsigned current_test_select : 1;
   unsigned unused2 : 8;
  } b;
   unsigned long w;
} DAC_REG
   

Allwinner H616 Manual