- Backport upstream fixes for sequencer and mixer: 0006-seq-Fix-invalid-sanity-check-in-snd_seq_set_input_bu.patch 0007-mixer-simple-Support-dB-TLVs-for-CTL_SINGLE-controls.patch 0008-seq-Clear-UMP-event-flag-for-legacy-apps.patch 0009-seq-Simplify-snd_seq_extract_output.patch 0010-seq-Check-protocol-compatibility-with-the-current-ve.patch - Clean up spec file OBS-URL: https://build.opensuse.org/request/show/1124030 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa?expand=0&rev=325
38 lines
1.2 KiB
Diff
38 lines
1.2 KiB
Diff
From ed6b07084bfea4155bbc98bcf38508ab81bdd008 Mon Sep 17 00:00:00 2001
|
|
From: Takashi Iwai <tiwai@suse.de>
|
|
Date: Mon, 6 Nov 2023 16:36:55 +0100
|
|
Subject: [PATCH] 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>
|
|
---
|
|
src/seq/seq_hw.c | 3 +--
|
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
diff --git a/src/seq/seq_hw.c b/src/seq/seq_hw.c
|
|
index b74948c81c9e..eeaf26e16d1c 100644
|
|
--- a/src/seq/seq_hw.c
|
|
+++ b/src/seq/seq_hw.c
|
|
@@ -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;
|
|
}
|
|
--
|
|
2.35.3
|
|
|