mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
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>
This commit is contained in:
parent
9c1a0ce72d
commit
01dc0e6825
2 changed files with 108 additions and 70 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue