aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_codec.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2011-06-28 06:45:47 -0400
committerTakashi Iwai <tiwai@suse.de>2011-06-29 02:01:46 -0400
commit8d087c7600499463b7b8e3d4da4da40669cb8bfa (patch)
tree817ba350193d4c1cd77546dbd0bbe0d68ee14ecf /sound/pci/hda/hda_codec.h
parent63f10d2ca78c17cdd612c1daee7daffacca8b7fb (diff)
ALSA: hda - Create snd_hda_get_conn_index() helper function
Create snd_hda_get_conn_index() helper function for obtaining the connection index of the widget. Replaced the similar codes used in several codec-drivers with this common helper. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_codec.h')
-rw-r--r--sound/pci/hda/hda_codec.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_codec.h b/sound/pci/hda/hda_codec.h
index 79ef65e3ae14..10d500d2ba33 100644
--- a/sound/pci/hda/hda_codec.h
+++ b/sound/pci/hda/hda_codec.h
@@ -905,6 +905,8 @@ int snd_hda_get_connections(struct hda_codec *codec, hda_nid_t nid,
905 hda_nid_t *conn_list, int max_conns); 905 hda_nid_t *conn_list, int max_conns);
906int snd_hda_get_conn_list(struct hda_codec *codec, hda_nid_t nid, 906int snd_hda_get_conn_list(struct hda_codec *codec, hda_nid_t nid,
907 const hda_nid_t **listp); 907 const hda_nid_t **listp);
908int snd_hda_get_conn_index(struct hda_codec *codec, hda_nid_t mux,
909 hda_nid_t nid, int recursive);
908int snd_hda_query_supported_pcm(struct hda_codec *codec, hda_nid_t nid, 910int snd_hda_query_supported_pcm(struct hda_codec *codec, hda_nid_t nid,
909 u32 *ratesp, u64 *formatsp, unsigned int *bpsp); 911 u32 *ratesp, u64 *formatsp, unsigned int *bpsp);
910 912