XenevaOS
Loading...
Searching...
No Matches
codec.h
Go to the documentation of this file.
1
30#ifndef __CODEC_H__
31#define __CODEC_H__
32
33#include <stdint.h>
34
35/* vendors of codecs*/
36#define CODEC_VENDOR_VMWARE 0x15AD /*vmware: emulates RealTek ALC885 codec*/
37#define CODEC_VENDOR_SIGMATEL 0x8384 /*sigmatel */
38
39/* vendors of devices */
40#define CODEC_DEVICE_VMWARE 0x1975 /*vmware: emulates RealTek ALC885 codec */
41#define CODEC_DEVICE_SIGMATEL 0x7680
42
43
47extern uint32_t HDACodecQuery(int codec, int nid, uint32_t payload);
48/*
49* HDACodecEnumerateWidgets -- enumerate every widgets
50*/
51extern int HDACodecEnumerateWidgets(int codec);
52
53/*
54* hda_get_supported_stream_format -- returns the supported
55* stream format
56* @param codec -- codec id
57* @param nid -- node id
58*/
59extern uint32_t HDAGetSupportedStreamFormat(int codec, int nid);
60
61/*
62* HDAGetPCMRates -- collects supported PCM Size / rates
63* @param codec -- destination codec
64* @param nid -- desired node id
65*/
66extern uint32_t HDAGetPCMRates(int codec, int nid);
67
68/*
69* HDACodecInitOutputConv -- initialise output converter
70* @param codec -- codec id
71* @param nid -- node id
72* @param deinit -- if true, initialise or else stop the
73* converter
74*/
75void HDACodecInitOutputConv(int codec, int nid, bool deinit);
76
77#endif
unsigned int uint32_t
Definition acefiex.h:163
uint32_t HDAGetPCMRates(int codec, int nid)
Definition codec.cpp:63
uint32_t HDACodecQuery(int codec, int nid, uint32_t payload)
Definition codec.cpp:39
int HDACodecEnumerateWidgets(int codec)
Definition codec.cpp:174
uint32_t HDAGetSupportedStreamFormat(int codec, int nid)
Definition codec.cpp:129
void HDACodecInitOutputConv(int codec, int nid, bool deinit)
Definition codec.cpp:257