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,
166 unsigned int ioff = id->numid - kctl->id.numid; in snd_ctl_get_ioffnum()
167 return array_index_nospec(ioff, kctl->count); in snd_ctl_get_ioffnum()
172 unsigned int ioff = id->index - kctl->id.index; in snd_ctl_get_ioffidx()
173 return array_index_nospec(ioff, kctl->count); in snd_ctl_get_ioffidx()
178 if (id->numid) { in snd_ctl_get_ioff()
189 *dst_id = src_kctl->id; in snd_ctl_build_ioff()
190 dst_id->index += offset; in snd_ctl_build_ioff()
191 dst_id->numid += offset; in snd_ctl_build_ioff()
206 * virtual master control
210 int _snd_ctl_add_follower(struct snd_kcontrol *master,
217 * snd_ctl_add_follower - Add a virtual follower control
218 * @master: vmaster element
221 * Add a virtual follower control to the given master element created via
231 * master can only attenuate the volume without gain
236 snd_ctl_add_follower(struct snd_kcontrol *master, struct snd_kcontrol *follower) in snd_ctl_add_follower() argument
238 return _snd_ctl_add_follower(master, follower, 0); in snd_ctl_add_follower()
242 * snd_ctl_add_follower_uncached - Add a virtual follower control
243 * @master: vmaster element
246 * Add a virtual follower control to the given master.
249 * at each time queried from the master.
253 * this function should be used to keep the value always up-to-date.
258 snd_ctl_add_follower_uncached(struct snd_kcontrol *master, in snd_ctl_add_follower_uncached() argument
261 return _snd_ctl_add_follower(master, follower, SND_CTL_FOLLOWER_NEED_UPDATE); in snd_ctl_add_follower_uncached()
278 #define SND_CTL_LAYER_MODULE_LED "snd-ctl-led"
287 * Helper functions for jack-detection controls