/sound/pci/hda/ |
D | hda_auto_parser.c | 62 static void add_auto_cfg_input_pin(struct auto_pin_cfg *cfg, hda_nid_t nid, in add_auto_cfg_input_pin() argument 65 if (cfg->num_inputs < AUTO_CFG_MAX_INS) { in add_auto_cfg_input_pin() 66 cfg->inputs[cfg->num_inputs].pin = nid; in add_auto_cfg_input_pin() 67 cfg->inputs[cfg->num_inputs].type = type; in add_auto_cfg_input_pin() 68 cfg->num_inputs++; in add_auto_cfg_input_pin() 166 struct auto_pin_cfg *cfg, in snd_hda_parse_pin_defcfg() argument 172 struct auto_out_pin line_out[ARRAY_SIZE(cfg->line_out_pins)]; in snd_hda_parse_pin_defcfg() 173 struct auto_out_pin speaker_out[ARRAY_SIZE(cfg->speaker_pins)]; in snd_hda_parse_pin_defcfg() 174 struct auto_out_pin hp_out[ARRAY_SIZE(cfg->hp_pins)]; in snd_hda_parse_pin_defcfg() 180 memset(cfg, 0, sizeof(*cfg)); in snd_hda_parse_pin_defcfg() [all …]
|
D | hda_auto_parser.h | 45 const struct auto_pin_cfg *cfg, 48 const struct auto_pin_cfg *cfg, 89 struct auto_pin_cfg *cfg, 94 #define snd_hda_parse_pin_def_config(codec, cfg, ignore) \ argument 95 snd_hda_parse_pin_defcfg(codec, cfg, ignore, 0) 97 static inline int auto_cfg_hp_outs(const struct auto_pin_cfg *cfg) in auto_cfg_hp_outs() argument 99 return (cfg->line_out_type == AUTO_PIN_HP_OUT) ? in auto_cfg_hp_outs() 100 cfg->line_outs : cfg->hp_outs; in auto_cfg_hp_outs() 102 static inline const hda_nid_t *auto_cfg_hp_pins(const struct auto_pin_cfg *cfg) in auto_cfg_hp_pins() argument 104 return (cfg->line_out_type == AUTO_PIN_HP_OUT) ? in auto_cfg_hp_pins() [all …]
|
D | hda_generic.c | 941 struct auto_pin_cfg *cfg = &spec->autocfg; in get_line_out_pfx() local 944 if (cfg->line_outs == 1 && !spec->multi_ios && in get_line_out_pfx() 945 !cfg->hp_outs && !cfg->speaker_outs) in get_line_out_pfx() 956 if (ch >= cfg->line_outs) in get_line_out_pfx() 959 switch (cfg->line_out_type) { in get_line_out_pfx() 964 if (!ch && cfg->hp_outs && in get_line_out_pfx() 967 if (cfg->line_outs == 1) in get_line_out_pfx() 969 if (cfg->line_outs == 2) in get_line_out_pfx() 976 if (!ch && cfg->speaker_outs && in get_line_out_pfx() 987 if (cfg->line_outs == 1 && !spec->multi_ios) in get_line_out_pfx() [all …]
|
D | hda_jack.c | 397 const struct auto_pin_cfg *cfg, in add_jack_kctl() argument 418 snd_hda_get_pin_label(codec, nid, cfg, name, sizeof(name), &idx); in add_jack_kctl() 436 const struct auto_pin_cfg *cfg) in snd_hda_jack_add_kctls() argument 441 for (i = 0; i < cfg->num_inputs; i++) { in snd_hda_jack_add_kctls() 444 if (cfg->inputs[i].is_headphone_mic) { in snd_hda_jack_add_kctls() 445 if (auto_cfg_hp_outs(cfg) == 1) in snd_hda_jack_add_kctls() 446 err = add_jack_kctl(codec, auto_cfg_hp_pins(cfg)[0], in snd_hda_jack_add_kctls() 447 cfg, "Headphone Mic"); in snd_hda_jack_add_kctls() 449 err = add_jack_kctl(codec, cfg->inputs[i].pin, in snd_hda_jack_add_kctls() 450 cfg, "Headphone Mic"); in snd_hda_jack_add_kctls() [all …]
|
D | hda_local.h | 436 const struct hda_pintbl *cfg); 460 #define get_defcfg_connect(cfg) \ argument 461 ((cfg & AC_DEFCFG_PORT_CONN) >> AC_DEFCFG_PORT_CONN_SHIFT) 462 #define get_defcfg_association(cfg) \ argument 463 ((cfg & AC_DEFCFG_DEF_ASSOC) >> AC_DEFCFG_ASSOC_SHIFT) 464 #define get_defcfg_location(cfg) \ argument 465 ((cfg & AC_DEFCFG_LOCATION) >> AC_DEFCFG_LOCATION_SHIFT) 466 #define get_defcfg_sequence(cfg) \ argument 467 (cfg & AC_DEFCFG_SEQUENCE) 468 #define get_defcfg_device(cfg) \ argument [all …]
|
D | hda_proc.c | 209 static const char *get_jack_connection(u32 cfg) in get_jack_connection() argument 217 cfg = (cfg & AC_DEFCFG_CONN_TYPE) >> AC_DEFCFG_CONN_TYPE_SHIFT; in get_jack_connection() 218 if (names[cfg]) in get_jack_connection() 219 return names[cfg]; in get_jack_connection() 224 static const char *get_jack_color(u32 cfg) in get_jack_color() argument 232 cfg = (cfg & AC_DEFCFG_COLOR) >> AC_DEFCFG_COLOR_SHIFT; in get_jack_color() 233 if (names[cfg]) in get_jack_color() 234 return names[cfg]; in get_jack_color()
|
/sound/isa/msnd/ |
D | msnd_pinnacle.c | 652 static int snd_msnd_write_cfg(int cfg, int reg, int value) in snd_msnd_write_cfg() argument 654 outb(reg, cfg); in snd_msnd_write_cfg() 655 outb(value, cfg + 1); in snd_msnd_write_cfg() 656 if (value != inb(cfg + 1)) { in snd_msnd_write_cfg() 663 static int snd_msnd_write_cfg_io0(int cfg, int num, u16 io) in snd_msnd_write_cfg_io0() argument 665 if (snd_msnd_write_cfg(cfg, IREG_LOGDEVICE, num)) in snd_msnd_write_cfg_io0() 667 if (snd_msnd_write_cfg(cfg, IREG_IO0_BASEHI, HIBYTE(io))) in snd_msnd_write_cfg_io0() 669 if (snd_msnd_write_cfg(cfg, IREG_IO0_BASELO, LOBYTE(io))) in snd_msnd_write_cfg_io0() 674 static int snd_msnd_write_cfg_io1(int cfg, int num, u16 io) in snd_msnd_write_cfg_io1() argument 676 if (snd_msnd_write_cfg(cfg, IREG_LOGDEVICE, num)) in snd_msnd_write_cfg_io1() [all …]
|
/sound/isa/ |
D | sc6000.c | 284 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 …]
|
D | cmi8328.c | 74 u8 cfg[3]; member 129 static void snd_cmi8328_cfg_save(u16 port, u8 cfg[]) in snd_cmi8328_cfg_save() argument 131 cfg[0] = snd_cmi8328_cfg_read(port, CFG1); in snd_cmi8328_cfg_save() 132 cfg[1] = snd_cmi8328_cfg_read(port, CFG2); in snd_cmi8328_cfg_save() 133 cfg[2] = snd_cmi8328_cfg_read(port, CFG3); in snd_cmi8328_cfg_save() 136 static void snd_cmi8328_cfg_restore(u16 port, u8 cfg[]) in snd_cmi8328_cfg_restore() argument 138 snd_cmi8328_cfg_write(port, CFG1, cfg[0]); in snd_cmi8328_cfg_restore() 139 snd_cmi8328_cfg_write(port, CFG2, cfg[1]); in snd_cmi8328_cfg_restore() 140 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 …]
|
D | sscape.c | 690 unsigned cfg; in get_irq_config() local 693 for (cfg = 0; cfg < ARRAY_SIZE(old_irq); ++cfg) in get_irq_config() 694 if (irq == old_irq[cfg]) in get_irq_config() 695 return cfg; in get_irq_config() 697 for (cfg = 0; cfg < ARRAY_SIZE(valid_irq); ++cfg) in get_irq_config() 698 if (irq == valid_irq[cfg]) in get_irq_config() 699 return cfg; in get_irq_config()
|
/sound/oss/ |
D | pas2_card.c | 59 static struct address_info cfg; variable 408 cfg.io_base = io; in init_pas2() 409 cfg.irq = irq; in init_pas2() 410 cfg.dma = dma; in init_pas2() 411 cfg.dma2 = dma16; in init_pas2() 418 if (cfg.io_base == -1 || cfg.dma == -1 || cfg.irq == -1) { in init_pas2() 423 if (!probe_pas(&cfg)) in init_pas2() 425 attach_pas_card(&cfg); in init_pas2() 432 unload_pas(&cfg); in cleanup_pas2()
|
D | msnd_pinnacle.c | 1469 static int __init msnd_write_cfg(int cfg, int reg, int value) in msnd_write_cfg() argument 1471 msnd_outb(reg, cfg); in msnd_write_cfg() 1472 msnd_outb(value, cfg + 1); in msnd_write_cfg() 1473 if (value != msnd_inb(cfg + 1)) { in msnd_write_cfg() 1480 static int __init msnd_write_cfg_io0(int cfg, int num, WORD io) in msnd_write_cfg_io0() argument 1482 if (msnd_write_cfg(cfg, IREG_LOGDEVICE, num)) in msnd_write_cfg_io0() 1484 if (msnd_write_cfg(cfg, IREG_IO0_BASEHI, HIBYTE(io))) in msnd_write_cfg_io0() 1486 if (msnd_write_cfg(cfg, IREG_IO0_BASELO, LOBYTE(io))) in msnd_write_cfg_io0() 1491 static int __init msnd_write_cfg_io1(int cfg, int num, WORD io) in msnd_write_cfg_io1() argument 1493 if (msnd_write_cfg(cfg, IREG_LOGDEVICE, num)) in msnd_write_cfg_io1() [all …]
|
D | trix.c | 399 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()
|
D | v_midi.c | 271 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()
|
D | sb_ess.c | 1019 unsigned char cfg; local 1225 cfg = ess_getmixer (devc, 0x40); 1226 ess_setmixer (devc, 0x40, cfg | 0x03); 1241 unsigned char cfg, dma_bits = 0, dma16_bits; local 1260 cfg = 0x50; 1269 if (!ess_write (devc, 0xb2, cfg | (dma_bits << 2))) { 1789 unsigned char cfg, tmp; local 1791 cfg = ess_getmixer (devc, 0x40) & 0x03; 1794 ess_setmixer (devc, 0x40, cfg | 0x03); /* Enable OPL3 & joystick */ 1800 ess_setmixer (devc, 0x40, cfg); [all …]
|
/sound/usb/usx2y/ |
D | us122l.c | 380 struct usb_stream_config *cfg; in usb_stream_hwdep_ioctl() local 390 cfg = memdup_user((void *)arg, sizeof(*cfg)); in usb_stream_hwdep_ioctl() 391 if (IS_ERR(cfg)) in usb_stream_hwdep_ioctl() 392 return PTR_ERR(cfg); in usb_stream_hwdep_ioctl() 394 if (cfg->version != USB_STREAM_INTERFACE_VERSION) { in usb_stream_hwdep_ioctl() 399 if ((cfg->sample_rate != 44100 && cfg->sample_rate != 48000 && in usb_stream_hwdep_ioctl() 401 (cfg->sample_rate != 88200 && cfg->sample_rate != 96000))) || in usb_stream_hwdep_ioctl() 402 cfg->frame_size != 6 || in usb_stream_hwdep_ioctl() 403 cfg->period_frames > 0x3000) { in usb_stream_hwdep_ioctl() 407 switch (cfg->sample_rate) { in usb_stream_hwdep_ioctl() [all …]
|
D | usb_stream.c | 31 return (sk->out_phase_peeked >> 16) * s->cfg.frame_size; in usb_stream_next_packet_size() 199 sk->s->cfg.version = USB_STREAM_INTERFACE_VERSION; in usb_stream_new() 203 sk->s->cfg.sample_rate = sample_rate; in usb_stream_new() 204 sk->s->cfg.frame_size = frame_size; in usb_stream_new() 207 sk->s->cfg.period_frames = period_frames; in usb_stream_new() 319 if (unlikely(lb % s->cfg.frame_size)) { in usb_stream_prepare_playback() 415 l/(int)s->cfg.frame_size); in loop_back() 472 (s->idle_insize)/(int)s->cfg.frame_size); in stream_idle() 525 s->cfg.frame_size * inurb->number_of_packets; in stream_start() 528 max_diff_0 = s->cfg.frame_size; in stream_start() [all …]
|
/sound/soc/codecs/ |
D | arizona.c | 1256 struct arizona_fll_cfg *cfg, in arizona_calc_fll() argument 1267 cfg->refdiv = 0; in arizona_calc_fll() 1270 cfg->refdiv++; in arizona_calc_fll() 1294 cfg->outdiv = div; in arizona_calc_fll() 1301 cfg->fratio = fll_fratios[i].fratio; in arizona_calc_fll() 1314 cfg->gain = fll_gains[i].gain; in arizona_calc_fll() 1324 cfg->n = target / (ratio * Fref); in arizona_calc_fll() 1330 cfg->theta = (target - (cfg->n * ratio * Fref)) in arizona_calc_fll() 1332 cfg->lambda = (ratio * Fref) / gcd_fll; in arizona_calc_fll() 1334 cfg->theta = 0; in arizona_calc_fll() [all …]
|
D | wm8958-dsp2.c | 214 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/au1x/ |
D | i2sc.c | 87 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()
|
D | ac97c.c | 158 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() 270 ctx->cfg = CFG_RC(3) | CFG_XS(3); in au1xac97c_drvprobe() 271 WR(ctx, AC97_CONFIG, ctx->cfg); in au1xac97c_drvprobe() 313 WR(ctx, AC97_CONFIG, ctx->cfg); in au1xac97c_drvresume()
|
D | psc-i2s.c | 63 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 au_writel(pscdata->cfg | PSC_I2SCFG_DE_ENABLE, I2S_CFG(pscdata)); in au1xpsc_i2s_configure() 343 wd->cfg |= PSC_I2SCFG_RT_FIFO8 | PSC_I2SCFG_TT_FIFO8; in au1xpsc_i2s_drvprobe()
|
/sound/soc/blackfin/ |
D | bf6xx-sport.c | 124 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()
|
D | bf5xx-sport.c | 128 size_t fragsize, unsigned int cfg, in setup_desc() argument 137 desc[i].cfg = cfg; in setup_desc() 152 desc[0].start_addr, desc[0].cfg); in setup_desc() 394 unsigned int cfg; in sport_config_rx_dma() local 441 cfg = 0x7000 | DI_EN | compute_wdsize(sport->wdsize) | WNR | \ in sport_config_rx_dma() 445 cfg |= DMA2D; in sport_config_rx_dma() 448 cfg|DMAEN, x_count, y_count, sport->wdsize); in sport_config_rx_dma() 459 unsigned int cfg; in sport_config_tx_dma() local 505 cfg = 0x7000 | DI_EN | compute_wdsize(sport->wdsize) | \ in sport_config_tx_dma() 509 cfg |= DMA2D; in sport_config_tx_dma() [all …]
|
/sound/usb/ |
D | helper.h | 24 #define get_cfg_desc(cfg) (&(cfg)->desc) argument
|