Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
pontis.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 <sound/info.h>
#include <sound/tlv.h>
#include "ice1712.h"
#include "envy24ht.h"
#include "pontis.h"

Go to the source code of this file.

Macros

#define WM_DEV   0x34
 
#define CS_DEV   0x20
 
#define WM_HP_ATTEN_L   0x00 /* headphone left attenuation */
 
#define WM_HP_ATTEN_R   0x01 /* headphone left attenuation */
 
#define WM_HP_MASTER   0x02 /* headphone master (both channels) */
 
#define WM_DAC_ATTEN_L   0x03 /* digital left attenuation */
 
#define WM_DAC_ATTEN_R   0x04
 
#define WM_DAC_MASTER   0x05
 
#define WM_PHASE_SWAP   0x06 /* DAC phase swap */
 
#define WM_DAC_CTRL1   0x07
 
#define WM_DAC_MUTE   0x08
 
#define WM_DAC_CTRL2   0x09
 
#define WM_DAC_INT   0x0a
 
#define WM_ADC_INT   0x0b
 
#define WM_MASTER_CTRL   0x0c
 
#define WM_POWERDOWN   0x0d
 
#define WM_ADC_ATTEN_L   0x0e
 
#define WM_ADC_ATTEN_R   0x0f
 
#define WM_ALC_CTRL1   0x10
 
#define WM_ALC_CTRL2   0x11
 
#define WM_ALC_CTRL3   0x12
 
#define WM_NOISE_GATE   0x13
 
#define WM_LIMITER   0x14
 
#define WM_ADC_MUX   0x15
 
#define WM_OUT_MUX   0x16
 
#define WM_RESET   0x17
 
#define PONTIS_CS_CS   (1<<4) /* CS */
 
#define PONTIS_CS_CLK   (1<<5) /* CLK */
 
#define PONTIS_CS_RDATA   (1<<6) /* CS8416 -> VT1720 */
 
#define PONTIS_CS_WDATA   (1<<7) /* VT1720 -> CS8416 */
 
#define DAC_0dB   0xff
 
#define DAC_RES   128
 
#define DAC_MIN   (DAC_0dB - DAC_RES)
 
#define ADC_0dB   0xcf
 
#define ADC_RES   128
 
#define ADC_MIN   (ADC_0dB - ADC_RES)
 
#define wm_adc_mux_info   snd_ctl_boolean_mono_info
 
#define wm_bypass_info   snd_ctl_boolean_mono_info
 
#define wm_chswap_info   snd_ctl_boolean_mono_info
 

Macro Definition Documentation

#define ADC_0dB   0xcf

Definition at line 166 of file pontis.c.

#define ADC_MIN   (ADC_0dB - ADC_RES)

Definition at line 168 of file pontis.c.

#define ADC_RES   128

Definition at line 167 of file pontis.c.

#define CS_DEV   0x20

Definition at line 41 of file pontis.c.

#define DAC_0dB   0xff

Definition at line 111 of file pontis.c.

#define DAC_MIN   (DAC_0dB - DAC_RES)

Definition at line 113 of file pontis.c.

#define DAC_RES   128

Definition at line 112 of file pontis.c.

#define PONTIS_CS_CLK   (1<<5) /* CLK */

Definition at line 74 of file pontis.c.

#define PONTIS_CS_CS   (1<<4) /* CS */

Definition at line 73 of file pontis.c.

#define PONTIS_CS_RDATA   (1<<6) /* CS8416 -> VT1720 */

Definition at line 75 of file pontis.c.

#define PONTIS_CS_WDATA   (1<<7) /* VT1720 -> CS8416 */

Definition at line 76 of file pontis.c.

#define WM_ADC_ATTEN_L   0x0e

Definition at line 59 of file pontis.c.

#define WM_ADC_ATTEN_R   0x0f

Definition at line 60 of file pontis.c.

#define WM_ADC_INT   0x0b

Definition at line 56 of file pontis.c.

#define WM_ADC_MUX   0x15

Definition at line 66 of file pontis.c.

#define wm_adc_mux_info   snd_ctl_boolean_mono_info

Definition at line 219 of file pontis.c.

#define WM_ALC_CTRL1   0x10

Definition at line 61 of file pontis.c.

#define WM_ALC_CTRL2   0x11

Definition at line 62 of file pontis.c.

#define WM_ALC_CTRL3   0x12

Definition at line 63 of file pontis.c.

#define wm_bypass_info   snd_ctl_boolean_mono_info

Definition at line 256 of file pontis.c.

#define wm_chswap_info   snd_ctl_boolean_mono_info

Definition at line 291 of file pontis.c.

#define WM_DAC_ATTEN_L   0x03 /* digital left attenuation */

Definition at line 48 of file pontis.c.

#define WM_DAC_ATTEN_R   0x04

Definition at line 49 of file pontis.c.

#define WM_DAC_CTRL1   0x07

Definition at line 52 of file pontis.c.

#define WM_DAC_CTRL2   0x09

Definition at line 54 of file pontis.c.

#define WM_DAC_INT   0x0a

Definition at line 55 of file pontis.c.

#define WM_DAC_MASTER   0x05

Definition at line 50 of file pontis.c.

#define WM_DAC_MUTE   0x08

Definition at line 53 of file pontis.c.

#define WM_DEV   0x34

Definition at line 40 of file pontis.c.

#define WM_HP_ATTEN_L   0x00 /* headphone left attenuation */

Definition at line 44 of file pontis.c.

#define WM_HP_ATTEN_R   0x01 /* headphone left attenuation */

Definition at line 45 of file pontis.c.

#define WM_HP_MASTER   0x02 /* headphone master (both channels) */

Definition at line 46 of file pontis.c.

#define WM_LIMITER   0x14

Definition at line 65 of file pontis.c.

#define WM_MASTER_CTRL   0x0c

Definition at line 57 of file pontis.c.

#define WM_NOISE_GATE   0x13

Definition at line 64 of file pontis.c.

#define WM_OUT_MUX   0x16

Definition at line 67 of file pontis.c.

#define WM_PHASE_SWAP   0x06 /* DAC phase swap */

Definition at line 51 of file pontis.c.

#define WM_POWERDOWN   0x0d

Definition at line 58 of file pontis.c.

#define WM_RESET   0x17

Definition at line 68 of file pontis.c.