XenevaOS
Loading...
Searching...
No Matches
widget.h
Go to the documentation of this file.
1
30#ifndef __WIDGET_H__
31#define __WIDGET_H__
32
33#include <stdint.h>
34
35#define HDA_WIDGET_TYPE_LINE_OUT 0x0
36#define HDA_WIDGET_TYPE_DAC 0x1
37#define HDA_WIDGET_TYPE_HP_OUT 0x2
38#define HDA_WIDGET_TYPE_MIXER 0x3
39#define HDA_WIDGET_TYPE_PIN 0x4
40
41#pragma pack(push,1)
58#pragma pack(pop)
59
60
61#pragma pack(push,1)
68#pragma pack(pop)
69
70
71/*
72* HDACreateWidget -- creates a hd audio widget
73*/
74extern HDAWidget * HDACreateWidget();
75
76/*
77 * HDACreateAudioPath -- creates an audio path
78 */
80
81/*
82 * WidgetSetupPin -- setup a widget pin
83 */
84extern void HDAWidgetSetupPin(int codec, int nid);
85
91extern void HDAWidgetInit(int codec, int nid);
92#endif
unsigned int uint32_t
Definition acefiex.h:163
unsigned char uint8_t
Definition acefiex.h:161
Definition widget.h:62
HDAWidget * root
Definition widget.h:63
_audio_path_ * next
Definition widget.h:65
HDAWidget * last
Definition widget.h:64
_audio_path_ * prev
Definition widget.h:66
Definition widget.h:42
_widget_ * next
Definition widget.h:55
bool mute
Definition widget.h:49
uint32_t codec
Definition widget.h:45
uint32_t pcm_rates
Definition widget.h:53
uint8_t type
Definition widget.h:43
uint32_t nid
Definition widget.h:44
uint32_t pcm_format
Definition widget.h:54
int conn_list_length
Definition widget.h:50
uint32_t parent_pin_nid
Definition widget.h:46
uint32_t parent_mixer_nid
Definition widget.h:47
bool power_cap
Definition widget.h:52
bool eapd_btl
Definition widget.h:51
_widget_ * prev
Definition widget.h:56
bool amp_cap
Definition widget.h:48
HDAAudioPath * HDACreateAudioPath()
Definition widget.cpp:57
void HDAWidgetInit(int codec, int nid)
Definition widget.cpp:446
HDAWidget * HDACreateWidget()
Definition widget.cpp:48
struct _widget_ HDAWidget
struct _audio_path_ HDAAudioPath
void HDAWidgetSetupPin(int codec, int nid)
Definition widget.cpp:68