Home
last modified time | relevance | path

Searched refs:kctl (Results 1 – 25 of 100) sorted by relevance

1234

/linux-6.12.1/sound/core/
Dcontrol.c201 struct snd_kcontrol *kctl, unsigned int ioff) in snd_ctl_notify_one() argument
203 struct snd_ctl_elem_id id = kctl->id; in snd_ctl_notify_one()
211 lops->lnotify(card, mask, kctl, ioff); in snd_ctl_notify_one()
228 static int snd_ctl_new(struct snd_kcontrol **kctl, unsigned int count, in snd_ctl_new() argument
236 *kctl = kzalloc(struct_size(*kctl, vd, count), GFP_KERNEL); in snd_ctl_new()
237 if (!*kctl) in snd_ctl_new()
240 (*kctl)->count = count; in snd_ctl_new()
242 (*kctl)->vd[idx].access = access; in snd_ctl_new()
243 (*kctl)->vd[idx].owner = file; in snd_ctl_new()
263 struct snd_kcontrol *kctl; in snd_ctl_new1() local
[all …]
Dctljack.c65 struct snd_kcontrol *kctl; in snd_kctl_jack_new() local
67 kctl = snd_ctl_new1(&jack_detect_kctl, NULL); in snd_kctl_jack_new()
68 if (!kctl) in snd_kctl_jack_new()
71 jack_kctl_name_gen(kctl->id.name, name, sizeof(kctl->id.name)); in snd_kctl_jack_new()
72 kctl->id.index = get_available_index(card, kctl->id.name); in snd_kctl_jack_new()
73 kctl->private_value = 0; in snd_kctl_jack_new()
74 return kctl; in snd_kctl_jack_new()
78 struct snd_kcontrol *kctl, bool status) in snd_kctl_jack_report() argument
80 if (kctl->private_value == status) in snd_kctl_jack_report()
82 kctl->private_value = status; in snd_kctl_jack_report()
[all …]
Dcontrol_led.c50 struct snd_kcontrol *kctl; member
109 struct snd_kcontrol *kctl = lctl->kctl; in snd_ctl_led_get() local
114 info.id = kctl->id; in snd_ctl_led_get()
117 result = kctl->info(kctl, &info); in snd_ctl_led_get()
122 result = kctl->get(kctl, &value); in snd_ctl_led_get()
139 struct snd_kcontrol *kctl, unsigned int ioff) in snd_ctl_led_set_state() argument
156 if (lctl->kctl == kctl && lctl->index_offset == ioff) in snd_ctl_led_set_state()
160 if (!found && kctl && card) { in snd_ctl_led_set_state()
165 lctl->kctl = kctl; in snd_ctl_led_set_state()
185 static struct snd_ctl_led_ctl *snd_ctl_led_find(struct snd_kcontrol *kctl, unsigned int ioff) in snd_ctl_led_find() argument
[all …]
Djack.c19 struct snd_kcontrol *kctl; member
72 snd_ctl_remove(card, jack_kctl->kctl); in snd_jack_dev_free()
140 snd_kctl_jack_report(jack->card, jack_kctl->kctl, in snd_jack_inject_report()
175 len = scnprintf(buf, sizeof(buf), "%s: %s\t\t%s: %i\n", "Jack", jack_kctl->kctl->id.name, in sw_inject_enable_read()
234 len = scnprintf(buf, sizeof(buf), "%s\n", jack_kctl->kctl->id.name); in jack_kctl_id_read()
285 len = scnprintf(buf, sizeof(buf), "%s\n", jack_kctl->kctl->private_value ? in jack_kctl_status_read()
351 if (strstr(jack_kctl->kctl->id.name, "Phantom")) in snd_jack_debugfs_add_inject_node()
354 tname = kstrdup(jack_kctl->kctl->id.name, GFP_KERNEL); in snd_jack_debugfs_add_inject_node()
409 static void snd_jack_kctl_private_free(struct snd_kcontrol *kctl) in snd_jack_kctl_private_free() argument
413 jack_kctl = kctl->private_data; in snd_jack_kctl_private_free()
[all …]
Dvmaster.c53 struct snd_kcontrol *kctl; /* original kcontrol pointer */ member
263 srec->kctl = follower; in _snd_ctl_add_follower()
392 struct snd_kcontrol *sctl = follower->kctl; in master_free()
425 struct snd_kcontrol *kctl; in snd_ctl_make_virtual_master() local
438 kctl = snd_ctl_new1(&knew, master); in snd_ctl_make_virtual_master()
439 if (!kctl) { in snd_ctl_make_virtual_master()
444 kctl->info = master_info; in snd_ctl_make_virtual_master()
445 kctl->get = master_get; in snd_ctl_make_virtual_master()
446 kctl->put = master_put; in snd_ctl_make_virtual_master()
447 kctl->private_free = master_free; in snd_ctl_make_virtual_master()
[all …]
/linux-6.12.1/include/sound/
Dcontrol.h122 …void (*lnotify)(struct snd_card *card, unsigned int mask, struct snd_kcontrol *kctl, unsigned int …
132 void snd_ctl_notify_one(struct snd_card * card, unsigned int mask, struct snd_kcontrol * kctl, unsi…
141 void snd_ctl_rename(struct snd_card *card, struct snd_kcontrol *kctl, const char *name);
186 static inline unsigned int snd_ctl_get_ioffnum(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *i… in snd_ctl_get_ioffnum() argument
188 unsigned int ioff = id->numid - kctl->id.numid; in snd_ctl_get_ioffnum()
189 return array_index_nospec(ioff, kctl->count); in snd_ctl_get_ioffnum()
192 static inline unsigned int snd_ctl_get_ioffidx(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *i… in snd_ctl_get_ioffidx() argument
194 unsigned int ioff = id->index - kctl->id.index; in snd_ctl_get_ioffidx()
195 return array_index_nospec(ioff, kctl->count); in snd_ctl_get_ioffidx()
198 static inline unsigned int snd_ctl_get_ioff(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *id) in snd_ctl_get_ioff() argument
[all …]
/linux-6.12.1/sound/pci/hda/
Dhda_cs_dsp_ctl.c21 struct snd_kcontrol *kctl; member
39 static int hda_cs_dsp_coeff_info(struct snd_kcontrol *kctl, struct snd_ctl_elem_info *uinfo) in hda_cs_dsp_coeff_info() argument
41 struct hda_cs_dsp_coeff_ctl *ctl = (struct hda_cs_dsp_coeff_ctl *)snd_kcontrol_chip(kctl); in hda_cs_dsp_coeff_info()
50 static int hda_cs_dsp_coeff_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) in hda_cs_dsp_coeff_put() argument
52 struct hda_cs_dsp_coeff_ctl *ctl = (struct hda_cs_dsp_coeff_ctl *)snd_kcontrol_chip(kctl); in hda_cs_dsp_coeff_put()
59 static int hda_cs_dsp_coeff_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) in hda_cs_dsp_coeff_get() argument
61 struct hda_cs_dsp_coeff_ctl *ctl = (struct hda_cs_dsp_coeff_ctl *)snd_kcontrol_chip(kctl); in hda_cs_dsp_coeff_get()
91 static void hda_cs_dsp_free_kcontrol(struct snd_kcontrol *kctl) in hda_cs_dsp_free_kcontrol() argument
93 struct hda_cs_dsp_coeff_ctl *ctl = (struct hda_cs_dsp_coeff_ctl *)snd_kcontrol_chip(kctl); in hda_cs_dsp_free_kcontrol()
106 struct snd_kcontrol *kctl; in hda_cs_dsp_add_kcontrol() local
[all …]
Dhda_codec.c1706 struct snd_kcontrol *kctl) in snd_hda_ctl_add() argument
1712 if (kctl->id.subdevice & HDA_SUBDEV_AMP_FLAG) { in snd_hda_ctl_add()
1715 nid = get_amp_nid_(kctl->private_value); in snd_hda_ctl_add()
1717 if ((kctl->id.subdevice & HDA_SUBDEV_NID_FLAG) != 0 && nid == 0) in snd_hda_ctl_add()
1718 nid = kctl->id.subdevice & 0xffff; in snd_hda_ctl_add()
1719 if (kctl->id.subdevice & (HDA_SUBDEV_NID_FLAG|HDA_SUBDEV_AMP_FLAG)) in snd_hda_ctl_add()
1720 kctl->id.subdevice = 0; in snd_hda_ctl_add()
1721 err = snd_ctl_add(codec->card, kctl); in snd_hda_ctl_add()
1727 item->kctl = kctl; in snd_hda_ctl_add()
1745 int snd_hda_add_nid(struct hda_codec *codec, struct snd_kcontrol *kctl, in snd_hda_add_nid() argument
[all …]
/linux-6.12.1/sound/usb/
Dmixer.c590 struct snd_kcontrol *kctl, in snd_usb_mixer_add_list() argument
596 while (snd_ctl_find_id(mixer->chip->card, &kctl->id)) in snd_usb_mixer_add_list()
597 kctl->id.index++; in snd_usb_mixer_add_list()
598 err = snd_ctl_add(mixer->chip->card, kctl); in snd_usb_mixer_add_list()
604 list->kctl = kctl; in snd_usb_mixer_add_list()
1072 void snd_usb_mixer_elem_free(struct snd_kcontrol *kctl) in snd_usb_mixer_elem_free() argument
1074 usb_mixer_elem_info_free(kctl->private_data); in snd_usb_mixer_elem_free()
1075 kctl->private_data = NULL; in snd_usb_mixer_elem_free()
1084 struct snd_kcontrol *kctl) in volume_control_quirks() argument
1090 if (strcmp(kctl->id.name, "Effect Duration") == 0) { in volume_control_quirks()
[all …]
Dmixer_s1810c.c335 struct snd_kcontrol *kctl, u32 *state) in snd_s1810c_get_switch_state() argument
340 u32 ctl_idx = (u32) (kctl->private_value & 0xFF); in snd_s1810c_get_switch_state()
362 struct snd_kcontrol *kctl) in snd_s1810c_set_switch_state() argument
366 u32 pval = (u32) kctl->private_value; in snd_s1810c_set_switch_state()
380 snd_s1810c_switch_get(struct snd_kcontrol *kctl, in snd_s1810c_switch_get() argument
383 struct usb_mixer_elem_list *list = snd_kcontrol_chip(kctl); in snd_s1810c_switch_get()
386 u32 pval = (u32) kctl->private_value; in snd_s1810c_switch_get()
392 ret = snd_s1810c_get_switch_state(mixer, kctl, &state); in snd_s1810c_switch_get()
411 snd_s1810c_switch_set(struct snd_kcontrol *kctl, in snd_s1810c_switch_set() argument
414 struct usb_mixer_elem_list *list = snd_kcontrol_chip(kctl); in snd_s1810c_switch_set()
[all …]
Dmixer_scarlett.c232 static int scarlett_ctl_switch_info(struct snd_kcontrol *kctl, in scarlett_ctl_switch_info() argument
235 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett_ctl_switch_info()
244 static int scarlett_ctl_switch_get(struct snd_kcontrol *kctl, in scarlett_ctl_switch_get() argument
247 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett_ctl_switch_get()
262 static int scarlett_ctl_switch_put(struct snd_kcontrol *kctl, in scarlett_ctl_switch_put() argument
265 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett_ctl_switch_put()
300 static int scarlett_ctl_info(struct snd_kcontrol *kctl, in scarlett_ctl_info() argument
303 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett_ctl_info()
308 uinfo->value.integer.max = (int)kctl->private_value + in scarlett_ctl_info()
314 static int scarlett_ctl_get(struct snd_kcontrol *kctl, in scarlett_ctl_get() argument
[all …]
Dmixer_scarlett2.c3152 struct snd_kcontrol *kctl; in scarlett2_add_new_ctl() local
3170 kctl = snd_ctl_new1(ncontrol, elem); in scarlett2_add_new_ctl()
3171 if (!kctl) { in scarlett2_add_new_ctl()
3175 kctl->private_free = snd_usb_mixer_elem_free; in scarlett2_add_new_ctl()
3177 strscpy(kctl->id.name, name, sizeof(kctl->id.name)); in scarlett2_add_new_ctl()
3179 err = snd_usb_mixer_add_control(&elem->head, kctl); in scarlett2_add_new_ctl()
3184 *kctl_return = kctl; in scarlett2_add_new_ctl()
3192 struct snd_kcontrol *kctl, in scarlett2_firmware_version_ctl_get() argument
3195 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_firmware_version_ctl_get()
3204 struct snd_kcontrol *kctl, in scarlett2_firmware_version_ctl_info() argument
[all …]
Dmixer_quirks.c66 struct snd_kcontrol *kctl; in snd_create_std_mono_ctl_offset() local
88 kctl = snd_ctl_new1(snd_usb_feature_unit_ctl, cval); in snd_create_std_mono_ctl_offset()
89 if (!kctl) { in snd_create_std_mono_ctl_offset()
95 snprintf(kctl->id.name, sizeof(kctl->id.name), name); in snd_create_std_mono_ctl_offset()
96 kctl->private_free = snd_usb_mixer_elem_free; in snd_create_std_mono_ctl_offset()
100 kctl->tlv.c = tlv_callback; in snd_create_std_mono_ctl_offset()
101 kctl->vd[0].access |= in snd_create_std_mono_ctl_offset()
106 return snd_usb_mixer_add_control(&cval->head, kctl); in snd_create_std_mono_ctl_offset()
147 struct snd_kcontrol *kctl; in add_single_ctl_with_resume() local
157 kctl = snd_ctl_new1(knew, list); in add_single_ctl_with_resume()
[all …]
Dmixer.h68 struct snd_kcontrol *kctl; member
109 struct snd_kcontrol *kctl,
112 #define snd_usb_mixer_add_control(list, kctl) \ argument
113 snd_usb_mixer_add_list(list, kctl, true)
131 extern void snd_usb_mixer_elem_free(struct snd_kcontrol *kctl);
/linux-6.12.1/sound/firewire/bebob/
Dbebob_maudio.c355 static int special_clk_ctl_info(struct snd_kcontrol *kctl, in special_clk_ctl_info() argument
367 static int special_clk_ctl_get(struct snd_kcontrol *kctl, in special_clk_ctl_get() argument
370 struct snd_bebob *bebob = snd_kcontrol_chip(kctl); in special_clk_ctl_get()
375 static int special_clk_ctl_put(struct snd_kcontrol *kctl, in special_clk_ctl_put() argument
378 struct snd_bebob *bebob = snd_kcontrol_chip(kctl); in special_clk_ctl_put()
409 static int special_sync_ctl_info(struct snd_kcontrol *kctl, in special_sync_ctl_info() argument
419 static int special_sync_ctl_get(struct snd_kcontrol *kctl, in special_sync_ctl_get() argument
422 struct snd_bebob *bebob = snd_kcontrol_chip(kctl); in special_sync_ctl_get()
444 static int special_dig_in_iface_ctl_info(struct snd_kcontrol *kctl, in special_dig_in_iface_ctl_info() argument
451 static int special_dig_in_iface_ctl_get(struct snd_kcontrol *kctl, in special_dig_in_iface_ctl_get() argument
[all …]
/linux-6.12.1/sound/core/oss/
Dmixer_oss.c522 struct snd_kcontrol *kctl; in snd_mixer_oss_get_volume1_vol() local
528 kctl = snd_ctl_find_numid(card, numid); in snd_mixer_oss_get_volume1_vol()
529 if (!kctl) in snd_mixer_oss_get_volume1_vol()
535 if (kctl->info(kctl, uinfo)) in snd_mixer_oss_get_volume1_vol()
537 if (kctl->get(kctl, uctl)) in snd_mixer_oss_get_volume1_vol()
555 struct snd_kcontrol *kctl; in snd_mixer_oss_get_volume1_sw() local
561 kctl = snd_ctl_find_numid(card, numid); in snd_mixer_oss_get_volume1_sw()
562 if (!kctl) in snd_mixer_oss_get_volume1_sw()
568 if (kctl->info(kctl, uinfo)) in snd_mixer_oss_get_volume1_sw()
570 if (kctl->get(kctl, uctl)) in snd_mixer_oss_get_volume1_sw()
[all …]
/linux-6.12.1/sound/pci/cs5535audio/
Dcs5535audio_olpc.c61 static int olpc_dc_info(struct snd_kcontrol *kctl, in olpc_dc_info() argument
71 static int olpc_dc_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *v) in olpc_dc_get() argument
77 static int olpc_dc_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *v) in olpc_dc_put() argument
79 struct cs5535audio *cs5535au = snd_kcontrol_chip(kctl); in olpc_dc_put()
85 static int olpc_mic_info(struct snd_kcontrol *kctl, in olpc_mic_info() argument
95 static int olpc_mic_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *v) in olpc_mic_get() argument
97 struct cs5535audio *cs5535au = snd_kcontrol_chip(kctl); in olpc_mic_get()
106 static int olpc_mic_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *v) in olpc_mic_put() argument
108 struct cs5535audio *cs5535au = snd_kcontrol_chip(kctl); in olpc_mic_put()
/linux-6.12.1/sound/virtio/
Dvirtio_kctl.c51 struct virtio_kctl *kctl = &snd->kctls[kcontrol->private_value]; in virtsnd_kctl_info() local
85 strscpy(uinfo->value.enumerated.name, kctl->items[i].item, in virtsnd_kctl_info()
322 struct virtio_kctl *kctl = &snd->kctls[cid]; in virtsnd_kctl_get_enum_items() local
333 kctl->items = devm_kcalloc(&vdev->dev, n, sizeof(*kctl->items), in virtsnd_kctl_get_enum_items()
335 if (!kctl->items) { in virtsnd_kctl_get_enum_items()
340 sg_init_one(&sg, kctl->items, n * sizeof(*kctl->items)); in virtsnd_kctl_get_enum_items()
411 struct virtio_kctl *kctl = &snd->kctls[cid]; in virtsnd_kctl_build_devs() local
438 kctl->kctl = snd_ctl_new1(&kctl_new, snd); in virtsnd_kctl_build_devs()
439 if (!kctl->kctl) in virtsnd_kctl_build_devs()
442 rc = snd_ctl_add(snd->card, kctl->kctl); in virtsnd_kctl_build_devs()
[all …]
/linux-6.12.1/sound/pci/au88x0/
Dau88x0_pcm.c115 struct snd_kcontrol *kctl, int activate) in vortex_notify_pcm_vol_change() argument
118 kctl->vd[0].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE; in vortex_notify_pcm_vol_change()
120 kctl->vd[0].access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE; in vortex_notify_pcm_vol_change()
122 SNDRV_CTL_EVENT_MASK_INFO, &(kctl->id)); in vortex_notify_pcm_vol_change()
246 chip->pcm_vol[substream->number].kctl, 1); in snd_vortex_pcm_hw_params()
281 chip->pcm_vol[substream->number].kctl, in snd_vortex_pcm_hw_free()
598 struct snd_kcontrol *kctl; in snd_vortex_new_pcm() local
658 kctl = snd_ctl_new1(&snd_vortex_mixer_spdif[i], chip); in snd_vortex_new_pcm()
659 if (!kctl) in snd_vortex_new_pcm()
661 err = snd_ctl_add(chip->card, kctl); in snd_vortex_new_pcm()
[all …]
/linux-6.12.1/sound/pci/emu10k1/
Demumixer.c30 struct snd_kcontrol_new kctl = *tpl; in add_ctls() local
34 kctl.name = ctls[i]; in add_ctls()
35 kctl.private_value = i; in add_ctls()
36 err = snd_ctl_add(emu->card, snd_ctl_new1(&kctl, emu)); in add_ctls()
1993 struct snd_kcontrol *kctl = snd_ctl_find_id_mixer(card, src); in rename_ctl() local
1994 if (kctl) { in rename_ctl()
1995 snd_ctl_rename(card, kctl, dst); in rename_ctl()
2005 struct snd_kcontrol *kctl; in snd_emu10k1_mixer() local
2222 kctl = emu->ctl_send_routing = snd_ctl_new1(&snd_emu10k1_send_routing_control, emu); in snd_emu10k1_mixer()
2223 if (!kctl) in snd_emu10k1_mixer()
[all …]
/linux-6.12.1/sound/pci/ac97/
Dac97_codec.c679 static void set_inv_eapd(struct snd_ac97 *ac97, struct snd_kcontrol *kctl) in set_inv_eapd() argument
681 kctl->private_value = AC97_SINGLE_VALUE(AC97_POWERDOWN, 15, 1, 0); in set_inv_eapd()
1170 struct snd_kcontrol *kctl; in snd_ac97_cmute_new_stereo() local
1191 kctl = snd_ctl_new1(&tmp, ac97); in snd_ac97_cmute_new_stereo()
1197 kctl = snd_ctl_new1(&tmp, ac97); in snd_ac97_cmute_new_stereo()
1199 err = snd_ctl_add(card, kctl); in snd_ac97_cmute_new_stereo()
1226 static void set_tlv_db_scale(struct snd_kcontrol *kctl, const unsigned int *tlv) in set_tlv_db_scale() argument
1228 kctl->tlv.p = tlv; in set_tlv_db_scale()
1230 kctl->vd[0].access |= SNDRV_CTL_ELEM_ACCESS_TLV_READ; in set_tlv_db_scale()
1240 struct snd_kcontrol *kctl; in snd_ac97_cvol_new() local
[all …]
/linux-6.12.1/drivers/usb/gadget/function/
Du_audio.c1186 struct snd_kcontrol *kctl; in g_audio_setup() local
1288 kctl = snd_ctl_new1(&u_audio_controls[UAC_FBACK_CTRL], in g_audio_setup()
1290 if (!kctl) { in g_audio_setup()
1295 kctl->id.device = pcm->device; in g_audio_setup()
1296 kctl->id.subdevice = 0; in g_audio_setup()
1298 err = snd_ctl_add(card, kctl); in g_audio_setup()
1304 kctl = snd_ctl_new1(&u_audio_controls[UAC_P_PITCH_CTRL], in g_audio_setup()
1306 if (!kctl) { in g_audio_setup()
1311 kctl->id.device = pcm->device; in g_audio_setup()
1312 kctl->id.subdevice = 0; in g_audio_setup()
[all …]
/linux-6.12.1/sound/drivers/
Dmts64.c429 static int snd_mts64_ctl_smpte_switch_get(struct snd_kcontrol* kctl, in snd_mts64_ctl_smpte_switch_get() argument
432 struct mts64 *mts = snd_kcontrol_chip(kctl); in snd_mts64_ctl_smpte_switch_get()
443 static int snd_mts64_ctl_smpte_switch_put(struct snd_kcontrol* kctl, in snd_mts64_ctl_smpte_switch_put() argument
446 struct mts64 *mts = snd_kcontrol_chip(kctl); in snd_mts64_ctl_smpte_switch_put()
481 static int snd_mts64_ctl_smpte_time_h_info(struct snd_kcontrol *kctl, in snd_mts64_ctl_smpte_time_h_info() argument
491 static int snd_mts64_ctl_smpte_time_f_info(struct snd_kcontrol *kctl, in snd_mts64_ctl_smpte_time_f_info() argument
501 static int snd_mts64_ctl_smpte_time_info(struct snd_kcontrol *kctl, in snd_mts64_ctl_smpte_time_info() argument
511 static int snd_mts64_ctl_smpte_time_get(struct snd_kcontrol *kctl, in snd_mts64_ctl_smpte_time_get() argument
514 struct mts64 *mts = snd_kcontrol_chip(kctl); in snd_mts64_ctl_smpte_time_get()
515 int idx = kctl->private_value; in snd_mts64_ctl_smpte_time_get()
[all …]
/linux-6.12.1/sound/soc/intel/atom/
Dsst-atom-controls.c307 bc = (void *)algo->kctl->private_value; in sst_find_and_send_pipe_algo()
310 algo->kctl->id.name, pipe); in sst_find_and_send_pipe_algo()
608 struct snd_kcontrol *kctl = gain->kctl; in sst_set_pipe_gain() local
610 dev_dbg(&drv->pdev->dev, "control name=%s\n", kctl->id.name); in sst_set_pipe_gain()
611 mc = (void *)kctl->private_value; in sst_set_pipe_gain()
1387 static int sst_fill_module_list(struct snd_kcontrol *kctl, in sst_fill_module_list() argument
1400 struct sst_gain_mixer_control *mc = (void *)kctl->private_value; in sst_fill_module_list()
1403 module->kctl = kctl; in sst_fill_module_list()
1406 struct sst_algo_control *bc = (void *)kctl->private_value; in sst_fill_module_list()
1409 module->kctl = kctl; in sst_fill_module_list()
[all …]
/linux-6.12.1/sound/i2c/other/
Dak4114.c451 struct snd_kcontrol *kctl; in snd_ak4114_build() local
460 kctl = snd_ctl_new1(&snd_ak4114_iec958_controls[idx], ak4114); in snd_ak4114_build()
461 if (kctl == NULL) in snd_ak4114_build()
463 if (strstr(kctl->id.name, "Playback")) { in snd_ak4114_build()
465 snd_ctl_free_one(kctl); in snd_ak4114_build()
469 kctl->id.device = ply_substream->pcm->device; in snd_ak4114_build()
470 kctl->id.subdevice = ply_substream->number; in snd_ak4114_build()
472 kctl->id.device = cap_substream->pcm->device; in snd_ak4114_build()
473 kctl->id.subdevice = cap_substream->number; in snd_ak4114_build()
475 err = snd_ctl_add(ak4114->card, kctl); in snd_ak4114_build()
[all …]

1234