[alsa-devel] [PATCH 2/6] ALSA: seq: correctly report maximum number of ports
Takashi Iwai
tiwai at suse.de
Mon Jan 26 14:37:56 CET 2015
At Sun, 25 Jan 2015 14:34:57 +0100,
Clemens Ladisch wrote:
>
> Due to SNDRV_SEQ_ADDRESS_BROADCAST, not all 256 port number values can
> be used.
>
> Signed-off-by: Clemens Ladisch <clemens at ladisch.de>
Thanks, applied all the rest five patches to for-next.
Takashi
> ---
> sound/core/seq/seq_clientmgr.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/core/seq/seq_clientmgr.c b/sound/core/seq/seq_clientmgr.c
> index 225c7315..808918a 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
> /* 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();
>
More information about the Alsa-devel
mailing list