]> git.alsa-project.org Git - alsa-lib.git/commit
ctl: fix returning zero for dimension level 4
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 27 Jun 2016 13:02:57 +0000 (22:02 +0900)
committerTakashi Iwai <tiwai@suse.de>
Mon, 27 Jun 2016 13:34:06 +0000 (15:34 +0200)
commit7bc886584f30e94c817cdfa0857168e50b189f45
treed61f3eaa5bceadb6696d1aedd4645000248e7036
parent5eb8ae1bb0b646ff10a1521e2525133e6909c34c
ctl: fix returning zero for dimension level 4

In ALSA kernel/userspace interfaces, 'struct snd_ctl_elem_info' has a
'dimension' parameter. This parameter consists of an array with four
elements. Each element represents the number of members in corresponding
dimension level to construct matrix.

In current implementation, a get function, 'snd_ctl_elem_info_get_dimension()'
is hardcoded to return zero to level 4, against actual value. This commit fixes
the bug.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/control/control.c