提交 467be357 编写于 作者: C Clemens Ladisch 提交者: Takashi Iwai

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: NClemens Ladisch <clemens@ladisch.de>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 7533185e
...@@ -1133,7 +1133,7 @@ static int snd_seq_ioctl_system_info(struct snd_seq_client *client, void __user ...@@ -1133,7 +1133,7 @@ static int snd_seq_ioctl_system_info(struct snd_seq_client *client, void __user
/* fill the info fields */ /* fill the info fields */
info.queues = SNDRV_SEQ_MAX_QUEUES; info.queues = SNDRV_SEQ_MAX_QUEUES;
info.clients = SNDRV_SEQ_MAX_CLIENTS; info.clients = SNDRV_SEQ_MAX_CLIENTS;
info.ports = 256; /* fixed limit */ info.ports = SNDRV_SEQ_MAX_PORTS;
info.channels = 256; /* fixed limit */ info.channels = 256; /* fixed limit */
info.cur_clients = client_usage.cur; info.cur_clients = client_usage.cur;
info.cur_queues = snd_seq_queue_get_cur_queues(); info.cur_queues = snd_seq_queue_get_cur_queues();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册