Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
vx_core.c File Reference
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/device.h>
#include <linux/firmware.h>
#include <linux/module.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/asoundef.h>
#include <sound/info.h>
#include <asm/io.h>
#include <sound/vx_core.h>
#include "vx_cmd.h"

Go to the source code of this file.

Macros

#define MASK_MORE_THAN_1_WORD_COMMAND   0x00008000
 
#define MASK_1_WORD_COMMAND   0x00ff7fff
 
#define END_OF_RESET_WAIT_TIME   500 /* us */
 

Functions

 MODULE_AUTHOR ("Takashi Iwai <[email protected]>")
 
 MODULE_DESCRIPTION ("Common routines for Digigram VX drivers")
 
 MODULE_LICENSE ("GPL")
 
int snd_vx_check_reg_bit (struct vx_core *chip, int reg, int mask, int bit, int time)
 
 EXPORT_SYMBOL (snd_vx_check_reg_bit)
 
int vx_send_msg_nolock (struct vx_core *chip, struct vx_rmh *rmh)
 
int vx_send_msg (struct vx_core *chip, struct vx_rmh *rmh)
 
int vx_send_rih_nolock (struct vx_core *chip, int cmd)
 
int vx_send_rih (struct vx_core *chip, int cmd)
 
int snd_vx_load_boot_image (struct vx_core *chip, const struct firmware *boot)
 
 EXPORT_SYMBOL (snd_vx_load_boot_image)
 
irqreturn_t snd_vx_irq_handler (int irq, void *dev)
 
 EXPORT_SYMBOL (snd_vx_irq_handler)
 
int snd_vx_dsp_boot (struct vx_core *chip, const struct firmware *boot)
 
 EXPORT_SYMBOL (snd_vx_dsp_boot)
 
int snd_vx_dsp_load (struct vx_core *chip, const struct firmware *dsp)
 
 EXPORT_SYMBOL (snd_vx_dsp_load)
 
struct vx_coresnd_vx_create (struct snd_card *card, struct snd_vx_hardware *hw, struct snd_vx_ops *ops, int extra_size)
 
 EXPORT_SYMBOL (snd_vx_create)
 

Macro Definition Documentation

#define END_OF_RESET_WAIT_TIME   500 /* us */

Definition at line 418 of file vx_core.c.

#define MASK_1_WORD_COMMAND   0x00ff7fff

Definition at line 231 of file vx_core.c.

#define MASK_MORE_THAN_1_WORD_COMMAND   0x00008000

Definition at line 230 of file vx_core.c.

Function Documentation

EXPORT_SYMBOL ( snd_vx_check_reg_bit  )
EXPORT_SYMBOL ( snd_vx_load_boot_image  )
EXPORT_SYMBOL ( snd_vx_irq_handler  )
EXPORT_SYMBOL ( snd_vx_dsp_boot  )
EXPORT_SYMBOL ( snd_vx_dsp_load  )
EXPORT_SYMBOL ( snd_vx_create  )
MODULE_AUTHOR ( "Takashi Iwai <[email protected]>"  )
MODULE_DESCRIPTION ( "Common routines for Digigram VX drivers"  )
MODULE_LICENSE ( "GPL"  )
int snd_vx_check_reg_bit ( struct vx_core chip,
int  reg,
int  mask,
int  bit,
int  time 
)

Definition at line 52 of file vx_core.c.

struct vx_core* snd_vx_create ( struct snd_card card,
struct snd_vx_hardware hw,
struct snd_vx_ops ops,
int  extra_size 
)
read

snd_vx_create - constructor for struct vx_core : hardware specific record

this function allocates the instance and prepare for the hardware initialization.

return the instance pointer if successful, NULL in error.

Definition at line 780 of file vx_core.c.

int snd_vx_dsp_boot ( struct vx_core chip,
const struct firmware boot 
)

snd_vx_dsp_boot - load the DSP boot

Definition at line 655 of file vx_core.c.

int snd_vx_dsp_load ( struct vx_core chip,
const struct firmware dsp 
)

snd_vx_dsp_load - load the DSP image

Definition at line 675 of file vx_core.c.

irqreturn_t snd_vx_irq_handler ( int  irq,
void dev 
)

snd_vx_irq_handler - interrupt handler

Definition at line 544 of file vx_core.c.

int snd_vx_load_boot_image ( struct vx_core chip,
const struct firmware boot 
)

snd_vx_boot_xilinx - boot up the xilinx interface : the boot record to load

Definition at line 424 of file vx_core.c.

int vx_send_msg ( struct vx_core chip,
struct vx_rmh rmh 
)

Definition at line 347 of file vx_core.c.

int vx_send_msg_nolock ( struct vx_core chip,
struct vx_rmh rmh 
)

Definition at line 242 of file vx_core.c.

int vx_send_rih ( struct vx_core chip,
int  cmd 
)

Definition at line 407 of file vx_core.c.

int vx_send_rih_nolock ( struct vx_core chip,
int  cmd 
)

Definition at line 370 of file vx_core.c.