Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.
Lu, Han edited this page Mar 25, 2016 · 18 revisions

Welcome to the official bat wiki!

Introduction

BAT (Basic Audio Tester) is a simple command line utility intended to automate audio driver and sound server QA testing with no human interaction. BAT works by playing an audio stream and capturing the same stream in either a digital or analog loop back. It then compares the captured stream to the original to determine if the test case passes or fails. BAT is now part of the alsa-utils package found in most distributions and is intended for anyone developing audio driver or sound server software or firmware under Linux.

BAT is available on alsa-utils package. Access from browser: http://git.alsa-project.org/?p=alsa-utils.git;a=summary

Infrastucture

BAT Infrastructure

General Linux machine testing

A typical infrastructure showing the analog test connection on Linux machine. HDMI/DP/analog audio testing connection

General Android device testing

A typical infrastructure showing the analog test connection and flow on Android device. The NTP feature is in developing. Android device testing flow

Features for current release (1.1.0-bat1)

  • Analog and display(both DP/HDMI) audio playback
  • Analog audio capture and spectrum analyze
  • Only PCM format
  • Configurable parameters:
  1. Input source selection for playback: auto-generated with a specified frequency or existing sine WAV file
  2. channel number (mono or stereo)
  3. sample rate
  4. input sound clip duration (default 2 seconds)
  5. bit depth per sample (usually 8/16/24/32 bits)