Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
phase.c File Reference
#include <asm/io.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/mutex.h>
#include <sound/core.h>
#include "ice1712.h"
#include "envy24ht.h"
#include "phase.h"
#include <sound/tlv.h>

Go to the source code of this file.

Data Structures

struct  phase28_spec
 

Macros

#define WM_DAC_ATTEN   0x00 /* DAC1-8 analog attenuation */
 
#define WM_DAC_MASTER_ATTEN   0x08 /* DAC master analog attenuation */
 
#define WM_DAC_DIG_ATTEN   0x09 /* DAC1-8 digital attenuation */
 
#define WM_DAC_DIG_MASTER_ATTEN   0x11 /* DAC master digital attenuation */
 
#define WM_PHASE_SWAP   0x12 /* DAC phase */
 
#define WM_DAC_CTRL1   0x13 /* DAC control bits */
 
#define WM_MUTE   0x14 /* mute controls */
 
#define WM_DAC_CTRL2   0x15 /* de-emphasis and zefo-flag */
 
#define WM_INT_CTRL   0x16 /* interface control */
 
#define WM_MASTER   0x17 /* master clock and mode */
 
#define WM_POWERDOWN   0x18 /* power-down controls */
 
#define WM_ADC_GAIN   0x19 /* ADC gain L(19)/R(1a) */
 
#define WM_ADC_MUX   0x1b /* input MUX */
 
#define WM_OUT_MUX1   0x1c /* output MUX */
 
#define WM_OUT_MUX2   0x1e /* output MUX */
 
#define WM_RESET   0x1f /* software reset */
 
#define WM_VOL_MAX   (sizeof(wm_vol) - 1)
 
#define WM_VOL_MUTE   0x8000
 
#define wm_pcm_mute_info   snd_ctl_boolean_mono_info
 
#define wm_master_mute_info   snd_ctl_boolean_stereo_info
 
#define PCM_0dB   0xff
 
#define PCM_RES   128 /* -64dB */
 
#define PCM_MIN   (PCM_0dB - PCM_RES)
 
#define phase28_deemp_info   snd_ctl_boolean_mono_info
 

Macro Definition Documentation

#define PCM_0dB   0xff

Definition at line 637 of file phase.c.

#define PCM_MIN   (PCM_0dB - PCM_RES)

Definition at line 639 of file phase.c.

#define PCM_RES   128 /* -64dB */

Definition at line 638 of file phase.c.

#define phase28_deemp_info   snd_ctl_boolean_mono_info

Definition at line 690 of file phase.c.

#define WM_ADC_GAIN   0x19 /* ADC gain L(19)/R(1a) */

Definition at line 77 of file phase.c.

#define WM_ADC_MUX   0x1b /* input MUX */

Definition at line 78 of file phase.c.

#define WM_DAC_ATTEN   0x00 /* DAC1-8 analog attenuation */

Definition at line 66 of file phase.c.

#define WM_DAC_CTRL1   0x13 /* DAC control bits */

Definition at line 71 of file phase.c.

#define WM_DAC_CTRL2   0x15 /* de-emphasis and zefo-flag */

Definition at line 73 of file phase.c.

#define WM_DAC_DIG_ATTEN   0x09 /* DAC1-8 digital attenuation */

Definition at line 68 of file phase.c.

#define WM_DAC_DIG_MASTER_ATTEN   0x11 /* DAC master digital attenuation */

Definition at line 69 of file phase.c.

#define WM_DAC_MASTER_ATTEN   0x08 /* DAC master analog attenuation */

Definition at line 67 of file phase.c.

#define WM_INT_CTRL   0x16 /* interface control */

Definition at line 74 of file phase.c.

#define WM_MASTER   0x17 /* master clock and mode */

Definition at line 75 of file phase.c.

#define wm_master_mute_info   snd_ctl_boolean_stereo_info

Definition at line 593 of file phase.c.

#define WM_MUTE   0x14 /* mute controls */

Definition at line 72 of file phase.c.

#define WM_OUT_MUX1   0x1c /* output MUX */

Definition at line 79 of file phase.c.

#define WM_OUT_MUX2   0x1e /* output MUX */

Definition at line 80 of file phase.c.

#define wm_pcm_mute_info   snd_ctl_boolean_mono_info

Definition at line 298 of file phase.c.

#define WM_PHASE_SWAP   0x12 /* DAC phase */

Definition at line 70 of file phase.c.

#define WM_POWERDOWN   0x18 /* power-down controls */

Definition at line 76 of file phase.c.

#define WM_RESET   0x1f /* software reset */

Definition at line 81 of file phase.c.

#define WM_VOL_MAX   (sizeof(wm_vol) - 1)

Definition at line 103 of file phase.c.

#define WM_VOL_MUTE   0x8000

Definition at line 104 of file phase.c.