Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
max9877.h File Reference

Go to the source code of this file.

Macros

#define MAX9877_INPUT_MODE   0x00
 
#define MAX9877_SPK_VOLUME   0x01
 
#define MAX9877_HPL_VOLUME   0x02
 
#define MAX9877_HPR_VOLUME   0x03
 
#define MAX9877_OUTPUT_MODE   0x04
 
#define MAX9877_INB   (1 << 4)
 
#define MAX9877_INA   (1 << 5)
 
#define MAX9877_ZCD   (1 << 6)
 
#define MAX9877_OUTMODE_MASK   (15 << 0)
 
#define MAX9877_OSC_MASK   (3 << 4)
 
#define MAX9877_OSC_OFFSET   4
 
#define MAX9877_BYPASS   (1 << 6)
 
#define MAX9877_SHDN   (1 << 7)
 

Functions

int max9877_add_controls (struct snd_soc_codec *codec)
 

Macro Definition Documentation

#define MAX9877_BYPASS   (1 << 6)

Definition at line 32 of file max9877.h.

#define MAX9877_HPL_VOLUME   0x02

Definition at line 19 of file max9877.h.

#define MAX9877_HPR_VOLUME   0x03

Definition at line 20 of file max9877.h.

#define MAX9877_INA   (1 << 5)

Definition at line 25 of file max9877.h.

#define MAX9877_INB   (1 << 4)

Definition at line 24 of file max9877.h.

#define MAX9877_INPUT_MODE   0x00

Definition at line 17 of file max9877.h.

#define MAX9877_OSC_MASK   (3 << 4)

Definition at line 30 of file max9877.h.

#define MAX9877_OSC_OFFSET   4

Definition at line 31 of file max9877.h.

#define MAX9877_OUTMODE_MASK   (15 << 0)

Definition at line 29 of file max9877.h.

#define MAX9877_OUTPUT_MODE   0x04

Definition at line 21 of file max9877.h.

#define MAX9877_SHDN   (1 << 7)

Definition at line 33 of file max9877.h.

#define MAX9877_SPK_VOLUME   0x01

Definition at line 18 of file max9877.h.

#define MAX9877_ZCD   (1 << 6)

Definition at line 26 of file max9877.h.

Function Documentation

int max9877_add_controls ( struct snd_soc_codec codec)

Definition at line 254 of file max9877.c.