/linux-6.3-rc2/include/sound/ |
A D | emu8000_reg.h | 31 snd_emu8000_peek_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(0, (chan))) 45 snd_emu8000_peek_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 9)) 47 snd_emu8000_peek_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 10)) 49 snd_emu8000_peek_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 13)) 51 snd_emu8000_peek_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 20)) 59 snd_emu8000_peek((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 26)) 61 snd_emu8000_peek((emu), EMU8000_DATA2(emu), EMU8000_CMD(1, 26)) 63 snd_emu8000_peek((emu), EMU8000_DATA2(emu), EMU8000_CMD(1, 27)) 65 snd_emu8000_peek((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 29)) 67 snd_emu8000_peek((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 30)) [all …]
|
/linux-6.3-rc2/sound/pci/emu10k1/ |
A D | emu10k1_main.c | 299 (emu->model == 0x21 && emu->revision < 6)) in snd_emu10k1_init() 580 snd_emu10k1_ecard_write(emu, emu->ecard_ctrl); in snd_emu10k1_ecard_setadcgain() 615 snd_emu10k1_ecard_write(emu, emu->ecard_ctrl); in snd_emu10k1_ecard_init() 1885 if (!emu->page_ptr_table || !emu->page_addr_table) in snd_emu10k1_create() 1959 emu->spdif_bits[0] = emu->spdif_bits[1] = in snd_emu10k1_create() 1974 emu->voices[idx].emu = emu; in snd_emu10k1_create() 2057 emu->saved_a_iocfg = inl(emu->port + A_IOCFG); in snd_emu10k1_suspend_regs() 2058 emu->saved_hcfg = inl(emu->port + HCFG); in snd_emu10k1_suspend_regs() 2071 snd_emu10k1_init(emu, emu->enable_ir, 1); in snd_emu10k1_resume_init() 2084 outl(emu->saved_a_iocfg, emu->port + A_IOCFG); in snd_emu10k1_resume_regs() [all …]
|
A D | io.c | 38 outl(regptr, emu->port + PTR); in snd_emu10k1_ptr_read() 39 val = inl(emu->port + DATA); in snd_emu10k1_ptr_read() 45 outl(regptr, emu->port + PTR); in snd_emu10k1_ptr_read() 46 val = inl(emu->port + DATA); in snd_emu10k1_ptr_read() 60 if (snd_BUG_ON(!emu)) in snd_emu10k1_ptr_write() 76 outl(data, emu->port + DATA); in snd_emu10k1_ptr_write() 81 outl(data, emu->port + DATA); in snd_emu10k1_ptr_write() 129 spin_lock(&emu->spi_lock); in snd_emu10k1_spi_write() 169 spin_unlock(&emu->spi_lock); in snd_emu10k1_spi_write() 190 spin_lock(&emu->i2c_lock); in snd_emu10k1_i2c_write() [all …]
|
A D | emumpu401.c | 18 if (emu->audigy) in mpu401_read() 35 #define mpu401_read_data(emu, mpu) mpu401_read(emu, mpu, 0) argument 97 do_emu10k1_midi_interrupt(emu, &emu->midi, status); in snd_emu10k1_midi_interrupt() 102 do_emu10k1_midi_interrupt(emu, &emu->midi2, status); in snd_emu10k1_midi_interrupt2() 147 emu = midi->emu; in snd_emu10k1_midi_input_open() 174 emu = midi->emu; in snd_emu10k1_midi_output_open() 202 emu = midi->emu; in snd_emu10k1_midi_input_close() 225 emu = midi->emu; in snd_emu10k1_midi_output_close() 245 emu = midi->emu; in snd_emu10k1_midi_input_trigger() 261 emu = midi->emu; in snd_emu10k1_midi_output_trigger() [all …]
|
A D | irq.c | 41 emu->hwvol_interrupt(emu, status); in snd_emu10k1_interrupt() 87 emu->capture_interrupt(emu, status); in snd_emu10k1_interrupt() 94 emu->capture_mic_interrupt(emu, status); in snd_emu10k1_interrupt() 101 emu->capture_efx_interrupt(emu, status); in snd_emu10k1_interrupt() 108 emu->midi.interrupt(emu, status); in snd_emu10k1_interrupt() 115 emu->midi2.interrupt(emu, status); in snd_emu10k1_interrupt() 121 if (emu->timer) in snd_emu10k1_interrupt() 122 snd_timer_interrupt(emu->timer, emu->timer->sticks); in snd_emu10k1_interrupt() 129 emu->spdif_interrupt(emu, status); in snd_emu10k1_interrupt() 136 emu->dsp_interrupt(emu); in snd_emu10k1_interrupt() [all …]
|
A D | emupcm.c | 34 dev_dbg(emu->card->dev, in snd_emu10k1_pcm_interrupt() 333 if (emu->audigy) { in snd_emu10k1_pcm_init_voice() 588 if (emu->audigy) { in snd_emu10k1_capture_prepare() 1050 snd_emu10k1_pcm_mixer_notify1(emu, emu->ctl_attn, idx, activate); in snd_emu10k1_pcm_mixer_notify() 1090 epcm->emu = emu; in snd_emu10k1_efx_playback_open() 1123 epcm->emu = emu; in snd_emu10k1_playback_open() 1179 epcm->emu = emu; in snd_emu10k1_capture_open() 1215 epcm->emu = emu; in snd_emu10k1_capture_mic_open() 1255 epcm->emu = emu; in snd_emu10k1_capture_efx_open() 1399 emu->pcm = pcm; in snd_emu10k1_pcm() [all …]
|
A D | p16v.c | 173 epcm->emu = emu; in snd_p16v_pcm_open_playback_channel() 184 channel->emu = emu; in snd_p16v_pcm_open_playback_channel() 189 dev_dbg(emu->card->dev, in snd_p16v_pcm_open_playback_channel() 222 epcm->emu = emu; in snd_p16v_pcm_open_capture_channel() 233 channel->emu = emu; in snd_p16v_pcm_open_capture_channel() 238 dev_dbg(emu->card->dev, in snd_p16v_pcm_open_capture_channel() 260 emu->p16v_voices[substream->pcm->device - emu->p16v_device_offset].use = 0; in snd_p16v_pcm_close_playback() 299 dev_dbg(emu->card->dev, in snd_p16v_pcm_prepare_playback() 306 dev_dbg(emu->card->dev, in snd_p16v_pcm_prepare_playback() 311 emu->p16v_buffer->addr, emu->p16v_buffer->area, in snd_p16v_pcm_prepare_playback() [all …]
|
A D | emumixer.c | 1190 if (emu->audigy) { in update_emu10k1_fxrt() 1634 if (emu->audigy) in snd_emu10k1_shared_spdif_get() 1743 emu->ac97 = NULL; in snd_emu10k1_mixer_free_ac97() 1973 if (emu->audigy) in snd_emu10k1_mixer() 2075 if (emu->audigy) in snd_emu10k1_mixer() 2144 emu)); in snd_emu10k1_mixer() 2151 emu)); in snd_emu10k1_mixer() 2187 emu)); in snd_emu10k1_mixer() 2194 emu)); in snd_emu10k1_mixer() 2238 if (emu->card_capabilities->ac97_chip && emu->audigy) { in snd_emu10k1_mixer() [all …]
|
A D | emuproc.c | 289 if (emu->audigy) in snd_emu10k1_proc_acode_read() 560 snd_card_rw_proc_new(emu->card, "io_regs", emu, in snd_emu10k1_proc_init() 563 snd_card_rw_proc_new(emu->card, "ptr_regs00a", emu, in snd_emu10k1_proc_init() 566 snd_card_rw_proc_new(emu->card, "ptr_regs00b", emu, in snd_emu10k1_proc_init() 569 snd_card_rw_proc_new(emu->card, "ptr_regs20a", emu, in snd_emu10k1_proc_init() 572 snd_card_rw_proc_new(emu->card, "ptr_regs20b", emu, in snd_emu10k1_proc_init() 575 snd_card_rw_proc_new(emu->card, "ptr_regs20c", emu, in snd_emu10k1_proc_init() 583 snd_card_ro_proc_new(emu->card, "spdif-in", emu, in snd_emu10k1_proc_init() 586 snd_card_ro_proc_new(emu->card, "capture-rates", emu, in snd_emu10k1_proc_init() 589 snd_card_ro_proc_new(emu->card, "voices", emu, in snd_emu10k1_proc_init() [all …]
|
A D | emu10k1x.c | 1009 snd_card_rw_proc_new(emu->card, "emu10k1x_regs", emu, in snd_emu10k1x_proc_init() 1171 #define mpu401_read_data(emu, mpu) mpu401_read(emu, mpu, 0) argument 1172 #define mpu401_read_stat(emu, mpu) mpu401_read(emu, mpu, 1) argument 1234 do_emu10k1x_midi_interrupt(emu, &emu->midi, status); in snd_emu10k1x_midi_interrupt() 1280 emu = midi->emu; in snd_emu10k1x_midi_input_open() 1307 emu = midi->emu; in snd_emu10k1x_midi_output_open() 1335 emu = midi->emu; in snd_emu10k1x_midi_input_close() 1358 emu = midi->emu; in snd_emu10k1x_midi_output_close() 1378 emu = midi->emu; in snd_emu10k1x_midi_input_trigger() 1394 emu = midi->emu; in snd_emu10k1x_midi_output_trigger() [all …]
|
A D | memory.c | 37 #define set_ptb_entry(emu,page,addr) __set_ptb_entry(emu,page,addr) argument 39 #define set_silent_ptb(emu,page) __set_ptb_entry(emu,page,emu->silent_page.addr) argument 59 __set_ptb_entry(emu, page, emu->silent_page.addr); in set_silent_ptb() 153 set_ptb_entry(emu, page, emu->page_addr_table[pg]); in map_memblk() 193 set_silent_ptb(emu, mpage); in unmap_memblk() 274 err = map_memblk(emu, blk); in snd_emu10k1_memblk_map() 309 if (snd_BUG_ON(!emu)) in snd_emu10k1_alloc_pages() 314 hdr = emu->memhdr; in snd_emu10k1_alloc_pages() 443 unmap_memblk(emu, blk); in snd_emu10k1_synth_free() 445 synth_free_pages(emu, blk); in snd_emu10k1_synth_free() [all …]
|
A D | emu10k1.c | 89 struct snd_emu10k1 *emu; in snd_card_emu10k1_probe() local 103 sizeof(*emu), &card); in snd_card_emu10k1_probe() 129 emu->p16v_buffer = in snd_card_emu10k1_probe() 131 if (!emu->p16v_buffer) in snd_card_emu10k1_probe() 151 if (emu->audigy) { in snd_card_emu10k1_probe() 173 arg->hwptr = emu; in snd_card_emu10k1_probe() 186 card->shortname, emu->revision, emu->serial, emu->port, emu->irq); in snd_card_emu10k1_probe() 208 emu->suspend = 1; in snd_emu10k1_suspend() 219 snd_emu10k1_done(emu); in snd_emu10k1_suspend() 234 snd_p16v_resume(emu); in snd_emu10k1_resume() [all …]
|
A D | emufx.c | 520 snd_emu10k1_ptr_write(emu, emu->gpr_base + gpr, 0, val); in snd_emu10k1_gpr_poke() 533 val = snd_emu10k1_ptr_read(emu, emu->gpr_base + gpr, 0); in snd_emu10k1_gpr_peek() 1007 snd_emu10k1_ptr_write(emu, A_DBG, 0, emu->fx8010.dbg); in snd_emu10k1_icode_poke() 1009 snd_emu10k1_ptr_write(emu, DBG, 0, emu->fx8010.dbg); in snd_emu10k1_icode_poke() 2647 snd_emu10k1_ptr_write(emu, DBG, 0, emu->fx8010.dbg); in snd_emu10k1_fx8010_ioctl() 2712 if (! emu->tram_val_saved || ! emu->tram_addr_saved) in snd_emu10k1_efx_alloc_pm_buffer() 2738 emu->saved_gpr[i] = snd_emu10k1_ptr_read(emu, emu->gpr_base + i, 0); in snd_emu10k1_efx_suspend() 2753 emu->saved_icode[i] = snd_emu10k1_efx_read(emu, i); in snd_emu10k1_efx_suspend() 2782 snd_emu10k1_ptr_write(emu, emu->gpr_base + i, 0, emu->saved_gpr[i]); in snd_emu10k1_efx_resume() 2801 snd_emu10k1_efx_write(emu, i, emu->saved_icode[i]); in snd_emu10k1_efx_resume() [all …]
|
/linux-6.3-rc2/sound/isa/sb/ |
A D | emu8000.c | 41 emu->last_reg = reg; in snd_emu8000_poke() 55 emu->last_reg = reg; in snd_emu8000_peek() 69 emu->last_reg = reg; in snd_emu8000_poke_dw() 85 emu->last_reg = reg; in snd_emu8000_peek_dw() 467 EMU8000_PTRX_WRITE(emu, 30, (emu->fm_reverb_depth << 8)); in snd_emu8000_init_fm() 475 EMU8000_PTRX_WRITE(emu, 31, (emu->fm_reverb_depth << 8)); in snd_emu8000_init_fm() 516 init_audio(emu); in snd_emu8000_init_hw() 519 init_dma(emu); in snd_emu8000_init_hw() 522 init_arrays(emu); in snd_emu8000_init_hw() 535 size_dram(emu); in snd_emu8000_init_hw() [all …]
|
A D | emu8000_patch.c | 30 snd_emux_lock_voice(emu->emu, i); in snd_emu8000_open_dma() 35 EMU8000_VTFT_WRITE(emu, 30, 0); in snd_emu8000_open_dma() 39 EMU8000_VTFT_WRITE(emu, 31, 0); in snd_emu8000_open_dma() 57 snd_emux_unlock_voice(emu->emu, i); in snd_emu8000_close_dma() 124 snd_emu8000_write_wait(emu); in write_word() 145 struct snd_emu8000 *emu; in snd_emu8000_sample_new() local 147 emu = rec->hw; in snd_emu8000_sample_new() 193 snd_emux_terminate_all(emu->emu); in snd_emu8000_sample_new() 199 snd_emu8000_write_wait(emu); in snd_emu8000_sample_new() 264 snd_emu8000_close_dma(emu); in snd_emu8000_sample_new() [all …]
|
A D | emu8000_synth.c | 28 struct snd_emux *emu; in snd_emu8000_probe() local 34 if (hw->emu) in snd_emu8000_probe() 40 hw->emu = emu; in snd_emu8000_probe() 43 emu->hw = hw; in snd_emu8000_probe() 53 snd_emux_free(emu); in snd_emu8000_probe() 54 hw->emu = NULL; in snd_emu8000_probe() 60 emu->midi_devidx = 1; in snd_emu8000_probe() 65 snd_emux_free(emu); in snd_emu8000_probe() 67 hw->emu = NULL; in snd_emu8000_probe() 95 snd_emux_free(hw->emu); in snd_emu8000_remove() [all …]
|
/linux-6.3-rc2/sound/synth/emux/ |
A D | emux.c | 29 emu = kzalloc(sizeof(*emu), GFP_KERNEL); in snd_emux_new() 30 if (emu == NULL) in snd_emux_new() 46 *remu = emu; in snd_emux_new() 59 return emu->ops.sample_new(emu, sp, hdr, buf, count); in sf_sample_new() 67 return emu->ops.sample_free(emu, sp, hdr); in sf_sample_free() 74 emu->ops.sample_reset(emu); in sf_sample_reset() 82 if (snd_BUG_ON(!emu->hw || emu->max_voices <= 0)) in snd_emux_register() 91 if (emu->name == NULL || emu->voices == NULL) in snd_emux_register() 103 emu->sflist = snd_sf_new(&sf_cb, emu->memhdr); in snd_emux_register() 129 if (! emu) in snd_emux_free() [all …]
|
A D | emux_seq.c | 111 if (emu->voices) in snd_emux_detach_seq() 148 p->emu = emu; in snd_emux_create_port() 260 emu->used++; in __snd_emux_inc_count() 266 emu->used--; in __snd_emux_inc_count() 289 emu->used--; in __snd_emux_dec_count() 314 emu = p->emu; in snd_emux_use() 337 emu = p->emu; in snd_emux_unuse() 360 emu->vmidi = kcalloc(emu->midi_ports, sizeof(*emu->vmidi), GFP_KERNEL); in snd_emux_init_virmidi() 361 if (!emu->vmidi) in snd_emux_init_virmidi() 393 if (!emu->vmidi) in snd_emux_delete_virmidi() [all …]
|
A D | emux_synth.c | 59 emu = port->emu; in snd_emux_note_on() 60 if (snd_BUG_ON(!emu || !emu->ops.get_voice || !emu->ops.trigger)) in snd_emux_note_on() 157 emu = port->emu; in snd_emux_note_off() 234 emu = port->emu; in snd_emux_key_press() 265 emu = port->emu; in snd_emux_update_channel() 292 emu = port->emu; in snd_emux_update_port() 394 emu = port->emu; in snd_emux_terminate_note() 421 emu->ops.reset(emu, i); in snd_emux_terminate_all() 445 emu = port->emu; in snd_emux_sounds_off_all() 459 emu->ops.reset(emu, i); in snd_emux_sounds_off_all() [all …]
|
A D | emux_hwdep.c | 39 if (emu->ops.load_fx) in snd_emux_hwdep_load_patch() 40 return emu->ops.load_fx(emu, patch.type, patch.optarg, arg, patch.len + sizeof(patch)); in snd_emux_hwdep_load_patch() 66 if (info.port < emu->num_ports) { in snd_emux_hwdep_misc_mode() 96 if (emu->memhdr) { in snd_emux_hwdep_ioctl() 119 err = snd_hwdep_new(emu->card, SNDRV_EMUX_HWDEP_NAME, emu->hwdep_idx, &hw); in snd_emux_init_hwdep() 122 emu->hwdep = hw; in snd_emux_init_hwdep() 130 hw->private_data = emu; in snd_emux_init_hwdep() 131 err = snd_card_register(emu->card); in snd_emux_init_hwdep() 145 if (emu->hwdep) { in snd_emux_delete_hwdep() 146 snd_device_free(emu->card, emu->hwdep); in snd_emux_delete_hwdep() [all …]
|
A D | emux_oss.c | 62 emu->oss_synth = dev; in snd_emux_init_seq_oss() 82 if (emu->oss_synth) { in snd_emux_detach_seq_oss() 83 snd_device_free(emu->card, emu->oss_synth); in snd_emux_detach_seq_oss() 103 emu = closure; in snd_emux_open_seq_oss() 173 emu = p->emu; in snd_emux_close_seq_oss() 203 emu = p->emu; in snd_emux_load_patch_seq_oss() 221 rc = emu->ops.load_fx(emu, patch.type, patch.optarg, buf, count); in snd_emux_load_patch_seq_oss() 246 emu = p->emu; in snd_emux_ioctl_seq_oss() 256 if (emu->memhdr) in snd_emux_ioctl_seq_oss() 297 emu = p->emu; in snd_emux_event_oss_input() [all …]
|
A D | emux_proc.c | 18 struct snd_emux *emu; in snd_emux_proc_info_read() local 21 emu = entry->private_data; in snd_emux_proc_info_read() 22 mutex_lock(&emu->register_mutex); in snd_emux_proc_info_read() 23 if (emu->name) in snd_emux_proc_info_read() 28 snd_iprintf(buf, " %d:%d", emu->client, emu->ports[i]); in snd_emux_proc_info_read() 33 if (emu->memhdr) { in snd_emux_proc_info_read() 40 if (emu->sflist) { in snd_emux_proc_info_read() 50 if (emu->voices[0].state != SNDRV_EMUX_ST_OFF && emu->voices[0].ch >= 0) { in snd_emux_proc_info_read() 103 entry->private_data = emu; in snd_emux_proc_init() 109 snd_info_free_entry(emu->proc); in snd_emux_proc_free() [all …]
|
/linux-6.3-rc2/sound/pci/ca0106/ |
A D | ca0106_mixer.c | 67 if (emu->spdif_enable) { in ca0106_spdif_enable() 104 ogain = emu->i2c_capture_volume[emu->i2c_capture_source][0]; /* Left */ in ca0106_set_i2c_capture_source() 108 ogain = emu->i2c_capture_volume[emu->i2c_capture_source][1]; /* Right */ in ca0106_set_i2c_capture_source() 113 emu->i2c_capture_source = val; in ca0106_set_i2c_capture_source() 136 snd_ca0106_ptr_write(emu, SPCS0 + idx, 0, emu->spdif_str_bits[idx]); in ca0106_set_spdif_bits() 165 emu->spdif_enable = val; in snd_ca0106_shared_spdif_put() 166 ca0106_spdif_enable(emu); in snd_ca0106_shared_spdif_put() 202 emu->capture_source = val; in snd_ca0106_capture_source_put() 332 emu->spdif_bits[idx]); in snd_ca0106_spdif_get_default() 374 emu->spdif_bits[idx] = val; in snd_ca0106_spdif_put_default() [all …]
|
A D | ca0106_proc.c | 307 spin_lock_irqsave(&emu->emu_lock, flags); in snd_ca0106_proc_reg_read32() 308 value = inl(emu->port + i); in snd_ca0106_proc_reg_read32() 324 value = inw(emu->port + i); in snd_ca0106_proc_reg_read16() 340 value = inb(emu->port + i); in snd_ca0106_proc_reg_read8() 413 snd_card_ro_proc_new(emu->card, "iec958", emu, snd_ca0106_proc_iec958); in snd_ca0106_proc_init() 414 snd_card_rw_proc_new(emu->card, "ca0106_reg32", emu, in snd_ca0106_proc_init() 417 snd_card_ro_proc_new(emu->card, "ca0106_reg16", emu, in snd_ca0106_proc_init() 419 snd_card_ro_proc_new(emu->card, "ca0106_reg8", emu, in snd_ca0106_proc_init() 421 snd_card_rw_proc_new(emu->card, "ca0106_regs1", emu, in snd_ca0106_proc_init() 424 snd_card_rw_proc_new(emu->card, "ca0106_i2c", emu, NULL, in snd_ca0106_proc_init() [all …]
|
/linux-6.3-rc2/drivers/input/gameport/ |
A D | emu10k1-gp.c | 22 struct emu { struct 42 struct emu *emu; in emu_probe() argument 46 emu = kzalloc(sizeof(struct emu), GFP_KERNEL); in emu_probe() 61 emu->dev = pdev; in emu_probe() 67 port->io = emu->io; in emu_probe() 69 if (!request_region(emu->io, emu->size, "emu10k1-gp")) { in emu_probe() 71 emu->io, emu->io + emu->size - 1); in emu_probe() 86 kfree(emu); in emu_probe() 92 struct emu *emu = pci_get_drvdata(pdev); in emu_remove() local 95 release_region(emu->io, emu->size); in emu_remove() [all …]
|