1 Feb
2021
1 Feb
'21
3:52 p.m.
On Mon, 01 Feb 2021 14:50:08 +0100, fassl wrote:
On 01.02.21 09:42, Takashi Iwai wrote:
snd_ctl_new() can be used for allocating the multiple instances in one kcontrol. If the kctl object is created in this way, you'd just need to change your code to retrieve the kctl index via snd_ctl_get_ioff() instead of referring to kctl->index directly.
Hi, thanks for the response. snd_ctl_new() is static and unexported, should I provide this patch (below) as well? And if so, together with this one or separately?
My bad, it's the same snd_ctl_new1(). You just need to set counter field of snd_kcontrol_new to create multiple instances in a single shot.
Takashi