mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-25 01:40:10 -05:00
PCM: Allow to run older version of extplug plugin
Also show the incompatible plugin version number in error messages. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
d0ca075621
commit
59de61e5b5
2 changed files with 8 additions and 4 deletions
|
|
@ -917,7 +917,8 @@ int snd_pcm_ioplug_create(snd_pcm_ioplug_t *ioplug, const char *name,
|
|||
/* We support 1.0.0 to current */
|
||||
if (ioplug->version < 0x010000 ||
|
||||
ioplug->version > SND_PCM_IOPLUG_VERSION) {
|
||||
SNDERR("ioplug: Plugin version mismatch\n");
|
||||
SNDERR("ioplug: Plugin version mismatch: 0x%x\n",
|
||||
ioplug->version);
|
||||
return -ENXIO;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue