/sound/soc/codecs/ |
D | sigmadsp.c | 646 struct snd_kcontrol_new template; in sigmadsp_alloc_control() local 649 memset(&template, 0, sizeof(template)); in sigmadsp_alloc_control() 650 template.iface = SNDRV_CTL_ELEM_IFACE_MIXER; in sigmadsp_alloc_control() 651 template.name = ctrl->name; in sigmadsp_alloc_control() 652 template.info = sigmadsp_ctrl_info; in sigmadsp_alloc_control() 653 template.get = sigmadsp_ctrl_get; in sigmadsp_alloc_control() 654 template.put = sigmadsp_ctrl_put; in sigmadsp_alloc_control() 655 template.private_value = (unsigned long)ctrl; in sigmadsp_alloc_control() 656 template.access = SNDRV_CTL_ELEM_ACCESS_READWRITE; in sigmadsp_alloc_control() 658 template.access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE; in sigmadsp_alloc_control() [all …]
|
/sound/soc/intel/catpt/ |
D | pcm.c | 263 struct catpt_stream_template *template; in catpt_dai_startup() local 268 template = catpt_get_stream_template(substream); in catpt_dai_startup() 279 res = catpt_request_region(&cdev->dram, template->persistent_size); in catpt_dai_startup() 287 stream->template = template; in catpt_dai_startup() 365 if (stream->template->type != CATPT_STRM_TYPE_LOOPBACK) in catpt_dai_apply_usettings() 408 ret = catpt_ipc_alloc_stream(cdev, stream->template->path_id, in catpt_dai_hw_params() 409 stream->template->type, in catpt_dai_hw_params() 411 stream->template->num_entries, in catpt_dai_hw_params() 412 stream->template->entries, in catpt_dai_hw_params() 481 if (stream->template->type != CATPT_STRM_TYPE_RENDER) in catpt_dai_trigger() [all …]
|
D | core.h | 156 struct catpt_stream_template *template; member
|
/sound/soc/ |
D | soc-dapm.c | 379 struct snd_soc_dapm_widget template; in dapm_kcontrol_data_alloc() local 388 memset(&template, 0, sizeof(template)); in dapm_kcontrol_data_alloc() 389 template.reg = mc->reg; in dapm_kcontrol_data_alloc() 390 template.mask = (1 << fls(mc->max)) - 1; in dapm_kcontrol_data_alloc() 391 template.shift = mc->shift; in dapm_kcontrol_data_alloc() 393 template.off_val = mc->max; in dapm_kcontrol_data_alloc() 395 template.off_val = 0; in dapm_kcontrol_data_alloc() 396 template.on_val = template.off_val; in dapm_kcontrol_data_alloc() 397 template.id = snd_soc_dapm_kcontrol; in dapm_kcontrol_data_alloc() 398 template.name = name; in dapm_kcontrol_data_alloc() [all …]
|
D | soc-topology.c | 1421 struct snd_soc_dapm_widget template, *widget; in soc_tplg_dapm_widget_create() local 1442 memset(&template, 0, sizeof(template)); in soc_tplg_dapm_widget_create() 1445 template.id = get_widget_id(le32_to_cpu(w->id)); in soc_tplg_dapm_widget_create() 1446 if ((int)template.id < 0) in soc_tplg_dapm_widget_create() 1447 return template.id; in soc_tplg_dapm_widget_create() 1450 template.name = kstrdup(w->name, GFP_KERNEL); in soc_tplg_dapm_widget_create() 1451 if (!template.name) in soc_tplg_dapm_widget_create() 1453 template.sname = kstrdup(w->sname, GFP_KERNEL); in soc_tplg_dapm_widget_create() 1454 if (!template.sname) { in soc_tplg_dapm_widget_create() 1458 template.reg = le32_to_cpu(w->reg); in soc_tplg_dapm_widget_create() [all …]
|
D | soc-core.c | 2208 struct snd_kcontrol_new template; in snd_soc_cnew() local 2212 memcpy(&template, _template, sizeof(template)); in snd_soc_cnew() 2213 template.index = 0; in snd_soc_cnew() 2216 long_name = template.name; in snd_soc_cnew() 2223 template.name = name; in snd_soc_cnew() 2225 template.name = long_name; in snd_soc_cnew() 2228 kcontrol = snd_ctl_new1(&template, data); in snd_soc_cnew() 2776 const char *template, *wname; in snd_soc_of_parse_audio_simple_widgets() local 2808 2 * i, &template); in snd_soc_of_parse_audio_simple_widgets() 2817 if (!strncmp(template, simple_widgets[j].name, in snd_soc_of_parse_audio_simple_widgets() [all …]
|
/sound/pci/oxygen/ |
D | se6x.c | 58 static int se6x_control_filter(struct snd_kcontrol_new *template) in se6x_control_filter() argument 61 if (!strncmp(template->name, "Master Playback ", 16)) in se6x_control_filter()
|
D | oxygen_mixer.c | 1044 struct snd_kcontrol_new template; in add_controls() local 1049 template = controls[i]; in add_controls() 1051 err = chip->model.control_filter(&template); in add_controls() 1057 if (!strcmp(template.name, "Stereo Upmixing") && in add_controls() 1060 if (!strcmp(template.name, "Mic Source Capture Enum") && in add_controls() 1063 if (!strncmp(template.name, "CD Capture ", 11) && in add_controls() 1066 if (!strcmp(template.name, "Master Playback Volume") && in add_controls() 1068 template.tlv.p = chip->model.dac_tlv; in add_controls() 1069 template.access |= SNDRV_CTL_ELEM_ACCESS_TLV_READ; in add_controls() 1071 ctl = snd_ctl_new1(&template, chip); in add_controls()
|
D | xonar_pcm179x.c | 1040 static int xonar_d2_control_filter(struct snd_kcontrol_new *template) in xonar_d2_control_filter() argument 1042 if (!strncmp(template->name, "CD Capture ", 11)) in xonar_d2_control_filter() 1044 template->private_value ^= AC97_CD ^ AC97_VIDEO; in xonar_d2_control_filter() 1048 static int xonar_st_h6_control_filter(struct snd_kcontrol_new *template) in xonar_st_h6_control_filter() argument 1050 if (!strncmp(template->name, "Master Playback ", 16)) in xonar_st_h6_control_filter()
|
D | xonar_dg_mixer.c | 416 static int dg_control_filter(struct snd_kcontrol_new *template) in dg_control_filter() argument 418 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 | 3002 struct snd_pcm_oss_setup *setup, *setup1, template; in snd_pcm_oss_proc_write() local 3006 memset(&template, 0, sizeof(template)); in snd_pcm_oss_proc_write() 3015 template = *setup; in snd_pcm_oss_proc_write() 3020 template.periods = simple_strtoul(str, NULL, 10); in snd_pcm_oss_proc_write() 3022 template.period_size = simple_strtoul(str, NULL, 10); in snd_pcm_oss_proc_write() 3024 if (template.period_size & (1 << idx1)) in snd_pcm_oss_proc_write() 3027 template.period_size &= ~(1 << idx1); in snd_pcm_oss_proc_write() 3031 template.disable = 1; in snd_pcm_oss_proc_write() 3033 template.direct = 1; in snd_pcm_oss_proc_write() 3035 template.block = 1; in snd_pcm_oss_proc_write() [all …]
|
/sound/atmel/ |
D | ac97c.c | 601 struct snd_ac97_template template; in atmel_ac97c_mixer_new() local 602 memset(&template, 0, sizeof(template)); in atmel_ac97c_mixer_new() 603 template.private_data = chip; in atmel_ac97c_mixer_new() 604 return snd_ac97_mixer(chip->ac97_bus, &template, &chip->ac97); in atmel_ac97c_mixer_new()
|
/sound/pci/ac97/ |
D | ac97_codec.c | 1158 struct snd_kcontrol_new template; in snd_ac97_cnew() local 1159 memcpy(&template, _template, sizeof(template)); in snd_ac97_cnew() 1160 template.index = ac97->num; in snd_ac97_cnew() 1161 return snd_ctl_new1(&template, ac97); in snd_ac97_cnew() 2058 int snd_ac97_mixer(struct snd_ac97_bus *bus, struct snd_ac97_template *template, struct snd_ac97 **… in snd_ac97_mixer() argument 2073 if (snd_BUG_ON(!bus || !template || !rac97)) in snd_ac97_mixer() 2076 if (snd_BUG_ON(template->num >= 4)) in snd_ac97_mixer() 2078 if (bus->codec[template->num]) in snd_ac97_mixer() 2085 ac97->private_data = template->private_data; in snd_ac97_mixer() 2086 ac97->private_free = template->private_free; in snd_ac97_mixer() [all …]
|
/sound/usb/ |
D | mixer_quirks.c | 993 struct snd_kcontrol_new template = { in snd_nativeinstruments_create_mixer() local 1004 template.name = kc[i].name; in snd_nativeinstruments_create_mixer() 1005 template.private_value = kc[i].private_value; in snd_nativeinstruments_create_mixer() 1009 &template, &list); in snd_nativeinstruments_create_mixer() 1106 static struct snd_kcontrol_new template = { in snd_ftu_create_effect_switch() local 1120 &template, &list); in snd_ftu_create_effect_switch()
|
/sound/pci/ice1712/ |
D | ice1712.h | 482 const struct snd_akm4xxx *template,
|
/sound/firewire/ |
D | amdtp-stream.c | 1092 } template = { {0}, {0} }; in process_rx_packets() local 1095 build_it_pkt_header(s, desc->cycle, &template.params, pkt_header_length, in process_rx_packets() 1107 if (queue_out_packet(s, &template.params, sched_irq) < 0) { in process_rx_packets()
|