Changeset 0d59ea7e in mainline for uspace/drv/audio/hdaudio/codec.h


Ignore:
Timestamp:
2022-07-02T14:34:36Z (22 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6ab7aad4, a247c32, baa2a33, d9dda26
Parents:
9e9d9bc6
Message:

Multiple HD Audio converters cannot pull from a single stream

We select one arbitrary output converter for out PCM output, similar to what
we do for input.

We filter the 'other' VirtualBox output converters based on rates/formats
being zero.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/audio/hdaudio/codec.h

    r9e9d9bc6 r0d59ea7e  
    11/*
    2  * Copyright (c) 2014 Jiri Svoboda
     2 * Copyright (c) 2022 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    3939#include "stream.h"
    4040
    41 #define MAX_OUT_AW 256
    42 
    4341typedef struct hda_codec {
    4442        hda_t *hda;
    4543        uint8_t address;
    46         uint8_t out_aw_list[MAX_OUT_AW];
     44        int out_aw;
     45        uint32_t out_aw_rates;
     46        uint32_t out_aw_formats;
    4747        int out_aw_num;
    4848        int out_aw_sel;
    4949        int in_aw;
     50        uint32_t in_aw_rates;
     51        uint32_t in_aw_formats;
    5052} hda_codec_t;
    5153
Note: See TracChangeset for help on using the changeset viewer.