diff options
author | Wu Fengguang <fengguang.wu@intel.com> | 2009-11-17 23:38:02 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-11-18 01:40:57 -0500 |
commit | 864f92be7e8d4a0ba11d912e3f03d1a92a031dee (patch) | |
tree | 95de58c8f304024b99da8707df77264f644d14b4 /sound/pci/hda/hda_local.h | |
parent | 23ccc2bd246a5bdb1ac03dc9040a0585c1890ef3 (diff) |
ALSA: hda - introduce snd_hda_jack_detect() and snd_hda_pin_sense()
This helps merge duplicate code.
v2: add snd_hda_jack_detect() and comments recommended by Takashi.
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_local.h b/sound/pci/hda/hda_local.h index 070b74384d43..5778ae882b83 100644 --- a/sound/pci/hda/hda_local.h +++ b/sound/pci/hda/hda_local.h | |||
@@ -461,6 +461,8 @@ u32 query_amp_caps(struct hda_codec *codec, hda_nid_t nid, int direction); | |||
461 | int snd_hda_override_amp_caps(struct hda_codec *codec, hda_nid_t nid, int dir, | 461 | int snd_hda_override_amp_caps(struct hda_codec *codec, hda_nid_t nid, int dir, |
462 | unsigned int caps); | 462 | unsigned int caps); |
463 | u32 snd_hda_query_pin_caps(struct hda_codec *codec, hda_nid_t nid); | 463 | u32 snd_hda_query_pin_caps(struct hda_codec *codec, hda_nid_t nid); |
464 | u32 snd_hda_pin_sense(struct hda_codec *codec, hda_nid_t nid); | ||
465 | int snd_hda_jack_detect(struct hda_codec *codec, hda_nid_t nid); | ||
464 | 466 | ||
465 | struct hda_nid_item { | 467 | struct hda_nid_item { |
466 | struct snd_kcontrol *kctl; | 468 | struct snd_kcontrol *kctl; |