| /linux/sound/core/ |
| A D | control.c | 375 kctl->id.index + kctl->count > id->index; in elem_id_matches() 797 if (kctl->id.numid <= numid && kctl->id.numid + kctl->count > numid) in snd_ctl_find_numid_slow() 852 if (kctl && elem_id_matches(kctl, id)) in snd_ctl_find_id() 1137 result = kctl->info(kctl, info); in __snd_ctl_elem_info() 1229 ret = kctl->get(kctl, control); in snd_ctl_elem_read() 1303 result = kctl->put(kctl, control); in snd_ctl_elem_write() 1359 vd = &kctl->vd[snd_ctl_get_ioff(kctl, &id)]; in snd_ctl_elem_lock() 1380 vd = &kctl->vd[snd_ctl_get_ioff(kctl, &id)]; in snd_ctl_elem_unlock() 1687 memcpy(&kctl->id, &info->id, sizeof(kctl->id)); in snd_ctl_elem_add() 1825 return 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 | 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() 156 if (lctl->kctl == kctl && lctl->index_offset == ioff) in snd_ctl_led_set_state() 165 lctl->kctl = kctl; in snd_ctl_led_set_state() 194 if (lctl->kctl == kctl && lctl->index_offset == ioff) in snd_ctl_led_find() 227 vd = &kctl->vd[ioff]; in snd_ctl_led_notify() 236 vd = &kctl->vd[ioff]; in snd_ctl_led_notify() 258 if (!kctl) in DEFINE_FREE() [all …]
|
| A D | jack.c | 19 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() 413 jack_kctl = kctl->private_data; in snd_jack_kctl_private_free() 429 struct snd_kcontrol *kctl; in snd_jack_kctl_new() local 433 kctl = snd_kctl_jack_new(name, card); in snd_jack_kctl_new() 434 if (!kctl) in snd_jack_kctl_new() 437 err = snd_ctl_add(card, kctl); in snd_jack_kctl_new() 446 jack_kctl->kctl = kctl; in snd_jack_kctl_new() 449 kctl->private_data = jack_kctl; in snd_jack_kctl_new() [all …]
|
| A D | vmaster.c | 263 srec->kctl = follower; in _snd_ctl_add_follower() 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() 457 kctl->tlv.p = master->tlv; in snd_ctl_make_virtual_master() 461 return kctl; in snd_ctl_make_virtual_master() [all …]
|
| /linux/include/sound/ |
| A D | control.h | 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() 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() 201 return snd_ctl_get_ioffnum(kctl, id); in snd_ctl_get_ioff() 203 return snd_ctl_get_ioffidx(kctl, id); in snd_ctl_get_ioff() 289 int snd_ctl_add_vmaster_hook(struct snd_kcontrol *kctl, 292 void snd_ctl_sync_vmaster(struct snd_kcontrol *kctl, bool hook_only); 293 #define snd_ctl_sync_vmaster_hook(kctl) snd_ctl_sync_vmaster(kctl, true) argument 294 int snd_ctl_apply_vmaster_followers(struct snd_kcontrol *kctl, [all …]
|
| /linux/sound/pci/hda/ |
| A D | hda_cs_dsp_ctl.c | 21 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() 91 static void hda_cs_dsp_free_kcontrol(struct snd_kcontrol *kctl) in hda_cs_dsp_free_kcontrol() argument 106 struct snd_kcontrol *kctl; in hda_cs_dsp_add_kcontrol() local 130 kctl = snd_ctl_new1(&kcontrol, (void *)ctl); in hda_cs_dsp_add_kcontrol() 131 if (!kctl) in hda_cs_dsp_add_kcontrol() 134 kctl->private_free = hda_cs_dsp_free_kcontrol; in hda_cs_dsp_add_kcontrol() 135 ctl->kctl = kctl; in hda_cs_dsp_add_kcontrol() 139 ret = snd_ctl_add(info->card, kctl); in hda_cs_dsp_add_kcontrol() [all …]
|
| A D | hda_codec.c | 1727 item->kctl = kctl; in snd_hda_ctl_add() 1754 item->kctl = kctl; in snd_hda_add_nid() 1760 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() 2469 if (!kctl) in snd_hda_create_dig_out_ctls() 2490 if (!kctl) in snd_hda_create_dig_out_ctls() 2615 if (!kctl) in snd_hda_create_spdif_share_sw() 2716 if (!kctl) in snd_hda_create_spdif_in_ctls() [all …]
|
| /linux/sound/usb/ |
| A D | mixer.c | 604 list->kctl = kctl; in snd_usb_mixer_add_list() 1332 if (kctl) in get_min_max_with_quirks() 1742 if (!kctl) { in __build_feature_ctl() 1753 kctl->id.name, sizeof(kctl->id.name)); in __build_feature_ctl() 1776 snprintf(kctl->id.name, sizeof(kctl->id.name), in __build_feature_ctl() 1941 if (!kctl) { in build_connector_control() 1991 if (!kctl) { in parse_clock_source_unit() 1998 kctl->id.name, sizeof(kctl->id.name)); in parse_clock_source_unit() 2002 snprintf(kctl->id.name, sizeof(kctl->id.name), in parse_clock_source_unit() 2216 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_scarlett2.c | 3152 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() 3184 *kctl_return = kctl; in scarlett2_add_new_ctl() 3192 struct snd_kcontrol *kctl, in scarlett2_firmware_version_ctl_get() argument 3204 struct snd_kcontrol *kctl, in scarlett2_firmware_version_ctl_info() argument 3231 struct snd_kcontrol *kctl, in scarlett2_min_firmware_version_ctl_get() argument 3243 struct snd_kcontrol *kctl, in scarlett2_min_firmware_version_ctl_info() argument [all …]
|
| A D | mixer_quirks.c | 66 struct snd_kcontrol *kctl; in snd_create_std_mono_ctl_offset() local 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() 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() 147 struct snd_kcontrol *kctl; in add_single_ctl_with_resume() local 158 if (!kctl) { in add_single_ctl_with_resume() 2077 if (!kctl) { in realtek_add_jack() 2082 strscpy(kctl->id.name, name, sizeof(kctl->id.name)); in realtek_add_jack() 2807 struct snd_kcontrol *kctl = list->kctl; in snd_bbfpro_gain_resume() local [all …]
|
| A D | mixer.h | 68 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/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/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/sound/core/oss/ |
| A D | mixer_oss.c | 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() 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() 628 if (kctl->info(kctl, uinfo)) in snd_mixer_oss_put_volume1_vol() 636 res = kctl->put(kctl, uctl); in snd_mixer_oss_put_volume1_vol() 665 if (kctl->info(kctl, uinfo)) in snd_mixer_oss_put_volume1_sw() 677 res = kctl->put(kctl, uctl); in snd_mixer_oss_put_volume1_sw() 801 err = kctl->get(kctl, uctl); in snd_mixer_oss_get_recsrc2() 861 err = kctl->put(kctl, uctl); in snd_mixer_oss_put_recsrc2() [all …]
|
| /linux/sound/virtio/ |
| A D | virtio_kctl.c | 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() 461 struct virtio_kctl *kctl; in virtsnd_kctl_event() local 474 kctl = &snd->kctls[cid]; in virtsnd_kctl_event() [all …]
|
| /linux/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/sound/pci/emu10k1/ |
| A D | emumixer.c | 1994 if (kctl) { in rename_ctl() 2223 if (!kctl) in snd_emu10k1_mixer() 2230 if (!kctl) in snd_emu10k1_mixer() 2237 if (!kctl) in snd_emu10k1_mixer() 2245 if (!kctl) in snd_emu10k1_mixer() 2253 if (!kctl) in snd_emu10k1_mixer() 2261 if (!kctl) in snd_emu10k1_mixer() 2271 if (!kctl) in snd_emu10k1_mixer() 2279 if (!kctl) in snd_emu10k1_mixer() 2292 if (!kctl) in snd_emu10k1_mixer() [all …]
|
| /linux/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() 2697 if (kctl) { in snd_ac97_rename_ctl() 2830 if (! kctl) in tune_inv_eapd() [all …]
|
| /linux/drivers/usb/gadget/function/ |
| A D | u_audio.c | 1186 struct snd_kcontrol *kctl; in g_audio_setup() local 1290 if (!kctl) { in g_audio_setup() 1296 kctl->id.subdevice = 0; in g_audio_setup() 1306 if (!kctl) { in g_audio_setup() 1312 kctl->id.subdevice = 0; in g_audio_setup() 1348 if (!kctl) { in g_audio_setup() 1354 kctl->id.subdevice = 0; in g_audio_setup() 1371 if (!kctl) { in g_audio_setup() 1377 kctl->id.subdevice = 0; in g_audio_setup() 1400 if (!kctl) { in g_audio_setup() [all …]
|
| /linux/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/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/sound/pci/ice1712/ |
| A D | psc724.c | 180 struct snd_kcontrol *kctl; in psc724_set_jack_state() local 189 kctl = snd_ctl_find_id_mixer(ice->card, in psc724_set_jack_state() 191 if (kctl) in psc724_set_jack_state() 192 snd_ctl_notify(ice->card, SNDRV_CTL_EVENT_MASK_VALUE, &kctl->id); in psc724_set_jack_state() 194 kctl = snd_ctl_find_id_mixer(ice->card, in psc724_set_jack_state() 196 if (kctl) in psc724_set_jack_state() 197 snd_ctl_notify(ice->card, SNDRV_CTL_EVENT_MASK_VALUE, &kctl->id); in psc724_set_jack_state()
|