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

Go to the source code of this file.

Macros

#define SFX   "hda_codec: "
 

Functions

int snd_hda_parse_pin_defcfg (struct hda_codec *codec, struct auto_pin_cfg *cfg, const hda_nid_t *ignore_nids, unsigned int cond_flags)
 
 EXPORT_SYMBOL_HDA (snd_hda_parse_pin_defcfg)
 
int snd_hda_get_input_pin_attr (unsigned int def_conf)
 
 EXPORT_SYMBOL_HDA (snd_hda_get_input_pin_attr)
 
const charhda_get_autocfg_input_label (struct hda_codec *codec, const struct auto_pin_cfg *cfg, int input)
 
 EXPORT_SYMBOL_HDA (hda_get_autocfg_input_label)
 
int snd_hda_get_pin_label (struct hda_codec *codec, hda_nid_t nid, const struct auto_pin_cfg *cfg, char *label, int maxlen, int *indexp)
 
 EXPORT_SYMBOL_HDA (snd_hda_get_pin_label)
 
int snd_hda_gen_add_verbs (struct hda_gen_spec *spec, const struct hda_verb *list)
 
 EXPORT_SYMBOL_HDA (snd_hda_gen_add_verbs)
 
void snd_hda_gen_apply_verbs (struct hda_codec *codec)
 
 EXPORT_SYMBOL_HDA (snd_hda_gen_apply_verbs)
 
void snd_hda_apply_pincfgs (struct hda_codec *codec, const struct hda_pintbl *cfg)
 
 EXPORT_SYMBOL_HDA (snd_hda_apply_pincfgs)
 
void snd_hda_apply_fixup (struct hda_codec *codec, int action)
 
 EXPORT_SYMBOL_HDA (snd_hda_apply_fixup)
 
void snd_hda_pick_fixup (struct hda_codec *codec, const struct hda_model_fixup *models, const struct snd_pci_quirk *quirk, const struct hda_fixup *fixlist)
 
 EXPORT_SYMBOL_HDA (snd_hda_pick_fixup)
 

Macro Definition Documentation

#define SFX   "hda_codec: "

Definition at line 19 of file hda_auto_parser.c.

Function Documentation

EXPORT_SYMBOL_HDA ( snd_hda_parse_pin_defcfg  )
EXPORT_SYMBOL_HDA ( snd_hda_get_input_pin_attr  )
EXPORT_SYMBOL_HDA ( hda_get_autocfg_input_label  )
EXPORT_SYMBOL_HDA ( snd_hda_get_pin_label  )
EXPORT_SYMBOL_HDA ( snd_hda_gen_add_verbs  )
EXPORT_SYMBOL_HDA ( snd_hda_gen_apply_verbs  )
EXPORT_SYMBOL_HDA ( snd_hda_apply_pincfgs  )
EXPORT_SYMBOL_HDA ( snd_hda_apply_fixup  )
EXPORT_SYMBOL_HDA ( snd_hda_pick_fixup  )
const char* hda_get_autocfg_input_label ( struct hda_codec codec,
const struct auto_pin_cfg cfg,
int  input 
)

hda_get_autocfg_input_label - Get a label for the given input

Get a label for the given input pin defined by the autocfg item. Unlike hda_get_input_pin_label(), this function checks all inputs defined in autocfg and avoids the redundant mic/line prefix as much as possible.

Definition at line 452 of file hda_auto_parser.c.

void snd_hda_apply_fixup ( struct hda_codec codec,
int  action 
)

Definition at line 668 of file hda_auto_parser.c.

void snd_hda_apply_pincfgs ( struct hda_codec codec,
const struct hda_pintbl cfg 
)

Definition at line 660 of file hda_auto_parser.c.

int snd_hda_gen_add_verbs ( struct hda_gen_spec spec,
const struct hda_verb list 
)

Definition at line 637 of file hda_auto_parser.c.

void snd_hda_gen_apply_verbs ( struct hda_codec codec)

Definition at line 649 of file hda_auto_parser.c.

int snd_hda_get_input_pin_attr ( unsigned int  def_conf)

Definition at line 344 of file hda_auto_parser.c.

int snd_hda_get_pin_label ( struct hda_codec codec,
hda_nid_t  nid,
const struct auto_pin_cfg cfg,
char label,
int  maxlen,
int indexp 
)

snd_hda_get_pin_label - Get a label for the given I/O pin

Get a label for the given pin. This function works for both input and output pins. When is given as non-NULL, the function tries to get an optimized label using hda_get_autocfg_input_label().

This function tries to give a unique label string for the pin as much as possible. For example, when the multiple line-outs are present, it adds the channel suffix like "Front", "Surround", etc (only when is given). If no unique name with a suffix is available and is non-NULL, the index number is stored in the pointer.

Definition at line 580 of file hda_auto_parser.c.

int snd_hda_parse_pin_defcfg ( struct hda_codec codec,
struct auto_pin_cfg cfg,
const hda_nid_t ignore_nids,
unsigned int  cond_flags 
)

Definition at line 125 of file hda_auto_parser.c.

void snd_hda_pick_fixup ( struct hda_codec codec,
const struct hda_model_fixup models,
const struct snd_pci_quirk *  quirk,
const struct hda_fixup fixlist 
)

Definition at line 723 of file hda_auto_parser.c.