diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-06-24 14:10:28 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-06-25 09:19:49 +0200 |
commit | dce2079b89b6579c417bad8a7c44de1a89012ffa (patch) | |
tree | a89387232a79db4ab80430bc2114b131a6dac738 /sound/pci/hda/hda_codec.h | |
parent | 2e925ddeb90ed13b2908c90c4ec31f17efe84359 (diff) |
ALSA: hda - Add snd_hda_get_conn_list() helper function
Add a new helper function snd_hda_get_conn_list().
Unlike snd_hda_get_connections(), this function doesn't copy the
connection-list but gives the raw pointer for the cached list.
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 070efac7e20..c71cd7fb6d1 100644 --- a/sound/pci/hda/hda_codec.h +++ b/sound/pci/hda/hda_codec.h @@ -903,6 +903,8 @@ int snd_hda_get_sub_nodes(struct hda_codec *codec, hda_nid_t nid, hda_nid_t *start_id); int snd_hda_get_connections(struct hda_codec *codec, hda_nid_t nid, hda_nid_t *conn_list, int max_conns); +int snd_hda_get_conn_list(struct hda_codec *codec, hda_nid_t nid, + const hda_nid_t **listp); int snd_hda_query_supported_pcm(struct hda_codec *codec, hda_nid_t nid, u32 *ratesp, u64 *formatsp, unsigned int *bpsp); |