[alsa-devel] [PATCH] [updated] pcm: rate: Add capability to pass configuration node to plugins

Takashi Iwai tiwai at suse.de
Tue Feb 21 22:30:43 CET 2017


On Tue, 21 Feb 2017 17:14:29 +0100,
Alan Young wrote:
> 
> On 21/02/17 15:28, Takashi Iwai wrote:
> > You forgot to call
> >
> > 	snd_pcm_free(pcm);
> > 	free(rate);
> >
> > before returning an error.
> Ah, ok. Updated patch.
> 
> >From de90c659c98ae4dac7de6eb225b22147f56a3d1c Mon Sep 17 00:00:00 2001
> From: Alan Young <consult.awy at gmail.com>
> Date: Thu, 7 Apr 2016 09:15:04 +0100
> Subject: [PATCH] pcm: rate: Add capability to pass configuration node to
>  plugins
> 
> If a rate plugin uses a node (compound) instead of a plain string for
> its "converter", and that compound is not a simple string array, then
> the compound will be passed as an additional parameter to the new plugin
> open() function (SND_PCM_RATE_PLUGIN_CONF_ENTRY(XXX)). The previous
> open() function (SND_PCM_RATE_PLUGIN_ENTRY(XXX)) will be called if the
> CONF version is not found. It is up to the plugin to determine whether
> the presence of the conf parameter is mandatory.
> 
> Signed-off-by: Alan Young <consult.awy at gmail.com>

Applied, thanks.


Takashi


More information about the Alsa-devel mailing list