Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
patch_conexant.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 <sound/jack.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  pin_dac_pair
 
struct  imux_info
 
struct  conexant_spec
 

Macros

#define CXT_PIN_DIR_IN   0x00
 
#define CXT_PIN_DIR_OUT   0x01
 
#define CXT_PIN_DIR_INOUT   0x02
 
#define CXT_PIN_DIR_IN_NOMICBIAS   0x03
 
#define CXT_PIN_DIR_INOUT_NOMICBIAS   0x04
 
#define CONEXANT_HP_EVENT   0x37
 
#define CONEXANT_MIC_EVENT   0x38
 
#define CONEXANT_LINE_EVENT   0x39
 
#define CXT5051_SPDIF_OUT   0x12
 
#define CXT5051_PORTB_EVENT   0x38
 
#define CXT5051_PORTC_EVENT   0x39
 
#define AUTO_MIC_PORTB   (1 << 1)
 
#define AUTO_MIC_PORTC   (1 << 2)
 
#define set_beep_amp(spec, nid, idx, dir)   /* NOP */
 
#define cxt_eapd_info   snd_ctl_boolean_mono_info
 
#define CXT5045_SPDIF_OUT   0x18
 
#define CXT5047_SPDIF_OUT   0x11
 
#define CXT5066_OLPC_EXT_MIC_BIAS   PIN_VREF50
 
#define HP_PRESENT_PORT_A   (1 << 0)
 
#define HP_PRESENT_PORT_D   (1 << 1)
 
#define hp_port_a_present(spec)   ((spec)->hp_present & HP_PRESENT_PORT_A)
 
#define hp_port_d_present(spec)   ((spec)->hp_present & HP_PRESENT_PORT_D)
 
#define get_connection_index(codec, mux, nid)   snd_hda_get_conn_index(codec, mux, nid, 0)
 
#define MAX_AUTO_DACS   5
 
#define DAC_SLAVE_FLAG   0x8000 /* filled dac is a slave */
 
#define cx_auto_parse_beep(codec)
 
#define cx_auto_add_volume(codec, str, dir, cidx, nid, hda_dir)   cx_auto_add_volume_idx(codec, str, dir, cidx, nid, hda_dir, 0, 3)
 
#define cx_auto_add_pb_volume(codec, nid, str, idx)   cx_auto_add_volume(codec, str, " Playback", idx, nid, HDA_OUTPUT)
 

Enumerations

enum  {
  CXT5045_LAPTOP_HPSENSE, CXT5045_LAPTOP_MICSENSE, CXT5045_LAPTOP_HPMICSENSE, CXT5045_BENQ,
  CXT5045_LAPTOP_HP530, CXT5045_AUTO, CXT5045_MODELS
}
 
enum  {
  CXT5047_LAPTOP, CXT5047_LAPTOP_HP, CXT5047_LAPTOP_EAPD, CXT5047_AUTO,
  CXT5047_MODELS
}
 
enum  {
  CXT5051_LAPTOP, CXT5051_HP, CXT5051_HP_DV6736, CXT5051_F700,
  CXT5051_TOSHIBA, CXT5051_IDEAPAD, CXT5051_AUTO, CXT5051_MODELS
}
 
enum  {
  CXT5066_LAPTOP, CXT5066_DELL_LAPTOP, CXT5066_OLPC_XO_1_5, CXT5066_DELL_VOSTRO,
  CXT5066_IDEAPAD, CXT5066_THINKPAD, CXT5066_ASUS, CXT5066_HP_LAPTOP,
  CXT5066_AUTO, CXT5066_MODELS
}
 
enum  { CXT_PINCFG_LENOVO_X200, CXT_PINCFG_LENOVO_TP410, CXT_FIXUP_STEREO_DMIC }
 

Functions

 MODULE_ALIAS ("snd-hda-codec-id:14f15045")
 
 MODULE_ALIAS ("snd-hda-codec-id:14f15047")
 
 MODULE_ALIAS ("snd-hda-codec-id:14f15051")
 
 MODULE_ALIAS ("snd-hda-codec-id:14f15066")
 
 MODULE_ALIAS ("snd-hda-codec-id:14f15067")
 
 MODULE_ALIAS ("snd-hda-codec-id:14f15068")
 
 MODULE_ALIAS ("snd-hda-codec-id:14f15069")
 
 MODULE_ALIAS ("snd-hda-codec-id:14f1506c")
 
 MODULE_ALIAS ("snd-hda-codec-id:14f1506e")
 
 MODULE_ALIAS ("snd-hda-codec-id:14f15097")
 
 MODULE_ALIAS ("snd-hda-codec-id:14f15098")
 
 MODULE_ALIAS ("snd-hda-codec-id:14f150a1")
 
 MODULE_ALIAS ("snd-hda-codec-id:14f150a2")
 
 MODULE_ALIAS ("snd-hda-codec-id:14f150ab")
 
 MODULE_ALIAS ("snd-hda-codec-id:14f150ac")
 
 MODULE_ALIAS ("snd-hda-codec-id:14f150b8")
 
 MODULE_ALIAS ("snd-hda-codec-id:14f150b9")
 
 MODULE_ALIAS ("snd-hda-codec-id:14f1510f")
 
 MODULE_ALIAS ("snd-hda-codec-id:14f15110")
 
 MODULE_ALIAS ("snd-hda-codec-id:14f15111")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("Conexant HD-audio codec")
 

Macro Definition Documentation

#define AUTO_MIC_PORTB   (1 << 1)

Definition at line 53 of file patch_conexant.c.

#define AUTO_MIC_PORTC   (1 << 2)

Definition at line 54 of file patch_conexant.c.

#define CONEXANT_HP_EVENT   0x37

Definition at line 43 of file patch_conexant.c.

#define CONEXANT_LINE_EVENT   0x39

Definition at line 45 of file patch_conexant.c.

#define CONEXANT_MIC_EVENT   0x38

Definition at line 44 of file patch_conexant.c.

#define cx_auto_add_pb_volume (   codec,
  nid,
  str,
  idx 
)    cx_auto_add_volume(codec, str, " Playback", idx, nid, HDA_OUTPUT)

Definition at line 4101 of file patch_conexant.c.

#define cx_auto_add_volume (   codec,
  str,
  dir,
  cidx,
  nid,
  hda_dir 
)    cx_auto_add_volume_idx(codec, str, dir, cidx, nid, hda_dir, 0, 3)

Definition at line 4098 of file patch_conexant.c.

#define cx_auto_parse_beep (   codec)

Definition at line 3801 of file patch_conexant.c.

#define CXT5045_SPDIF_OUT   0x18

Definition at line 685 of file patch_conexant.c.

#define CXT5047_SPDIF_OUT   0x11

Definition at line 1192 of file patch_conexant.c.

#define CXT5051_PORTB_EVENT   0x38

Definition at line 50 of file patch_conexant.c.

#define CXT5051_PORTC_EVENT   0x39

Definition at line 51 of file patch_conexant.c.

#define CXT5051_SPDIF_OUT   0x12

Definition at line 49 of file patch_conexant.c.

#define CXT5066_OLPC_EXT_MIC_BIAS   PIN_VREF50

Definition at line 1979 of file patch_conexant.c.

#define cxt_eapd_info   snd_ctl_boolean_mono_info

Definition at line 589 of file patch_conexant.c.

#define CXT_PIN_DIR_IN   0x00

Definition at line 37 of file patch_conexant.c.

#define CXT_PIN_DIR_IN_NOMICBIAS   0x03

Definition at line 40 of file patch_conexant.c.

#define CXT_PIN_DIR_INOUT   0x02

Definition at line 39 of file patch_conexant.c.

#define CXT_PIN_DIR_INOUT_NOMICBIAS   0x04

Definition at line 41 of file patch_conexant.c.

#define CXT_PIN_DIR_OUT   0x01

Definition at line 38 of file patch_conexant.c.

#define DAC_SLAVE_FLAG   0x8000 /* filled dac is a slave */

Definition at line 3224 of file patch_conexant.c.

#define get_connection_index (   codec,
  mux,
  nid 
)    snd_hda_get_conn_index(codec, mux, nid, 0)

Definition at line 3195 of file patch_conexant.c.

#define hp_port_a_present (   spec)    ((spec)->hp_present & HP_PRESENT_PORT_A)

Definition at line 1987 of file patch_conexant.c.

#define hp_port_d_present (   spec)    ((spec)->hp_present & HP_PRESENT_PORT_D)

Definition at line 1988 of file patch_conexant.c.

#define HP_PRESENT_PORT_A   (1 << 0)

Definition at line 1985 of file patch_conexant.c.

#define HP_PRESENT_PORT_D   (1 << 1)

Definition at line 1986 of file patch_conexant.c.

#define MAX_AUTO_DACS   5

Definition at line 3222 of file patch_conexant.c.

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

Definition at line 580 of file patch_conexant.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
CXT5045_LAPTOP_HPSENSE 
CXT5045_LAPTOP_MICSENSE 
CXT5045_LAPTOP_HPMICSENSE 
CXT5045_BENQ 
CXT5045_LAPTOP_HP530 
CXT5045_AUTO 
CXT5045_MODELS 

Definition at line 1031 of file patch_conexant.c.

anonymous enum
Enumerator:
CXT5047_LAPTOP 
CXT5047_LAPTOP_HP 
CXT5047_LAPTOP_EAPD 
CXT5047_AUTO 
CXT5047_MODELS 

Definition at line 1483 of file patch_conexant.c.

anonymous enum
Enumerator:
CXT5051_LAPTOP 
CXT5051_HP 
CXT5051_HP_DV6736 
CXT5051_F700 
CXT5051_TOSHIBA 
CXT5051_IDEAPAD 
CXT5051_AUTO 
CXT5051_MODELS 

Definition at line 1861 of file patch_conexant.c.

anonymous enum
Enumerator:
CXT5066_LAPTOP 
CXT5066_DELL_LAPTOP 
CXT5066_OLPC_XO_1_5 
CXT5066_DELL_VOSTRO 
CXT5066_IDEAPAD 
CXT5066_THINKPAD 
CXT5066_ASUS 
CXT5066_HP_LAPTOP 
CXT5066_AUTO 
CXT5066_MODELS 

Definition at line 2944 of file patch_conexant.c.

anonymous enum
Enumerator:
CXT_PINCFG_LENOVO_X200 
CXT_PINCFG_LENOVO_TP410 
CXT_FIXUP_STEREO_DMIC 

Definition at line 4405 of file patch_conexant.c.

Function Documentation

MODULE_ALIAS ( "snd-hda-codec-id:14f15045"  )
MODULE_ALIAS ( "snd-hda-codec-id:14f15047"  )
MODULE_ALIAS ( "snd-hda-codec-id:14f15051"  )
MODULE_ALIAS ( "snd-hda-codec-id:14f15066"  )
MODULE_ALIAS ( "snd-hda-codec-id:14f15067"  )
MODULE_ALIAS ( "snd-hda-codec-id:14f15068"  )
MODULE_ALIAS ( "snd-hda-codec-id:14f15069"  )
MODULE_ALIAS ( "snd-hda-codec-id:14f1506c"  )
MODULE_ALIAS ( "snd-hda-codec-id:14f1506e"  )
MODULE_ALIAS ( "snd-hda-codec-id:14f15097"  )
MODULE_ALIAS ( "snd-hda-codec-id:14f15098"  )
MODULE_ALIAS ( "snd-hda-codec-id:14f150a1"  )
MODULE_ALIAS ( "snd-hda-codec-id:14f150a2"  )
MODULE_ALIAS ( "snd-hda-codec-id:14f150ab"  )
MODULE_ALIAS ( "snd-hda-codec-id:14f150ac"  )
MODULE_ALIAS ( "snd-hda-codec-id:14f150b8"  )
MODULE_ALIAS ( "snd-hda-codec-id:14f150b9"  )
MODULE_ALIAS ( "snd-hda-codec-id:14f1510f"  )
MODULE_ALIAS ( "snd-hda-codec-id:14f15110"  )
MODULE_ALIAS ( "snd-hda-codec-id:14f15111"  )
MODULE_DESCRIPTION ( "Conexant HD-audio codec )
MODULE_LICENSE ( "GPL"  )