Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
mixart.h File Reference
#include <linux/interrupt.h>
#include <linux/mutex.h>
#include <sound/pcm.h>

Go to the source code of this file.

Data Structures

struct  mixart_uid
 
struct  mem_area
 
struct  mixart_route
 
struct  mixart_mgr
 
struct  mixart_stream
 
struct  mixart_pipe
 
struct  snd_mixart
 
struct  mixart_bufferinfo
 
struct  mixart_flowinfo
 

Macros

#define MIXART_DRIVER_VERSION   0x000100 /* 0.1.0 */
 
#define MIXART_MOTHERBOARD_XLX_INDEX   0
 
#define MIXART_MOTHERBOARD_ELF_INDEX   1
 
#define MIXART_AESEBUBOARD_XLX_INDEX   2
 
#define MIXART_HARDW_FILES_MAX_INDEX   3 /* xilinx, elf, AESEBU xilinx */
 
#define MIXART_MAX_CARDS   4
 
#define MSG_FIFO_SIZE   16
 
#define MIXART_MAX_PHYS_CONNECTORS   (MIXART_MAX_CARDS * 2 * 2) /* 4 * stereo * (analog+digital) */
 
#define MIXART_STREAM_STATUS_FREE   0
 
#define MIXART_STREAM_STATUS_OPEN   1
 
#define MIXART_STREAM_STATUS_RUNNING   2
 
#define MIXART_STREAM_STATUS_DRAINING   3
 
#define MIXART_STREAM_STATUS_PAUSE   4
 
#define MIXART_PLAYBACK_STREAMS   4
 
#define MIXART_CAPTURE_STREAMS   1
 
#define MIXART_PCM_ANALOG   0
 
#define MIXART_PCM_DIGITAL   1
 
#define MIXART_PCM_TOTAL   2
 
#define MIXART_MAX_STREAM_PER_CARD   (MIXART_PCM_TOTAL * (MIXART_PLAYBACK_STREAMS + MIXART_CAPTURE_STREAMS) )
 
#define MIXART_NOTIFY_CARD_MASK   0xF000
 
#define MIXART_NOTIFY_CARD_OFFSET   12
 
#define MIXART_NOTIFY_PCM_MASK   0x0F00
 
#define MIXART_NOTIFY_PCM_OFFSET   8
 
#define MIXART_NOTIFY_CAPT_MASK   0x0080
 
#define MIXART_NOTIFY_SUBS_MASK   0x007F
 

Enumerations

enum  mixart_pipe_status { PIPE_UNDEFINED, PIPE_STOPPED, PIPE_RUNNING, PIPE_CLOCK_SET }
 

Functions

int snd_mixart_create_pcm (struct snd_mixart *chip)
 
struct mixart_pipesnd_mixart_add_ref_pipe (struct snd_mixart *chip, int pcm_number, int capture, int monitoring)
 
int snd_mixart_kill_ref_pipe (struct mixart_mgr *mgr, struct mixart_pipe *pipe, int monitoring)
 

Macro Definition Documentation

#define MIXART_AESEBUBOARD_XLX_INDEX   2

Definition at line 58 of file mixart.h.

#define MIXART_CAPTURE_STREAMS   1

Definition at line 123 of file mixart.h.

#define MIXART_DRIVER_VERSION   0x000100 /* 0.1.0 */

Definition at line 30 of file mixart.h.

#define MIXART_HARDW_FILES_MAX_INDEX   3 /* xilinx, elf, AESEBU xilinx */

Definition at line 59 of file mixart.h.

#define MIXART_MAX_CARDS   4

Definition at line 61 of file mixart.h.

#define MIXART_MAX_PHYS_CONNECTORS   (MIXART_MAX_CARDS * 2 * 2) /* 4 * stereo * (analog+digital) */

Definition at line 64 of file mixart.h.

#define MIXART_MAX_STREAM_PER_CARD   (MIXART_PCM_TOTAL * (MIXART_PLAYBACK_STREAMS + MIXART_CAPTURE_STREAMS) )

Definition at line 129 of file mixart.h.

#define MIXART_MOTHERBOARD_ELF_INDEX   1

Definition at line 57 of file mixart.h.

#define MIXART_MOTHERBOARD_XLX_INDEX   0

Definition at line 56 of file mixart.h.

#define MIXART_NOTIFY_CAPT_MASK   0x0080

Definition at line 136 of file mixart.h.

#define MIXART_NOTIFY_CARD_MASK   0xF000

Definition at line 132 of file mixart.h.

#define MIXART_NOTIFY_CARD_OFFSET   12

Definition at line 133 of file mixart.h.

#define MIXART_NOTIFY_PCM_MASK   0x0F00

Definition at line 134 of file mixart.h.

#define MIXART_NOTIFY_PCM_OFFSET   8

Definition at line 135 of file mixart.h.

#define MIXART_NOTIFY_SUBS_MASK   0x007F

Definition at line 137 of file mixart.h.

#define MIXART_PCM_ANALOG   0

Definition at line 125 of file mixart.h.

#define MIXART_PCM_DIGITAL   1

Definition at line 126 of file mixart.h.

#define MIXART_PCM_TOTAL   2

Definition at line 127 of file mixart.h.

#define MIXART_PLAYBACK_STREAMS   4

Definition at line 122 of file mixart.h.

#define MIXART_STREAM_STATUS_DRAINING   3

Definition at line 119 of file mixart.h.

#define MIXART_STREAM_STATUS_FREE   0

Definition at line 116 of file mixart.h.

#define MIXART_STREAM_STATUS_OPEN   1

Definition at line 117 of file mixart.h.

#define MIXART_STREAM_STATUS_PAUSE   4

Definition at line 120 of file mixart.h.

#define MIXART_STREAM_STATUS_RUNNING   2

Definition at line 118 of file mixart.h.

#define MSG_FIFO_SIZE   16

Definition at line 62 of file mixart.h.

Enumeration Type Documentation

Enumerator:
PIPE_UNDEFINED 
PIPE_STOPPED 
PIPE_RUNNING 
PIPE_CLOCK_SET 

Definition at line 155 of file mixart.h.

Function Documentation

struct mixart_pipe* snd_mixart_add_ref_pipe ( struct snd_mixart chip,
int  pcm_number,
int  capture,
int  monitoring 
)
read

Definition at line 217 of file mixart.c.

int snd_mixart_create_pcm ( struct snd_mixart chip)

Definition at line 1036 of file mixart.c.

int snd_mixart_kill_ref_pipe ( struct mixart_mgr mgr,
struct mixart_pipe pipe,
int  monitoring 
)

Definition at line 325 of file mixart.c.