diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2015-01-25 08:34:57 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-01-26 07:54:39 -0500 |
commit | 467be357c622bb33235a4b810c1e3c3ab509c129 (patch) | |
tree | df5c6be8e47ebd0c8e7aa94511900d66dec6ed05 /sound/core/seq | |
parent | 7533185eeefd087d5472422181ae8edf75118213 (diff) |
ALSA: seq: correctly report maximum number of ports
Due to SNDRV_SEQ_ADDRESS_BROADCAST, not all 256 port number values can
be used.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/seq')
-rw-r--r-- | sound/core/seq/seq_clientmgr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/seq/seq_clientmgr.c b/sound/core/seq/seq_clientmgr.c index 225c73152ee9..808918ad2938 100644 --- a/sound/core/seq/seq_clientmgr.c +++ b/sound/core/seq/seq_clientmgr.c | |||
@@ -1133,7 +1133,7 @@ static int snd_seq_ioctl_system_info(struct snd_seq_client *client, void __user | |||
1133 | /* fill the info fields */ | 1133 | /* fill the info fields */ |
1134 | info.queues = SNDRV_SEQ_MAX_QUEUES; | 1134 | info.queues = SNDRV_SEQ_MAX_QUEUES; |
1135 | info.clients = SNDRV_SEQ_MAX_CLIENTS; | 1135 | info.clients = SNDRV_SEQ_MAX_CLIENTS; |
1136 | info.ports = 256; /* fixed limit */ | 1136 | info.ports = SNDRV_SEQ_MAX_PORTS; |
1137 | info.channels = 256; /* fixed limit */ | 1137 | info.channels = 256; /* fixed limit */ |
1138 | info.cur_clients = client_usage.cur; | 1138 | info.cur_clients = client_usage.cur; |
1139 | info.cur_queues = snd_seq_queue_get_cur_queues(); | 1139 | info.cur_queues = snd_seq_queue_get_cur_queues(); |