| /linux-6.15/include/sound/ |
| H 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.15/sound/pci/emu10k1/ |
| H A D | emu10k1_main.c | 294 (emu->model == 0x21 && emu->revision < 6)) in snd_emu10k1_init() 585 snd_emu10k1_ecard_write(emu, emu->ecard_ctrl); in snd_emu10k1_ecard_setadcgain() 620 snd_emu10k1_ecard_write(emu, emu->ecard_ctrl); in snd_emu10k1_ecard_init() 751 emu->emu1010.wclock = 1 - emu->emu1010.clock_source; in emu1010_clock_event() 1586 if (!emu->page_ptr_table || !emu->page_addr_table) in snd_emu10k1_create() 1661 emu->spdif_bits[0] = emu->spdif_bits[1] = in snd_emu10k1_create() 1757 emu->saved_a_iocfg = inw(emu->port + A_IOCFG); in snd_emu10k1_suspend_regs() 1758 emu->saved_hcfg = inl(emu->port + HCFG); in snd_emu10k1_suspend_regs() 1771 snd_emu10k1_init(emu, emu->enable_ir); in snd_emu10k1_resume_init() 1784 outw(emu->saved_a_iocfg, emu->port + A_IOCFG); in snd_emu10k1_resume_regs() [all …]
|
| H A D | io.c | 21 if (snd_BUG_ON(!emu)) in check_ptr_reg() 42 outl(regptr, emu->port + PTR); in snd_emu10k1_ptr_read() 43 val = inl(emu->port + DATA); in snd_emu10k1_ptr_read() 101 if (snd_BUG_ON(!emu)) in snd_emu10k1_ptr_write_multiple() 167 spin_lock(&emu->spi_lock); in snd_emu10k1_spi_write() 228 spin_lock(&emu->i2c_lock); in snd_emu10k1_i2c_write() 402 emu, emu->emu1010.wclock & EMU_HANA_WCLOCK_SRC_MASK); in snd_emu1010_update_clock() 654 outl(inl(emu->port + DATA) | (u32)voices, emu->port + DATA); in snd_emu10k1_voice_set_loop_stop_multiple() 656 outl(inl(emu->port + DATA) | (u32)(voices >> 32), emu->port + DATA); in snd_emu10k1_voice_set_loop_stop_multiple() 666 outl(inl(emu->port + DATA) & (u32)~voices, emu->port + DATA); in snd_emu10k1_voice_clear_loop_stop_multiple() [all …]
|
| H A D | irq.c | 38 emu->hwvol_interrupt(emu, status); in snd_emu10k1_interrupt() 85 emu->capture_interrupt(emu, status); in snd_emu10k1_interrupt() 92 emu->capture_mic_interrupt(emu, status); in snd_emu10k1_interrupt() 99 emu->capture_efx_interrupt(emu, status); in snd_emu10k1_interrupt() 106 emu->midi.interrupt(emu, status); in snd_emu10k1_interrupt() 113 emu->midi2.interrupt(emu, status); in snd_emu10k1_interrupt() 120 snd_timer_interrupt(emu->timer, emu->timer->sticks); in snd_emu10k1_interrupt() 127 emu->spdif_interrupt(emu, status); in snd_emu10k1_interrupt() 134 emu->dsp_interrupt(emu); in snd_emu10k1_interrupt() 141 emu->p16v_interrupt(emu); in snd_emu10k1_interrupt() [all …]
|
| H 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() 145 emu = midi->emu; in snd_emu10k1_midi_input_open() 171 emu = midi->emu; in snd_emu10k1_midi_output_open() 198 emu = midi->emu; in snd_emu10k1_midi_input_close() 220 emu = midi->emu; in snd_emu10k1_midi_output_close() 240 emu = midi->emu; in snd_emu10k1_midi_input_trigger() 255 emu = midi->emu; in snd_emu10k1_midi_output_trigger() [all …]
|
| H A D | emuproc.c | 89 if (emu->audigy) { in snd_emu10k1_proc_read() 666 snd_card_rw_proc_new(emu->card, "io_regs", emu, in snd_emu10k1_proc_init() 669 snd_card_rw_proc_new(emu->card, "ptr_regs00a", emu, in snd_emu10k1_proc_init() 672 snd_card_rw_proc_new(emu->card, "ptr_regs00b", emu, in snd_emu10k1_proc_init() 677 snd_card_rw_proc_new(emu->card, "ptr_regs20a", emu, in snd_emu10k1_proc_init() 680 snd_card_rw_proc_new(emu->card, "ptr_regs20b", emu, in snd_emu10k1_proc_init() 684 snd_card_rw_proc_new(emu->card, "ptr_regs20c", emu, in snd_emu10k1_proc_init() 693 snd_card_ro_proc_new(emu->card, "spdif-in", emu, in snd_emu10k1_proc_init() 696 snd_card_ro_proc_new(emu->card, "capture-rates", emu, in snd_emu10k1_proc_init() 699 snd_card_ro_proc_new(emu->card, "voices", emu, in snd_emu10k1_proc_init() [all …]
|
| H A D | emupcm.c | 31 dev_dbg(emu->card->dev, in snd_emu10k1_pcm_interrupt() 296 if (emu->audigy) { in snd_emu10k1_pcm_init_voice() 1091 snd_emu10k1_pcm_mixer_notify1(emu, emu->ctl_attn, idx, activate); in snd_emu10k1_pcm_mixer_notify() 1147 epcm->emu = emu; in snd_emu10k1_efx_playback_open() 1186 epcm->emu = emu; in snd_emu10k1_playback_open() 1237 epcm->emu = emu; in snd_emu10k1_capture_open() 1274 epcm->emu = emu; in snd_emu10k1_capture_mic_open() 1314 epcm->emu = emu; in snd_emu10k1_capture_efx_open() 1429 emu->pcm = pcm; in snd_emu10k1_pcm() 1815 if (!emu->audigy) in snd_emu10k1_pcm_efx() [all …]
|
| H A D | p16v.c | 166 dev_dbg(emu->card->dev, in snd_p16v_pcm_open_playback_channel() 247 dev_dbg(emu->card->dev, in snd_p16v_pcm_prepare_playback() 254 dev_dbg(emu->card->dev, in snd_p16v_pcm_prepare_playback() 257 dev_dbg(emu->card->dev, in snd_p16v_pcm_prepare_playback() 259 emu->p16v_buffer->addr, emu->p16v_buffer->area, in snd_p16v_pcm_prepare_playback() 577 emu->pcm_p16v = pcm; in snd_p16v_pcm() 584 &emu->pci->dev, in snd_p16v_pcm() 597 &emu->pci->dev, in snd_p16v_pcm() 799 if (! emu->p16v_saved) in snd_p16v_alloc_pm_buffer() 814 val = emu->p16v_saved; in snd_p16v_suspend() [all …]
|
| H 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 …]
|
| H A D | emumixer.c | 36 err = snd_ctl_add(emu->card, snd_ctl_new1(&kctl, emu)); in add_ctls() 608 emu, i, emu->emu1010.output_source[i]); in snd_emu1010_apply_sources() 611 emu, i, emu->emu1010.input_source[i]); in snd_emu1010_apply_sources() 996 snd_emu1010_fpga_write(emu, EMU_HANA_WCLOCK, emu->emu1010.wclock); in snd_emu1010_clock_source_put() 1449 if (emu->audigy) { in update_emu10k1_fxrt() 1466 if (emu->audigy) { in update_emu10k1_send_volume() 1869 if (emu->audigy) in snd_emu10k1_shared_spdif_get() 1977 emu->ac97 = NULL; in snd_emu10k1_mixer_free_ac97() 2198 if (emu->audigy) in snd_emu10k1_mixer() 2382 if (emu->card_capabilities->ac97_chip && emu->audigy) { in snd_emu10k1_mixer() [all …]
|
| H 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() 441 unmap_memblk(emu, blk); in snd_emu10k1_synth_free() 443 synth_free_pages(emu, blk); in snd_emu10k1_synth_free() [all …]
|
| H A D | emu10k1.c | 73 struct snd_emu10k1 *emu; in snd_card_emu10k1_probe() local 87 sizeof(*emu), &card); in snd_card_emu10k1_probe() 114 emu->p16v_buffer = in snd_card_emu10k1_probe() 116 if (!emu->p16v_buffer) in snd_card_emu10k1_probe() 136 if (emu->audigy) { in snd_card_emu10k1_probe() 158 arg->hwptr = emu; in snd_card_emu10k1_probe() 171 card->shortname, emu->revision, emu->serial, emu->port, emu->irq); in snd_card_emu10k1_probe() 190 emu->suspend = 1; in snd_emu10k1_suspend() 201 snd_emu10k1_done(emu); in snd_emu10k1_suspend() 216 snd_p16v_resume(emu); in snd_emu10k1_resume() [all …]
|
| H A D | voice.c | 43 voice = &emu->voices[i + k]; in voice_alloc() 51 voice = &emu->voices[i + k]; in voice_alloc() 58 *rvoice = &emu->voices[i]; in voice_alloc() 59 emu->next_free_voice = (i + number) % NUM_G; in voice_alloc() 71 snd_emu10k1_voice_init(emu, pvoice->number); in voice_free() 90 spin_lock_irqsave(&emu->voice_lock, flags); in snd_emu10k1_voice_alloc() 103 result = emu->get_synth_voice(emu); in snd_emu10k1_voice_alloc() 105 voice_free(emu, &emu->voices[result]); in snd_emu10k1_voice_alloc() 111 voice_free(emu, rvoice[i] + j); in snd_emu10k1_voice_alloc() 131 spin_lock_irqsave(&emu->voice_lock, flags); in snd_emu10k1_voice_free() [all …]
|
| /linux-6.15/sound/isa/sb/ |
| H 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() 164 emu->port1); in snd_emu8000_detect() 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 …]
|
| H 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() 179 snd_emux_terminate_all(emu->emu); in snd_emu8000_sample_new() 185 snd_emu8000_write_wait(emu); in snd_emu8000_sample_new() 250 snd_emu8000_close_dma(emu); in snd_emu8000_sample_new() [all …]
|
| H A D | emu8000_pcm.c | 73 snd_emux_lock_voice(emu->emu, 0); in emu8k_open_dram_for_pcm() 75 snd_emux_lock_voice(emu->emu, 1); in emu8k_open_dram_for_pcm() 80 snd_emux_lock_voice(emu->emu, i); in emu8k_open_dram_for_pcm() 124 snd_emux_unlock_voice(emu->emu, i); in emu8k_close_dram() 127 snd_emux_unlock_voice(emu->emu, i); in emu8k_close_dram() 226 rec->emu = emu; in emu8k_pcm_open() 424 struct snd_emu8000 *emu = (rec)->emu; \ 467 struct snd_emu8000 *emu = rec->emu; \ 587 snd_emux_terminate_all(rec->emu->emu); in emu8k_pcm_prepare() 636 emu->pcm = NULL; in snd_emu8000_pcm_free() [all …]
|
| /linux-6.15/sound/synth/emux/ |
| H 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() 101 emu->sflist = snd_sf_new(&sf_cb, emu->memhdr); in snd_emux_register() 127 if (! emu) in snd_emux_free() [all …]
|
| H A D | emux_seq.c | 112 if (emu->voices) in snd_emux_detach_seq() 149 p->emu = emu; in snd_emux_create_port() 261 emu->used++; in __snd_emux_inc_count() 267 emu->used--; in __snd_emux_inc_count() 290 emu->used--; in __snd_emux_dec_count() 315 emu = p->emu; in snd_emux_use() 338 emu = p->emu; in snd_emux_unuse() 361 emu->vmidi = kcalloc(emu->midi_ports, sizeof(*emu->vmidi), GFP_KERNEL); in snd_emux_init_virmidi() 362 if (!emu->vmidi) in snd_emux_init_virmidi() 392 if (!emu->vmidi) in snd_emux_delete_virmidi() [all …]
|
| H 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 …]
|
| H A D | emux_hwdep.c | 29 return snd_soundfont_load_guspatch(emu->card, emu->sflist, arg, in snd_emux_hwdep_load_patch() 34 err = snd_soundfont_load(emu->card, emu->sflist, arg, in snd_emux_hwdep_load_patch() 40 if (emu->ops.load_fx) in snd_emux_hwdep_load_patch() 41 return emu->ops.load_fx(emu, patch.type, patch.optarg, arg, patch.len + sizeof(patch)); in snd_emux_hwdep_load_patch() 97 if (emu->memhdr) { in snd_emux_hwdep_ioctl() 120 err = snd_hwdep_new(emu->card, SNDRV_EMUX_HWDEP_NAME, emu->hwdep_idx, &hw); in snd_emux_init_hwdep() 123 emu->hwdep = hw; in snd_emux_init_hwdep() 131 hw->private_data = emu; in snd_emux_init_hwdep() 146 if (emu->hwdep) { in snd_emux_delete_hwdep() 147 snd_device_free(emu->card, emu->hwdep); in snd_emux_delete_hwdep() [all …]
|
| H A D | emux_oss.c | 62 emu->oss_synth = dev; in snd_emux_init_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() 217 rc = snd_soundfont_load(emu->card, emu->sflist, buf, in snd_emux_load_patch_seq_oss() 222 rc = emu->ops.load_fx(emu, patch.type, in snd_emux_load_patch_seq_oss() 248 emu = p->emu; in snd_emux_ioctl_seq_oss() 258 if (emu->memhdr) in snd_emux_ioctl_seq_oss() 299 emu = p->emu; in snd_emux_event_oss_input() [all …]
|
| H 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() 105 emu->proc = entry; in snd_emux_proc_init() [all …]
|
| /linux-6.15/sound/pci/ca0106/ |
| H 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 …]
|
| H 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.15/drivers/input/gameport/ |
| H A D | emu10k1-gp.c | 22 struct emu { struct 42 struct emu *emu; in emu_probe() argument 46 emu = kzalloc(sizeof(*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 …]
|