Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
vxp_ops.c File Reference
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/firmware.h>
#include <linux/io.h>
#include <sound/core.h>
#include "vxpocket.h"

Go to the source code of this file.

Macros

#define vx_inb(chip, reg)   vxp_inb((struct vx_core *)(chip), VX_##reg)
 
#define vx_outb(chip, reg, val)   vxp_outb((struct vx_core *)(chip), VX_##reg,val)
 
#define XX_DSP_RESET_WAIT_TIME   2 /* ms */
 

Functions

void vx_set_mic_boost (struct vx_core *chip, int boost)
 
void vx_set_mic_level (struct vx_core *chip, int level)
 

Variables

struct snd_vx_ops snd_vxpocket_ops
 

Macro Definition Documentation

#define vx_inb (   chip,
  reg 
)    vxp_inb((struct vx_core *)(chip), VX_##reg)

Definition at line 80 of file vxp_ops.c.

#define vx_outb (   chip,
  reg,
  val 
)    vxp_outb((struct vx_core *)(chip), VX_##reg,val)

Definition at line 82 of file vxp_ops.c.

#define XX_DSP_RESET_WAIT_TIME   2 /* ms */

Definition at line 109 of file vxp_ops.c.

Function Documentation

void vx_set_mic_boost ( struct vx_core chip,
int  boost 
)

Definition at line 468 of file vxp_ops.c.

void vx_set_mic_level ( struct vx_core chip,
int  level 
)

Definition at line 511 of file vxp_ops.c.

Variable Documentation

struct snd_vx_ops snd_vxpocket_ops
Initial value:
= {
.in8 = vxp_inb,
.out8 = vxp_outb,
.test_and_ack = vxp_test_and_ack,
.validate_irq = vxp_validate_irq,
.write_codec = vxp_write_codec_reg,
.reset_codec = vxp_reset_codec,
.change_audio_source = vxp_change_audio_source,
.set_clock_source = vxp_set_clock_source,
.load_dsp = vxp_load_dsp,
.add_controls = vxp_add_mic_controls,
.reset_dsp = vxp_reset_dsp,
.reset_board = vxp_reset_board,
.dma_write = vxp_dma_write,
.dma_read = vxp_dma_read,
}

Definition at line 599 of file vxp_ops.c.