Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Note

Notice: Pre-Release Documentation
This document is part of a prerelease and is currently a work in progress. Some content may be incomplete, subject to change, or marked as TBD. We are actively updating this documentation and will continue to provide the most accurate and up-to-date information as development progresses. Thank you for your understanding!

Serial port I/O is accomplished by two modules: SnapdragonTDMSource and SnapdragonTDMSink. These modules appear in the module browser as shown below.

...

You can add multiple TDM Serial Port modules to your signal flow and interface to multiple hardware devices. Release 4.0 has the following restrictions:

  • All TDM ports must be on the ADSP.

  • All TDM ports must be at 48 kHz.

  • The block size is variable but all TDM ports must be at the same block size.

  • All TDM port interrupts start at the same time in the code, but there could be a small latency shift between them.

  • All TDM ports must be in clockDivider 1 and operate at the Basic Block Size.

  • All TDM port clocks must be derived from the same master clock. That is, they must be at the same sample rate and synchronous.

Module Arguments [R4.0]

In this release, there are separate modules for interfacing to input and output serial ports. The modules are configured via their module arguments. The Source and Sink modules have the same arguments as shown below. The settings map directly to the standard Qualcomm registers exposed in Audio Reach.

...

The last two items (lpaif_idx and lpaif_type) specify the serial port to use. You can only use a serial port once in your design, and it can be used for both input and output.