]> git.alsa-project.org Git - alsa-lib.git/commit
ctl: fix a test for user-defined element set in a point of dimension
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Thu, 7 Jul 2016 14:22:21 +0000 (23:22 +0900)
committerTakashi Iwai <tiwai@suse.de>
Thu, 7 Jul 2016 14:30:37 +0000 (16:30 +0200)
commitd61d71a9bbbd7398d152bce6a65c2e460e8759f6
tree7e480422394f4d1c56349a17f92a7b472ac1b9cc
parentea7bc7f91a4053b11a3c266a3c547b9fb3de3266
ctl: fix a test for user-defined element set in a point of dimension

Currently, this test program has a bug related to dimension information.
When testing an element set with byte type, the program adds 512 members
to an element. This is a maximum number permitted for this type.

On the other hand, dimension information of the elements consists of
[8, 4, 8, 4]. Calculated members in the multi-dimensional matrix is 1024.
This should be less than 512.

This commit fixes the bug.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
test/user-ctl-element-set.c