mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
seq: Check protocol compatibility with the current version
There is no need for checking the protocol compatibility with another version, but we just need to check for the current version. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
94a5ddff9d
commit
ed6b07084b
1 changed files with 1 additions and 2 deletions
|
|
@ -32,7 +32,6 @@ const char *_snd_module_seq_hw = "";
|
|||
#ifndef DOC_HIDDEN
|
||||
#define SNDRV_FILE_SEQ ALSA_DEVICE_DIRECTORY "seq"
|
||||
#define SNDRV_FILE_ALOADSEQ ALOAD_DEVICE_DIRECTORY "aloadSEQ"
|
||||
#define SNDRV_SEQ_VERSION_MAX SNDRV_PROTOCOL_VERSION(1, 0, 2)
|
||||
|
||||
typedef struct {
|
||||
int fd;
|
||||
|
|
@ -535,7 +534,7 @@ int snd_seq_hw_open(snd_seq_t **handle, const char *name, int streams, int mode)
|
|||
close(fd);
|
||||
return ret;
|
||||
}
|
||||
if (SNDRV_PROTOCOL_INCOMPATIBLE(ver, SNDRV_SEQ_VERSION_MAX)) {
|
||||
if (SNDRV_PROTOCOL_INCOMPATIBLE(ver, SNDRV_SEQ_VERSION)) {
|
||||
close(fd);
|
||||
return -SND_ERROR_INCOMPATIBLE_VERSION;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue