summaryrefslogtreecommitdiffstats
path: root/include/avirt/avirt.h
diff options
context:
space:
mode:
authorMark Farrugia <mark.farrugia@fiberdyne.com.au>2019-01-30 17:50:49 +1100
committerMark Farrugia <mark.farrugia@fiberdyne.com.au>2019-01-30 17:51:09 +1100
commitc80e9f59a309f428c412c11bf207f186f89ce59e (patch)
tree19cbfdb14ef5b47abc041075e1adc79bbfe8ee03 /include/avirt/avirt.h
parent3205195333eb1435bdef8257e0d122c25d0b7e6f (diff)
Add function to get the ALSA card index for an AVIRT card
From an AVIRT internal card index, we retrieve the ALSA card index. Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
Diffstat (limited to 'include/avirt/avirt.h')
-rw-r--r--include/avirt/avirt.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/avirt/avirt.h b/include/avirt/avirt.h
index 94f03c5..92eb23c 100644
--- a/include/avirt/avirt.h
+++ b/include/avirt/avirt.h
@@ -65,4 +65,10 @@ int snd_avirt_card_seal();
*/
int snd_avirt_pcm_info(const char *pcm_name, snd_pcm_info_t *pcm_info);
+/**
+ * snd_avirt_card_index_get - Get the ALSA card index for an AVIRT card
+ * @avirt_idx: The AVIRT internal index (TD MF: perhaps change to UID?)
+ * @return: The ALSA card index on success, negative ERRNO otherwise
+ */
+int snd_avirt_card_index_get(int avirt_idx);
#endif // _AVIRT_H_