1// Copyright 2017 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#pragma once
6
7#include <intel-hda/utils/codec-commands.h>
8#include <zircon/device/audio.h>
9
10namespace audio {
11namespace intel_hda {
12namespace codecs {
13
14struct CommandListEntry {
15    uint16_t nid;
16    CodecVerb verb;
17};
18
19struct StreamProperties {
20    uint32_t stream_id;
21    uint16_t afg_nid;   // NID of the audio function group this stream belongs to.
22    uint16_t conv_nid;  // NID of the converter used by this stream.
23    uint16_t pc_nid;    // NID of the pin converter used by this stream.
24    bool     is_input;
25    float    default_conv_gain;
26    float    default_pc_gain;
27
28    audio_stream_unique_id_t uid;
29    const char* mfr_name = nullptr;       // String literals only!
30    const char* product_name = nullptr;   // String literals only!
31};
32
33}  // namespace codecs
34}  // namespace audio
35}  // namespace intel_hda
36