/sound/i2c/other/ |
D | ak4xxx-adda.c | 620 struct snd_kcontrol_new knew; in build_dac_controls() local 627 memset(&knew, 0, sizeof(knew)); in build_dac_controls() 628 knew.iface = SNDRV_CTL_ELEM_IFACE_MIXER; in build_dac_controls() 629 knew.count = 1; in build_dac_controls() 630 knew.access = SNDRV_CTL_ELEM_ACCESS_READWRITE; in build_dac_controls() 631 knew.name = ak->dac_info[mixer_ch].switch_name; in build_dac_controls() 632 knew.info = ak4xxx_switch_info; in build_dac_controls() 633 knew.get = ak4xxx_switch_get; in build_dac_controls() 634 knew.put = ak4xxx_switch_put; in build_dac_controls() 635 knew.access = 0; in build_dac_controls() [all …]
|
D | pt2258.c | 186 struct snd_kcontrol_new knew; in snd_pt2258_build_controls() local 195 memset(&knew, 0, sizeof(knew)); in snd_pt2258_build_controls() 196 knew.name = names[i]; in snd_pt2258_build_controls() 197 knew.iface = SNDRV_CTL_ELEM_IFACE_MIXER; in snd_pt2258_build_controls() 198 knew.count = 1; in snd_pt2258_build_controls() 199 knew.access = SNDRV_CTL_ELEM_ACCESS_READWRITE | in snd_pt2258_build_controls() 201 knew.private_value = 2 * i; in snd_pt2258_build_controls() 202 knew.info = pt2258_stereo_volume_info; in snd_pt2258_build_controls() 203 knew.get = pt2258_stereo_volume_get; in snd_pt2258_build_controls() 204 knew.put = pt2258_stereo_volume_put; in snd_pt2258_build_controls() [all …]
|
/sound/core/ |
D | vmaster.c | 400 struct snd_kcontrol_new knew; in snd_ctl_make_virtual_master() local 402 memset(&knew, 0, sizeof(knew)); in snd_ctl_make_virtual_master() 403 knew.iface = SNDRV_CTL_ELEM_IFACE_MIXER; in snd_ctl_make_virtual_master() 404 knew.name = name; in snd_ctl_make_virtual_master() 405 knew.info = master_info; in snd_ctl_make_virtual_master() 412 kctl = snd_ctl_new1(&knew, master); in snd_ctl_make_virtual_master()
|
D | pcm_lib.c | 2597 struct snd_kcontrol_new knew = { in snd_pcm_add_chmap_ctls() local 2616 knew.name = "Playback Channel Map"; in snd_pcm_add_chmap_ctls() 2618 knew.name = "Capture Channel Map"; in snd_pcm_add_chmap_ctls() 2619 knew.device = pcm->device; in snd_pcm_add_chmap_ctls() 2620 knew.count = pcm->streams[stream].substream_count; in snd_pcm_add_chmap_ctls() 2621 knew.private_value = private_value; in snd_pcm_add_chmap_ctls() 2622 info->kctl = snd_ctl_new1(&knew, info); in snd_pcm_add_chmap_ctls()
|
/sound/pci/hda/ |
D | hda_generic.c | 74 struct snd_kcontrol_new *knew = snd_array_new(&spec->kctls); in snd_hda_gen_add_kctl() local 75 if (!knew) in snd_hda_gen_add_kctl() 77 *knew = *temp; in snd_hda_gen_add_kctl() 79 knew->name = kstrdup(name, GFP_KERNEL); in snd_hda_gen_add_kctl() 80 else if (knew->name) in snd_hda_gen_add_kctl() 81 knew->name = kstrdup(knew->name, GFP_KERNEL); in snd_hda_gen_add_kctl() 82 if (!knew->name) in snd_hda_gen_add_kctl() 84 return knew; in snd_hda_gen_add_kctl() 998 struct snd_kcontrol_new *knew; in add_control() local 1000 knew = snd_hda_gen_add_kctl(spec, name, &control_templates[type]); in add_control() [all …]
|
D | patch_ca0132.c | 3084 struct snd_kcontrol_new knew = in add_tuning_control() local 3087 knew.access = SNDRV_CTL_ELEM_ACCESS_READWRITE | in add_tuning_control() 3089 knew.tlv.c = 0; in add_tuning_control() 3090 knew.tlv.p = 0; in add_tuning_control() 3093 knew.info = voice_focus_ctl_info; in add_tuning_control() 3094 knew.get = tuning_ctl_get; in add_tuning_control() 3095 knew.put = voice_focus_ctl_put; in add_tuning_control() 3096 knew.tlv.p = voice_focus_db_scale; in add_tuning_control() 3099 knew.info = mic_svm_ctl_info; in add_tuning_control() 3100 knew.get = tuning_ctl_get; in add_tuning_control() [all …]
|
D | patch_analog.c | 65 const struct snd_kcontrol_new *knew; in create_beep_ctls() local 70 for (knew = ad_beep_mixer ; knew->name; knew++) { in create_beep_ctls() 73 kctl = snd_ctl_new1(knew, codec); in create_beep_ctls()
|
D | patch_conexant.c | 79 const struct snd_kcontrol_new *knew; in add_beep_ctls() local 80 for (knew = cxt_beep_mixer; knew->name; knew++) { in add_beep_ctls() 82 kctl = snd_ctl_new1(knew, codec); in add_beep_ctls()
|
D | patch_via.c | 299 const struct snd_kcontrol_new *knew; in add_beep_ctls() local 300 for (knew = cxt_beep_mixer; knew->name; knew++) { in add_beep_ctls() 302 kctl = snd_ctl_new1(knew, codec); in add_beep_ctls()
|
D | patch_sigmatel.c | 857 struct snd_kcontrol_new *knew; in stac_auto_create_beep_ctls() local 872 knew = snd_hda_gen_add_kctl(&spec->gen, in stac_auto_create_beep_ctls() 874 if (!knew) in stac_auto_create_beep_ctls() 876 knew->private_value = in stac_auto_create_beep_ctls() 882 knew = snd_hda_gen_add_kctl(&spec->gen, in stac_auto_create_beep_ctls() 885 if (!knew) in stac_auto_create_beep_ctls() 887 knew->private_value = in stac_auto_create_beep_ctls()
|
D | hda_codec.c | 3420 const struct snd_kcontrol_new *knew) in snd_hda_add_new_ctls() argument 3424 for (; knew->name; knew++) { in snd_hda_add_new_ctls() 3427 if (knew->iface == -1) /* skip this codec private value */ in snd_hda_add_new_ctls() 3430 kctl = snd_ctl_new1(knew, codec); in snd_hda_add_new_ctls() 3446 else if (!idx && !knew->index) { in snd_hda_add_new_ctls() 3448 knew->name, 0); in snd_hda_add_new_ctls()
|
D | hda_local.h | 346 const struct snd_kcontrol_new *knew);
|
D | patch_realtek.c | 749 const struct snd_kcontrol_new *knew; in alc_build_controls() local 750 for (knew = alc_beep_mixer; knew->name; knew++) { in alc_build_controls() 752 kctl = snd_ctl_new1(knew, codec); in alc_build_controls()
|
/sound/i2c/ |
D | tea6330t.c | 296 struct snd_kcontrol_new *knew; in snd_tea6330t_update_mixer() local 353 knew = &snd_tea6330t_controls[idx]; in snd_tea6330t_update_mixer() 354 if (tea->treble == 0 && !strcmp(knew->name, "Tone Control - Treble")) in snd_tea6330t_update_mixer() 356 if ((err = snd_ctl_add(card, snd_ctl_new1(knew, tea))) < 0) in snd_tea6330t_update_mixer()
|
/sound/usb/ |
D | mixer_quirks.c | 151 const struct snd_kcontrol_new *knew, in add_single_ctl_with_resume() argument 165 kctl = snd_ctl_new1(knew, list); in add_single_ctl_with_resume() 384 struct snd_kcontrol_new knew; in snd_audigy2nx_controls_create() local 399 knew = snd_audigy2nx_control; in snd_audigy2nx_controls_create() 400 knew.name = snd_audigy2nx_led_names[i]; in snd_audigy2nx_controls_create() 401 knew.private_value = (1 << 8) | i; /* LED on as default */ in snd_audigy2nx_controls_create() 404 &knew, NULL); in snd_audigy2nx_controls_create()
|
/sound/pci/emu10k1/ |
D | emufx.c | 790 struct snd_kcontrol_new knew; in snd_emu10k1_add_controls() local 818 memset(&knew, 0, sizeof(knew)); in snd_emu10k1_add_controls() 819 knew.iface = gctl->id.iface; in snd_emu10k1_add_controls() 820 knew.name = gctl->id.name; in snd_emu10k1_add_controls() 821 knew.index = gctl->id.index; in snd_emu10k1_add_controls() 822 knew.device = gctl->id.device; in snd_emu10k1_add_controls() 823 knew.subdevice = gctl->id.subdevice; in snd_emu10k1_add_controls() 824 knew.info = snd_emu10k1_gpr_ctl_info; in snd_emu10k1_add_controls() 825 knew.tlv.p = copy_tlv(gctl->tlv); in snd_emu10k1_add_controls() 826 if (knew.tlv.p) in snd_emu10k1_add_controls() [all …]
|
/sound/soc/sh/rcar/ |
D | core.c | 1037 struct snd_kcontrol_new knew = { in __rsnd_kctrl_new() local 1048 kctrl = snd_ctl_new1(&knew, mod); in __rsnd_kctrl_new()
|