mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Implement get_chmap/set_chmap for PCM extplug/ioplug plugins
Added the new ops for both external plugins, so the protocol numbers are incremented. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
3fb013065f
commit
662f79d4ec
4 changed files with 93 additions and 3 deletions
|
|
@ -55,7 +55,7 @@ typedef struct snd_pcm_extplug_callback snd_pcm_extplug_callback_t;
|
|||
*/
|
||||
#define SND_PCM_EXTPLUG_VERSION_MAJOR 1 /**< Protocol major version */
|
||||
#define SND_PCM_EXTPLUG_VERSION_MINOR 0 /**< Protocol minor version */
|
||||
#define SND_PCM_EXTPLUG_VERSION_TINY 1 /**< Protocol tiny version */
|
||||
#define SND_PCM_EXTPLUG_VERSION_TINY 2 /**< Protocol tiny version */
|
||||
/**
|
||||
* Filter-plugin protocol version
|
||||
*/
|
||||
|
|
@ -151,6 +151,18 @@ struct snd_pcm_extplug_callback {
|
|||
* init; optional initialization called at prepare or reset
|
||||
*/
|
||||
int (*init)(snd_pcm_extplug_t *ext);
|
||||
/**
|
||||
* query the channel maps; optional; since v1.0.2
|
||||
*/
|
||||
int **(*query_chmaps)(snd_pcm_extplug_t *ext);
|
||||
/**
|
||||
* get the channel map; optional; since v1.0.2
|
||||
*/
|
||||
int *(*get_chmap)(snd_pcm_extplug_t *ext);
|
||||
/**
|
||||
* set the channel map; optional; since v1.0.2
|
||||
*/
|
||||
int (*set_chmap)(snd_pcm_extplug_t *ext, const int *map);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue