Home
last modified time | relevance | path

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

123

/sound/pci/hda/
Dhda_auto_parser.c60 static void add_auto_cfg_input_pin(struct hda_codec *codec, struct auto_pin_cfg *cfg, in add_auto_cfg_input_pin() argument
63 if (cfg->num_inputs < AUTO_CFG_MAX_INS) { in add_auto_cfg_input_pin()
64 cfg->inputs[cfg->num_inputs].pin = nid; in add_auto_cfg_input_pin()
65 cfg->inputs[cfg->num_inputs].type = type; in add_auto_cfg_input_pin()
66 cfg->inputs[cfg->num_inputs].has_boost_on_pin = in add_auto_cfg_input_pin()
68 cfg->num_inputs++; in add_auto_cfg_input_pin()
171 struct auto_pin_cfg *cfg, in snd_hda_parse_pin_defcfg() argument
177 struct auto_out_pin line_out[ARRAY_SIZE(cfg->line_out_pins)]; in snd_hda_parse_pin_defcfg()
178 struct auto_out_pin speaker_out[ARRAY_SIZE(cfg->speaker_pins)]; in snd_hda_parse_pin_defcfg()
179 struct auto_out_pin hp_out[ARRAY_SIZE(cfg->hp_pins)]; in snd_hda_parse_pin_defcfg()
[all …]
Dhda_auto_parser.h46 const struct auto_pin_cfg *cfg,
49 const struct auto_pin_cfg *cfg,
90 struct auto_pin_cfg *cfg,
95 #define snd_hda_parse_pin_def_config(codec, cfg, ignore) \ argument
96 snd_hda_parse_pin_defcfg(codec, cfg, ignore, 0)
98 static inline int auto_cfg_hp_outs(const struct auto_pin_cfg *cfg) in auto_cfg_hp_outs() argument
100 return (cfg->line_out_type == AUTO_PIN_HP_OUT) ? in auto_cfg_hp_outs()
101 cfg->line_outs : cfg->hp_outs; in auto_cfg_hp_outs()
103 static inline const hda_nid_t *auto_cfg_hp_pins(const struct auto_pin_cfg *cfg) in auto_cfg_hp_pins() argument
105 return (cfg->line_out_type == AUTO_PIN_HP_OUT) ? in auto_cfg_hp_pins()
[all …]
Dhda_jack.c416 const struct auto_pin_cfg *cfg, in add_jack_kctl() argument
436 snd_hda_get_pin_label(codec, nid, cfg, name, sizeof(name), NULL); in add_jack_kctl()
455 const struct auto_pin_cfg *cfg) in snd_hda_jack_add_kctls() argument
460 for (i = 0; i < cfg->num_inputs; i++) { in snd_hda_jack_add_kctls()
463 if (cfg->inputs[i].is_headphone_mic) { in snd_hda_jack_add_kctls()
464 if (auto_cfg_hp_outs(cfg) == 1) in snd_hda_jack_add_kctls()
465 err = add_jack_kctl(codec, auto_cfg_hp_pins(cfg)[0], in snd_hda_jack_add_kctls()
466 cfg, "Headphone Mic"); in snd_hda_jack_add_kctls()
468 err = add_jack_kctl(codec, cfg->inputs[i].pin, in snd_hda_jack_add_kctls()
469 cfg, "Headphone Mic"); in snd_hda_jack_add_kctls()
[all …]
Dhda_generic.c1124 struct auto_pin_cfg *cfg = &spec->autocfg; in get_line_out_pfx() local
1127 if (cfg->line_outs == 1 && !spec->multi_ios && in get_line_out_pfx()
1128 !cfg->hp_outs && !cfg->speaker_outs) in get_line_out_pfx()
1139 if (ch >= cfg->line_outs) in get_line_out_pfx()
1142 switch (cfg->line_out_type) { in get_line_out_pfx()
1147 if (!ch && cfg->hp_outs && in get_line_out_pfx()
1150 if (cfg->line_outs == 1) in get_line_out_pfx()
1152 if (cfg->line_outs == 2) in get_line_out_pfx()
1159 if (!ch && cfg->speaker_outs && in get_line_out_pfx()
1170 if (!ch && cfg->speaker_outs && cfg->hp_outs) { in get_line_out_pfx()
[all …]
Dpatch_cmedia.c52 struct auto_pin_cfg *cfg; in patch_cmi9880() local
61 cfg = &spec->gen.autocfg; in patch_cmi9880()
64 err = snd_hda_parse_pin_defcfg(codec, cfg, NULL, 0); in patch_cmi9880()
67 err = snd_hda_gen_parse_auto_config(codec, cfg); in patch_cmi9880()
81 struct auto_pin_cfg *cfg; in patch_cmi8888() local
90 cfg = &spec->gen.autocfg; in patch_cmi8888()
98 err = snd_hda_parse_pin_defcfg(codec, cfg, NULL, 0); in patch_cmi8888()
101 err = snd_hda_gen_parse_auto_config(codec, cfg); in patch_cmi8888()
Dhda_proc.c227 static const char *get_jack_connection(u32 cfg) in get_jack_connection() argument
235 cfg = (cfg & AC_DEFCFG_CONN_TYPE) >> AC_DEFCFG_CONN_TYPE_SHIFT; in get_jack_connection()
236 if (names[cfg]) in get_jack_connection()
237 return names[cfg]; in get_jack_connection()
242 static const char *get_jack_color(u32 cfg) in get_jack_color() argument
250 cfg = (cfg & AC_DEFCFG_COLOR) >> AC_DEFCFG_COLOR_SHIFT; in get_jack_color()
251 if (names[cfg]) in get_jack_color()
252 return names[cfg]; in get_jack_color()
261 static const char *get_jack_location(u32 cfg) in get_jack_location() argument
278 cfg = (cfg & AC_DEFCFG_LOCATION) >> AC_DEFCFG_LOCATION_SHIFT; in get_jack_location()
[all …]
Dhda_local.h430 const struct hda_pintbl *cfg);
441 #define get_defcfg_connect(cfg) \ argument
442 ((cfg & AC_DEFCFG_PORT_CONN) >> AC_DEFCFG_PORT_CONN_SHIFT)
443 #define get_defcfg_association(cfg) \ argument
444 ((cfg & AC_DEFCFG_DEF_ASSOC) >> AC_DEFCFG_ASSOC_SHIFT)
445 #define get_defcfg_location(cfg) \ argument
446 ((cfg & AC_DEFCFG_LOCATION) >> AC_DEFCFG_LOCATION_SHIFT)
447 #define get_defcfg_sequence(cfg) \ argument
448 (cfg & AC_DEFCFG_SEQUENCE)
449 #define get_defcfg_device(cfg) \ argument
[all …]
/sound/isa/msnd/
Dmsnd_pinnacle.c654 static int snd_msnd_write_cfg(int cfg, int reg, int value) in snd_msnd_write_cfg() argument
656 outb(reg, cfg); in snd_msnd_write_cfg()
657 outb(value, cfg + 1); in snd_msnd_write_cfg()
658 if (value != inb(cfg + 1)) { in snd_msnd_write_cfg()
665 static int snd_msnd_write_cfg_io0(int cfg, int num, u16 io) in snd_msnd_write_cfg_io0() argument
667 if (snd_msnd_write_cfg(cfg, IREG_LOGDEVICE, num)) in snd_msnd_write_cfg_io0()
669 if (snd_msnd_write_cfg(cfg, IREG_IO0_BASEHI, HIBYTE(io))) in snd_msnd_write_cfg_io0()
671 if (snd_msnd_write_cfg(cfg, IREG_IO0_BASELO, LOBYTE(io))) in snd_msnd_write_cfg_io0()
676 static int snd_msnd_write_cfg_io1(int cfg, int num, u16 io) in snd_msnd_write_cfg_io1() argument
678 if (snd_msnd_write_cfg(cfg, IREG_LOGDEVICE, num)) in snd_msnd_write_cfg_io1()
[all …]
/sound/soc/sh/rcar/
Dcore.c894 struct rsnd_kctrl_cfg *cfg = kcontrol_to_cfg(kctrl); in rsnd_kctrl_info() local
896 if (cfg->texts) { in rsnd_kctrl_info()
898 uinfo->count = cfg->size; in rsnd_kctrl_info()
899 uinfo->value.enumerated.items = cfg->max; in rsnd_kctrl_info()
900 if (uinfo->value.enumerated.item >= cfg->max) in rsnd_kctrl_info()
901 uinfo->value.enumerated.item = cfg->max - 1; in rsnd_kctrl_info()
903 cfg->texts[uinfo->value.enumerated.item], in rsnd_kctrl_info()
906 uinfo->count = cfg->size; in rsnd_kctrl_info()
908 uinfo->value.integer.max = cfg->max; in rsnd_kctrl_info()
909 uinfo->type = (cfg->max == 1) ? in rsnd_kctrl_info()
[all …]
/sound/isa/
Dsc6000.c284 static int sc6000_hw_cfg_write(char __iomem *vport, const int *cfg) in sc6000_hw_cfg_write() argument
294 if (sc6000_write(vport, cfg[0]) < 0) { in sc6000_hw_cfg_write()
295 snd_printk(KERN_ERR "DATA 0x%x: failed!\n", cfg[0]); in sc6000_hw_cfg_write()
298 if (sc6000_write(vport, cfg[1]) < 0) { in sc6000_hw_cfg_write()
299 snd_printk(KERN_ERR "DATA 0x%x: failed!\n", cfg[1]); in sc6000_hw_cfg_write()
367 static void sc6000_hw_cfg_encode(char __iomem *vport, int *cfg, in sc6000_hw_cfg_encode() argument
371 cfg[0] = 0; in sc6000_hw_cfg_encode()
372 cfg[1] = 0; in sc6000_hw_cfg_encode()
374 cfg[0] |= 1; in sc6000_hw_cfg_encode()
376 cfg[0] |= (xmpu & 0x30) >> 2; in sc6000_hw_cfg_encode()
[all …]
Dcmi8328.c74 u8 cfg[3]; member
130 static void snd_cmi8328_cfg_save(u16 port, u8 cfg[]) in snd_cmi8328_cfg_save() argument
132 cfg[0] = snd_cmi8328_cfg_read(port, CFG1); in snd_cmi8328_cfg_save()
133 cfg[1] = snd_cmi8328_cfg_read(port, CFG2); in snd_cmi8328_cfg_save()
134 cfg[2] = snd_cmi8328_cfg_read(port, CFG3); in snd_cmi8328_cfg_save()
137 static void snd_cmi8328_cfg_restore(u16 port, u8 cfg[]) in snd_cmi8328_cfg_restore() argument
139 snd_cmi8328_cfg_write(port, CFG1, cfg[0]); in snd_cmi8328_cfg_restore()
140 snd_cmi8328_cfg_write(port, CFG2, cfg[1]); in snd_cmi8328_cfg_restore()
141 snd_cmi8328_cfg_write(port, CFG3, cfg[2]); in snd_cmi8328_cfg_restore()
435 snd_cmi8328_cfg_save(cmi->port, cmi->cfg); in snd_cmi8328_suspend()
[all …]
/sound/oss/
Dpas2_card.c59 static struct address_info cfg; variable
406 cfg.io_base = io; in init_pas2()
407 cfg.irq = irq; in init_pas2()
408 cfg.dma = dma; in init_pas2()
409 cfg.dma2 = dma16; in init_pas2()
416 if (cfg.io_base == -1 || cfg.dma == -1 || cfg.irq == -1) { in init_pas2()
421 if (!probe_pas(&cfg)) in init_pas2()
423 attach_pas_card(&cfg); in init_pas2()
430 unload_pas(&cfg); in cleanup_pas2()
Dmsnd_pinnacle.c1473 static int __init msnd_write_cfg(int cfg, int reg, int value) in msnd_write_cfg() argument
1475 msnd_outb(reg, cfg); in msnd_write_cfg()
1476 msnd_outb(value, cfg + 1); in msnd_write_cfg()
1477 if (value != msnd_inb(cfg + 1)) { in msnd_write_cfg()
1484 static int __init msnd_write_cfg_io0(int cfg, int num, WORD io) in msnd_write_cfg_io0() argument
1486 if (msnd_write_cfg(cfg, IREG_LOGDEVICE, num)) in msnd_write_cfg_io0()
1488 if (msnd_write_cfg(cfg, IREG_IO0_BASEHI, HIBYTE(io))) in msnd_write_cfg_io0()
1490 if (msnd_write_cfg(cfg, IREG_IO0_BASELO, LOBYTE(io))) in msnd_write_cfg_io0()
1495 static int __init msnd_write_cfg_io1(int cfg, int num, WORD io) in msnd_write_cfg_io1() argument
1497 if (msnd_write_cfg(cfg, IREG_LOGDEVICE, num)) in msnd_write_cfg_io1()
[all …]
Dtrix.c399 static struct address_info cfg; variable
431 cfg.io_base = io; in init_trix()
432 cfg.irq = irq; in init_trix()
433 cfg.dma = dma; in init_trix()
434 cfg.dma2 = dma2; in init_trix()
443 if (cfg.io_base == -1 || cfg.dma == -1 || cfg.irq == -1) { in init_trix()
468 if (!init_trix_wss(&cfg)) { in init_trix()
496 unload_trix_wss(&cfg); in cleanup_trix()
Dv_midi.c271 static struct address_info cfg; /* dummy */ variable
276 if (!probe_v_midi(&cfg)) in init_vmidi()
278 attach_v_midi(&cfg); in init_vmidi()
285 unload_v_midi(&cfg); in cleanup_vmidi()
/sound/usb/usx2y/
Dus122l.c382 struct usb_stream_config *cfg; in usb_stream_hwdep_ioctl() local
392 cfg = memdup_user((void *)arg, sizeof(*cfg)); in usb_stream_hwdep_ioctl()
393 if (IS_ERR(cfg)) in usb_stream_hwdep_ioctl()
394 return PTR_ERR(cfg); in usb_stream_hwdep_ioctl()
396 if (cfg->version != USB_STREAM_INTERFACE_VERSION) { in usb_stream_hwdep_ioctl()
401 if ((cfg->sample_rate != 44100 && cfg->sample_rate != 48000 && in usb_stream_hwdep_ioctl()
403 (cfg->sample_rate != 88200 && cfg->sample_rate != 96000))) || in usb_stream_hwdep_ioctl()
404 cfg->frame_size != 6 || in usb_stream_hwdep_ioctl()
405 cfg->period_frames > 0x3000) { in usb_stream_hwdep_ioctl()
409 switch (cfg->sample_rate) { in usb_stream_hwdep_ioctl()
[all …]
Dusb_stream.c31 return (sk->out_phase_peeked >> 16) * s->cfg.frame_size; in usb_stream_next_packet_size()
200 sk->s->cfg.version = USB_STREAM_INTERFACE_VERSION; in usb_stream_new()
204 sk->s->cfg.sample_rate = sample_rate; in usb_stream_new()
205 sk->s->cfg.frame_size = frame_size; in usb_stream_new()
208 sk->s->cfg.period_frames = period_frames; in usb_stream_new()
321 if (unlikely(lb % s->cfg.frame_size)) { in usb_stream_prepare_playback()
417 l/(int)s->cfg.frame_size); in loop_back()
474 (s->idle_insize)/(int)s->cfg.frame_size); in stream_idle()
527 s->cfg.frame_size * inurb->number_of_packets; in stream_start()
530 max_diff_0 = s->cfg.frame_size; in stream_start()
[all …]
/sound/soc/codecs/
Darizona.c2015 struct arizona_fll_cfg *cfg, in arizona_calc_fratio() argument
2024 cfg->refdiv = 0; in arizona_calc_fratio()
2028 cfg->refdiv++; in arizona_calc_fratio()
2035 init_ratio = arizona_find_fratio(Fref, &cfg->fratio); in arizona_calc_fratio()
2057 cfg->fratio = init_ratio - 1; in arizona_calc_fratio()
2060 refdiv = cfg->refdiv; in arizona_calc_fratio()
2071 cfg->refdiv = refdiv; in arizona_calc_fratio()
2072 cfg->fratio = ratio - 1; in arizona_calc_fratio()
2097 cfg->refdiv = refdiv; in arizona_calc_fratio()
2098 cfg->fratio = ratio - 1; in arizona_calc_fratio()
[all …]
Dda7219-aad.c688 u8 cfg, mask; in da7219_aad_handle_pdata() local
717 cfg = 0; in da7219_aad_handle_pdata()
724 cfg |= (aad_pdata->mic_det_thr << in da7219_aad_handle_pdata()
728 snd_soc_update_bits(codec, DA7219_ACCDET_CONFIG_1, mask, cfg); in da7219_aad_handle_pdata()
730 cfg = 0; in da7219_aad_handle_pdata()
741 cfg |= (aad_pdata->jack_ins_deb << in da7219_aad_handle_pdata()
750 cfg |= (aad_pdata->jack_det_rate << in da7219_aad_handle_pdata()
759 cfg |= (aad_pdata->jack_rem_deb << in da7219_aad_handle_pdata()
763 snd_soc_update_bits(codec, DA7219_ACCDET_CONFIG_2, mask, cfg); in da7219_aad_handle_pdata()
774 cfg = 0; in da7219_aad_handle_pdata()
[all …]
Dwm8958-dsp2.c214 struct wm8958_mbc_cfg *cfg in wm8958_dsp_start_mbc() local
217 for (i = 0; i < ARRAY_SIZE(cfg->coeff_regs); i++) in wm8958_dsp_start_mbc()
219 cfg->coeff_regs[i]); in wm8958_dsp_start_mbc()
221 for (i = 0; i < ARRAY_SIZE(cfg->cutoff_regs); i++) in wm8958_dsp_start_mbc()
224 cfg->cutoff_regs[i]); in wm8958_dsp_start_mbc()
253 struct wm8958_mbc_cfg *cfg in wm8958_dsp_start_vss() local
256 for (i = 0; i < ARRAY_SIZE(cfg->combined_regs); i++) in wm8958_dsp_start_vss()
258 cfg->combined_regs[i]); in wm8958_dsp_start_vss()
262 struct wm8958_vss_cfg *cfg in wm8958_dsp_start_vss() local
265 for (i = 0; i < ARRAY_SIZE(cfg->regs); i++) in wm8958_dsp_start_vss()
[all …]
/sound/soc/
Dsoc-ac97.c304 struct snd_ac97_reset_cfg *cfg) in snd_soc_ac97_parse_pinctl() argument
316 cfg->pctl = p; in snd_soc_ac97_parse_pinctl()
323 cfg->pstate_reset = state; in snd_soc_ac97_parse_pinctl()
330 cfg->pstate_warm_reset = state; in snd_soc_ac97_parse_pinctl()
337 cfg->pstate_run = state; in snd_soc_ac97_parse_pinctl()
349 cfg->gpio_sync = gpio; in snd_soc_ac97_parse_pinctl()
361 cfg->gpio_sdata = gpio; in snd_soc_ac97_parse_pinctl()
373 cfg->gpio_reset = gpio; in snd_soc_ac97_parse_pinctl()
406 struct snd_ac97_reset_cfg cfg; in snd_soc_set_ac97_ops_of_reset() local
409 ret = snd_soc_ac97_parse_pinctl(dev, &cfg); in snd_soc_set_ac97_ops_of_reset()
[all …]
/sound/soc/au1x/
Di2sc.c87 c = ctx->cfg; in au1xi2s_set_fmt()
130 ctx->cfg = c; in au1xi2s_set_fmt()
147 ctx->cfg |= (stype == PCM_TX) ? CFG_TN : CFG_RN; in au1xi2s_trigger()
148 WR(ctx, I2S_CFG, ctx->cfg); in au1xi2s_trigger()
152 ctx->cfg &= ~((stype == PCM_TX) ? CFG_TN : CFG_RN); in au1xi2s_trigger()
153 WR(ctx, I2S_CFG, ctx->cfg); in au1xi2s_trigger()
191 ctx->cfg &= ~CFG_SZ_MASK; in au1xi2s_hw_params()
192 ctx->cfg |= v; in au1xi2s_hw_params()
Dac97c.c158 WR(ctx, AC97_CONFIG, ctx->cfg | CFG_SG | CFG_SN); in au1xac97c_ac97_warm_reset()
160 WR(ctx, AC97_CONFIG, ctx->cfg | CFG_SG); in au1xac97c_ac97_warm_reset()
161 WR(ctx, AC97_CONFIG, ctx->cfg); in au1xac97c_ac97_warm_reset()
169 WR(ctx, AC97_CONFIG, ctx->cfg | CFG_RS); in au1xac97c_ac97_cold_reset()
171 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()
Dpsc-i2s.c63 ct = pscdata->cfg; in au1xpsc_i2s_set_fmt()
107 pscdata->cfg = ct; in au1xpsc_i2s_set_fmt()
132 pscdata->cfg &= ~(0x1f << 4); in au1xpsc_i2s_hw_params()
133 pscdata->cfg |= PSC_I2SCFG_SET_LEN(params->msbits); in au1xpsc_i2s_hw_params()
164 __raw_writel(pscdata->cfg | PSC_I2SCFG_DE_ENABLE, I2S_CFG(pscdata)); in au1xpsc_i2s_configure()
332 wd->cfg |= PSC_I2SCFG_RT_FIFO8 | PSC_I2SCFG_TT_FIFO8; in au1xpsc_i2s_drvprobe()
/sound/soc/blackfin/
Dbf6xx-sport.c124 size_t fragsize, unsigned int cfg, in setup_desc() argument
133 desc[i].cfg = cfg; in setup_desc()
148 unsigned int cfg; in sport_config_tx_dma() local
166 cfg = DMAFLOW_LIST | DI_EN | compute_wdsize(sport->wdsize) | NDSIZE_6; in sport_config_tx_dma()
169 cfg|DMAEN, count, sport->wdsize); in sport_config_tx_dma()
179 unsigned int cfg; in sport_config_rx_dma() local
197 cfg = DMAFLOW_LIST | DI_EN | compute_wdsize(sport->wdsize) in sport_config_rx_dma()
201 cfg|DMAEN, count, sport->wdsize); in sport_config_rx_dma()

123