Регистры Allwinner H616

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


AC_DAC_DRC_CTRL
8.4.5. DAC DRC Control Register - адрес: 0x5096108 (смещение: 0x0108)

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



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

  Unused

Bits 31 : 16

  DRC_DELAY_BUFFER

Bit 15
R
0x0

DRC delay buffer data output state when drc delay function is enabled and the
drc funciton is disabled. After disabled drc function and this bit goes to 0, the
user should write the drc delay function bit to 0.
0: Not completed
1: Completed


  Unused

Bit 14

  SIGNAL_DELAY_TIME_SET

Bits 13 : 8
R/W
0x0

Signal delay time setting
6'h00 : (8x1)fs
6'h01 : (8x2)fs
6'h02 : (8x3)fs
***

6'h2e : (8*47)fs
6'h2f : (8*48)fs
6'h30 -- 6'h3f : (8*48)fs
Delay time = 8*(n+1)fs, n<6'h30;

When the delay function is disabled, the signal delay time is unused.


  DELAY_BUFFER_USE

Bit 7
R/W
0x1

The delay buffer use or not when the drc is disabled and the drc buffer data output completely.
0: Don't use the buffer
1: Use the buffer


  DRC_GAIN_MAX_LIM

Bit 6
R/W
0x0

DRC gain max limit enable
0: Disable
1: Enable


  DRC_GAIN_MIN_LIM

Bit 5
R/W
0x0

DRC gain min limit enable
When this function is enabled, it will overwrite the noise detect funciton.
0: Disable
1: Enable


  CTRL_DRC_DETECT_NOISE

Bit 4
R/W
0x0

Control the drc to detect noise when ET enable
0: Disable
1: Enable


  SIGN_FUNCT_SELECT

Bit 3
R/W
0x0

Signal function select
0: RMS filter
1: Peak filter

When signal function selects Peak filter, the RMS parameter is unused.
(AC_DRC_LRMSHAT/AC_DRC_LRMSLAT/AC_DRC_LRMSHAT/AC_DRC_LRMSLAT)
When signal function selects RMS filter, the Peak filter parameter is unused.
(AC_DRC_LPFHAT/AC_DRC_LPFLAT/AC_DRC_RPFHAT/AC_DRC_RPFLAT
/AC_DRC_LPFHRT/AC_DRC_LPFLRT/AC_DRC_RPFHRT/AC_DRC_RPFLRT)


  DEL_FUNCT_ENABLE

Bit 2
R/W
0x0

Delay function enable
0: Disable
1: Enable
When the bit is disabled, the signal delay time is unused.


  DRC_LT_ENABLE

Bit 1
R/W
0x0

0: Disable
1: Enable
When the bit is disabled, Kl and OPL parameter is unused.


  DRC_ET_ENABLE

Bit 0
R/W
0x0

0: Disable
1: Enable
When the bit is disabled, Ke and OPE parameter is unused.



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

md 5096108 1



Bit fields structure

typedef union  ac_dac_drc_ctrl
{
  struct
  {
   unsigned drc_et_enable : 1;
   unsigned drc_lt_enable : 1;
   unsigned del_funct_enable : 1;
   unsigned sign_funct_select : 1;
   unsigned ctrl_drc_detect_noise : 1;
   unsigned drc_gain_min_lim : 1;
   unsigned drc_gain_max_lim : 1;
   unsigned delay_buffer_use : 1;
   unsigned signal_delay_time_set : 6;
   unsigned unused0 : 1;
   unsigned drc_delay_buffer : 1;
   unsigned unused1 : 16;
  } b;
   unsigned long w;
} AC_DAC_DRC_CTRL
   

Allwinner H616 Manual