[alsa-devel] Some questions about userspace control elements
Clemens Ladisch
clemens at ladisch.de
Sat Feb 7 16:45:30 CET 2015
Takashi Sakamoto wrote:
> On Feb 6 2015 18:38, Clemens Ladisch wrote:
>> The owner field is used because there is no other field to set the
>> count.
>
> No. In SNDRV_CTL_IOCTL_ELEM_ADD ioctl, struct snd_ctl_elem_info.count
> has the number of elements in this control, there it's an abuse of
> member unrelated to the count.
That is a different count.
struct snd_ctl_elem_info.count allows a control to have multiple values.
For example, a stereo volume control has two values.
kctl.count creates multiple controls.
Regards,
Clemens
More information about the Alsa-devel
mailing list