Home
last modified time | relevance | path

Searched refs:cfg (Results 1 – 25 of 73) sorted by relevance

123

/sound/pci/hda/
Dhda_auto_parser.c56 static void add_auto_cfg_input_pin(struct hda_codec *codec, struct auto_pin_cfg *cfg, in add_auto_cfg_input_pin() argument
59 if (cfg->num_inputs < AUTO_CFG_MAX_INS) { in add_auto_cfg_input_pin()
60 cfg->inputs[cfg->num_inputs].pin = nid; in add_auto_cfg_input_pin()
61 cfg->inputs[cfg->num_inputs].type = type; in add_auto_cfg_input_pin()
62 cfg->inputs[cfg->num_inputs].has_boost_on_pin = in add_auto_cfg_input_pin()
64 cfg->num_inputs++; in add_auto_cfg_input_pin()
173 struct auto_pin_cfg *cfg, in snd_hda_parse_pin_defcfg() argument
179 struct auto_out_pin line_out[ARRAY_SIZE(cfg->line_out_pins)]; in snd_hda_parse_pin_defcfg()
180 struct auto_out_pin speaker_out[ARRAY_SIZE(cfg->speaker_pins)]; in snd_hda_parse_pin_defcfg()
181 struct auto_out_pin hp_out[ARRAY_SIZE(cfg->hp_pins)]; in snd_hda_parse_pin_defcfg()
[all …]
Dhda_auto_parser.h42 const struct auto_pin_cfg *cfg,
45 const struct auto_pin_cfg *cfg,
86 struct auto_pin_cfg *cfg,
91 #define snd_hda_parse_pin_def_config(codec, cfg, ignore) \ argument
92 snd_hda_parse_pin_defcfg(codec, cfg, ignore, 0)
94 static inline int auto_cfg_hp_outs(const struct auto_pin_cfg *cfg) in auto_cfg_hp_outs() argument
96 return (cfg->line_out_type == AUTO_PIN_HP_OUT) ? in auto_cfg_hp_outs()
97 cfg->line_outs : cfg->hp_outs; in auto_cfg_hp_outs()
99 static inline const hda_nid_t *auto_cfg_hp_pins(const struct auto_pin_cfg *cfg) in auto_cfg_hp_pins() argument
101 return (cfg->line_out_type == AUTO_PIN_HP_OUT) ? in auto_cfg_hp_pins()
[all …]
Dhda_generic.c1167 struct auto_pin_cfg *cfg = &spec->autocfg; in get_line_out_pfx() local
1170 if (cfg->line_outs == 1 && !spec->multi_ios && in get_line_out_pfx()
1172 !cfg->hp_outs && !cfg->speaker_outs) in get_line_out_pfx()
1184 if (ch >= cfg->line_outs) in get_line_out_pfx()
1187 switch (cfg->line_out_type) { in get_line_out_pfx()
1192 if (!ch && cfg->hp_outs && in get_line_out_pfx()
1195 if (cfg->line_outs == 1) in get_line_out_pfx()
1197 if (cfg->line_outs == 2) in get_line_out_pfx()
1204 if (!ch && cfg->speaker_outs && in get_line_out_pfx()
1219 if (cfg->speaker_outs) in get_line_out_pfx()
[all …]
Dhda_jack.c587 const struct auto_pin_cfg *cfg, in add_jack_kctl() argument
609 snd_hda_get_pin_label(codec, nid, cfg, name, sizeof(name), NULL); in add_jack_kctl()
628 const struct auto_pin_cfg *cfg) in snd_hda_jack_add_kctls() argument
633 for (i = 0; i < cfg->num_inputs; i++) { in snd_hda_jack_add_kctls()
636 if (cfg->inputs[i].is_headphone_mic) { in snd_hda_jack_add_kctls()
637 if (auto_cfg_hp_outs(cfg) == 1) in snd_hda_jack_add_kctls()
638 err = add_jack_kctl(codec, auto_cfg_hp_pins(cfg)[0], in snd_hda_jack_add_kctls()
639 cfg, "Headphone Mic"); in snd_hda_jack_add_kctls()
641 err = add_jack_kctl(codec, cfg->inputs[i].pin, in snd_hda_jack_add_kctls()
642 cfg, "Headphone Mic"); in snd_hda_jack_add_kctls()
[all …]
Dpatch_cmedia.c38 struct auto_pin_cfg *cfg; in patch_cmi9880() local
47 cfg = &spec->gen.autocfg; in patch_cmi9880()
50 err = snd_hda_parse_pin_defcfg(codec, cfg, NULL, 0); in patch_cmi9880()
53 err = snd_hda_gen_parse_auto_config(codec, cfg); in patch_cmi9880()
67 struct auto_pin_cfg *cfg; in patch_cmi8888() local
76 cfg = &spec->gen.autocfg; in patch_cmi8888()
84 err = snd_hda_parse_pin_defcfg(codec, cfg, NULL, 0); in patch_cmi8888()
87 err = snd_hda_gen_parse_auto_config(codec, cfg); in patch_cmi8888()
Dhda_proc.c213 static const char *get_jack_connection(u32 cfg) in get_jack_connection() argument
221 cfg = (cfg & AC_DEFCFG_CONN_TYPE) >> AC_DEFCFG_CONN_TYPE_SHIFT; in get_jack_connection()
222 if (names[cfg]) in get_jack_connection()
223 return names[cfg]; in get_jack_connection()
228 static const char *get_jack_color(u32 cfg) in get_jack_color() argument
236 cfg = (cfg & AC_DEFCFG_COLOR) >> AC_DEFCFG_COLOR_SHIFT; in get_jack_color()
237 if (names[cfg]) in get_jack_color()
238 return names[cfg]; in get_jack_color()
247 static const char *get_jack_location(u32 cfg) in get_jack_location() argument
264 cfg = (cfg & AC_DEFCFG_LOCATION) >> AC_DEFCFG_LOCATION_SHIFT; in get_jack_location()
[all …]
Dhda_local.h351 const struct hda_pintbl *cfg);
364 #define get_defcfg_connect(cfg) \ argument
365 ((cfg & AC_DEFCFG_PORT_CONN) >> AC_DEFCFG_PORT_CONN_SHIFT)
366 #define get_defcfg_association(cfg) \ argument
367 ((cfg & AC_DEFCFG_DEF_ASSOC) >> AC_DEFCFG_ASSOC_SHIFT)
368 #define get_defcfg_location(cfg) \ argument
369 ((cfg & AC_DEFCFG_LOCATION) >> AC_DEFCFG_LOCATION_SHIFT)
370 #define get_defcfg_sequence(cfg) \ argument
371 (cfg & AC_DEFCFG_SEQUENCE)
372 #define get_defcfg_device(cfg) \ argument
[all …]
/sound/isa/msnd/
Dmsnd_pinnacle.c607 static int snd_msnd_write_cfg(int cfg, int reg, int value) in snd_msnd_write_cfg() argument
609 outb(reg, cfg); in snd_msnd_write_cfg()
610 outb(value, cfg + 1); in snd_msnd_write_cfg()
611 if (value != inb(cfg + 1)) { in snd_msnd_write_cfg()
618 static int snd_msnd_write_cfg_io0(int cfg, int num, u16 io) in snd_msnd_write_cfg_io0() argument
620 if (snd_msnd_write_cfg(cfg, IREG_LOGDEVICE, num)) in snd_msnd_write_cfg_io0()
622 if (snd_msnd_write_cfg(cfg, IREG_IO0_BASEHI, HIBYTE(io))) in snd_msnd_write_cfg_io0()
624 if (snd_msnd_write_cfg(cfg, IREG_IO0_BASELO, LOBYTE(io))) in snd_msnd_write_cfg_io0()
629 static int snd_msnd_write_cfg_io1(int cfg, int num, u16 io) in snd_msnd_write_cfg_io1() argument
631 if (snd_msnd_write_cfg(cfg, IREG_LOGDEVICE, num)) in snd_msnd_write_cfg_io1()
[all …]
/sound/soc/qcom/qdsp6/
Dq6afe.c1083 struct afe_clk_cfg *cfg) in q6afe_port_set_lpass_clock() argument
1085 return q6afe_port_set_param_v2(port, cfg, in q6afe_port_set_lpass_clock()
1088 sizeof(*cfg)); in q6afe_port_set_lpass_clock()
1092 struct afe_clk_set *cfg) in q6afe_set_lpass_clock_v2() argument
1094 return q6afe_port_set_param(port, cfg, AFE_PARAM_ID_CLOCK_SET, in q6afe_set_lpass_clock_v2()
1095 AFE_MODULE_CLOCK_SET, sizeof(*cfg)); in q6afe_set_lpass_clock_v2()
1099 struct afe_digital_clk_cfg *cfg) in q6afe_set_digital_codec_core_clock() argument
1101 return q6afe_port_set_param_v2(port, cfg, in q6afe_set_digital_codec_core_clock()
1104 sizeof(*cfg)); in q6afe_set_digital_codec_core_clock()
1239 struct q6afe_slim_cfg *cfg) in q6afe_slim_port_prepare() argument
[all …]
Dq6asm.c1142 struct q6asm_flac_cfg *cfg) in q6asm_stream_media_format_block_flac() argument
1161 fmt->is_stream_info_present = cfg->stream_info_present; in q6asm_stream_media_format_block_flac()
1162 fmt->num_channels = cfg->ch_cfg; in q6asm_stream_media_format_block_flac()
1163 fmt->min_blk_size = cfg->min_blk_size; in q6asm_stream_media_format_block_flac()
1164 fmt->max_blk_size = cfg->max_blk_size; in q6asm_stream_media_format_block_flac()
1165 fmt->sample_rate = cfg->sample_rate; in q6asm_stream_media_format_block_flac()
1166 fmt->min_frame_size = cfg->min_frame_size; in q6asm_stream_media_format_block_flac()
1167 fmt->max_frame_size = cfg->max_frame_size; in q6asm_stream_media_format_block_flac()
1168 fmt->sample_size = cfg->sample_size; in q6asm_stream_media_format_block_flac()
1179 struct q6asm_wma_cfg *cfg) in q6asm_stream_media_format_block_wma_v9() argument
[all …]
Dq6afe.h225 struct q6afe_hdmi_cfg *cfg);
227 struct q6afe_slim_cfg *cfg);
228 int q6afe_i2s_port_prepare(struct q6afe_port *port, struct q6afe_i2s_cfg *cfg);
229 void q6afe_tdm_port_prepare(struct q6afe_port *port, struct q6afe_tdm_cfg *cfg);
231 struct q6afe_cdc_dma_cfg *cfg);
Dq6asm.h121 struct q6asm_flac_cfg *cfg);
124 struct q6asm_wma_cfg *cfg);
127 struct q6asm_wma_cfg *cfg);
130 struct q6asm_alac_cfg *cfg);
133 struct q6asm_ape_cfg *cfg);
/sound/isa/
Dsc6000.c268 static int sc6000_hw_cfg_write(char __iomem *vport, const int *cfg) in sc6000_hw_cfg_write() argument
278 if (sc6000_write(vport, cfg[0]) < 0) { in sc6000_hw_cfg_write()
279 snd_printk(KERN_ERR "DATA 0x%x: failed!\n", cfg[0]); in sc6000_hw_cfg_write()
282 if (sc6000_write(vport, cfg[1]) < 0) { in sc6000_hw_cfg_write()
283 snd_printk(KERN_ERR "DATA 0x%x: failed!\n", cfg[1]); in sc6000_hw_cfg_write()
351 static void sc6000_hw_cfg_encode(char __iomem *vport, int *cfg, in sc6000_hw_cfg_encode() argument
355 cfg[0] = 0; in sc6000_hw_cfg_encode()
356 cfg[1] = 0; in sc6000_hw_cfg_encode()
358 cfg[0] |= 1; in sc6000_hw_cfg_encode()
360 cfg[0] |= (xmpu & 0x30) >> 2; in sc6000_hw_cfg_encode()
[all …]
Dcmi8328.c75 u8 cfg[3]; member
131 static void snd_cmi8328_cfg_save(u16 port, u8 cfg[]) in snd_cmi8328_cfg_save() argument
133 cfg[0] = snd_cmi8328_cfg_read(port, CFG1); in snd_cmi8328_cfg_save()
134 cfg[1] = snd_cmi8328_cfg_read(port, CFG2); in snd_cmi8328_cfg_save()
135 cfg[2] = snd_cmi8328_cfg_read(port, CFG3); in snd_cmi8328_cfg_save()
138 static void snd_cmi8328_cfg_restore(u16 port, u8 cfg[]) in snd_cmi8328_cfg_restore() argument
140 snd_cmi8328_cfg_write(port, CFG1, cfg[0]); in snd_cmi8328_cfg_restore()
141 snd_cmi8328_cfg_write(port, CFG2, cfg[1]); in snd_cmi8328_cfg_restore()
142 snd_cmi8328_cfg_write(port, CFG3, cfg[2]); in snd_cmi8328_cfg_restore()
424 snd_cmi8328_cfg_save(cmi->port, cmi->cfg); in snd_cmi8328_suspend()
[all …]
/sound/soc/sh/rcar/
Dcore.c1629 struct rsnd_kctrl_cfg *cfg = snd_kcontrol_chip(kctrl); in rsnd_kctrl_info() local
1631 if (cfg->texts) { in rsnd_kctrl_info()
1633 uinfo->count = cfg->size; in rsnd_kctrl_info()
1634 uinfo->value.enumerated.items = cfg->max; in rsnd_kctrl_info()
1635 if (uinfo->value.enumerated.item >= cfg->max) in rsnd_kctrl_info()
1636 uinfo->value.enumerated.item = cfg->max - 1; in rsnd_kctrl_info()
1638 cfg->texts[uinfo->value.enumerated.item], in rsnd_kctrl_info()
1641 uinfo->count = cfg->size; in rsnd_kctrl_info()
1643 uinfo->value.integer.max = cfg->max; in rsnd_kctrl_info()
1644 uinfo->type = (cfg->max == 1) ? in rsnd_kctrl_info()
[all …]
/sound/hda/
Dintel-dsp-config.c470 const struct config_entry *cfg; in snd_intel_dsp_driver_probe() local
510 cfg = snd_intel_dsp_find_config(pci, config_table, ARRAY_SIZE(config_table)); in snd_intel_dsp_driver_probe()
511 if (!cfg) in snd_intel_dsp_driver_probe()
514 if (cfg->flags & FLAG_SOF) { in snd_intel_dsp_driver_probe()
515 if (cfg->flags & FLAG_SOF_ONLY_IF_SOUNDWIRE && in snd_intel_dsp_driver_probe()
520 if (cfg->flags & FLAG_SOF_ONLY_IF_DMIC && in snd_intel_dsp_driver_probe()
525 if (!(cfg->flags & FLAG_SOF_ONLY_IF_DMIC_OR_SOUNDWIRE)) in snd_intel_dsp_driver_probe()
530 if (cfg->flags & FLAG_SST) { in snd_intel_dsp_driver_probe()
531 if (cfg->flags & FLAG_SST_ONLY_IF_DMIC) { in snd_intel_dsp_driver_probe()
610 const struct config_entry *cfg; in snd_intel_acpi_dsp_driver_probe() local
[all …]
Dintel-nhlt.c32 struct nhlt_dmic_array_config *cfg; in intel_nhlt_get_dmic_geo() local
53 cfg = (struct nhlt_dmic_array_config *)(epnt->config.caps); in intel_nhlt_get_dmic_geo()
80 if (cfg->device_config.config_type != NHLT_CONFIG_TYPE_MIC_ARRAY) { in intel_nhlt_get_dmic_geo()
83 switch (cfg->array_type) { in intel_nhlt_get_dmic_geo()
95 cfg_vendor = (struct nhlt_vendor_dmic_array_config *)cfg; in intel_nhlt_get_dmic_geo()
100 __func__, cfg->array_type); in intel_nhlt_get_dmic_geo()
/sound/soc/codecs/
Dwcd-mbhc-v2.c48 struct wcd_mbhc_config *cfg; member
100 u32 reg_val = ((mbhc->cfg->v_hs_max - HS_VREF_MIN_VAL) / 100); in wcd_program_hs_vref()
109 mbhc->mbhc_cb->set_btn_thr(component, mbhc->cfg->btn_low, in wcd_program_btn_threshold()
110 mbhc->cfg->btn_high, in wcd_program_btn_threshold()
111 mbhc->cfg->num_btn, micbias); in wcd_program_btn_threshold()
314 if (mbhc->cfg->linein_th != 0) { in wcd_mbhc_compute_impedance()
360 if ((mbhc->zl > mbhc->cfg->linein_th) && in wcd_mbhc_report_plug_insertion()
361 (mbhc->zr > mbhc->cfg->linein_th) && in wcd_mbhc_report_plug_insertion()
726 wcd_mbhc_write_field(mbhc, WCD_MBHC_HPHL_PLUG_TYPE, mbhc->cfg->hphl_swh); in wcd_mbhc_initialise()
727 wcd_mbhc_write_field(mbhc, WCD_MBHC_GND_PLUG_TYPE, mbhc->cfg->gnd_swh); in wcd_mbhc_initialise()
[all …]
Darizona.c2151 struct arizona_fll_cfg *cfg, in arizona_calc_fratio() argument
2160 cfg->refdiv = 0; in arizona_calc_fratio()
2164 cfg->refdiv++; in arizona_calc_fratio()
2171 init_ratio = arizona_find_fratio(Fref, &cfg->fratio); in arizona_calc_fratio()
2193 cfg->fratio = init_ratio - 1; in arizona_calc_fratio()
2196 refdiv = cfg->refdiv; in arizona_calc_fratio()
2207 cfg->refdiv = refdiv; in arizona_calc_fratio()
2208 cfg->fratio = ratio - 1; in arizona_calc_fratio()
2233 cfg->refdiv = refdiv; in arizona_calc_fratio()
2234 cfg->fratio = ratio - 1; in arizona_calc_fratio()
[all …]
Dmadera.c3505 struct madera_fll_cfg *cfg, in madera_calc_fratio() argument
3513 cfg->refdiv = 0; in madera_calc_fratio()
3517 cfg->refdiv++; in madera_calc_fratio()
3524 init_ratio = madera_find_fratio(fll, fref, sync, &cfg->fratio); in madera_calc_fratio()
3532 cfg->fratio = init_ratio - 1; in madera_calc_fratio()
3558 refdiv = cfg->refdiv; in madera_calc_fratio()
3567 cfg->refdiv = refdiv; in madera_calc_fratio()
3568 cfg->fratio = ratio - 1; in madera_calc_fratio()
3583 cfg->refdiv = refdiv; in madera_calc_fratio()
3584 cfg->fratio = ratio - 1; in madera_calc_fratio()
[all …]
/sound/usb/usx2y/
Dus122l.c348 struct usb_stream_config cfg; in usb_stream_hwdep_ioctl() local
358 if (copy_from_user(&cfg, (void __user *)arg, sizeof(cfg))) in usb_stream_hwdep_ioctl()
361 if (cfg.version != USB_STREAM_INTERFACE_VERSION) in usb_stream_hwdep_ioctl()
365 if ((cfg.sample_rate != 44100 && cfg.sample_rate != 48000 && in usb_stream_hwdep_ioctl()
367 (cfg.sample_rate != 88200 && cfg.sample_rate != 96000))) || in usb_stream_hwdep_ioctl()
368 cfg.frame_size != 6 || in usb_stream_hwdep_ioctl()
369 cfg.period_frames > 0x3000) in usb_stream_hwdep_ioctl()
372 switch (cfg.sample_rate) { in usb_stream_hwdep_ioctl()
385 if (cfg.period_frames < min_period_frames) in usb_stream_hwdep_ioctl()
395 if (!s || memcmp(&cfg, &s->cfg, sizeof(cfg))) { in usb_stream_hwdep_ioctl()
[all …]
/sound/soc/
Dsoc-ac97.c300 struct snd_ac97_reset_cfg *cfg) in snd_soc_ac97_parse_pinctl() argument
312 cfg->pctl = p; in snd_soc_ac97_parse_pinctl()
319 cfg->pstate_reset = state; in snd_soc_ac97_parse_pinctl()
326 cfg->pstate_warm_reset = state; in snd_soc_ac97_parse_pinctl()
333 cfg->pstate_run = state; in snd_soc_ac97_parse_pinctl()
345 cfg->gpio_sync = gpio; in snd_soc_ac97_parse_pinctl()
357 cfg->gpio_sdata = gpio; in snd_soc_ac97_parse_pinctl()
369 cfg->gpio_reset = gpio; in snd_soc_ac97_parse_pinctl()
404 struct snd_ac97_reset_cfg cfg; in snd_soc_set_ac97_ops_of_reset() local
407 ret = snd_soc_ac97_parse_pinctl(dev, &cfg); in snd_soc_set_ac97_ops_of_reset()
[all …]
/sound/soc/au1x/
Di2sc.c88 c = ctx->cfg; in au1xi2s_set_fmt()
131 ctx->cfg = c; in au1xi2s_set_fmt()
148 ctx->cfg |= (stype == PCM_TX) ? CFG_TN : CFG_RN; in au1xi2s_trigger()
149 WR(ctx, I2S_CFG, ctx->cfg); in au1xi2s_trigger()
153 ctx->cfg &= ~((stype == PCM_TX) ? CFG_TN : CFG_RN); in au1xi2s_trigger()
154 WR(ctx, I2S_CFG, ctx->cfg); in au1xi2s_trigger()
192 ctx->cfg &= ~CFG_SZ_MASK; in au1xi2s_hw_params()
193 ctx->cfg |= v; in au1xi2s_hw_params()
Dac97c.c159 WR(ctx, AC97_CONFIG, ctx->cfg | CFG_SG | CFG_SN); in au1xac97c_ac97_warm_reset()
161 WR(ctx, AC97_CONFIG, ctx->cfg | CFG_SG); in au1xac97c_ac97_warm_reset()
162 WR(ctx, AC97_CONFIG, ctx->cfg); in au1xac97c_ac97_warm_reset()
170 WR(ctx, AC97_CONFIG, ctx->cfg | CFG_RS); in au1xac97c_ac97_cold_reset()
172 WR(ctx, AC97_CONFIG, ctx->cfg); in au1xac97c_ac97_cold_reset()
269 ctx->cfg = CFG_RC(3) | CFG_XS(3); in au1xac97c_drvprobe()
270 WR(ctx, AC97_CONFIG, ctx->cfg); in au1xac97c_drvprobe()
316 WR(ctx, AC97_CONFIG, ctx->cfg); in au1xac97c_drvresume()
/sound/soc/meson/
Daxg-pdm.c92 const struct axg_pdm_cfg *cfg; member
150 const struct axg_pdm_filters *filters = priv->cfg->filters; in axg_pdm_get_os()
175 if (sys_rate < priv->cfg->sys_rate) in axg_pdm_set_sysclk()
178 return clk_set_rate(priv->sysclk, priv->cfg->sys_rate); in axg_pdm_set_sysclk()
306 const struct axg_pdm_hcic *hcic = &priv->cfg->filters->hcic; in axg_pdm_set_hcic_ctrl()
324 const struct axg_pdm_lpf *lpf = &priv->cfg->filters->lpf[index]; in axg_pdm_set_lpf_ctrl()
342 const struct axg_pdm_hpf *hpf = &priv->cfg->filters->hpf; in axg_pdm_set_hpf_ctrl()
356 const struct axg_pdm_lpf *lpf = priv->cfg->filters->lpf; in axg_pdm_set_lpf_filters()
396 ret = clk_set_rate(priv->sysclk, priv->cfg->sys_rate); in axg_pdm_dai_probe()
596 priv->cfg = of_device_get_match_data(dev); in axg_pdm_probe()
[all …]

123