audiohd.h revision 88447a05f537aabe9a1bc3d5313f22581ec992a7
1N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1N/A#ifndef _SYS_AUDIOHD_IMPL_H_
1N/A#define _SYS_AUDIOHD_IMPL_H_
1N/A#ifdef __cplusplus
1N/A#define AUDIO_SUCCESS (0)
1N/A#define AUDIOHDC_NID(x) x
1N/A#define AUDIOHD_PW_ON 0
1N/A#define AUDIOHD_PW_D0 0
1N/A#define AUDIOHD_SP_OFF 0
1N/A#define AUDIOHD_PIN_CON_JACK 0
1N/A#define AUDIOHDR_SD_CTL_INTS \
1N/A (AUDIOHDR_SD_CTL_DEIE | \
1N/A#define AUDIOHDR_SD_STS_INTRS \
1N/A (AUDIOHDR_SD_STS_BCIS | \
1N/A#define AUDIOHDR_CORBSZ_8 0
1N/A#define AUDIOHDR_RIRBSZ_8 0
#define AUDIOHDC_AMP_LOUT_MAX \
#define AUDIOHDC_AMP_ROUT_MAX \
enum audiohda_widget_type {
WTYPE_AUDIO_OUT = 0,
enum audiohda_device_type {
DTYPE_LINEOUT = 0,
enum audiohd_pin_color {
AUDIOHD_PIN_UNKNOWN = 0,
struct audiohd_entry_prop {
int conns_per_entry;
int bits_per_conn;
struct audiohd_widget {
int out_weight;
int in_weight;
int finish;
int nconns;
void *priv;
#define PORT_DAC 0
PLAY = 0,
} path_type_t;
struct audiohd_path {
int pin_nums;
int mute_dir;
int gain_dir;
typedef struct audiohd_port
int index;
unsigned fragfr;
unsigned nframes;
int curpos;
int len;
int intrs;
unsigned sync_dir;
typedef struct audiohd_ctrl
struct audiohd_pin {
int no_phys_conn;
int num;
int finish;
struct hda_codec {
struct audiohd_state {
AUDIOHDC_VERB_GET_PIN_CTRL, 0); \
return (AUDIO_FAILURE); \
return (AUDIO_FAILURE); \
AUDIOHDC_VERB_GET_PIN_CTRL, 0); \
return (AUDIO_FAILURE); \
return (AUDIO_FAILURE); \
AUDIOHDC_VERB_GET_PIN_CTRL, 0); \
return (AUDIO_FAILURE); \
return (AUDIO_FAILURE); \
return (AUDIO_FAILURE); \
#ifdef __cplusplus