Audio Route

The purpose of this document is to describe how to use the Audio Route module in the MCUConfig Tool. The audio routing capability of each IC can be demonstrated using the MCUConfig Tool. Customers can configure the routing relationship of each audio stream using the MCUConfig Tool.

This document contains the following information:

  1. Audio Route Concepts

  2. Audio Route Configurations

Audio Route Concepts

Audio Route indicates the static configuration of the physical data path. The Audio Route module is classified based on the Audio Category. The Audio Route module consists of Gateway configuration, Endpoint configuration, Logical IO configuration, and Physical IO configuration.

The figure shows a simplified Audio Route path between Codec and DSP.

../../../_images/AudioRoute.png

Audio Route Path

As shown in the figure, the data collected by the microphone passes through an ADC channel of the Codec and flows to a SPORT RX channel to reach the DSP. After the data is processed by the DSP, it passes through a SPORT TX channel and then passes through the DAC channel of the Codec, and finally, is played out through the specific speaker.

The main function of the Audio Route module is to configure Gateway and Logical IO related parameters for an Audio Route path.

Audio Category

Audio Category is used to classify all streams transferred between the Host and the Controller. The streams that have the same control flows, usage scenarios, and functionalities should be classified as follows:

The table shows the types of Audio Category.

Audio Category Type

Category

Description

Audio

Audio Playback Streams

Voice

Voice Uplink and Downlink Streams

Record

Voice Capture and Recognition Streams

Line

Line Streams

Ringtone

Ringtone Streams

Voice Prompt

Voice Prompt Streams

APT

Ambient Passthrough Streams

LLAPT

Low-latency Ambient Passthrough Streams

ANC

Ambient Noise Control Streams.

VAD

Voice Activity Detection Streams

KWS

Keyword Spotting Streams

Pipe

Codec Conversion Streams

Gateway

A Gateway controls the inflow and outflow of multiple stream routing paths. These stream routing paths shall have the same configurations, such as sample rate, data length, channel length, and channel mode. The Host and the Controller shall support 2 Gateway types.

The table shows the types of Gateway.

Gateway Type

Name

Description

SPORT

I2S Interface

SPDIF

SPDIF Interface

Each Gateway shall support at most 4 Gateway indexes per Gateway type. Currently, you can configure SPORT0/1/2/3 and SPDIF0 through MCUConfig Tool. Each Gateway shall have two directions, including TX and RX.

Logical IO

Logical IO refers to the logical input and output related to the functions provided by the DSP.

The table shows the types of Logical IO.

Logical IO Type

Name

Value

Description

Audio Primary Out

0x00

Audio Primary Out

Audio Secondary Out

0x01

Audio Secondary Out

Audio Primary Reference Out

0x02

Audio Primary Reference Out

Audio Secondary Reference Out

0x03

Audio Secondary Reference Out

Voice Primary Out

0x10

Voice Primary Out

Voice Secondary Out

0x11

Voice Secondary Out

Voice Primary Reference Out

0x12

Voice Primary Reference Out

Voice Secondary Reference Out

0x13

Voice Secondary Reference Out

Voice Primary Reference In

0x14

Voice Primary Reference In

Voice Secondary Reference In

0x15

Voice Secondary Reference In

Voice Primary In

0x16

Voice Primary In

Voice Secondary In

0x17

Voice Secondary In

Voice Fusion In

0x18

Voice Fusion In

Voice Bone Conduction In

0x19

Voice Bone Conduction Sensor In

Record Primary Reference In

0x20

Record Primary Reference In

Record Secondary Reference In

0x21

Record Secondary Reference In

Record Primary In

0x22

Record Primary In

Record Secondary In

0x23

Record Secondary In

Record Fusion In

0x24

Record Fusion In

Record Bone Conduction In

0x25

Record Bone Conduction Sensor In

Line Primary Out

0x30

Line Primary Out

Line Secondary Out

0x31

Line Secondary Out

Line Primary Reference Out

0x32

Line Primary Reference Out

Line Secondary Reference Out

0x33

Line Secondary Reference Out

Line Primary Reference In

0x34

Line Primary Reference In

Line Secondary Reference In

0x35

Line Secondary Reference In

Line Left In

0x36

Line Left In

Line Right In

0x37

Line Right In

Ringtone Primary Out

0x40

Ringtone Primary Out

Ringtone Secondary Out

0x41

Ringtone Secondary Out

Ringtone Primary Reference Out

0x42

Ringtone Primary Reference Out

Ringtone Secondary Reference Out

0x43

Ringtone Secondary Reference Out

Voice Prompt Primary Out

0x50

Voice Prompt Primary Out

Voice Prompt Secondary Out

0x51

Voice Prompt Secondary Out

Voice Prompt Primary Reference Out

0x52

Voice Prompt Primary Reference Out

Voice Prompt Secondary Reference Out

0x53

Voice Prompt Secondary Reference Out

APT Primary Out

0x60

APT Primary Out

APT Secondary Out

0x61

APT Secondary Out

APT Primary Reference Out

0x62

APT Primary Reference Out

APT Secondary Reference Out

0x63

APT Secondary Reference Out

APT Primary Reference In

0x64

APT Primary Reference In

APT Secondary Reference In

0x65

APT Secondary Reference In

APT Front Left In

0x66

APT Front Left In

APT Front Right In

0x67

APT Front Right In

APT FF Left In

0x68

APT FF Left In

APT FF Right In

0x69

APT FF Right In

APT FB Left In

0x6A

APT FB Left In

APT FB Right In

0x6B

APT FB Right In

APT Bone Left In

0x6C

APT Bone Left In

APT Bone Right In

0x6D

APT Bone Right In

LL-APT Primary Out

0x70

Low Latency APT Primary Out

LL-APT Secondary Out

0x71

Low Latency APT Secondary Out

LL-APT Primary Reference Out

0x72

Low Latency APT Primary Reference Out

LL-APT Secondary Reference Out

0x73

Low Latency APT Secondary Reference Out

LL-APT Primary Reference In

0x74

Low Latency APT Primary Reference In

LL-APT Secondary Reference In

0x75

Low Latency APT Secondary Reference In

LL-APT Left In

0x76

Low Latency APT Left In

LL-APT Right In

0x77

Low Latency APT Right In

ANC Primary Out

0x80

ANC Primary Out

ANC Secondary Out

0x81

ANC Secondary Out

ANC Primary Reference Out

0x82

ANC Primary Reference Out

ANC Secondary Reference Out

0x83

ANC Secondary Reference Out

ANC Primary Reference In

0x84

ANC Primary Reference In

ANC Secondary Reference In

0x85

ANC Secondary Reference In

ANC FF Left In

0x86

ANC Feedforward Left In

ANC FF Right In

0x87

ANC Feedforward Right In

ANC FB Left In

0x88

ANC Feedback Left In

ANC FB Right In

0x89

ANC Feedback Right In

VAD Primary Reference In

0x90

VAD Primary Reference In

VAD Secondary Reference In

0x91

VAD Secondary Reference In

VAD Primary In

0x92

VAD Primary In

VAD Secondary In

0x93

VAD Secondary In

Endpoint

Endpoint defines the peripheral interface type for the physical data paths. Endpoint consists of SPK, MIC, AUX and SPDIF physical entity input and output.

The figure shows types of Endpoint.

../../../_images/Endpoint.png

Endpoint Type

Note

  1. MIC indicates the microphone input Endpoint.

  2. SPK indicates the speaker output Endpoint.

  3. AUX indicates the auxiliary input Endpoint or the auxiliary output Endpoint.

  4. SPDIF indicates the SPDIF input Endpoint or the SPDIF output Endpoint.

Physical IO

The Physical IO defines the hardware driver layer interface enumerations for the corresponding IO Endpoint. Apparently, the Physical IO enumerations of each IO Endpoint type are coupled with the underlying hardware capabilities.

The table shows the parameter description of Physical IO.

Physical IO

IO Name

Parameter List

SPK

Physical Speaker1/2

MIC

Physical Microphone 1/2/3/4

AUX

AUX-IN Left/Right Channel

SPDIF

SPDIF Interface 0

Audio Route Path

An audio path is constructed from one or more Audio Route paths.

The figure shows the components of an Audio Route path.

../../../_images/AudioRoutePath.png

Audio Route Path

As shown in the figure, an Audio Route path consists of the Logical IO Type, the Endpoint Type, SPK and MIC parameters, Gateway Index, and Gateway Channel. The parameter of SPK contains the SPK Type, SPK Gain, and DAC Channel. The parameter of MIC contains the MIC Index, MIC Type, MIC Gain, and ADC Channel.

The table shows the parameter description of an Audio Route path.

Audio Route Path Parameter

Name

List

SPK Index

Speaker1/2

SPK Type

Single-End/Differential

DAC Channel

DAC0/1/2/3

MIC Index

Amic1/2/3 Dmic1/2

MIC Type

Single-End/Differential/Falling Edge/Rising Edge

ADC Channel

ADC0/1/2/3

Gateway Index

SPORT0/1/2/3/ SPDIF0

Gateway Channel

TX Channel0/1/2/3 RX Channel0/1/2/3

Audio Route Configurations

The Audio Route module is mainly used to configure related parameters of Gateway and Logical IO parameters of the physical data stream. The main configurable functions are as follows:

  1. Configure ADC Gain for the device MIC.

  2. Configure the Gateway hardware parameters.

  3. Configure the Codec Mixing function.

  4. Configure Logical IO parameters for the audio stream.

ADC Gain

The ADC Gain is mainly used to configure the analog boost gain of the selected physical MIC or AUX. When there is a need to adjust the volume of the MIC input, it can be done through this function.

The figure shows that Voice Primary In selects Amic1 Differential.

../../../_images/Voice_Amic1.png

Voice Primary In

The figure shows how to configure ADC Gain.

../../../_images/ADC_GAIN.png

ADC Gain

When configuring the Physical IO of a corresponding Physical MIC or AUX, also configure the ADC Gain of that Physical MIC or AUX. For example, if the Voice Primary In is configured in the Voice Category and Amic1 Differential is selected, then the ADC Gain value of Amic1 Differential should be configured.

After clicking the Set ADC Gain button, the ADC Gain configuration box will appear. Select the Analog Boost Gain for Amic1 Differential from the drop-down box. The analog boost gain of the physical MIC or AUX can be set to values ranging from 0dB to 30dB in increments of 3dB.

Note

  1. MIC ADC Gain can be adjusted using the Set ADC Gain button only if Amic is selected.

  2. AUX ADC Gain can be adjusted by setting the Set ADC Gain button only when AUX is selected.

  3. Dmic Gain cannot be adjusted by the Set ADC Gain button.

  4. Configure ADC Gain for the Amic index as required.

Gateway

In the current Gateway parameters, the SPORT and SPDIF hardware parameters are configured by default. Unless there are specific requirements, there is no need to set the SPORT and SPDIF hardware parameters. If customers require the configuration of the SPORT and SPDIF parameters, they should contact the relevant developer to obtain and provide the necessary parameters. The default configuration for SPORT and SPDIF may vary depending on the specific IC.

The figure shows how to configure Gateway parameters.

../../../_images/Gateway.png

Gateway

Note

  1. SPORT: Select this option to enable the SPORT of the corresponding index. The optional value is SPORT0/1/2/3. If the Gateway index of an Audio Route path is selected, enable this Gateway index and configure related parameters. The figure shows when to configure Gateway index parameters.

  1. SPDIF: Select this option to enable the SPDIF of the corresponding index. The optional value is SPDIF0.

  2. Bridge: SPORT supports single-direction TX and RX configurations. The options are Internal and External. It is worth noting that when this option is configured as External, go to the HW Feature tab to configure the corresponding PINMUX.

  3. Role: Configure the Role. The value can be Master or slave.

  4. BCLK SRC: Configure the BCLK and jitter functions. The optional value is XTAL or PLL.

  5. RX/TX FIFO Mode: Configure the manner in which the RX and TX directions of SPORT align FIFO data. The optional value is Non-interlaced or Interlaced.

  6. RX/TX Channel Mode: Configure the transfer mode in the RX and TX directions. The value is TDM2/4/6/8.

  7. RX/TX Format: Configure the format of SPORT data in the RX and TX directions. The value can be I2S/Left Justified/PCM_A/PCM_B.

  8. RX/TX Data Length: Configure the data length in the RX and TX directions of SPORT. The value is 8/16/20/24/32BIT.

  9. RX/TX Channel Length: Configure the length of the channel in the RX and TX directions. The optional value is 16/20/24/32BIT.

  10. RX/TX Sample Rate: Configure the RX and TX direction of SPORT support sampling rate conversion, optional value of 8/16/32/44.1/48/88.2/96/192/12/24/11.025/22.05KHZ.

External Device

The figures show how to configure Bridge.

../../../_images/External_Bridge.png

External Bridge

../../../_images/Pinmux.png

External Bridge PINMUX

To configure an external device in one direction, use the TX and RX Bridge drop-down boxes. For example, if the RX and TX options in the Bridge field of SPORT0 are configured as External, configure the corresponding PINMUX settings for SPORT0_LRC, SPORT0_BCLK, SPORT0_DACDAT, and SPORT0_ADCDAT in the HW Feature tab.

Note

  1. When the Role field is set to Master, the TX and RX Bridge field allows users to freely select External or Internal. When Role is set to Slave, the TX and RX of the Bridge field can only be changed to the fixed value External.

  2. RTL87x3E and RTL87x3EP: For SPORT0/1, you can configure the Bridge field based on the Role field. For SPORT2, the TX and RX of its Bridge field is a fixed value External, regardless of its Role value.

  3. RTL87x3D: For SPORT0/1/2, you can configure the Bridge field based on the Role field. For SPORT3, the TX and RX of its Bridge field is a fixed value External, regardless of its Role value.

MCLK

The figure shows how to configure MCLK.

../../../_images/MCLK.png

MCLK

MCLK is primarily used to configure the sample rate of the external DSP. Once the TX and RX options in the Bridge field are configured as External, the frequency configuration will only take effect when MCLK Enable is selected.

Note

  1. If the MCLK Enable option is selected, external MCLK configuration is enabled.

  2. With the MCLK Enable option checked, the optional MCLK Rate is 1024KHZ, 1411.2KHZ, 2048KHZ, 2822.4KHZ, 3072KHZ, 4096KHZ, 5644.8KHZ, 6144KHZ, 8192KHZ, 11289.6KHZ, 12288KHZ, 16384KHZ, 22579.2KHZ, 24576KHZ, 32768KHZ.

BCLK

The figure shows how to configure BCLK.

../../../_images/BCLK.png

BCLK

If there is no special requirement, the XTAL crystal oscillator is used as the default clock source. You can also choose PLL as the clock source by selecting the desired option from the BCLK SRC drop-down box.

FIFO Mode

The FIFO Mode is configured by default based on the specific product modality. If you need to configure the FIFO Mode of TX and RX, the available options are Interlaced or Non-interlaced. The figure shows the different configurations of FIFO Mode between TWS and Headset.

TWS

../../../_images/TWSFIFO.png

FIFO Mode of TWS

Headset

../../../_images/HEADFIFO.png

FIFO Mode of Headset

Channel Mode

The Channel Mode is configured by default. If you need to configure the Channel Mode fields of TX and RX in GATEWAY, the available options include TDM2/4/6/8.

Note

  1. For RTL87x3E and RTL87x3EP, RX default value is TDM4, TX default value is TDM2.

  2. For RTL87x3D, RX default value is TDM6, TX default value is TDM2.

  3. The index of Gateway Channel must be smaller than the Channel Mode index. For example, when Channel Mode is TDM4, you can only set Gateway Channel to Channel0/1/2/3. The figure shows the limitation between Channel Mode and Gateway Channel.

../../../_images/TDM_CH.png

Limitation of Channel Mode and Gateway Channel

Data Length

The figure shows how to configure Gateway Data Length.

../../../_images/Data_Length.png

Gateway Data Length

The Gateway Data Length is configured by default. However, if there is a special requirement, it may be necessary to configure the Data Length fields of TX and RX in the Gateway.

Note

For RTL87x3E, RTL87x3EP and RTL87x3D: Set the Data Length to 24BIT.

Channel Length

The figure shows how to configure Gateway Channel Length.

../../../_images/Channel_Length.png

Gateway Channel Length

The Gateway Channel Length is configured by default. However, if there is a special requirement, it may be necessary to configure the Channel Length fields of TX and RX in the Gateway.

Note

For RTL87x3E, RTL87x3EP and RTL87x3D: Set the Data Length to 24BIT and the Channel Length to 32BIT.

Sample Rate

The figure shows how to configure Gateway Sample Rate.

../../../_images/Gateway_Sample_Rate.png

Gateway Sample Rate

The Gateway Sample Rate is configured by default. If there are special requirements, the TX and RX Sample Rate fields need to be configured in the GATEWAY. When selecting Dynamic for the Sample Rate, the physical data flow uses its own Sample Rate. On the other hand, selecting any other option indicates that the physical data path uses a fixed Sample Rate.

Note

When the Gateway Bridge is External, the Gateway Sample Rate should be set to fixed 48K.

Codec Mixing

Codec provides two mix data nodes, which can ignore the influence of sample rate and simultaneously play mixed data of two or three channels.

The figure shows a sample of Codec Mixing function.

../../../_images/CodecMix.png

Codec Mixing Function

As shown in the figure, Audio or Voice and Voice Prompt are mixed, deployed, and played on DAC0. For tool configuration, Codec mix supports the configuration of DAC0 and DAC1 to select the mix path of the demand. This field is also configured by default.

The figure shows how to configure Codec Mixing function.

../../../_images/Codec_Mix_UI.png

Codec Mixing

Note

  1. If the DAC1 check box is selected in DAC0, it allows for the mixing of data from DAC1 to DAC0.

  2. Enabling the DAC0 check box in DAC1 allows for the mixing of data from DAC0 to DAC1.

Codec Interpolation Filter

When there is a requirement to reduce the latency of the DAC Channel, Codec Interpolation Filter Type should be configured.

The figure shows how to configure Codec Interpolation Filter Type.

../../../_images/Codec_Interpolation.png

Codec Interpolation Filter Type

Each Codec DAC channel can choose either linear or minimum interpolation filter type.

Audio Logical Device

Audio Logic Device supports the configuration of Logic IO parameters for data streams such as Audio, Voice, Record, Line, Ringtone, Voice Prompt, APT, LLAPT, ANC and VAD. The Logical IO configuration of each category is different for TWS and Headset.

The figure shows how to configure the Audio Route path for different Audio Categories.

../../../_images/Physical_Path.png

Audio Route Path of Audio Categories

If there is a need to configure the Logical IO parameter for the Audio Category, the appropriate Audio Category button should be clicked. The corresponding configuration box will then pop up. It should be noted that the Logical IO configuration is different for different product forms. This section explains how to configure Logical IO in terms of TWS and Headset. The Overview button can be clicked to get an overview of Logical IO configuration information for all Audio Categories.

Audio

Audio Category supports Audio Primary Out, Audio Secondary Out, Audio Primary Reference Out and Audio Secondary Reference Out.

  1. Audio Primary Out is used to set the Audio physical route of the Primary output.

  2. Audio Secondary Out is used to set the Audio physical route of the Secondary output.

  3. Audio Primary Reference Out is used to set the Audio physical AEC loopback path of the Primary output.

  4. Audio Secondary Reference Out is used to set the Audio physical AEC loopback path of the Secondary output.

TWS

The figure shows how to configure an Audio Route path for Audio Out of TWS.

../../../_images/Audio_Out.png

Audio Route of TWS

As shown in the figure, this line of configuration for Audio Out forms an Audio Route path. When clicking the blue dot Out in the TWS headphone diagram, the Audio Out will be bolded to indicate that it’s necessary to configure the Audio Route path in order to play the audio sound. Check the box on the Endpoint to enable Audio Out. For Physical IO, select Speaker1/2 Single-end/Differential. For Codec AD/DA, select DAC0. For Gateway, select SPORT0. For Gateway Channel, select TX Channel 0.

Headset

The figure shows how to configure Audio Route path for Audio Category of Headset.

../../../_images/Audio_Physical_Path.png

Audio Route of Headset

Different from TWS, Headset needs to select Audio Primary Out and Audio Secondary Out. For Audio Secondary Out, the DAC Channel should be set to DAC1 and the Gateway Channel should be set to TX Channel 1.

AEC Loopback

AEC means linear removal of echo signal mixing in microphone input without affecting the quality of the desired speech signal. To enable the AEC loopback function, check the Audio Primary Reference Out or Audio Secondary Reference Out. For Physical IO of Audio Primary Reference Out and Audio Secondary Reference Out, select Reference Speaker.

Note

When the Record Primary Reference In and Record Secondary Reference In corresponding to the Record Category are also configured, the AEC loopback path of Audio and Record can be really connected.

Voice

Voice Category supports Voice Primary Out, Voice Secondary Out, Voice Primary Reference Out, Voice Secondary Reference Out, Voice Primary Reference In, Voice Secondary Reference In, Voice Primary Reference In, Voice Primary In, Voice Secondary In, Voice Fusion In and Voice Bone In:

  1. Voice Primary Out is used to set the Voice physical route of the Primary output Endpoint.

  2. Voice Secondary Out is used to set the Voice physical route of the Secondary output Endpoint.

  3. Voice Primary Reference Out is used to set the Voice physical AEC loopback path of the Primary output Endpoint.

  4. Voice Secondary Reference Out is used to set the Voice physical AEC loopback path of the Secondary output Endpoint.

  5. Voice Primary Reference In is used to set the Voice physical AEC loopback path of the Primary input Endpoint.

  6. Voice Secondary Reference In is used to set the Voice physical AEC loopback path of the Secondary input Endpoint.

  7. Voice Primary In is used to set the Voice physical route for the Primary input Endpoint.

  8. Voice Secondary In is used to set the Voice physical route of the Secondary input Endpoint.

  9. Voice Fusion In is used to set the Voice physical route for Fusion input Endpoint.

  10. Voice Bone In is used to set the Voice physical route for the Bone Sensor input Endpoint.

TWS

The figure shows how to configure an Audio Route path for Voice Out of TWS.

../../../_images/VOICE_ROUTE.png

Voice Route of TWS

Voice Out should be selected. The Voice Out parameters are the same as the Audio Out parameters.

Headset

The figure shows how to configure an Audio Route path for the Voice Category of Headset.

../../../_images/Voice_Physical_Path.png

Voice Route of Headset

Different from TWS, Headset needs to select Voice Primary Out and Voice Secondary Out. For Voice Secondary Out, the DAC Channel should be set to DAC1 and the Gateway Channel should be set to TX Channel 1.

Default MIC

If there is no special requirement, the Voice Primary In should be selected to play the input voice. For Endpoint, check the MIC button to enable Voice Primary In. For Physical IO, select the index and type of MIC. For ADC Channel, select ADC0/1/2/3/4/5. For Gateway, select SPORT0. For Gateway Channel, select RX Channel 0/1/2/3. It should be noted that the ADC Channel and Gateway Channel should choose a different index for different Logical IO.

Dual MIC

When two microphones are needed as input, select Voice Primary In and Voice Secondary In. It should be noted that the ADC Channel and Gateway Channel of Voice Primary In and Voice Secondary In should be different. For example, when the ADC Channel of Voice Primary In is set to ADC0, the ADC Channel of Voice Secondary In should be set to ADC1/2/3/4. The Gateway Channel of Voice Primary In is set to RX Channel 0, the Gateway Channel of Voice Secondary In should be set to RX Channel 1/2/3/4.

Audio Effect Requirements

When other voice sound effects requirements arise, Voice Fusion In and Voice Bone In can be configured. Similarly, the ADC Channel and Gateway Channel of Voice Fusion In and Voice Bone In should be different from Voice Primary In and Voice Secondary In.

AEC Loopback

When there is a requirement for AEC loopback functionality, select the Voice Primary Reference Out and Voice Primary Reference In at the same time. The Voice Secondary Reference Out and Voice Secondary Reference In can also be selected at the same time to enable the AEC loopback functionality. For Physical IO of Voice Reference Primary Out and Voice Reference Secondary Out, select Reference Speaker. For DAC Channel of Voice Reference Primary Out and Voice Reference Secondary Out, select DAC0 or DAC1. For Physical IO of Voice Reference Primary In and Voice Reference Secondary In, select Reference MIC. It should be noted that the ADC Channel and Gateway Channel should choose a different index for different Logical IO.

Note

When the Voice Primary Reference Out and Voice Primary Reference In corresponding to the Voice Category, or when the Voice Secondary Reference Out and Voice Secondary Reference In are configured, the AEC loopback path is actually connected.

Record

Record Category supports Record Primary In, Record Secondary In, Record Primary Reference In, Record Secondary Reference In, Record Fusion In, and Record Bone In:

  1. Record Primary In is used to set the Record physical route of the Primary input Endpoint.

  2. Record Secondary In is used to set the Record physical route of the Secondary input Endpoint

  3. Record Primary Reference In is used to set the Record physical AEC loopback path of the Primary input Endpoint.

  4. Record Secondary Reference In is used to set the Record physical AEC loopback path of the Secondary input Endpoint.

  5. Record Fusion In is used to set the Record physical route of the Fusion input Endpoint.

  6. Record Bone In is used to set the Record physical route of the Bone Sensor input Endpoint.

TWS

The figure shows how to configure an Audio Route path for Record In of TWS.

../../../_images/Record_Route.png

Record Route of TWS

Record Primary In should be selected. The Record Primary In parameters are the same as the Voice Primary In.

Headset

The figure shows how to configure the Audio Route path for the Record Category of Headset.

../../../_images/Record_Physical_Path.png

Record Route of Headset

Record Primary In and Record Secondary In should be selected.

Default MIC

If there is no special requirement, the Record Primary In should be selected to record the input sound. For Endpoint, check the MIC button to enable Record Primary In. For Physical IO, select the index and type of MIC. For ADC Channel, select ADC0/1/2/3/4/5. For Gateway, select SPORT0. For Gateway Channel, select RX Channel 0/1/2/3. It should be noted that the ADC Channel and Gateway Channel should choose a different index for different Logical IO.

Dual MIC

When two microphones are needed as input, check Record Primary In and Record Secondary In. It should be noted that the ADC Channel and Gateway Channel of Record Primary In and Record Secondary In should be different.

Audio Effect Requirements

When other voice sound effects are required, configure Record Fusion In and Record Bone In. The ADC Channel and Gateway Channel of Record Fusion In and Record Bone In should also be different from each other.

AEC Loopback

When the AEC loopback functionality is required, check the Audio Primary Reference Out and Record Primary Reference In at the same time. Also, check the Audio Secondary Reference Out and Record Secondary Reference In at the same time to enable the AEC loopback functionality. The ADC Channel and Gateway Channel of Record Primary Reference In and Record Secondary Reference In should also be different from Record Primary In, Record Secondary In, Record Fusion In and Record Bone In if they are selected.

Note

When the Audio Primary Reference Out and Audio Secondary Reference Out corresponding to Audio Category, Ringtone Category or Voice Prompt Category are configured, the AEC loopback path for Audio and Record, Ringtone and Record, or Voice Prompt and Record is open.

Line

Line Category supports Line Primary Out, Line Secondary Out, Line Primary Reference Out, Line Secondary Reference Out, Line Left In, Line Right In, Line Primary Reference In and Line Secondary Reference In:

  1. Line Primary Out is used to set the Line physical route of the Primary output Endpoint.

  2. Line Secondary Out is used to set the Line physical route of the Secondary output Endpoint.

  3. Line Primary Reference Out is used to set the Line physical AEC loopback path of the Primary output Endpoint.

  4. Line Secondary Reference Out is used to set the Line physical AEC loopback path of the Secondary output Endpoint.

  5. Line Primary Reference In is used to set the Line physical AEC loopback path of the Primary input Endpoint.

  6. Line Secondary Reference In is used to set the Line physical AEC loopback path of the Secondary input Endpoint.

  7. Line Primary In is used to set the Line physical route of the Primary input Endpoint.

  8. Line Secondary In is used to set the Line physical route of the Line Secondary input Endpoint.

TWS

The figure shows how to configure the Audio Route path for the Line Category of TWS.

../../../_images/Line_Route.png

Line Route of TWS

To play the sound of the Line and record the input of the Line, select Line Out and Line In. For the Endpoint of Line, select AUX, and the Physical IO should be set to AUX Left.

Headset

The figure shows how to configure the Audio Route path for the Line Category of Headset.

../../../_images/Audio_Line_Physical_Path.png

Line Route of Headset

For Headset, select Line Primary Out and Line Secondary Out, Line Left In and Line Right In. The DAC Channel and Gateway Channel of Line Primary Out and Line Secondary Out are the same as Audio Primary Out and Audio Secondary Out. The ADC Channel and Gateway Channel of Line Left In and Line Right In should be different.

AEC Loopback

When there is a requirement for AEC loopback functionality, check the Line Primary Reference Out and Line Primary Reference In at the same time. Also, check the Line Secondary Reference Out and Line Secondary Reference In at the same time to enable the AEC loopback functionality. The ADC Channel and Gateway Channel of Line Primary Reference In and Line Secondary Reference In should also be different from Line Left In, Line Right In if they are selected.

Note

When the Line Primary Reference Out and Line Primary Reference In corresponding to the Line Category, or when the Line Secondary Reference Out and Line Secondary Reference In are configured, the loopback path of the AEC is actually connected.

Ringtone

Ringtone Category supports Ringtone Primary Out, Ringtone Secondary Out, Ringtone Primary Reference Out and Ringtone Secondary Reference Out:

  1. Ringtone Primary Out is used to set the Ringtone physical route of the Primary output Endpoint.

  2. Ringtone Secondary Out is used to set the Ringtone physical route of the Secondary output Endpoint.

  3. Ringtone Primary Reference Out is used to set the Ringtone physical AEC loopback path of the Primary output Endpoint.

  4. Ringtone Secondary Reference Out is used to set the Ringtone physical AEC loopback path of the Secondary output Endpoint.

TWS

The figure shows how to configure an Audio Route path for Ringtone Out of TWS.

../../../_images/Ringtone_Route.png

Ringtone Route of TWS

Check the box on the Endpoint to enable Ringtone Out. For Physical IO, select Speaker1/2 Single-end/Differential. For DAC Channel, select DAC2. For Gateway, select SPORT2. For Gateway Channel, select TX Channel 0.

Headset

The figure shows how to configure the Audio Route path for the Ringtone Category of Headset.

../../../_images/Ringtone_Physical_Path.png

Ringtone Route of Headset

Different from TWS, Headset needs to check Ringtone Primary Out and Ringtone Secondary Out. For Ringtone Secondary Out, the DAC Channel should be set to DAC1 and the Gateway Channel should be set to TX Channel 1.

AEC Loopback

To enable the AEC loopback function, check the Ringtone Primary Reference Out or Ringtone Secondary Reference Out.

Note

When the Record Primary Reference In and Record Secondary Reference In corresponding to the Record Category are also configured, the AEC loopback path of Ringtone and Record is really open.

Voice Prompt

Voice Prompt Category supports Voice Prompt Primary Out, Voice Prompt Secondary Out, Voice Prompt Primary Reference Out and Voice Prompt Secondary Reference Out:

  1. Voice Prompt Primary Out is used to set the Voice Prompt physical route path of the Primary output Endpoint.

  2. Voice Prompt Secondary Out is used to set the Voice Prompt physical route path of the Secondary output Endpoint.

  3. Voice Prompt Primary Reference Out is used to set the physical AEC loopback path of the Voice Prompt in the Primary output Endpoint.

  4. Voice Prompt Secondary Reference Out is used to set the physical AEC loopback path of the Voice Prompt of the Secondary output Endpoint.

TWS

The figure shows how to configure an Audio Route path for Voice Prompt Out of TWS.

../../../_images/VP_Route.png

Voice Prompt Route of TWS

The box on the Endpoint should be checked to enable Voice Prompt Out. For Physical IO, select Speaker1/2 Single-end/Differential. For DAC Channel, select DAC2. For Gateway, select SPORT2. For Gateway Channel, select TX Channel 0.

Headset

The figure shows how to configure the Audio Route path for the Voice Prompt Category of Headset.

../../../_images/VP_Physical_Path.png

Voice Prompt Route of Headset

Different from TWS, Headset needs to check Voice Prompt Primary Out and Voice Prompt Secondary Out. For Voice Prompt Secondary Out, set the DAC Channel to DAC1 and the Gateway Channel to TX Channel 1.

AEC Loopback

To enable the AEC loopback function, check the Voice Prompt Primary Reference Out or Voice Prompt Secondary Reference Out.

Note

When the Record Primary Reference In and Record Secondary Reference In corresponding to the Record Category are also configured, the AEC loopback path of the Voice Prompt and the Record is really open.

ANC

ANC Category supports ANC Primary Out, ANC Secondary Out, ANC Primary Reference Out, ANC Secondary Reference Out, ANC Secondary Reference Out, ANC Primary Reference In, ANC Secondary Reference In, ANC FF Left In, ANC FF Right In, ANC FB Left In and ANC FB Right In:

  1. ANC Primary Out is used to set the ANC physical route of the Primary output Endpoint.

  2. ANC Secondary Out is used to set the ANC physical route of the Secondary output Endpoint.

  3. ANC Primary Reference Out is used to set the ANC physical AEC loopback path of the Primary output Endpoint.

  4. ANC Secondary Reference Out is used to set the ANC physical AEC loopback path of the Secondary output Endpoint.

  5. ANC Primary Reference In is used to set the ANC physical AEC loopback path of the Primary input Endpoint.

  6. ANC Secondary Reference In is used to set the ANC physical AEC loopback path of the Secondary input Endpoint.

  7. ANC FF Left In is used to set the ANC physical route with the Feedforward Left input Endpoint.

  8. ANC FF Right In is used to set the ANC physical route with the Feedforward Right input Endpoint.

  9. ANC FB Left In is used to set the ANC physical route of the Feedback Left input Endpoint.

  10. ANC FB Right In is used to set the ANC physical route of the Feedback Right input Endpoint.

TWS

The figure shows how to configure an Audio Route path for ANC of TWS.

../../../_images/ANC_Route.png

ANC Route of TWS

To play the sound of ANC, select the ANC Out. The configuration of ANC Out could be the same as Audio Out. To record the input sound of ANC, there are three scenarios. Configure it according to requirements. Only select ANC FF In. Only select ANC FB In. Select ANC FF In and ANC FB In together. For the ANC IO of ANC, select External Left, External Right, Internal Left, and Internal Right. But for ANC FF In, the ANC IO must be set to External Left for TWS. For ANC FB IN, the ANC IO must be set to Internal Right.

Headset

ANC Primary Out and ANC Secondary Out should be checked. The figure shows how to configure the Audio Route path for the ANC Category of Headset.

../../../_images/ANC_Physical_Path.png

ANC Route of Headset

The DAC Channel and Gateway Channel of ANC Primary Out and ANC Secondary Out are the same as Audio Primary Out and Audio Secondary Out. ANC FF Left In and ANC FF Right In should be selected. ANC FB Left In and ANC FB Right In should be selected. The ANC IO and Gateway Channel of ANC Left In must be different from ANC Right In. The ANC IO of ANC FF Left In must be set to External Left. The ANC IO of ANC FF Right In must be set to External Right. The ANC IO of ANC FB Left In must be set to Internal Left. The ANC IO of ANC FB Right In must be set to Internal Right.

AEC Loopback

When enabling the AEC loopback function, check the ANC Primary Reference Out and ANC Primary Reference In. It is also possible to select ANC Secondary Reference Out and ANC Secondary Reference In.

Note

When ANC Primary Reference Out and ANC Primary Reference In correspond to ANC Category, or when the ANC Secondary Reference Out and ANC Secondary Reference In are well configured, the AEC loopback path can be really opened.

APT

APT function supports APT Primary Out, APT Secondary Out, APT Primary Reference Out, APT Secondary Reference Out, APT Primary Reference In, APT Secondary Reference In, APT Front Left In, APT Front Right In, APT FF Left In and APT FF Right In, APT FB Left In, APT FB Right In, APT Bone Left In and APT Bone Right In:

  1. APT Primary Out is used to set the APT physical route of the Primary output Endpoint.

  2. APT Secondary Out is used to set the APT physical route of the Secondary output Endpoint.

  3. APT Primary Reference Out is used to set the APT physical AEC loopback path of the Primary output Endpoint.

  4. APT Secondary Reference Out is used to set the APT physical AEC loopback path of the Secondary output Endpoint.

  5. APT Primary Reference In is used to set the APT physical AEC loopback channel of the Primary input Endpoint.

  6. APT Secondary Reference In is used to set the APT physical AEC loopback channel of the Secondary input Endpoint.

  7. APT Front Left In is used to set the APT physical route of the front Left input Endpoint.

  8. APT Front Right In is used to set the APT physical route of the front Right input Endpoint.

  9. APT FF Left In is used to set the APT physical route of the FF Left input Endpoint.

  10. APT FF Right In is used to set the APT physical route of the FF Right input Endpoint.

  11. APT FB Left In is used to set the APT physical route of the FB Left input Endpoint.

  12. APT FB Right In is used to set the APT physical route of the FB Right input Endpoint.

  13. APT Bone Left In is used to set the APT physical route of the Bone Sensor Left input Endpoint.

  14. APT Bone Right In is used to set the APT physical route of the Bone Sensor Right input Endpoint.

TWS

The figure shows how to configure an Audio Route path for APT of TWS.

../../../_images/APT_Route.png

APT Route of TWS

To play the sound of APT, select the APT Out. For Physical IO, select Speaker1/2 Single-end/Differential. For DAC Channel, select DAC1. For Gateway, select SPORT1. For Gateway Channel, select TX Channel 0.

Headset

APT Primary Out and APT Secondary Out should be selected. The figure shows how to configure the Audio Route path for the APT Category of Headset.

../../../_images/APT_Physical_Path.png

APT Route of Headset

The DAC Channel and Gateway Channel of APT Primary Out and APT Secondary Out are the same as Audio Primary Out and Audio Secondary Out.

Default MIC

If there is no special requirement, the APT Front In should be selected to record the input sound of APT. For Endpoint, check the MIC button to enable APT Front In. For Physical IO, select the index and type of mic. For ADC Channel, select ADC0/1/2/3/4/5. For Gateway, select SPORT0. For Gateway Channel, select RX Channel 0/1/2/3.

Dual MIC

When two microphones are needed as input, check APT Front In and APT FF In for TWS. For Headset, select two of APT Front Left In, APT Front Right In, APT FF Left In, APT FF Right In, APT FB Left In, and APT FB Right In. Note that the ADC Channel and Gateway Channel of APT Front In and APT FF In should be different.

Three MIC Requirements

When three microphones are needed as input, check APT Front In, APT FF In, and APT FB In for TWS. For Headset, select three of APT Front Left In, APT Front Right In, APT FF Left In, APT FF Right In, APT FB Left In, and APT FB Right In. The ADC Channel and Gateway Channel of APT Front In, APT FF In, and APT FB In should also be different from each other.

Audio Effect Requirements

When other voice sound effects are needed, configure APT Bone In for TWS. For Headset, select APT Bone Left In or APT Bone Right In. The ADC Channel and Gateway Channel of APT Bone In should also be different from APT Front In, APT FF In, and APT FB In.

AEC Loopback

To enable the AEC loopback function, check the APT Primary Reference Out and APT Primary Reference In. Select APT Secondary Reference Out and APT Secondary Reference In.

Note

When APT Primary Reference Out and APT Primary Reference In correspond to APT Category, or when APT Secondary Reference Out and APT Secondary Reference In are configured, the AEC loopback path can be really opened.

LLAPT

LL-APT function supports LL-APT Primary Out, LL-APT Secondary Out, LL-APT Primary Reference Out, LL-APT Secondary Reference Out, LL-APT Primary Reference In, LL-APT Secondary Reference In, LL-APT Left In, and LL-APT Right In:

  1. LL-APT Primary Out is used to set the LL-APT physical route of the Primary output Endpoint.

  2. LL-APT Secondary Out is used to set the LL-APT physical route of the Secondary output Endpoint.

  3. LL-APT Primary Reference Out is used to set the LL-APT physical AEC loopback path of the Primary output Endpoint.

  4. LL-APT Secondary Reference Out is used to set the LL-APT physical AEC loopback path of the Secondary output Endpoint.

  5. LL-APT Primary Reference In is used to set the LL-APT physical AEC loopback path of the Primary input Endpoint.

  6. LL-APT Secondary Reference In is used to set the LL-APT physical AEC loopback path of the Secondary input Endpoint.

  7. LL-APT Left In is used to set the LL-APT physical route of the Left input Endpoint.

  8. LL-APT Right In is used to set the LL-APT physical route of the Right input Endpoint.

TWS

The figure shows how to configure an Audio Route path for LLAPT of TWS.

../../../_images/LLAPT_Route.png

LLAPT Route of TWS

To play the sound of LLAPT, select the LLAPT Out. The configuration of LLAPT Out could be the same as Audio Out. To record the input sound of LLAPT, select the LLAPT In. For the ANC IO of LLAPT In, select External Left, External Right, Internal Left, and Internal Right. But for LLAPT In, the ANC IO must be set to External Right for TWS.

Headset

LLAPT Primary Out and LLAPT Secondary Out should be checked. The figure shows how to configure Audio Route path for LLAPT Category of Headset.

../../../_images/LLAPT_Physical_Path.png

LLAPT Route of Headset

The DAC Channel and Gateway Channel of LLAPT Primary Out and LLAPT Secondary Out are the same as Audio Primary Out and Audio Secondary Out. LLAPT Left In and LLAPT Right In should be selected. The ANC IO and Gateway Channel of LLAPT Left In must be different from LLAPT Right In. The ANC IO of LLAPT Left IN must be set to External Left. The ANC IO of LLAPT Right IN must be set to External Right.

AEC Loopback

To enable the AEC loopback function, check the LLAPT Primary Reference Out and LLAPT Primary Reference In. Select LLAPT Secondary Reference Out and LLAPT Secondary Reference In.

Note

When LL-APT Primary Reference Out and LL-APT Primary Reference In correspond to LL-APT Category, or when the LL-APT Secondary Reference Out and LL-APT Secondary Reference In are configured, the AEC loopback path can be really connected.

VAD

VAD Category supports VAD Primary In, VAD Secondary In, VAD Primary Reference In, VAD Secondary Reference In:

  1. VAD Primary In is used to set the VAD physical route of the Primary input Endpoint.

  2. VAD Secondary In is used to set the VAD physical route of the Secondary input Endpoint.

  3. VAD Primary Reference In is used to set the VAD physical AEC loopback path of the Primary input Endpoint.

  4. VAD Secondary Reference In is used to set the VAD physical AEC loopback path of the Secondary input Endpoint.

TWS

The figure shows how to configure an Audio Route path for VAD In of TWS.

../../../_images/vad_route.png

VAD Route of TWS

VAD Primary In should be selected. The VAD Primary In parameters are the same as the Record Primary In.

Headset

The figure shows how to configure the Audio Route path for the VAD Category of Headset.

../../../_images/VAD_Physical_Path.png

VAD Route of Headset

VAD Primary In and VAD Secondary In should be selected

Default MIC

If there is no special requirement, the VAD Primary In should be selected to record the input sound. For Endpoint, check the MIC button to enable VAD Primary In. For Physical IO, select the index and type of microphone. For ADC Channel, select ADC0/1/2/3/4/5. For Gateway, select SPORT0. For Gateway Channel, select RX Channel 0/1/2/3. It should be noted that the ADC Channel and Gateway Channel should choose a different index for different Logical IO.

Dual MIC

When two microphones are needed as input, check VAD Primary In and VAD Secondary In. It should be noted that the ADC Channel and Gateway Channel of VAD Primary In and VAD Secondary In should be different.

AEC Loopback

When there is a requirement for AEC loopback functionality, check the Audio Primary Reference Out and VAD Primary Reference In at the same time. The Audio Secondary Reference Out and VAD Secondary Reference In can also be checked to enable the AEC loopback functionality. The ADC Channel and Gateway Channel of VAD Primary Reference In and VAD Secondary Reference In should also be different from VAD Primary In, VAD Secondary In if they are selected.

Note

When the Primary Reference Out and Secondary Reference Out corresponding to Audio Category, Ringtone Category, or Voice Prompt Category are configured, the AEC loopback path for Audio and VAD, Ringtone and VAD, or Voice Prompt and VAD is open.

AEC Reference

The figure shows how the AEC Reference function works.

../../../_images/AECREF.png

AEC Reference Function

AEC Reference function: Linear removal of echo signal mixing in microphone input without affecting the quality of the desired speech signal. For tool configuration, when there is a need to configure the AEC Reference function, select Primary Reference Out and Primary Reference In of Audio Category. The AEC Reference configuration can be performed in the following three cases:

The figure shows the three cases of AEC Reference function.

../../../_images/AECCASES.png

AEC Reference Function Cases

1. Case1: Reference signal from HW Codec DAC[5M]=>ADC[5M]=>SPORT RX=>DSP. In this case, select Primary Reference Out and Primary Reference In and set them as Reference Speaker and Reference MIC for tool configuration. There are three existing requirements as follows:

Note

  1. The figure shows the tool configuration of the AEC Reference function between Audio and Record.

../../../_images/Audio_Record_AEC.png

AEC Reference of Audio and Record

  1. The figure shows the tool configuration of the AEC Reference function of Voice.

../../../_images/Voice_AEC.png

AEC Reference of Voice

  1. The figure shows the tool configuration of the AEC Reference function of APT.

../../../_images/APT_AEC.png

AEC Reference of APT

2. Case2: Reference signal from HW Codec DAC[5M]=>DAC[Analog]=>ADC[5M]=>SPORT RX=>DSP. In this case, for tool configuration, select Primary Reference Out and set them to physical speaker and select Primary Reference In and set them to physical microphone.

Note

The figure shows the tool configuration of the AEC Reference function for the second case.

../../../_images/Second_AEC.png

AEC Reference of Analog

3. Case3: Reference signal from External Codec DAC=> ADC=>SPORT RX=>DSP. In this case, for tool configuration, select Primary Reference Out and configure Primary Reference In as External Speaker and External MIC.

Note

The figure shows the tool configuration of the AEC Reference function for the third case.

../../../_images/Third_AEC.png

AEC Reference of External

Note

  1. On RTL87x3E and RTL87x3EP, DAC0 can loopback to ADC0\2\4, DAC1 can loopback to ADC1\3\5.

  2. On RTL87x3D, DAC0 can loopback to ADC0\2\4, DAC1 can loopback to ADC1\3\5.