1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright 2021 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

/*! Fuchsia DAI Library

This library can be used to communicate with a Digital Audio Interface device as defined by
https://fuchsia.dev/fuchsia-src/concepts/drivers/driver_architectures/audio_drivers/audio_dai
using the driver node directly.

Components using the library will need to have access to the dai class of devices in their component
 manifest.

*/

/// Driver library for querying and configuring a known DAI device.
pub mod driver;
pub use driver::DigitalAudioInterface;

/// Discovery library to enumerate devices available to a component.
pub mod discover;
pub use discover::find_devices;

/// Fuchsia Audio device integration.
pub mod audio;
pub use audio::DaiAudioDevice;

/// Helpers and mocks for writing tests
pub mod test;