/sound/i2c/l3/ |
D | uda1341.c | 147 uda1341_cfg cfg; member 251 uda->cfg[what] = value; in snd_uda1341_cfg_write() 258 uda->cfg[CMD_RESET]=0; in snd_uda1341_cfg_write() 329 uda->suspend_cfg[reg] = uda->cfg[reg]; in snd_uda1341_cfg_write() 335 uda->cfg[reg] = uda->suspend_cfg[reg]; in snd_uda1341_cfg_write() 441 snd_iprintf(buffer, "DAC power : %s\n", uda->cfg[CMD_DAC] ? "on" : "off"); in snd_uda1341_proc_read() 442 snd_iprintf(buffer, "ADC power : %s\n", uda->cfg[CMD_ADC] ? "on" : "off"); in snd_uda1341_proc_read() 443 snd_iprintf(buffer, "Clock frequency : %s\n", fs_names[uda->cfg[CMD_FS]]); in snd_uda1341_proc_read() 444 snd_iprintf(buffer, "Data format : %s\n\n", format_names[uda->cfg[CMD_FORMAT]]); in snd_uda1341_proc_read() 446 snd_iprintf(buffer, "Filter mode : %s\n", filter_names[uda->cfg[CMD_FILTER]]); in snd_uda1341_proc_read() [all …]
|
/sound/pci/hda/ |
D | hda_codec.c | 94 const char *snd_hda_get_jack_location(u32 cfg) in snd_hda_get_jack_location() argument 110 cfg = (cfg & AC_DEFCFG_LOCATION) >> AC_DEFCFG_LOCATION_SHIFT; in snd_hda_get_jack_location() 111 if ((cfg & 0x0f) < 7) in snd_hda_get_jack_location() 112 return bases[cfg & 0x0f]; in snd_hda_get_jack_location() 114 if (cfg == specials_idx[i]) in snd_hda_get_jack_location() 121 const char *snd_hda_get_jack_connectivity(u32 cfg) in snd_hda_get_jack_connectivity() argument 125 return jack_locations[(cfg >> (AC_DEFCFG_LOCATION_SHIFT + 4)) & 3]; in snd_hda_get_jack_connectivity() 129 const char *snd_hda_get_jack_type(u32 cfg) in snd_hda_get_jack_type() argument 138 return jack_types[(cfg & AC_DEFCFG_DEVICE) in snd_hda_get_jack_type() 3296 struct auto_pin_cfg *cfg, in snd_hda_parse_pin_def_config() argument [all …]
|
D | patch_cmedia.c | 348 static int cmi9880_fill_multi_dac_nids(struct hda_codec *codec, const struct auto_pin_cfg *cfg) in cmi9880_fill_multi_dac_nids() argument 359 for (i = 0; i < cfg->line_outs; i++) { in cmi9880_fill_multi_dac_nids() 360 nid = cfg->line_out_pins[i]; in cmi9880_fill_multi_dac_nids() 368 for (i = 0; i < cfg->line_outs; i++) { in cmi9880_fill_multi_dac_nids() 369 nid = cfg->line_out_pins[i]; in cmi9880_fill_multi_dac_nids() 373 for (j = 0; j < cfg->line_outs; j++) { in cmi9880_fill_multi_dac_nids() 381 spec->num_dacs = cfg->line_outs; in cmi9880_fill_multi_dac_nids() 386 static int cmi9880_fill_multi_init(struct hda_codec *codec, const struct auto_pin_cfg *cfg) in cmi9880_fill_multi_init() argument 394 for (j = 0, i = 0; i < cfg->line_outs; i++) { in cmi9880_fill_multi_init() 396 nid = cfg->line_out_pins[i]; in cmi9880_fill_multi_init() [all …]
|
D | patch_via.c | 1082 const struct auto_pin_cfg *cfg) in vt1708_auto_fill_dac_nids() argument 1087 spec->multiout.num_dacs = cfg->line_outs; in vt1708_auto_fill_dac_nids() 1092 nid = cfg->line_out_pins[i]; in vt1708_auto_fill_dac_nids() 1117 const struct auto_pin_cfg *cfg) in vt1708_auto_create_multi_out_ctls() argument 1125 nid = cfg->line_out_pins[i]; in vt1708_auto_create_multi_out_ctls() 1251 const struct auto_pin_cfg *cfg) in vt1708_auto_create_analog_input_ctls() argument 1265 if (!cfg->input_pins[i]) in vt1708_auto_create_analog_input_ctls() 1268 switch (cfg->input_pins[i]) { in vt1708_auto_create_analog_input_ctls() 1285 err = via_new_analog_input(spec, cfg->input_pins[i], labels[i], in vt1708_auto_create_analog_input_ctls() 1561 const struct auto_pin_cfg *cfg) in vt1709_auto_fill_dac_nids() argument [all …]
|
D | patch_sigmatel.c | 1238 struct auto_pin_cfg *cfg = &spec->autocfg; in stac92xx_build_controls() local 1313 for (i = 0; i < cfg->hp_outs; i++) { in stac92xx_build_controls() 1315 nid = cfg->hp_pins[i]; in stac92xx_build_controls() 1317 if (cfg->hp_outs == i) in stac92xx_build_controls() 1324 for (i = 0; i < cfg->line_outs; i++) { in stac92xx_build_controls() 1325 err = stac92xx_add_jack(codec, cfg->line_out_pins[i], in stac92xx_build_controls() 1331 nid = cfg->input_pins[i]; in stac92xx_build_controls() 2369 unsigned int cfg) in stac_change_pin_config() argument 2376 spec->pin_configs[i] = cfg; in stac_change_pin_config() 2377 stac92xx_set_config_reg(codec, nid, cfg); in stac_change_pin_config() [all …]
|
D | hda_local.h | 362 #define get_defcfg_connect(cfg) \ argument 363 ((cfg & AC_DEFCFG_PORT_CONN) >> AC_DEFCFG_PORT_CONN_SHIFT) 364 #define get_defcfg_association(cfg) \ argument 365 ((cfg & AC_DEFCFG_DEF_ASSOC) >> AC_DEFCFG_ASSOC_SHIFT) 366 #define get_defcfg_location(cfg) \ argument 367 ((cfg & AC_DEFCFG_LOCATION) >> AC_DEFCFG_LOCATION_SHIFT) 368 #define get_defcfg_sequence(cfg) \ argument 369 (cfg & AC_DEFCFG_SEQUENCE) 370 #define get_defcfg_device(cfg) \ argument 371 ((cfg & AC_DEFCFG_DEVICE) >> AC_DEFCFG_DEVICE_SHIFT) [all …]
|
D | hda_proc.c | 138 static const char *get_jack_connection(u32 cfg) in get_jack_connection() argument 146 cfg = (cfg & AC_DEFCFG_CONN_TYPE) >> AC_DEFCFG_CONN_TYPE_SHIFT; in get_jack_connection() 147 if (names[cfg]) in get_jack_connection() 148 return names[cfg]; in get_jack_connection() 153 static const char *get_jack_color(u32 cfg) in get_jack_color() argument 161 cfg = (cfg & AC_DEFCFG_COLOR) >> AC_DEFCFG_COLOR_SHIFT; in get_jack_color() 162 if (names[cfg]) in get_jack_color() 163 return names[cfg]; in get_jack_color()
|
D | patch_realtek.c | 1162 const struct alc_pincfg *cfg; in alc_fix_pincfg() local 1168 cfg = pinfix[quirk->value]; in alc_fix_pincfg() 1169 for (; cfg->nid; cfg++) { in alc_fix_pincfg() 1171 u32 val = cfg->val; in alc_fix_pincfg() 1173 snd_hda_codec_write(codec, cfg->nid, 0, in alc_fix_pincfg() 3954 const struct auto_pin_cfg *cfg) in alc880_auto_fill_dac_nids() argument 3964 for (i = 0; i < cfg->line_outs; i++) { in alc880_auto_fill_dac_nids() 3965 nid = cfg->line_out_pins[i]; in alc880_auto_fill_dac_nids() 3973 for (i = 0; i < cfg->line_outs; i++) { in alc880_auto_fill_dac_nids() 3974 nid = cfg->line_out_pins[i]; in alc880_auto_fill_dac_nids() [all …]
|
/sound/usb/usx2y/ |
D | us122l.c | 343 struct usb_stream_config *cfg; in usb_stream_hwdep_ioctl() local 352 cfg = kmalloc(sizeof(*cfg), GFP_KERNEL); in usb_stream_hwdep_ioctl() 353 if (!cfg) in usb_stream_hwdep_ioctl() 356 if (copy_from_user(cfg, (void *)arg, sizeof(*cfg))) { in usb_stream_hwdep_ioctl() 360 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() 373 switch (cfg->sample_rate) { in usb_stream_hwdep_ioctl() [all …]
|
D | usb_stream.c | 30 return (sk->out_phase_peeked >> 16) * s->cfg.frame_size; in usb_stream_next_packet_size() 205 sk->s->cfg.version = USB_STREAM_INTERFACE_VERSION; in usb_stream_new() 209 sk->s->cfg.sample_rate = sample_rate; in usb_stream_new() 210 sk->s->cfg.frame_size = frame_size; in usb_stream_new() 213 sk->s->cfg.period_frames = period_frames; in usb_stream_new() 327 if (io->transfer_buffer_length % s->cfg.frame_size) { in usb_stream_prepare_playback() 422 l/(int)s->cfg.frame_size); in loop_back() 479 (s->idle_insize)/(int)s->cfg.frame_size); in stream_idle() 532 s->cfg.frame_size * inurb->number_of_packets; in stream_start() 535 max_diff_0 = s->cfg.frame_size; in stream_start() [all …]
|
/sound/oss/ |
D | pas2_card.c | 59 static struct address_info cfg; variable 405 cfg.io_base = io; in init_pas2() 406 cfg.irq = irq; in init_pas2() 407 cfg.dma = dma; in init_pas2() 408 cfg.dma2 = dma16; in init_pas2() 415 if (cfg.io_base == -1 || cfg.dma == -1 || cfg.irq == -1) { in init_pas2() 420 if (!probe_pas(&cfg)) in init_pas2() 422 attach_pas_card(&cfg); in init_pas2() 429 unload_pas(&cfg); in cleanup_pas2()
|
D | msnd_pinnacle.c | 1450 static int __init msnd_write_cfg(int cfg, int reg, int value) in msnd_write_cfg() argument 1452 msnd_outb(reg, cfg); in msnd_write_cfg() 1453 msnd_outb(value, cfg + 1); in msnd_write_cfg() 1454 if (value != msnd_inb(cfg + 1)) { in msnd_write_cfg() 1461 static int __init msnd_write_cfg_io0(int cfg, int num, WORD io) in msnd_write_cfg_io0() argument 1463 if (msnd_write_cfg(cfg, IREG_LOGDEVICE, num)) in msnd_write_cfg_io0() 1465 if (msnd_write_cfg(cfg, IREG_IO0_BASEHI, HIBYTE(io))) in msnd_write_cfg_io0() 1467 if (msnd_write_cfg(cfg, IREG_IO0_BASELO, LOBYTE(io))) in msnd_write_cfg_io0() 1472 static int __init msnd_write_cfg_io1(int cfg, int num, WORD io) in msnd_write_cfg_io1() argument 1474 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 | 270 static struct address_info cfg; /* dummy */ variable 275 if (!probe_v_midi(&cfg)) in init_vmidi() 277 attach_v_midi(&cfg); in init_vmidi() 284 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))) { 1790 unsigned char cfg, tmp; local 1792 cfg = ess_getmixer (devc, 0x40) & 0x03; 1795 ess_setmixer (devc, 0x40, cfg | 0x03); /* Enable OPL3 & joystick */ 1801 ess_setmixer (devc, 0x40, cfg); [all …]
|
D | sscape.c | 1387 static struct address_info cfg; variable 1410 cfg.irq = irq; in init_sscape() 1411 cfg.dma = dma; in init_sscape() 1412 cfg.io_base = io; in init_sscape() 1419 devc->codec = cfg.io_base; in init_sscape() 1420 devc->codec_irq = cfg.irq; in init_sscape() 1426 if (cfg.dma == -1 || cfg.irq == -1 || cfg.io_base == -1) { in init_sscape() 1446 mss = init_ss_ms_sound(&cfg); in init_sscape() 1454 unload_ss_ms_sound(&cfg); in cleanup_sscape()
|
D | vidc.c | 538 static struct address_info cfg; variable 542 if (probe_vidc(&cfg) == 0) in init_vidc() 545 attach_vidc(&cfg); in init_vidc() 552 unload_vidc(&cfg); in cleanup_vidc()
|
D | pss.c | 1125 static struct address_info cfg; variable 1180 cfg.io_base = pss_io; in init_pss() 1181 if(!probe_pss(&cfg)) in init_pss() 1192 cfg.io_base = pss_io; in init_pss() 1201 if (cfg.io_base == -1 || cfg2.io_base == -1 || cfg2.irq == -1 || cfg.dma == -1) { in init_pss() 1210 if (!attach_pss(&cfg)) in init_pss() 1234 unload_pss(&cfg); in cleanup_pss()
|
D | waveartist.c | 1952 static struct address_info cfg; variable 1984 cfg.io_base = io; in init_waveartist() 1985 cfg.irq = irq; in init_waveartist() 1986 cfg.dma = dma; in init_waveartist() 1987 cfg.dma2 = dma2; in init_waveartist() 1989 if (!probe_waveartist(&cfg)) in init_waveartist() 1992 attach_waveartist(&cfg, mix); in init_waveartist() 2001 unload_waveartist(&cfg); in cleanup_waveartist()
|
/sound/soc/au1x/ |
D | psc-i2s.c | 68 ct = pscdata->cfg; in au1xpsc_i2s_set_fmt() 112 pscdata->cfg = ct; in au1xpsc_i2s_set_fmt() 137 pscdata->cfg &= ~(0x1f << 4); in au1xpsc_i2s_hw_params() 138 pscdata->cfg |= PSC_I2SCFG_SET_LEN(params->msbits); in au1xpsc_i2s_hw_params() 169 au_writel(pscdata->cfg | PSC_I2SCFG_DE_ENABLE, I2S_CFG(pscdata)); in au1xpsc_i2s_configure() 308 au1xpsc_i2s_workdata->cfg |= in au1xpsc_i2s_probe()
|
D | psc-ac97.c | 142 au_writel(pscdata->cfg | PSC_AC97CFG_DE_ENABLE, AC97_CFG(pscdata)); in au1xpsc_ac97_cold_reset() 206 pscdata->cfg = r; in au1xpsc_ac97_hw_params() 272 au1xpsc_ac97_workdata->cfg = PSC_AC97CFG_RT_FIFO8 | in au1xpsc_ac97_probe()
|
D | psc.h | 27 unsigned long cfg; member
|
/sound/soc/blackfin/ |
D | bf5xx-sport.c | 129 size_t fragsize, unsigned int cfg, in setup_desc() argument 138 desc[i].cfg = cfg; in setup_desc() 153 desc[0].start_addr, desc[0].cfg); in setup_desc() 407 unsigned int cfg; in sport_config_rx_dma() local 454 cfg = 0x7000 | DI_EN | compute_wdsize(sport->wdsize) | WNR | \ in sport_config_rx_dma() 458 cfg |= DMA2D; in sport_config_rx_dma() 461 cfg|DMAEN, x_count, y_count, sport->wdsize); in sport_config_rx_dma() 472 unsigned int cfg; in sport_config_tx_dma() local 518 cfg = 0x7000 | DI_EN | compute_wdsize(sport->wdsize) | \ in sport_config_tx_dma() 522 cfg |= DMA2D; in sport_config_tx_dma() [all …]
|
/sound/isa/es1688/ |
D | es1688_lib.c | 197 int cfg, irq_bits, dma, dma_bits, tmp, tmp1; in snd_es1688_init() local 200 cfg = 0x01; /* enable joystick, but disable OPL3 */ in snd_es1688_init() 221 cfg |= (tmp << 3) | (tmp1 << 5); in snd_es1688_init() 226 snd_printk("mpu cfg = 0x%x\n", cfg); in snd_es1688_init() 229 snd_es1688_mixer_write(chip, 0x40, cfg); in snd_es1688_init() 237 cfg = 0xf0; /* enable only DMA counter interrupt */ in snd_es1688_init() 243 cfg = 0x10; in snd_es1688_init() 248 snd_es1688_write(chip, 0xb1, cfg | (irq_bits << 2)); in snd_es1688_init() 250 cfg = 0xf0; /* extended mode DMA enable */ in snd_es1688_init() 256 cfg = 0x00; /* disable all DMA */ in snd_es1688_init() [all …]
|
/sound/usb/ |
D | usbaudio.h | 244 #define get_cfg_desc(cfg) (&(cfg)->desc) argument
|