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:
Takashi Iwai 2012-08-15 17:05:37 +02:00
parent d0ca075621
commit 59de61e5b5
2 changed files with 8 additions and 4 deletions

View file

@ -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;
}