ALSA: seq: correctly report maximum number of ports
authorClemens Ladisch <clemens@ladisch.de>
Sun, 25 Jan 2015 13:34:57 +0000 (14:34 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 26 Jan 2015 12:54:39 +0000 (13:54 +0100)
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>
sound/core/seq/seq_clientmgr.c

index 225c73152ee9e5896c06a3b7f1fbb16095bb5bd2..808918ad29385cddc1dcd1e5d14033566c03dc87 100644 (file)
@@ -1133,7 +1133,7 @@ static int snd_seq_ioctl_system_info(struct snd_seq_client *client, void __user
        /* fill the info fields */
        info.queues = SNDRV_SEQ_MAX_QUEUES;
        info.clients = SNDRV_SEQ_MAX_CLIENTS;
-       info.ports = 256;       /* fixed limit */
+       info.ports = SNDRV_SEQ_MAX_PORTS;
        info.channels = 256;    /* fixed limit */
        info.cur_clients = client_usage.cur;
        info.cur_queues = snd_seq_queue_get_cur_queues();
This page took 0.026156 seconds and 5 git commands to generate.