Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
patch_analog.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_beep.h"
#include "hda_jack.h"

Go to the source code of this file.

Data Structures

struct  ad198x_spec
 

Macros

#define set_beep_amp(spec, nid, idx, dir)   /* NOP */
 
#define ad198x_eapd_info   snd_ctl_boolean_mono_info
 
#define AD1986A_SPDIF_OUT   0x02
 
#define AD1986A_FRONT_DAC   0x03
 
#define AD1986A_SURR_DAC   0x04
 
#define AD1986A_CLFE_DAC   0x05
 
#define AD1986A_ADC   0x06
 
#define AD1986A_MIC_EVENT   0x36
 
#define AD1986A_HP_EVENT   0x37
 
#define AD1983_SPDIF_OUT   0x02
 
#define AD1983_DAC   0x03
 
#define AD1983_ADC   0x04
 
#define AD1981_SPDIF_OUT   0x02
 
#define AD1981_DAC   0x03
 
#define AD1981_ADC   0x04
 
#define AD1981_HP_EVENT   0x37
 
#define AD1981_MIC_EVENT   0x38
 
#define AD1988A_REV2   0x100200
 
#define is_rev2(codec)
 
#define AD1988_SPDIF_OUT   0x02
 
#define AD1988_SPDIF_OUT_HDMI   0x0b
 
#define AD1988_SPDIF_IN   0x07
 
#define AD1988_HP_EVENT   0x01
 
#define AD1988_PIN_CD_NID   0x18
 
#define AD1988_PIN_BEEP_NID   0x10
 
#define AD1884_SPDIF_OUT   0x02
 
#define ad1884a_adc_nids   ad1884_adc_nids
 
#define ad1884a_capsrc_nids   ad1884_capsrc_nids
 
#define AD1884A_SPDIF_OUT   0x02
 
#define AD1884A_HP_EVENT   0x37
 
#define AD1884A_MIC_EVENT   0x36
 
#define AD1882_SPDIF_OUT   0x02
 
#define AD1882_HP_EVENT   0x01
 

Enumerations

enum  {
  AD1986A_6STACK, AD1986A_3STACK, AD1986A_LAPTOP, AD1986A_LAPTOP_EAPD,
  AD1986A_LAPTOP_AUTOMUTE, AD1986A_ULTRA, AD1986A_SAMSUNG, AD1986A_SAMSUNG_P50,
  AD1986A_MODELS
}
 
enum  {
  AD1981_BASIC, AD1981_HP, AD1981_THINKPAD, AD1981_TOSHIBA,
  AD1981_MODELS
}
 
enum  {
  AD1988_6STACK, AD1988_6STACK_DIG, AD1988_3STACK, AD1988_3STACK_DIG,
  AD1988_LAPTOP, AD1988_LAPTOP_DIG, AD1988_AUTO, AD1988_MODEL_LAST
}
 
enum  { AD_CTL_WIDGET_VOL, AD_CTL_WIDGET_MUTE, AD_CTL_BIND_MUTE }
 
enum  { AD1984_BASIC, AD1984_THINKPAD, AD1984_DELL_DESKTOP, AD1984_MODELS }
 
enum  {
  AD1884A_DESKTOP, AD1884A_LAPTOP, AD1884A_MOBILE, AD1884A_THINKPAD,
  AD1984A_TOUCHSMART, AD1984A_PRECISION, AD1884A_MODELS
}
 
enum  { AD1882_3STACK, AD1882_6STACK, AD1882_3STACK_AUTOMUTE, AD1882_MODELS }
 

Functions

 MODULE_ALIAS ("snd-hda-codec-id:11d4*")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("Analog Devices HD-audio codec")
 

Macro Definition Documentation

#define AD1882_HP_EVENT   0x01

Definition at line 4817 of file patch_analog.c.

#define AD1882_SPDIF_OUT   0x02

Definition at line 4709 of file patch_analog.c.

#define AD1884_SPDIF_OUT   0x02

Definition at line 3443 of file patch_analog.c.

#define ad1884a_adc_nids   ad1884_adc_nids

Definition at line 3874 of file patch_analog.c.

#define ad1884a_capsrc_nids   ad1884_capsrc_nids

Definition at line 3875 of file patch_analog.c.

#define AD1884A_HP_EVENT   0x37

Definition at line 4101 of file patch_analog.c.

#define AD1884A_MIC_EVENT   0x36

Definition at line 4102 of file patch_analog.c.

#define AD1884A_SPDIF_OUT   0x02

Definition at line 3877 of file patch_analog.c.

#define AD1981_ADC   0x04

Definition at line 1598 of file patch_analog.c.

#define AD1981_DAC   0x03

Definition at line 1597 of file patch_analog.c.

#define AD1981_HP_EVENT   0x37

Definition at line 1724 of file patch_analog.c.

#define AD1981_MIC_EVENT   0x38

Definition at line 1725 of file patch_analog.c.

#define AD1981_SPDIF_OUT   0x02

Definition at line 1596 of file patch_analog.c.

#define AD1983_ADC   0x04

Definition at line 1409 of file patch_analog.c.

#define AD1983_DAC   0x03

Definition at line 1408 of file patch_analog.c.

#define AD1983_SPDIF_OUT   0x02

Definition at line 1407 of file patch_analog.c.

#define AD1986A_ADC   0x06

Definition at line 719 of file patch_analog.c.

#define AD1986A_CLFE_DAC   0x05

Definition at line 718 of file patch_analog.c.

#define AD1986A_FRONT_DAC   0x03

Definition at line 716 of file patch_analog.c.

#define AD1986A_HP_EVENT   0x37

Definition at line 978 of file patch_analog.c.

#define AD1986A_MIC_EVENT   0x36

Definition at line 935 of file patch_analog.c.

#define AD1986A_SPDIF_OUT   0x02

Definition at line 715 of file patch_analog.c.

#define AD1986A_SURR_DAC   0x04

Definition at line 717 of file patch_analog.c.

#define AD1988_HP_EVENT   0x01

Definition at line 2744 of file patch_analog.c.

#define AD1988_PIN_BEEP_NID   0x10

Definition at line 2855 of file patch_analog.c.

#define AD1988_PIN_CD_NID   0x18

Definition at line 2854 of file patch_analog.c.

#define AD1988_SPDIF_IN   0x07

Definition at line 2186 of file patch_analog.c.

#define AD1988_SPDIF_OUT   0x02

Definition at line 2184 of file patch_analog.c.

#define AD1988_SPDIF_OUT_HDMI   0x0b

Definition at line 2185 of file patch_analog.c.

#define AD1988A_REV2   0x100200

Definition at line 2145 of file patch_analog.c.

#define ad198x_eapd_info   snd_ctl_boolean_mono_info

Definition at line 670 of file patch_analog.c.

#define is_rev2 (   codec)
Value:
((codec)->vendor_id == 0x11d41988 && \
(codec)->revision_id == AD1988A_REV2)

Definition at line 2147 of file patch_analog.c.

#define set_beep_amp (   spec,
  nid,
  idx,
  dir 
)    /* NOP */

Definition at line 172 of file patch_analog.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
AD1986A_6STACK 
AD1986A_3STACK 
AD1986A_LAPTOP 
AD1986A_LAPTOP_EAPD 
AD1986A_LAPTOP_AUTOMUTE 
AD1986A_ULTRA 
AD1986A_SAMSUNG 
AD1986A_SAMSUNG_P50 
AD1986A_MODELS 

Definition at line 1179 of file patch_analog.c.

anonymous enum
Enumerator:
AD1981_BASIC 
AD1981_HP 
AD1981_THINKPAD 
AD1981_TOSHIBA 
AD1981_MODELS 

Definition at line 1925 of file patch_analog.c.

anonymous enum
Enumerator:
AD1988_6STACK 
AD1988_6STACK_DIG 
AD1988_3STACK 
AD1988_3STACK_DIG 
AD1988_LAPTOP 
AD1988_LAPTOP_DIG 
AD1988_AUTO 
AD1988_MODEL_LAST 

Definition at line 2133 of file patch_analog.c.

anonymous enum
Enumerator:
AD_CTL_WIDGET_VOL 
AD_CTL_WIDGET_MUTE 
AD_CTL_BIND_MUTE 

Definition at line 2823 of file patch_analog.c.

anonymous enum
Enumerator:
AD1984_BASIC 
AD1984_THINKPAD 
AD1984_DELL_DESKTOP 
AD1984_MODELS 

Definition at line 3792 of file patch_analog.c.

anonymous enum
Enumerator:
AD1884A_DESKTOP 
AD1884A_LAPTOP 
AD1884A_MOBILE 
AD1884A_THINKPAD 
AD1984A_TOUCHSMART 
AD1984A_PRECISION 
AD1884A_MODELS 

Definition at line 4539 of file patch_analog.c.

anonymous enum
Enumerator:
AD1882_3STACK 
AD1882_6STACK 
AD1882_3STACK_AUTOMUTE 
AD1882_MODELS 

Definition at line 4972 of file patch_analog.c.

Function Documentation

MODULE_ALIAS ( "snd-hda-codec-id:11d4*"  )
MODULE_DESCRIPTION ( "Analog Devices HD-audio codec )
MODULE_LICENSE ( "GPL"  )