ALSA: seq: fill client ID in return value of pool operation
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sat, 11 Apr 2015 04:24:47 +0000 (13:24 +0900)
committerTakashi Iwai <tiwai@suse.de>
Sat, 11 Apr 2015 07:11:19 +0000 (09:11 +0200)
The returned value of 'get/seq client pool' operation has zeroed value
for its client ID, against requested client ID.

This commit fix the bug by filling it with index value of referred
client object.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/seq/seq_clientmgr.c

index 48287651ac7795b8ac27e3b5a4eacb1389ec4950..edbdab85fc02f6f8a54388e9f1b353559661497e 100644 (file)
@@ -1879,6 +1879,7 @@ static int snd_seq_ioctl_get_client_pool(struct snd_seq_client *client,
        if (cptr == NULL)
                return -ENOENT;
        memset(&info, 0, sizeof(info));
+       info.client = cptr->number;
        info.output_pool = cptr->pool->size;
        info.output_room = cptr->pool->room;
        info.output_free = info.output_pool;