/sound/soc/codecs/ |
D | sigmadsp.c | 633 struct snd_kcontrol_new template; in sigmadsp_alloc_control() local 636 memset(&template, 0, sizeof(template)); in sigmadsp_alloc_control() 637 template.iface = SNDRV_CTL_ELEM_IFACE_MIXER; in sigmadsp_alloc_control() 638 template.name = ctrl->name; in sigmadsp_alloc_control() 639 template.info = sigmadsp_ctrl_info; in sigmadsp_alloc_control() 640 template.get = sigmadsp_ctrl_get; in sigmadsp_alloc_control() 641 template.put = sigmadsp_ctrl_put; in sigmadsp_alloc_control() 642 template.private_value = (unsigned long)ctrl; in sigmadsp_alloc_control() 643 template.access = SNDRV_CTL_ELEM_ACCESS_READWRITE; in sigmadsp_alloc_control() 645 template.access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE; in sigmadsp_alloc_control() [all …]
|
/sound/soc/ |
D | soc-topology.c | 1484 struct snd_soc_dapm_widget template, *widget; in soc_tplg_dapm_widget_create() local 1500 memset(&template, 0, sizeof(template)); in soc_tplg_dapm_widget_create() 1503 template.id = get_widget_id(w->id); in soc_tplg_dapm_widget_create() 1504 if (template.id < 0) in soc_tplg_dapm_widget_create() 1505 return template.id; in soc_tplg_dapm_widget_create() 1508 template.name = kstrdup(w->name, GFP_KERNEL); in soc_tplg_dapm_widget_create() 1509 if (!template.name) in soc_tplg_dapm_widget_create() 1511 template.sname = kstrdup(w->sname, GFP_KERNEL); in soc_tplg_dapm_widget_create() 1512 if (!template.sname) { in soc_tplg_dapm_widget_create() 1516 template.reg = w->reg; in soc_tplg_dapm_widget_create() [all …]
|
D | soc-dapm.c | 363 struct snd_soc_dapm_widget template; in dapm_kcontrol_data_alloc() local 372 memset(&template, 0, sizeof(template)); in dapm_kcontrol_data_alloc() 373 template.reg = mc->reg; in dapm_kcontrol_data_alloc() 374 template.mask = (1 << fls(mc->max)) - 1; in dapm_kcontrol_data_alloc() 375 template.shift = mc->shift; in dapm_kcontrol_data_alloc() 377 template.off_val = mc->max; in dapm_kcontrol_data_alloc() 379 template.off_val = 0; in dapm_kcontrol_data_alloc() 380 template.on_val = template.off_val; in dapm_kcontrol_data_alloc() 381 template.id = snd_soc_dapm_kcontrol; in dapm_kcontrol_data_alloc() 382 template.name = name; in dapm_kcontrol_data_alloc() [all …]
|
D | soc-core.c | 2464 struct snd_kcontrol_new template; in snd_soc_cnew() local 2468 memcpy(&template, _template, sizeof(template)); in snd_soc_cnew() 2469 template.index = 0; in snd_soc_cnew() 2472 long_name = template.name; in snd_soc_cnew() 2479 template.name = name; in snd_soc_cnew() 2481 template.name = long_name; in snd_soc_cnew() 2484 kcontrol = snd_ctl_new1(&template, data); in snd_soc_cnew() 3873 const char *template, *wname; in snd_soc_of_parse_audio_simple_widgets() local 3905 2 * i, &template); in snd_soc_of_parse_audio_simple_widgets() 3914 if (!strncmp(template, simple_widgets[j].name, in snd_soc_of_parse_audio_simple_widgets() [all …]
|
/sound/soc/intel/baytrail/ |
D | sst-baytrail-dsp.c | 70 struct sst_module_template template; in sst_byt_parse_module() local 73 memset(&template, 0, sizeof(template)); in sst_byt_parse_module() 74 template.id = module->type; in sst_byt_parse_module() 75 template.entry = module->entry_point; in sst_byt_parse_module() 77 mod = sst_module_new(fw, &template, NULL); in sst_byt_parse_module()
|
/sound/soc/intel/haswell/ |
D | sst-haswell-dsp.c | 93 struct sst_module_template template; in hsw_parse_module() local 114 memset(&template, 0, sizeof(template)); in hsw_parse_module() 115 template.id = module->type; in hsw_parse_module() 116 template.entry = module->entry_point - 4; in hsw_parse_module() 117 template.persistent_size = module->info.persistent_size; in hsw_parse_module() 118 template.scratch_size = module->info.scratch_size; in hsw_parse_module() 120 mod = sst_module_new(fw, &template, NULL); in hsw_parse_module()
|
/sound/pci/oxygen/ |
D | se6x.c | 69 static int se6x_control_filter(struct snd_kcontrol_new *template) in se6x_control_filter() argument 72 if (!strncmp(template->name, "Master Playback ", 16)) in se6x_control_filter()
|
D | oxygen_mixer.c | 1056 struct snd_kcontrol_new template; in add_controls() local 1061 template = controls[i]; in add_controls() 1063 err = chip->model.control_filter(&template); in add_controls() 1069 if (!strcmp(template.name, "Stereo Upmixing") && in add_controls() 1072 if (!strcmp(template.name, "Mic Source Capture Enum") && in add_controls() 1075 if (!strncmp(template.name, "CD Capture ", 11) && in add_controls() 1078 if (!strcmp(template.name, "Master Playback Volume") && in add_controls() 1080 template.tlv.p = chip->model.dac_tlv; in add_controls() 1081 template.access |= SNDRV_CTL_ELEM_ACCESS_TLV_READ; in add_controls() 1083 ctl = snd_ctl_new1(&template, chip); in add_controls()
|
D | xonar_pcm179x.c | 988 static int xonar_d2_control_filter(struct snd_kcontrol_new *template) in xonar_d2_control_filter() argument 990 if (!strncmp(template->name, "CD Capture ", 11)) in xonar_d2_control_filter() 992 template->private_value ^= AC97_CD ^ AC97_VIDEO; in xonar_d2_control_filter() 996 static int xonar_st_h6_control_filter(struct snd_kcontrol_new *template) in xonar_st_h6_control_filter() argument 998 if (!strncmp(template->name, "Master Playback ", 16)) in xonar_st_h6_control_filter()
|
D | xonar_dg_mixer.c | 426 static int dg_control_filter(struct snd_kcontrol_new *template) in dg_control_filter() argument 428 if (!strncmp(template->name, "Master Playback ", 16)) in dg_control_filter()
|
D | oxygen.h | 82 int (*control_filter)(struct snd_kcontrol_new *template);
|
/sound/core/oss/ |
D | pcm_oss.c | 2968 struct snd_pcm_oss_setup *setup, *setup1, template; in snd_pcm_oss_proc_write() local 2972 memset(&template, 0, sizeof(template)); in snd_pcm_oss_proc_write() 2981 template = *setup; in snd_pcm_oss_proc_write() 2986 template.periods = simple_strtoul(str, NULL, 10); in snd_pcm_oss_proc_write() 2988 template.period_size = simple_strtoul(str, NULL, 10); in snd_pcm_oss_proc_write() 2990 if (template.period_size & (1 << idx1)) in snd_pcm_oss_proc_write() 2993 template.period_size &= ~(1 << idx1); in snd_pcm_oss_proc_write() 2997 template.disable = 1; in snd_pcm_oss_proc_write() 2999 template.direct = 1; in snd_pcm_oss_proc_write() 3001 template.block = 1; in snd_pcm_oss_proc_write() [all …]
|
/sound/atmel/ |
D | ac97c.c | 622 struct snd_ac97_template template; in atmel_ac97c_mixer_new() local 623 memset(&template, 0, sizeof(template)); in atmel_ac97c_mixer_new() 624 template.private_data = chip; in atmel_ac97c_mixer_new() 625 return snd_ac97_mixer(chip->ac97_bus, &template, &chip->ac97); in atmel_ac97c_mixer_new()
|
/sound/pci/ac97/ |
D | ac97_codec.c | 1178 struct snd_kcontrol_new template; in snd_ac97_cnew() local 1179 memcpy(&template, _template, sizeof(template)); in snd_ac97_cnew() 1180 template.index = ac97->num; in snd_ac97_cnew() 1181 return snd_ctl_new1(&template, ac97); in snd_ac97_cnew() 2013 int snd_ac97_mixer(struct snd_ac97_bus *bus, struct snd_ac97_template *template, struct snd_ac97 **… in snd_ac97_mixer() argument 2030 if (snd_BUG_ON(!bus || !template)) in snd_ac97_mixer() 2032 if (snd_BUG_ON(template->num >= 4)) in snd_ac97_mixer() 2034 if (bus->codec[template->num]) in snd_ac97_mixer() 2041 ac97->private_data = template->private_data; in snd_ac97_mixer() 2042 ac97->private_free = template->private_free; in snd_ac97_mixer() [all …]
|
/sound/soc/intel/common/ |
D | sst-firmware.c | 491 struct sst_module_template *template, void *private) in sst_module_new() argument 500 sst_module->id = template->id; in sst_module_new() 503 sst_module->scratch_size = template->scratch_size; in sst_module_new() 504 sst_module->persistent_size = template->persistent_size; in sst_module_new() 505 sst_module->entry = template->entry; in sst_module_new()
|
D | sst-dsp-priv.h | 355 struct sst_module_template *template, void *private);
|
/sound/usb/ |
D | mixer_quirks.c | 861 struct snd_kcontrol_new template = { in snd_nativeinstruments_create_mixer() local 872 template.name = kc[i].name; in snd_nativeinstruments_create_mixer() 873 template.private_value = kc[i].private_value; in snd_nativeinstruments_create_mixer() 877 &template, &list); in snd_nativeinstruments_create_mixer() 974 static struct snd_kcontrol_new template = { in snd_ftu_create_effect_switch() local 988 &template, &list); in snd_ftu_create_effect_switch()
|
/sound/pci/ice1712/ |
D | ice1712.h | 495 const struct snd_akm4xxx *template,
|