From c80e9f59a309f428c412c11bf207f186f89ce59e Mon Sep 17 00:00:00 2001 From: Mark Farrugia Date: Wed, 30 Jan 2019 17:50:49 +1100 Subject: 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 --- include/avirt/avirt.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/avirt/avirt.h') 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_ -- cgit 1.2.3-korg