7 Feb
2015
7 Feb
'15
4:45 p.m.
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