/linux-6.3-rc2/sound/core/ |
A D | control.c | 377 kctl->id.index + kctl->count > id->index; in elem_id_matches() 786 if (kctl->id.numid <= numid && kctl->id.numid + kctl->count > numid) in snd_ctl_find_numid_slow() 842 if (kctl && elem_id_matches(kctl, id)) in snd_ctl_find_id() 1137 result = kctl->info(kctl, info); in __snd_ctl_elem_info() 1235 ret = kctl->get(kctl, control); in snd_ctl_elem_read() 1312 result = kctl->put(kctl, control); in snd_ctl_elem_write() 1369 vd = &kctl->vd[snd_ctl_get_ioff(kctl, &id)]; in snd_ctl_elem_lock() 1397 vd = &kctl->vd[snd_ctl_get_ioff(kctl, &id)]; in snd_ctl_elem_unlock() 1701 memcpy(&kctl->id, &info->id, sizeof(kctl->id)); in snd_ctl_elem_add() 1844 ret = kctl->tlv.c(kctl, op_flag, size, buf); in call_tlv_handler() [all …]
|
A D | ctljack.c | 65 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 …]
|
A D | control_led.c | 50 struct snd_kcontrol *kctl; member 108 struct snd_kcontrol *kctl = lctl->kctl; in snd_ctl_led_get() local 113 info.id = kctl->id; in snd_ctl_led_get() 116 result = kctl->info(kctl, &info); in snd_ctl_led_get() 121 result = kctl->get(kctl, &value); in snd_ctl_led_get() 157 if (lctl->kctl == kctl && lctl->index_offset == ioff) in snd_ctl_led_set_state() 166 lctl->kctl = kctl; in snd_ctl_led_set_state() 192 if (lctl->kctl == kctl && lctl->index_offset == ioff) in snd_ctl_led_find() 226 vd = &kctl->vd[ioff]; in snd_ctl_led_notify() 235 vd = &kctl->vd[ioff]; in snd_ctl_led_notify() [all …]
|
A D | jack.c | 19 struct snd_kcontrol *kctl; member 72 snd_ctl_remove(card, jack_kctl->kctl); in snd_jack_dev_free() 355 if (strstr(jack_kctl->kctl->id.name, "Phantom")) in snd_jack_debugfs_add_inject_node() 413 jack_kctl = kctl->private_data; in snd_jack_kctl_private_free() 430 struct snd_kcontrol *kctl; in snd_jack_kctl_new() local 434 kctl = snd_kctl_jack_new(name, card); in snd_jack_kctl_new() 435 if (!kctl) in snd_jack_kctl_new() 438 err = snd_ctl_add(card, kctl); in snd_jack_kctl_new() 447 jack_kctl->kctl = kctl; in snd_jack_kctl_new() 450 kctl->private_data = jack_kctl; in snd_jack_kctl_new() [all …]
|
A D | vmaster.c | 263 srec->kctl = follower; in _snd_ctl_add_follower() 396 struct snd_kcontrol *kctl; in snd_ctl_make_virtual_master() local 409 kctl = snd_ctl_new1(&knew, master); in snd_ctl_make_virtual_master() 410 if (!kctl) { in snd_ctl_make_virtual_master() 415 kctl->info = master_info; in snd_ctl_make_virtual_master() 416 kctl->get = master_get; in snd_ctl_make_virtual_master() 417 kctl->put = master_put; in snd_ctl_make_virtual_master() 418 kctl->private_free = master_free; in snd_ctl_make_virtual_master() 428 kctl->tlv.p = master->tlv; in snd_ctl_make_virtual_master() 432 return kctl; in snd_ctl_make_virtual_master() [all …]
|
/linux-6.3-rc2/include/sound/ |
A D | control.h | 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() 179 return snd_ctl_get_ioffnum(kctl, id); in snd_ctl_get_ioff() 181 return snd_ctl_get_ioffidx(kctl, id); in snd_ctl_get_ioff() 264 int snd_ctl_add_vmaster_hook(struct snd_kcontrol *kctl, 267 void snd_ctl_sync_vmaster(struct snd_kcontrol *kctl, bool hook_only); 268 #define snd_ctl_sync_vmaster_hook(kctl) snd_ctl_sync_vmaster(kctl, true) argument 269 int snd_ctl_apply_vmaster_followers(struct snd_kcontrol *kctl, [all …]
|
/linux-6.3-rc2/sound/usb/ |
A D | mixer.c | 604 list->kctl = kctl; in snd_usb_mixer_add_list() 1317 if (kctl) in get_min_max_with_quirks() 1712 if (!kctl) { in __build_feature_ctl() 1723 kctl->id.name, sizeof(kctl->id.name)); in __build_feature_ctl() 1746 snprintf(kctl->id.name, sizeof(kctl->id.name), in __build_feature_ctl() 1911 if (!kctl) { in build_connector_control() 1962 if (!kctl) { in parse_clock_source_unit() 1971 snprintf(kctl->id.name, sizeof(kctl->id.name), in parse_clock_source_unit() 1974 snprintf(kctl->id.name, sizeof(kctl->id.name), in parse_clock_source_unit() 2181 if (!kctl) { in build_mixer_unit_ctl() [all …]
|
A D | mixer_s1810c.c | 335 struct snd_kcontrol *kctl, u32 *state) in snd_s1810c_get_switch_state() argument 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 386 u32 pval = (u32) kctl->private_value; in snd_s1810c_switch_get() 417 u32 pval = (u32) kctl->private_value; in snd_s1810c_switch_set() 440 kctl->private_value &= ~(0x1 << 16); in snd_s1810c_switch_set() 453 struct snd_kcontrol *kctl; in snd_s1810c_switch_init() local 465 kctl = snd_ctl_new1(new_kctl, elem); in snd_s1810c_switch_init() 466 if (!kctl) { in snd_s1810c_switch_init() [all …]
|
A D | mixer_scarlett.c | 235 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett_ctl_switch_info() 247 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett_ctl_switch_get() 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 333 static int scarlett_ctl_put(struct snd_kcontrol *kctl, in scarlett_ctl_put() argument 545 struct snd_kcontrol *kctl; in add_new_ctl() local 565 kctl = snd_ctl_new1(ncontrol, elem); in add_new_ctl() 566 if (!kctl) { in add_new_ctl() 570 kctl->private_free = snd_usb_mixer_elem_free; in add_new_ctl() 572 strscpy(kctl->id.name, name, sizeof(kctl->id.name)); in add_new_ctl() [all …]
|
A D | mixer_quirks.c | 65 struct snd_kcontrol *kctl; in snd_create_std_mono_ctl_offset() local 88 if (!kctl) { in snd_create_std_mono_ctl_offset() 94 snprintf(kctl->id.name, sizeof(kctl->id.name), name); in snd_create_std_mono_ctl_offset() 99 kctl->tlv.c = tlv_callback; in snd_create_std_mono_ctl_offset() 100 kctl->vd[0].access |= in snd_create_std_mono_ctl_offset() 146 struct snd_kcontrol *kctl; in add_single_ctl_with_resume() local 157 if (!kctl) { in add_single_ctl_with_resume() 692 kctl->private_value = err; in snd_mbox1_clk_switch_get() 2076 if (!kctl) { in realtek_add_jack() 2081 strscpy(kctl->id.name, name, sizeof(kctl->id.name)); in realtek_add_jack() [all …]
|
A D | mixer_scarlett_gen2.c | 1731 struct snd_kcontrol *kctl; in scarlett2_add_new_ctl() local 1749 kctl = snd_ctl_new1(ncontrol, elem); in scarlett2_add_new_ctl() 1750 if (!kctl) { in scarlett2_add_new_ctl() 1754 kctl->private_free = snd_usb_mixer_elem_free; in scarlett2_add_new_ctl() 1756 strscpy(kctl->id.name, name, sizeof(kctl->id.name)); in scarlett2_add_new_ctl() 1758 err = snd_usb_mixer_add_control(&elem->head, kctl); in scarlett2_add_new_ctl() 1763 *kctl_return = kctl; in scarlett2_add_new_ctl() 1793 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_sync_ctl_get() 1870 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_volume_ctl_info() 1883 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_master_volume_ctl_get() [all …]
|
A D | mixer.h | 68 struct snd_kcontrol *kctl; member 108 struct snd_kcontrol *kctl, 111 #define snd_usb_mixer_add_control(list, kctl) \ argument 112 snd_usb_mixer_add_list(list, kctl, true) 130 extern void snd_usb_mixer_elem_free(struct snd_kcontrol *kctl);
|
/linux-6.3-rc2/sound/pci/hda/ |
A D | hda_cs_dsp_ctl.c | 20 struct snd_kcontrol *kctl; member 38 static int hda_cs_dsp_coeff_info(struct snd_kcontrol *kctl, struct snd_ctl_elem_info *uinfo) in hda_cs_dsp_coeff_info() argument 40 struct hda_cs_dsp_coeff_ctl *ctl = (struct hda_cs_dsp_coeff_ctl *)snd_kcontrol_chip(kctl); in hda_cs_dsp_coeff_info() 51 struct hda_cs_dsp_coeff_ctl *ctl = (struct hda_cs_dsp_coeff_ctl *)snd_kcontrol_chip(kctl); in hda_cs_dsp_coeff_put() 65 struct hda_cs_dsp_coeff_ctl *ctl = (struct hda_cs_dsp_coeff_ctl *)snd_kcontrol_chip(kctl); in hda_cs_dsp_coeff_get() 104 struct snd_kcontrol *kctl; in hda_cs_dsp_add_kcontrol() local 122 kctl = snd_ctl_new1(&kcontrol, (void *)ctl); in hda_cs_dsp_add_kcontrol() 123 if (!kctl) in hda_cs_dsp_add_kcontrol() 126 ret = snd_ctl_add(ctl->card, kctl); in hda_cs_dsp_add_kcontrol() 133 ctl->kctl = kctl; in hda_cs_dsp_add_kcontrol() [all …]
|
A D | hda_codec.c | 1725 item->kctl = kctl; in snd_hda_ctl_add() 1752 item->kctl = kctl; in snd_hda_add_nid() 1758 kctl->id.name, kctl->id.index, index); in snd_hda_add_nid() 1907 kctl->put(kctl, ucontrol); in put_kctl_with_value() 1932 kctl->id.name, kctl->id.index); in init_follower_0dB() 2015 if (!kctl) in __snd_hda_add_vmaster() 2462 if (!kctl) in snd_hda_create_dig_out_ctls() 2481 if (!kctl) in snd_hda_create_dig_out_ctls() 2606 if (!kctl) in snd_hda_create_spdif_share_sw() 2707 if (!kctl) in snd_hda_create_spdif_in_ctls() [all …]
|
/linux-6.3-rc2/sound/firewire/bebob/ |
A D | bebob_maudio.c | 370 struct snd_bebob *bebob = snd_kcontrol_chip(kctl); in special_clk_ctl_get() 378 struct snd_bebob *bebob = snd_kcontrol_chip(kctl); in special_clk_ctl_put() 422 struct snd_bebob *bebob = snd_kcontrol_chip(kctl); in special_sync_ctl_get() 591 struct snd_kcontrol *kctl; in add_special_controls() local 595 kctl = snd_ctl_new1(&special_clk_ctl, bebob); in add_special_controls() 596 err = snd_ctl_add(bebob->card, kctl); in add_special_controls() 600 kctl = snd_ctl_new1(&special_sync_ctl, bebob); in add_special_controls() 601 err = snd_ctl_add(bebob->card, kctl); in add_special_controls() 604 params->ctl_id_sync = &kctl->id; in add_special_controls() 607 err = snd_ctl_add(bebob->card, kctl); in add_special_controls() [all …]
|
/linux-6.3-rc2/sound/pci/cs5535audio/ |
A D | cs5535audio_olpc.c | 61 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.3-rc2/sound/core/oss/ |
A D | mixer_oss.c | 552 if (kctl->info(kctl, uinfo)) in snd_mixer_oss_get_volume1_vol() 554 if (kctl->get(kctl, uctl)) in snd_mixer_oss_get_volume1_vol() 591 if (kctl->info(kctl, uinfo)) in snd_mixer_oss_get_volume1_sw() 593 if (kctl->get(kctl, uctl)) in snd_mixer_oss_get_volume1_sw() 657 if (kctl->info(kctl, uinfo)) in snd_mixer_oss_put_volume1_vol() 665 res = kctl->put(kctl, uctl); in snd_mixer_oss_put_volume1_vol() 700 if (kctl->info(kctl, uinfo)) in snd_mixer_oss_put_volume1_sw() 712 res = kctl->put(kctl, uctl); in snd_mixer_oss_put_volume1_sw() 841 err = kctl->info(kctl, uinfo); in snd_mixer_oss_get_recsrc2() 844 err = kctl->get(kctl, uctl); in snd_mixer_oss_get_recsrc2() [all …]
|
/linux-6.3-rc2/sound/pci/au88x0/ |
A D | au88x0_pcm.c | 115 struct snd_kcontrol *kctl, int activate) in vortex_notify_pcm_vol_change() argument 122 SNDRV_CTL_EVENT_MASK_INFO, &(kctl->id)); in vortex_notify_pcm_vol_change() 281 chip->pcm_vol[substream->number].kctl, in snd_vortex_pcm_hw_free() 598 struct snd_kcontrol *kctl; in snd_vortex_new_pcm() local 659 if (!kctl) in snd_vortex_new_pcm() 661 err = snd_ctl_add(chip->card, kctl); in snd_vortex_new_pcm() 671 if (!kctl) in snd_vortex_new_pcm() 673 chip->pcm_vol[i].kctl = kctl; in snd_vortex_new_pcm() 674 kctl->id.device = 0; in snd_vortex_new_pcm() 675 kctl->id.subdevice = i; in snd_vortex_new_pcm() [all …]
|
/linux-6.3-rc2/drivers/usb/gadget/function/ |
A D | u_audio.c | 504 &kctl->id); in set_active() 1265 if (!kctl) { in g_audio_setup() 1271 kctl->id.subdevice = 0; in g_audio_setup() 1281 if (!kctl) { in g_audio_setup() 1287 kctl->id.subdevice = 0; in g_audio_setup() 1323 if (!kctl) { in g_audio_setup() 1329 kctl->id.subdevice = 0; in g_audio_setup() 1346 if (!kctl) { in g_audio_setup() 1352 kctl->id.subdevice = 0; in g_audio_setup() 1375 if (!kctl) { in g_audio_setup() [all …]
|
/linux-6.3-rc2/sound/pci/emu10k1/ |
A D | emumixer.c | 1769 if (kctl) { in rename_ctl() 1998 if (!kctl) in snd_emu10k1_mixer() 2005 if (!kctl) in snd_emu10k1_mixer() 2012 if (!kctl) in snd_emu10k1_mixer() 2020 if (!kctl) in snd_emu10k1_mixer() 2028 if (!kctl) in snd_emu10k1_mixer() 2036 if (!kctl) in snd_emu10k1_mixer() 2088 if (!kctl) in snd_emu10k1_mixer() 2096 if (!kctl) in snd_emu10k1_mixer() 2109 if (!kctl) in snd_emu10k1_mixer() [all …]
|
/linux-6.3-rc2/sound/pci/ac97/ |
A D | ac97_codec.c | 1170 struct snd_kcontrol *kctl; in snd_ac97_cmute_new_stereo() local 1199 err = snd_ctl_add(card, kctl); in snd_ac97_cmute_new_stereo() 1228 kctl->tlv.p = tlv; in set_tlv_db_scale() 1240 struct snd_kcontrol *kctl; in snd_ac97_cvol_new() local 1255 if (!kctl) in snd_ac97_cvol_new() 1314 struct snd_kcontrol *kctl; in snd_ac97_mixer_build() local 1696 if (! kctl) in snd_ac97_mixer_build() 1699 set_inv_eapd(ac97, kctl); in snd_ac97_mixer_build() 2698 if (kctl) { in snd_ac97_rename_ctl() 2831 if (! kctl) in tune_inv_eapd() [all …]
|
/linux-6.3-rc2/sound/drivers/ |
A D | mts64.c | 432 struct mts64 *mts = snd_kcontrol_chip(kctl); in snd_mts64_ctl_smpte_switch_get() 446 struct mts64 *mts = snd_kcontrol_chip(kctl); in snd_mts64_ctl_smpte_switch_put() 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() 527 struct mts64 *mts = snd_kcontrol_chip(kctl); in snd_mts64_ctl_smpte_time_put() 528 int idx = kctl->private_value; in snd_mts64_ctl_smpte_time_put() 597 static int snd_mts64_ctl_smpte_fps_get(struct snd_kcontrol *kctl, in snd_mts64_ctl_smpte_fps_get() argument 600 struct mts64 *mts = snd_kcontrol_chip(kctl); in snd_mts64_ctl_smpte_fps_get() 609 static int snd_mts64_ctl_smpte_fps_put(struct snd_kcontrol *kctl, in snd_mts64_ctl_smpte_fps_put() argument [all …]
|
/linux-6.3-rc2/sound/soc/intel/atom/ |
A D | sst-atom-controls.c | 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 611 mc = (void *)kctl->private_value; in sst_set_pipe_gain() 1403 module->kctl = kctl; in sst_fill_module_list() 1409 module->kctl = kctl; in sst_fill_module_list() 1413 type, kctl->id.name); in sst_fill_module_list() 1432 struct snd_kcontrol *kctl; in sst_fill_widget_module_info() local 1440 idx = strchr(kctl->id.name, ' '); in sst_fill_widget_module_info() 1443 index = idx - (char*)kctl->id.name; in sst_fill_widget_module_info() 1454 strstr(kctl->id.name, "Gain")) { in sst_fill_widget_module_info() [all …]
|
/linux-6.3-rc2/sound/soc/ |
A D | soc-card.c | 33 struct snd_kcontrol *kctl; in snd_soc_card_get_kcontrol() local 38 list_for_each_entry(kctl, &card->controls, list) in snd_soc_card_get_kcontrol() 39 if (!strncmp(kctl->id.name, name, sizeof(kctl->id.name))) in snd_soc_card_get_kcontrol() 40 return kctl; in snd_soc_card_get_kcontrol()
|
/linux-6.3-rc2/drivers/staging/greybus/ |
A D | audio_helper.c | 152 struct snd_kcontrol *kctl; in gbaudio_remove_controls() local 164 kctl = snd_ctl_find_id(card, &id); in gbaudio_remove_controls() 165 if (!kctl) { in gbaudio_remove_controls() 169 err = snd_ctl_remove(card, kctl); in gbaudio_remove_controls()
|