Lines Matching +full:master +full:- +full:kernel
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
14 #define snd_kcontrol_chip(kcontrol) ((kcontrol)->private_data)
29 ((info)->access & SNDRV_CTL_ELEM_ACCESS_SKIP_CHECK)
35 /* kernel only - LED bits */
37 #define SNDRV_CTL_ELEM_ACCESS_LED_MASK (7<<25) /* kernel three bits - LED group */
38 #define SNDRV_CTL_ELEM_ACCESS_SPK_LED (1<<25) /* kernel speaker (output) LED flag */
39 #define SNDRV_CTL_ELEM_ACCESS_MIC_LED (2<<25) /* kernel microphone (input) LED flag */
44 SNDRV_CTL_TLV_OP_CMD = -1,
149 * snd_ctl_find_id_mixer - find the control instance with the given name string
190 unsigned int ioff = id->numid - kctl->id.numid; in snd_ctl_get_ioffnum()
191 return array_index_nospec(ioff, kctl->count); in snd_ctl_get_ioffnum()
196 unsigned int ioff = id->index - kctl->id.index; in snd_ctl_get_ioffidx()
197 return array_index_nospec(ioff, kctl->count); in snd_ctl_get_ioffidx()
202 if (id->numid) { in snd_ctl_get_ioff()
213 *dst_id = src_kctl->id; in snd_ctl_build_ioff()
214 dst_id->index += offset; in snd_ctl_build_ioff()
215 dst_id->numid += offset; in snd_ctl_build_ioff()
230 * virtual master control
234 int _snd_ctl_add_follower(struct snd_kcontrol *master,
241 * snd_ctl_add_follower - Add a virtual follower control
242 * @master: vmaster element
245 * Add a virtual follower control to the given master element created via
255 * master can only attenuate the volume without gain
260 snd_ctl_add_follower(struct snd_kcontrol *master, struct snd_kcontrol *follower) in snd_ctl_add_follower() argument
262 return _snd_ctl_add_follower(master, follower, 0); in snd_ctl_add_follower()
265 int snd_ctl_add_followers(struct snd_card *card, struct snd_kcontrol *master,
269 * snd_ctl_add_follower_uncached - Add a virtual follower control
270 * @master: vmaster element
273 * Add a virtual follower control to the given master.
276 * at each time queried from the master.
280 * this function should be used to keep the value always up-to-date.
285 snd_ctl_add_follower_uncached(struct snd_kcontrol *master, in snd_ctl_add_follower_uncached() argument
288 return _snd_ctl_add_follower(master, follower, SND_CTL_FOLLOWER_NEED_UPDATE); in snd_ctl_add_follower_uncached()
305 #define SND_CTL_LAYER_MODULE_LED "snd-ctl-led"
314 * Helper functions for jack-detection controls