[alsa-devel] Hiding some of the controls defined in codec driver from machine driver context

Takashi Iwai tiwai at suse.de
Mon Jul 9 11:28:47 CEST 2018


On Sun, 08 Jul 2018 10:13:55 +0200,
Giedrius Trainavičius wrote:
> 
> Hello,
> 
> Is it possible to 'hide' some of the controls of the codec in the machine
> driver? The codec I'm using exposes many advanced controls which are useful
> for board developers, but not for the end user, so I'd like to define my
> own 'simplified' controls, and take care of board specific logic internally
> in the machine driver.
> 
> I found this old discussion on the topic:
> https://www.spinics.net/lists/alsa-devel/msg36386.html - I'm targeting
> kernel 4.14, maybe there's already some means to achieve this?

It is possible, but whether it's appropriate is another question.
You can turn the active / inactive state of each ctl via
snd_ctl_activate_id() function on the fly, for example.


Takashi


More information about the Alsa-devel mailing list