diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-06-28 06:45:47 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-06-29 02:01:46 -0400 |
commit | 8d087c7600499463b7b8e3d4da4da40669cb8bfa (patch) | |
tree | 817ba350193d4c1cd77546dbd0bbe0d68ee14ecf /sound/pci/hda/hda_codec.h | |
parent | 63f10d2ca78c17cdd612c1daee7daffacca8b7fb (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.h | 2 |
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); |
906 | int snd_hda_get_conn_list(struct hda_codec *codec, hda_nid_t nid, | 906 | int 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); |
908 | int snd_hda_get_conn_index(struct hda_codec *codec, hda_nid_t mux, | ||
909 | hda_nid_t nid, int recursive); | ||
908 | int snd_hda_query_supported_pcm(struct hda_codec *codec, hda_nid_t nid, | 910 | int 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 | ||