tree: 72ae3e9fc4943a2a3da2ff757c85d61ff7f36874 [path history] [tgz]
  1. BUILD.gn
  2. dai-test.cc
  3. dai-test.h
  4. dai_test.bind
  5. README.md
  6. tests.json
src/media/audio/drivers/dai-test/README.md

Simple DAI protocol driver

This example driver connects to a driver prodiving the DAI interface (DAI driver) and provides an audio streaming interface for applications such that for instance audio-driver-ctl can be used to test a new DAI driver.

To enable this test driver, it must be included in the build and in a board driver. To add to the build include board_bootfs_labels += [“//src/media/audio/drivers/dai-test”] in the args.gn file or via fx set by adding to the fx set line --args ‘board_bootfs_labels += [“//src/media/audio/drivers/dai-test”]’. To add to a board driver, for instance for astro define ENABLE_DAI_TEST in //src/devices/board/drivers/astro/astro-audio.cc.