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

Go to the source code of this file.

Macros

#define vx_inb(chip, reg)   vx2_inb((struct vx_core*)(chip), VX_##reg)
 
#define vx_outb(chip, reg, val)   vx2_outb((struct vx_core*)(chip), VX_##reg, val)
 
#define vx_inl(chip, reg)   vx2_inl((struct vx_core*)(chip), VX_##reg)
 
#define vx_outl(chip, reg, val)   vx2_outl((struct vx_core*)(chip), VX_##reg, val)
 
#define XX_DSP_RESET_WAIT_TIME   2 /* ms */
 
#define VX_XILINX_RESET_MASK   0x40000000
 
#define VX_USERBIT0_MASK   0x00000004
 
#define VX_USERBIT1_MASK   0x00000020
 
#define VX_CNTRL_REGISTER_VALUE   0x00172012
 
#define AKM_CODEC_POWER_CONTROL_CMD   0xA007
 
#define AKM_CODEC_RESET_ON_CMD   0xA100
 
#define AKM_CODEC_RESET_OFF_CMD   0xA103
 
#define AKM_CODEC_CLOCK_FORMAT_CMD   0xA240
 
#define AKM_CODEC_MUTE_CMD   0xA38D
 
#define AKM_CODEC_UNMUTE_CMD   0xA30D
 
#define AKM_CODEC_LEFT_LEVEL_CMD   0xA400
 
#define AKM_CODEC_RIGHT_LEVEL_CMD   0xA500
 
#define V2_MICRO_LEVEL_RANGE   (318 - 255)
 
#define MIC_LEVEL_MAX   0xff
 

Variables

struct snd_vx_ops vx222_ops
 
struct snd_vx_ops vx222_old_ops
 

Macro Definition Documentation

#define AKM_CODEC_CLOCK_FORMAT_CMD   0xA240

Definition at line 512 of file vx222_ops.c.

#define AKM_CODEC_LEFT_LEVEL_CMD   0xA400

Definition at line 515 of file vx222_ops.c.

#define AKM_CODEC_MUTE_CMD   0xA38D

Definition at line 513 of file vx222_ops.c.

#define AKM_CODEC_POWER_CONTROL_CMD   0xA007

Definition at line 509 of file vx222_ops.c.

#define AKM_CODEC_RESET_OFF_CMD   0xA103

Definition at line 511 of file vx222_ops.c.

#define AKM_CODEC_RESET_ON_CMD   0xA100

Definition at line 510 of file vx222_ops.c.

#define AKM_CODEC_RIGHT_LEVEL_CMD   0xA500

Definition at line 516 of file vx222_ops.c.

#define AKM_CODEC_UNMUTE_CMD   0xA30D

Definition at line 514 of file vx222_ops.c.

#define MIC_LEVEL_MAX   0xff

Definition at line 854 of file vx222_ops.c.

#define V2_MICRO_LEVEL_RANGE   (318 - 255)

Definition at line 819 of file vx222_ops.c.

#define VX_CNTRL_REGISTER_VALUE   0x00172012

Definition at line 327 of file vx222_ops.c.

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

Definition at line 141 of file vx222_ops.c.

#define vx_inl (   chip,
  reg 
)    vx2_inl((struct vx_core*)(chip), VX_##reg)

Definition at line 145 of file vx222_ops.c.

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

Definition at line 143 of file vx222_ops.c.

#define vx_outl (   chip,
  reg,
  val 
)    vx2_outl((struct vx_core*)(chip), VX_##reg, val)

Definition at line 147 of file vx222_ops.c.

#define VX_USERBIT0_MASK   0x00000004

Definition at line 325 of file vx222_ops.c.

#define VX_USERBIT1_MASK   0x00000020

Definition at line 326 of file vx222_ops.c.

#define VX_XILINX_RESET_MASK   0x40000000

Definition at line 324 of file vx222_ops.c.

#define XX_DSP_RESET_WAIT_TIME   2 /* ms */

Definition at line 154 of file vx222_ops.c.

Variable Documentation

struct snd_vx_ops vx222_old_ops
Initial value:
= {
.in8 = vx2_inb,
.in32 = vx2_inl,
.out8 = vx2_outb,
.out32 = vx2_outl,
.test_and_ack = vx2_test_and_ack,
.validate_irq = vx2_validate_irq,
.write_codec = vx2_old_write_codec_bit,
.reset_codec = vx2_reset_codec,
.change_audio_source = vx2_change_audio_source,
.set_clock_source = vx2_set_clock_source,
.load_dsp = vx2_load_dsp,
.reset_dsp = vx2_reset_dsp,
.reset_board = vx2_reset_board,
.dma_write = vx2_dma_write,
.dma_read = vx2_dma_read,
}

Definition at line 1014 of file vx222_ops.c.

struct snd_vx_ops vx222_ops
Initial value:
= {
.in8 = vx2_inb,
.in32 = vx2_inl,
.out8 = vx2_outb,
.out32 = vx2_outl,
.test_and_ack = vx2_test_and_ack,
.validate_irq = vx2_validate_irq,
.akm_write = vx2_write_akm,
.reset_codec = vx2_reset_codec,
.change_audio_source = vx2_change_audio_source,
.set_clock_source = vx2_set_clock_source,
.load_dsp = vx2_load_dsp,
.reset_dsp = vx2_reset_dsp,
.reset_board = vx2_reset_board,
.dma_write = vx2_dma_write,
.dma_read = vx2_dma_read,
.add_controls = vx2_add_mic_controls,
}

Definition at line 994 of file vx222_ops.c.