diff options
author | Takashi Iwai <tiwai@suse.de> | 2012-09-07 14:15:04 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-09-13 08:24:58 +0200 |
commit | 01dc0e6825b5620510faaefaef40ff8cfb692b6e (patch) | |
tree | 3cf908c36a1a641cd854683e6ad110b34706fed5 /include | |
parent | 9c1a0ce72d71e4728d45dcd3986dd0ef0201dd67 (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.h | 3 |
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); |