Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
patch_cirrus.c File Reference
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/pci.h>
#include <linux/module.h>
#include <sound/core.h>
#include "hda_codec.h"
#include "hda_local.h"
#include "hda_auto_parser.h"
#include "hda_jack.h"
#include <sound/tlv.h>

Go to the source code of this file.

Data Structures

struct  cs_spec
 

Macros

#define CS420X_VENDOR_NID   0x11
 
#define CS_DIG_OUT1_PIN_NID   0x10
 
#define CS_DIG_OUT2_PIN_NID   0x15
 
#define CS_DMIC1_PIN_NID   0x0e
 
#define CS_DMIC2_PIN_NID   0x12
 
#define IDX_SPDIF_STAT   0x0000
 
#define IDX_SPDIF_CTL   0x0001
 
#define IDX_ADC_CFG   0x0002
 
#define CS_COEF_ADC_SZC_MASK   (3 << 0)
 
#define CS_COEF_ADC_MIC_SZC_MODE   (3 << 0) /* SZC setup for mic */
 
#define CS_COEF_ADC_LI_SZC_MODE   (3 << 0) /* SZC setup for line-in */
 
#define CS_COEF_ADC_MIC_PGA_MODE   (1 << 5) /* PGA setup for mic */
 
#define CS_COEF_ADC_LI_PGA_MODE   (1 << 6) /* PGA setup for line-in */
 
#define IDX_DAC_CFG   0x0003
 
#define CS_COEF_DAC_HP_SZC_MODE   (3 << 0) /* nid 0x02 */
 
#define CS_COEF_DAC_LO_SZC_MODE   (3 << 2) /* nid 0x03 */
 
#define CS_COEF_DAC_SPK_SZC_MODE   (3 << 4) /* nid 0x04 */
 
#define IDX_BEEP_CFG   0x0004
 
#define CS4210_DAC_NID   0x02
 
#define CS4210_ADC_NID   0x03
 
#define CS4210_VENDOR_NID   0x0B
 
#define CS421X_DMIC_PIN_NID   0x09 /* Port E */
 
#define CS421X_SPDIF_PIN_NID   0x0A /* Port H */
 
#define CS421X_IDX_DEV_CFG   0x01
 
#define CS421X_IDX_ADC_CFG   0x02
 
#define CS421X_IDX_DAC_CFG   0x03
 
#define CS421X_IDX_SPK_CTL   0x04
 
#define SPDIF_EVENT   0x04
 
#define CS4213_VENDOR_NID   0x09
 
#define HP_EVENT   1
 
#define MIC_EVENT   2
 

Enumerations

enum  {
  CS420X_MBP53, CS420X_MBP55, CS420X_IMAC27, CS420X_GPIO_13,
  CS420X_GPIO_23, CS420X_MBP101, CS420X_MBP101_COEF, CS420X_AUTO,
  CS420X_IMAC27_122 = CS420X_GPIO_23, CS420X_APPLE = CS420X_GPIO_13
}
 
enum  { CS421X_CDB4210, CS421X_SENSE_B }
 

Functions

 MODULE_ALIAS ("snd-hda-codec-id:10134206")
 
 MODULE_ALIAS ("snd-hda-codec-id:10134207")
 
 MODULE_ALIAS ("snd-hda-codec-id:10134210")
 
 MODULE_ALIAS ("snd-hda-codec-id:10134213")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("Cirrus Logic HD-audio codec")
 

Macro Definition Documentation

#define CS420X_VENDOR_NID   0x11

Definition at line 101 of file patch_cirrus.c.

#define CS4210_ADC_NID   0x03

Definition at line 147 of file patch_cirrus.c.

#define CS4210_DAC_NID   0x02

Definition at line 146 of file patch_cirrus.c.

#define CS4210_VENDOR_NID   0x0B

Definition at line 148 of file patch_cirrus.c.

#define CS4213_VENDOR_NID   0x09

Definition at line 160 of file patch_cirrus.c.

#define CS421X_DMIC_PIN_NID   0x09 /* Port E */

Definition at line 149 of file patch_cirrus.c.

#define CS421X_IDX_ADC_CFG   0x02

Definition at line 153 of file patch_cirrus.c.

#define CS421X_IDX_DAC_CFG   0x03

Definition at line 154 of file patch_cirrus.c.

#define CS421X_IDX_DEV_CFG   0x01

Definition at line 152 of file patch_cirrus.c.

#define CS421X_IDX_SPK_CTL   0x04

Definition at line 155 of file patch_cirrus.c.

#define CS421X_SPDIF_PIN_NID   0x0A /* Port H */

Definition at line 150 of file patch_cirrus.c.

#define CS_COEF_ADC_LI_PGA_MODE   (1 << 6) /* PGA setup for line-in */

Definition at line 122 of file patch_cirrus.c.

#define CS_COEF_ADC_LI_SZC_MODE   (3 << 0) /* SZC setup for line-in */

Definition at line 119 of file patch_cirrus.c.

#define CS_COEF_ADC_MIC_PGA_MODE   (1 << 5) /* PGA setup for mic */

Definition at line 121 of file patch_cirrus.c.

#define CS_COEF_ADC_MIC_SZC_MODE   (3 << 0) /* SZC setup for mic */

Definition at line 118 of file patch_cirrus.c.

#define CS_COEF_ADC_SZC_MASK   (3 << 0)

Definition at line 117 of file patch_cirrus.c.

#define CS_COEF_DAC_HP_SZC_MODE   (3 << 0) /* nid 0x02 */

Definition at line 130 of file patch_cirrus.c.

#define CS_COEF_DAC_LO_SZC_MODE   (3 << 2) /* nid 0x03 */

Definition at line 131 of file patch_cirrus.c.

#define CS_COEF_DAC_SPK_SZC_MODE   (3 << 4) /* nid 0x04 */

Definition at line 132 of file patch_cirrus.c.

#define CS_DIG_OUT1_PIN_NID   0x10

Definition at line 102 of file patch_cirrus.c.

#define CS_DIG_OUT2_PIN_NID   0x15

Definition at line 103 of file patch_cirrus.c.

#define CS_DMIC1_PIN_NID   0x0e

Definition at line 104 of file patch_cirrus.c.

#define CS_DMIC2_PIN_NID   0x12

Definition at line 105 of file patch_cirrus.c.

#define HP_EVENT   1

Definition at line 183 of file patch_cirrus.c.

#define IDX_ADC_CFG   0x0002

Definition at line 110 of file patch_cirrus.c.

#define IDX_BEEP_CFG   0x0004

Definition at line 134 of file patch_cirrus.c.

#define IDX_DAC_CFG   0x0003

Definition at line 123 of file patch_cirrus.c.

#define IDX_SPDIF_CTL   0x0001

Definition at line 109 of file patch_cirrus.c.

#define IDX_SPDIF_STAT   0x0000

Definition at line 108 of file patch_cirrus.c.

#define MIC_EVENT   2

Definition at line 184 of file patch_cirrus.c.

#define SPDIF_EVENT   0x04

Definition at line 157 of file patch_cirrus.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
CS420X_MBP53 
CS420X_MBP55 
CS420X_IMAC27 
CS420X_GPIO_13 
CS420X_GPIO_23 
CS420X_MBP101 
CS420X_MBP101_COEF 
CS420X_AUTO 
CS420X_IMAC27_122 
CS420X_APPLE 

Definition at line 80 of file patch_cirrus.c.

anonymous enum
Enumerator:
CS421X_CDB4210 
CS421X_SENSE_B 

Definition at line 95 of file patch_cirrus.c.

Function Documentation

MODULE_ALIAS ( "snd-hda-codec-id:10134206"  )
MODULE_ALIAS ( "snd-hda-codec-id:10134207"  )
MODULE_ALIAS ( "snd-hda-codec-id:10134210"  )
MODULE_ALIAS ( "snd-hda-codec-id:10134213"  )
MODULE_DESCRIPTION ( "Cirrus Logic HD-audio codec )
MODULE_LICENSE ( "GPL"  )