summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2012-09-07 14:15:04 +0200
committerTakashi Iwai <tiwai@suse.de>2012-09-13 08:24:58 +0200
commit01dc0e6825b5620510faaefaef40ff8cfb692b6e (patch)
tree3cf908c36a1a641cd854683e6ad110b34706fed5 /include
parent9c1a0ce72d71e4728d45dcd3986dd0ef0201dd67 (diff)
PCM: Implement snd_pcm_query_chmaps_from_hw()
This is a function similar like snd_pcm_query_chmaps() but performs the query without a PCM handle. The card, device and substream numbers are passed as well as stream direction. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include')
-rw-r--r--include/pcm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/pcm.h b/include/pcm.h
index ba72a497..8ae4cd8b 100644
--- a/include/pcm.h
+++ b/include/pcm.h
@@ -526,6 +526,9 @@ typedef struct snd_pcm_chmap_query {
snd_pcm_chmap_query_t **snd_pcm_query_chmaps(snd_pcm_t *pcm);
+snd_pcm_chmap_query_t **snd_pcm_query_chmaps_from_hw(int card, int dev,
+ int subdev,
+ snd_pcm_stream_t stream);
void snd_pcm_free_chmaps(snd_pcm_chmap_query_t **maps);
snd_pcm_chmap_t *snd_pcm_get_chmap(snd_pcm_t *pcm);
int snd_pcm_set_chmap(snd_pcm_t *pcm, const snd_pcm_chmap_t *map);