diff options
author | Misael Lopez Cruz | 2013-05-02 18:11:17 -0500 |
---|---|---|
committer | Vishal Mahaveer | 2014-11-12 17:51:42 -0600 |
commit | 78a059042cc488d9d52072695f6453f37e4534e1 (patch) | |
tree | 8a76f442f4d6314ff830a8c68ff426d2d389af0a /include/tinyalsa/asoundlib.h | |
parent | 8863816dc5659a1e4678d17906c90844264d1588 (diff) | |
download | platform-external-tinyalsa-master.tar.gz platform-external-tinyalsa-master.tar.xz platform-external-tinyalsa-master.zip |
mixer: Add get_card_name() APIHEADmasterd-lollipop-release
Add mixer_get_card_name() so that clients can retrieve card's
name based on its id.
Change-Id: Ic29e5e8c8098c578aadb8e104c4cd48e0871afeb
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Diffstat (limited to 'include/tinyalsa/asoundlib.h')
-rw-r--r-- | include/tinyalsa/asoundlib.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/tinyalsa/asoundlib.h b/include/tinyalsa/asoundlib.h index 75e5cda..4b6e4ec 100644 --- a/include/tinyalsa/asoundlib.h +++ b/include/tinyalsa/asoundlib.h | |||
@@ -147,6 +147,12 @@ enum mixer_ctl_type { | |||
147 | MIXER_CTL_TYPE_MAX, | 147 | MIXER_CTL_TYPE_MAX, |
148 | }; | 148 | }; |
149 | 149 | ||
150 | #ifdef OMAP_ENHANCEMENT | ||
151 | #define MAX_CARD_COUNT 32 | ||
152 | |||
153 | int mixer_get_card_name(int card, char *str, size_t strlen); | ||
154 | #endif | ||
155 | |||
150 | /* Open and close a stream */ | 156 | /* Open and close a stream */ |
151 | struct pcm *pcm_open(unsigned int card, unsigned int device, | 157 | struct pcm *pcm_open(unsigned int card, unsigned int device, |
152 | unsigned int flags, struct pcm_config *config); | 158 | unsigned int flags, struct pcm_config *config); |