Регистры Allwinner H616

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


OWA_TX_CHSTA0
8.3.4. OWA TX Channel Status Register0 - адрес: 0x509302c (смещение: 0x002C)

Контроллер последовательной аудио-шины: список регистров



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

  Unused

Bits 31 : 30

  CLOCK_ACC

Bits 29 : 28
R/W
0x0

Clock Accuracy
00: Level 2
01: Level 1
10: Level 3
11: Not matched


  FREQ

Bits 27 : 24
R/W
0x0

Sample Frequency
0000: 44.1 kHz
0001: Not indicated
0010: 48 kHz
0011: 32 kHz
0100: 22.05 kHz
0101: Reserved
0110: 24 kHz
0111: Reserved
1000: Reserved
1001: 768 kHz
1010: 96 kHz
1011: Reserved
1100: 176.4 kHz
1101: Reserved
1110: 192 kHz
1111: Reserved


  CHAN_NUM

Bits 23 : 20
R/W
0x0

CN
Channel Number


  SOURCE_NUM

Bits 19 : 16
R/W
0x0

Source Number


  CAT_CODE

Bits 15 : 8
R/W
0x0

Category Code
Indicates the kind of equipment that generates the digital audio interface signal.


  MODE

Bits 7 : 6
R/W
0x0

Mode
00: Default Mode
01~11: Reserved


  EMPHASIS

Bits 5 : 3
R/W
0x0

Additional format information
For bit 1 = \"0\", Linear PCM audio mode:
000: 2 audio channels without pre-emphasis
001: 2 audio channels with 50 ?s / 15 ?s pre-emphasis
010: Reserved (for 2 audio channels with pre-emphasis)
011: Reserved (for 2 audio channels with pre-emphasis)
100~111: Reserved
For bit 1 = \"1\", other than Linear PCM applications:
000: Default state
001~111: Reserved


  COPYRIGHT

Bit 2
R/W
0x0

0: Copyright is asserted
1: No copyright is asserted


  AUDIO_TYPE

Bit 1
R/W
0x0

Audio Data Type
0: Linear PCM samples
1: Non-linear PCM audio


  APP_TYPE

Bit 0
R/W
0x0

Application Type
0: Consumer application
1: Professional application
This bit must be fixed to \"0\".



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

md 509302c 1



Bit fields structure

typedef union  owa_tx_chsta0
{
  struct
  {
   unsigned app_type : 1;
   unsigned audio_type : 1;
   unsigned copyright : 1;
   unsigned emphasis : 3;
   unsigned mode : 2;
   unsigned cat_code : 8;
   unsigned source_num : 4;
   unsigned chan_num : 4;
   unsigned freq : 4;
   unsigned clock_acc : 2;
   unsigned unused0 : 2;
  } b;
   unsigned long w;
} OWA_TX_CHSTA0
   

Allwinner H616 Manual