]> git.alsa-project.org Git - alsa-gobject.git/commit
ctl: fix wrong operation for values in enumerated type of element
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 12 Jan 2020 04:33:14 +0000 (13:33 +0900)
committer坂本 貴史 <o-takashi@sakamocchi.jp>
Sun, 12 Jan 2020 09:31:07 +0000 (18:31 +0900)
commit0b21ea3a6a9367714c5daf54f5939d292a7ce56c
tree5eb66d334e8150c51ab55509d810973835f574e1
parenta92c34c8c2ab7949ccd3600c27e3d109fe26488b
ctl: fix wrong operation for values in enumerated type of element

The 'snd_ctl_elem_value' structure includes union member for values.
Although it includes 'enumerated' member for values in enumerated type
of element, current implementation of alsactl library uses 'integer'
member to pick up the values. As a result, in any 64 bit System V ABI,
the library fails to get/set values for the enumerated type of
element. This commit fixes the bug.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
src/ctl/elem-value.c