Re: [PATCH] sound: pci/rme9652 - implement and expose controls for output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux