Functions and Restrictions

  • The audio input (AI) and audio output (AO) APIs are used to configure and enable AI devices, obtain audio frame data, and play audios. These APIs do not support multiple processes, and the same device ID cannot be used in multiple threads.
  • For built-in audio codecs, the ioctl command word is used to perform operations on hardware devices.
  • At the beginning of the recording, due to hardware resource preparation, the audio data may fluctuate, which does not affect the subsequent recording.
  • AI and AO devices:
    Table 1 AO devices

    AO Device

    Connected Output Device

    0

    External codec 0

    1

    External codec 1

    2

    Built-in codec

    3

    HDMI0

    4

    HDMI1

    Table 2 AI devices

    AI Device

    Connected Input Device

    0

    External codec 0

    1

    External codec 1

    2

    Built-in codec