ac97_module.h File Reference

#include <module.h>
#include <KernelExport.h>
#include "gaplug.h"

Go to the source code of this file.

Classes

struct  ac97_t_v3
struct  ac97_codec_info_v3
struct  virtual_control_data
struct  ac97_module_info_v3

Defines

#define B_AC97_MODULE_NAME_V3   "media/ac97_module/v3"
#define B_AC97_MAX_REGS   64
#define AC97_RESET_HARDWARE   0x1
#define CACHE_BIT(OFFSET)   (1LL<<(OFFSET))
#define AC97_RESET   0x00
#define AC97_MASTER   0x02
#define AC97_HEADPHONE   0x04
#define AC97_MASTER_MONO   0x06
#define AC97_MASTER_TONE   0x08
#define AC97_PC_BEEP   0x0a
#define AC97_PHONE   0x0c
#define AC97_MIC   0x0e
#define AC97_LINE   0x10
#define AC97_CD   0x12
#define AC97_VIDEO   0x14
#define AC97_AUX   0x16
#define AC97_PCM   0x18
#define AC97_REC_SEL   0x1a
#define AC97_REC_GAIN   0x1c
#define AC97_REC_GAIN_MIC   0x1e
#define AC97_GENERAL_PURPOSE   0x20
#define AC97_3D_CONTROL   0x22
#define AC97_RESERVED   0x24
#define AC97_POWERDOWN   0x26
#define AC97_CTRL_STAT   0x26
#define AC97_EXTENDED_ID   0x28
#define AC97_EXTENDED_CTRL_STAT   0x2A
#define AC97_FRONT_DAC_RATE   0x2C
#define AC97_SURR_DAC_RATE   0x2E
#define AC97_LFE_DAC_RATE   0x30
#define AC97_LR_ADC_RATE   0x32
#define AC97_MIC_ADC_RATE   0x34
#define AC97_2_C_LFE   0x36
#define AC97_2_L_R_SURR   0x38
#define AC97_2_LINE1_DAC_ADC   0x46
#define AC97_2_LINE2_DAC_ADC   0x48
#define AC97_2_HANDSET_DAC_ADC   0x48
#define AC97_VENDOR_ID1   0x7c
#define AC97_VENDOR_ID2   0x7e
#define AC97_QUAD_CODEC_NONE   (420)
#define AC97_QUAD_CODEC_ASYMMETRIC   (AC97_QUAD_CODEC_NONE + 1)
#define AC97_QUAD_CODEC_SYMMETRIC   (AC97_QUAD_CODEC_NONE + 2)
#define AC97_CODEC_3D_NONE   (410)
#define AC97_CODEC_3D_FIXED   (AC97_CODEC_3D_NONE + 1)
#define AC97_CODEC_3D_VARIABLE   (AC97_CODEC_3D_NONE + 2)
#define AC97_CODEC_3D_VAR_CENTER_ONLY   (AC97_CODEC_3D_NONE + 3)
#define AC97_CODEC_3D_VAR_DEPTH_ONLY   (AC97_CODEC_3D_NONE + 4)

Typedefs

typedef status_t(* ac97_write_ft )(void *host, uchar offset, uint16 value, uint16 mask)
typedef uint16(* ac97_read_ft )(void *host, uchar offset)
typedef ac97_t_v3 ac97_t_v3
typedef ac97_t_v3 ac97_t
typedef ac97_codec_info_v3 ac97_codec_info
typedef enum ac97_mode_select ac97_mode_select
typedef virtual_control_data virtual_control_data
typedef ac97_module_info_v3 ac97_module_info_v3

Enumerations

enum  ac97_mode_select {
  AC97_ALL_INFO, AC97_ADC_INFO, AC97_DAC_INFO, AC97_CURRENT_ADC_INFO,
  AC97_CURRENT_DAC_INFO
}


Define Documentation

#define AC97_2_C_LFE   0x36
 

#define AC97_2_HANDSET_DAC_ADC   0x48
 

#define AC97_2_L_R_SURR   0x38
 

#define AC97_2_LINE1_DAC_ADC   0x46
 

#define AC97_2_LINE2_DAC_ADC   0x48
 

#define AC97_3D_CONTROL   0x22
 

#define AC97_AUX   0x16
 

#define AC97_CD   0x12
 

#define AC97_CODEC_3D_FIXED   (AC97_CODEC_3D_NONE + 1)
 

#define AC97_CODEC_3D_NONE   (410)
 

#define AC97_CODEC_3D_VAR_CENTER_ONLY   (AC97_CODEC_3D_NONE + 3)
 

#define AC97_CODEC_3D_VAR_DEPTH_ONLY   (AC97_CODEC_3D_NONE + 4)
 

#define AC97_CODEC_3D_VARIABLE   (AC97_CODEC_3D_NONE + 2)
 

#define AC97_CTRL_STAT   0x26
 

#define AC97_EXTENDED_CTRL_STAT   0x2A
 

#define AC97_EXTENDED_ID   0x28
 

#define AC97_FRONT_DAC_RATE   0x2C
 

#define AC97_GENERAL_PURPOSE   0x20
 

#define AC97_HEADPHONE   0x04
 

#define AC97_LFE_DAC_RATE   0x30
 

#define AC97_LINE   0x10
 

#define AC97_LR_ADC_RATE   0x32
 

#define AC97_MASTER   0x02
 

#define AC97_MASTER_MONO   0x06
 

#define AC97_MASTER_TONE   0x08
 

#define AC97_MIC   0x0e
 

#define AC97_MIC_ADC_RATE   0x34
 

#define AC97_PC_BEEP   0x0a
 

#define AC97_PCM   0x18
 

#define AC97_PHONE   0x0c
 

#define AC97_POWERDOWN   0x26
 

#define AC97_QUAD_CODEC_ASYMMETRIC   (AC97_QUAD_CODEC_NONE + 1)
 

#define AC97_QUAD_CODEC_NONE   (420)
 

#define AC97_QUAD_CODEC_SYMMETRIC   (AC97_QUAD_CODEC_NONE + 2)
 

#define AC97_REC_GAIN   0x1c
 

#define AC97_REC_GAIN_MIC   0x1e
 

#define AC97_REC_SEL   0x1a
 

#define AC97_RESERVED   0x24
 

#define AC97_RESET   0x00
 

#define AC97_RESET_HARDWARE   0x1
 

#define AC97_SURR_DAC_RATE   0x2E
 

#define AC97_VENDOR_ID1   0x7c
 

#define AC97_VENDOR_ID2   0x7e
 

#define AC97_VIDEO   0x14
 

#define B_AC97_MAX_REGS   64
 

#define B_AC97_MODULE_NAME_V3   "media/ac97_module/v3"
 

#define CACHE_BIT OFFSET   )     (1LL<<(OFFSET))
 


Typedef Documentation

typedef struct ac97_codec_info_v3 ac97_codec_info
 

typedef enum ac97_mode_select ac97_mode_select
 

typedef struct ac97_module_info_v3 ac97_module_info_v3
 

typedef uint16(* ac97_read_ft)(void *host, uchar offset)
 

typedef ac97_t_v3 ac97_t
 

typedef struct ac97_t_v3 ac97_t_v3
 

typedef status_t(* ac97_write_ft)(void *host, uchar offset, uint16 value, uint16 mask)
 

typedef struct virtual_control_data virtual_control_data
 


Enumeration Type Documentation

enum ac97_mode_select
 

Enumerator:
AC97_ALL_INFO 
AC97_ADC_INFO 
AC97_DAC_INFO 
AC97_CURRENT_ADC_INFO 
AC97_CURRENT_DAC_INFO 


Copyright 2005 by yellowTAB GmbH, Be Inc., Palm Source Inc. and their respective legal successors
All rights reserved.