diff options
author | Takashi Iwai <tiwai@suse.de> | 2010-09-17 14:42:34 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-09-17 14:42:34 +0200 |
commit | 99ae28bea984df4c38234eb6d2f29a552def6c1b (patch) | |
tree | c3005c84d8fa092bfe5cb7642a0dd2f61dca977e /sound/pci/hda/hda_local.h | |
parent | 5637edb2e1c2d13b276748508ae17f319fb7f066 (diff) | |
download | blackbird-op-linux-99ae28bea984df4c38234eb6d2f29a552def6c1b.tar.gz blackbird-op-linux-99ae28bea984df4c38234eb6d2f29a552def6c1b.zip |
ALSA: hda - Make snd_hda_get_input_pin_attr() helper
Make the helper function to give the input-pin attribute for jack
connectivity and location. This simplifies checks of input-pin jacks
a bit in some places.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_local.h')
-rw-r--r-- | sound/pci/hda/hda_local.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_local.h b/sound/pci/hda/hda_local.h index 6943efc78f66..d7dfa547e2d8 100644 --- a/sound/pci/hda/hda_local.h +++ b/sound/pci/hda/hda_local.h @@ -395,6 +395,17 @@ const char *hda_get_autocfg_input_label(struct hda_codec *codec, int snd_hda_add_imux_item(struct hda_input_mux *imux, const char *label, int index, int *type_index_ret); +enum { + INPUT_PIN_ATTR_UNUSED, /* pin not connected */ + INPUT_PIN_ATTR_INT, /* internal mic/line-in */ + INPUT_PIN_ATTR_DOCK, /* docking mic/line-in */ + INPUT_PIN_ATTR_NORMAL, /* mic/line-in jack */ + INPUT_PIN_ATTR_FRONT, /* mic/line-in jack in front */ + INPUT_PIN_ATTR_REAR, /* mic/line-in jack in rear */ +}; + +int snd_hda_get_input_pin_attr(unsigned int def_conf); + struct auto_pin_cfg { int line_outs; /* sorted in the order of Front/Surr/CLFE/Side */ |