Changeset 15d0046 in mainline for uspace/drv/audio/hdaudio/codec.h


Ignore:
Timestamp:
2014-09-12T13:22:33Z (10 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9b20126
Parents:
8db09e4 (diff), 105d8d6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes

File:
1 moved

Legend:

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

    r8db09e4 r15d0046  
    11/*
    2  * Copyright (c) 2005 Jakub Jermar
     2 * Copyright (c) 2014 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 /** @addtogroup mips64mm
     29/** @addtogroup hdaudio
    3030 * @{
    3131 */
    32 /** @file
     32/** @file High Definition Audio controller
    3333 */
    3434
    35 #ifndef KERN_mips64_FRAME_H_
    36 #define KERN_mips64_FRAME_H_
     35#ifndef CODEC_H
     36#define CODEC_H
    3737
    38 #define FRAME_WIDTH  14  /* 16K */
    39 #define FRAME_SIZE   (1 << FRAME_WIDTH)
     38#include "hdaudio.h"
     39#include "stream.h"
    4040
    41 #define FRAME_LOWPRIO  0
     41#define MAX_OUT_AW 256
    4242
    43 #ifndef __ASM__
     43typedef struct hda_codec {
     44        hda_t *hda;
     45        uint8_t address;
     46        uint8_t out_aw_list[MAX_OUT_AW];
     47        int out_aw_num;
     48        int out_aw_sel;
     49} hda_codec_t;
    4450
    45 extern void frame_low_arch_init(void);
    46 extern void frame_high_arch_init(void);
    47 extern void physmem_print(void);
    48 
    49 #endif /* __ASM__ */
     51extern hda_codec_t *hda_codec_init(hda_t *, uint8_t);
     52extern void hda_codec_fini(hda_codec_t *);
     53extern int hda_out_converter_setup(hda_codec_t *, hda_stream_t *);
    5054
    5155#endif
Note: See TracChangeset for help on using the changeset viewer.