Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
bf5xx-ac97.h File Reference

Go to the source code of this file.

Data Structures

struct  ac97_frame
 

Macros

#define SP_FL   0x0001
 
#define SP_FR   0x0010
 
#define SP_FC   0x0002
 
#define SP_LFE   0x0020
 
#define SP_SL   0x0004
 
#define SP_SR   0x0040
 
#define SP_STEREO   (SP_FL | SP_FR)
 
#define SP_2DOT1   (SP_FL | SP_FR | SP_LFE)
 
#define SP_QUAD   (SP_FL | SP_FR | SP_SL | SP_SR)
 
#define SP_5DOT1   (SP_FL | SP_FR | SP_FC | SP_LFE | SP_SL | SP_SR)
 
#define TAG_VALID   0x8000
 
#define TAG_CMD   0x6000
 
#define TAG_PCM_LEFT   0x1000
 
#define TAG_PCM_RIGHT   0x0800
 
#define TAG_PCM_MDM_L1   0x0400
 
#define TAG_PCM_CENTER   0x0200
 
#define TAG_PCM_SL   0x0100
 
#define TAG_PCM_SR   0x0080
 
#define TAG_PCM_LFE   0x0040
 

Functions

struct ac97_frame __attribute__ ((packed))
 
void bf5xx_pcm_to_ac97 (struct ac97_frame *dst, const __u16 *src, size_t count, unsigned int chan_mask)
 
void bf5xx_ac97_to_pcm (const struct ac97_frame *src, __u16 *dst, size_t count)
 

Variables

struct snd_ac97_bus_ops bf5xx_ac97_ops
 
struct snd_ac97ac97
 
u16 ac97_tag
 
u16 ac97_addr
 
u16 ac97_data
 
u16 ac97_pcm_l
 
u16 ac97_pcm_r
 

Macro Definition Documentation

#define SP_2DOT1   (SP_FL | SP_FR | SP_LFE)

Definition at line 39 of file bf5xx-ac97.h.

#define SP_5DOT1   (SP_FL | SP_FR | SP_FC | SP_LFE | SP_SL | SP_SR)

Definition at line 41 of file bf5xx-ac97.h.

#define SP_FC   0x0002

Definition at line 33 of file bf5xx-ac97.h.

#define SP_FL   0x0001

Definition at line 31 of file bf5xx-ac97.h.

#define SP_FR   0x0010

Definition at line 32 of file bf5xx-ac97.h.

#define SP_LFE   0x0020

Definition at line 34 of file bf5xx-ac97.h.

#define SP_QUAD   (SP_FL | SP_FR | SP_SL | SP_SR)

Definition at line 40 of file bf5xx-ac97.h.

#define SP_SL   0x0004

Definition at line 35 of file bf5xx-ac97.h.

#define SP_SR   0x0040

Definition at line 36 of file bf5xx-ac97.h.

#define SP_STEREO   (SP_FL | SP_FR)

Definition at line 38 of file bf5xx-ac97.h.

#define TAG_CMD   0x6000

Definition at line 44 of file bf5xx-ac97.h.

#define TAG_PCM_CENTER   0x0200

Definition at line 48 of file bf5xx-ac97.h.

#define TAG_PCM_LEFT   0x1000

Definition at line 45 of file bf5xx-ac97.h.

#define TAG_PCM_LFE   0x0040

Definition at line 51 of file bf5xx-ac97.h.

#define TAG_PCM_MDM_L1   0x0400

Definition at line 47 of file bf5xx-ac97.h.

#define TAG_PCM_RIGHT   0x0800

Definition at line 46 of file bf5xx-ac97.h.

#define TAG_PCM_SL   0x0100

Definition at line 49 of file bf5xx-ac97.h.

#define TAG_PCM_SR   0x0080

Definition at line 50 of file bf5xx-ac97.h.

#define TAG_VALID   0x8000

Definition at line 43 of file bf5xx-ac97.h.

Function Documentation

struct ac97_frame __attribute__ ( (packed)  )
read

mcontroller : adapter info structure for old mimd_t apps

: base address : irq number : number of logical drives : pci bus : pci device : pci function : pci id : vendor id : slot number : unique id

Definition at line 171 of file esd_usb2.c.

void bf5xx_ac97_to_pcm ( const struct ac97_frame src,
__u16 dst,
size_t  count 
)

Definition at line 83 of file bf5xx-ac97.c.

void bf5xx_pcm_to_ac97 ( struct ac97_frame dst,
const __u16 src,
size_t  count,
unsigned int  chan_mask 
)

Definition at line 46 of file bf5xx-ac97.c.

Variable Documentation

u16 ac97_addr

Definition at line 30 of file bf5xx-ac97.h.

u16 ac97_data

Definition at line 31 of file bf5xx-ac97.h.

u16 ac97_pcm_l

Definition at line 32 of file bf5xx-ac97.h.

u16 ac97_pcm_r

Definition at line 33 of file bf5xx-ac97.h.

u16 ac97_tag

Definition at line 29 of file bf5xx-ac97.h.

struct snd_ac97_bus_ops bf5xx_ac97_ops