| /linux/include/sound/ |
| H A D | emu8000_reg.h | 30 #define EMU8000_CPF_READ(emu, chan) \ argument 31 snd_emu8000_peek_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(0, (chan))) 32 #define EMU8000_PTRX_READ(emu, chan) \ argument 33 snd_emu8000_peek_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(1, (chan))) 34 #define EMU8000_CVCF_READ(emu, chan) \ argument 35 snd_emu8000_peek_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(2, (chan))) 36 #define EMU8000_VTFT_READ(emu, chan) \ argument 37 snd_emu8000_peek_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(3, (chan))) 38 #define EMU8000_PSST_READ(emu, chan) \ argument 39 snd_emu8000_peek_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(6, (chan))) [all …]
|
| H A D | emu8000.h | 48 struct snd_emux *emu; member 87 void snd_emu8000_poke(struct snd_emu8000 *emu, unsigned int port, unsigned int reg, 89 unsigned short snd_emu8000_peek(struct snd_emu8000 *emu, unsigned int port, 91 void snd_emu8000_poke_dw(struct snd_emu8000 *emu, unsigned int port, unsigned int reg, 93 unsigned int snd_emu8000_peek_dw(struct snd_emu8000 *emu, unsigned int port, 95 void snd_emu8000_dma_chan(struct snd_emu8000 *emu, int ch, int mode); 97 void snd_emu8000_init_fm(struct snd_emu8000 *emu); 99 void snd_emu8000_update_chorus_mode(struct snd_emu8000 *emu); 100 void snd_emu8000_update_reverb_mode(struct snd_emu8000 *emu); 101 void snd_emu8000_update_equalizer(struct snd_emu8000 *emu); [all …]
|
| /linux/sound/synth/emux/ |
| H A D | emux.c | 26 struct snd_emux *emu; in snd_emux_new() local 29 emu = kzalloc_obj(*emu); in snd_emux_new() 30 if (emu == NULL) in snd_emux_new() 33 spin_lock_init(&emu->voice_lock); in snd_emux_new() 34 mutex_init(&emu->register_mutex); in snd_emux_new() 36 emu->client = -1; in snd_emux_new() 38 emu->oss_synth = NULL; in snd_emux_new() 40 emu->max_voices = 0; in snd_emux_new() 41 emu->use_time = 0; in snd_emux_new() 43 timer_setup(&emu->tlist, snd_emux_timer_callback, 0); in snd_emux_new() [all …]
|
| H A D | emux_seq.c | 55 snd_emux_init_seq(struct snd_emux *emu, struct snd_card *card, int index) in snd_emux_init_seq() argument 61 emu->client = snd_seq_create_kernel_client(card, index, in snd_emux_init_seq() 62 "%s WaveTable", emu->name); in snd_emux_init_seq() 63 if (emu->client < 0) { in snd_emux_init_seq() 68 if (emu->num_ports <= 0) { in snd_emux_init_seq() 70 emu->num_ports = 1; in snd_emux_init_seq() 71 } else if (emu->num_ports > SNDRV_EMUX_MAX_PORTS) { in snd_emux_init_seq() 75 emu->num_ports = SNDRV_EMUX_MAX_PORTS; in snd_emux_init_seq() 84 for (i = 0; i < emu->num_ports; i++) { in snd_emux_init_seq() 87 sprintf(tmpname, "%s Port %d", emu in snd_emux_init_seq() 110 snd_emux_detach_seq(struct snd_emux * emu) snd_emux_detach_seq() argument 127 snd_emux_create_port(struct snd_emux * emu,char * name,int max_channels,int oss_port,struct snd_seq_port_callback * callback) snd_emux_create_port() argument 258 __snd_emux_inc_count(struct snd_emux * emu) __snd_emux_inc_count() argument 272 snd_emux_inc_count(struct snd_emux * emu) snd_emux_inc_count() argument 282 __snd_emux_dec_count(struct snd_emux * emu) __snd_emux_dec_count() argument 291 snd_emux_dec_count(struct snd_emux * emu) snd_emux_dec_count() argument 304 struct snd_emux *emu; snd_emux_use() local 326 struct snd_emux *emu; snd_emux_unuse() local 345 snd_emux_init_virmidi(struct snd_emux * emu,struct snd_card * card) snd_emux_init_virmidi() argument 380 snd_emux_delete_virmidi(struct snd_emux * emu) snd_emux_delete_virmidi() argument [all...] |
| H A D | emux_hwdep.c | 20 snd_emux_hwdep_load_patch(struct snd_emux *emu, void __user *arg) in snd_emux_hwdep_load_patch() argument 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() 52 snd_emux_hwdep_misc_mode(struct snd_emux *emu, void __user *arg) in snd_emux_hwdep_misc_mode() argument 64 for (i = 0; i < emu->num_ports; i++) in snd_emux_hwdep_misc_mode() 65 emu->portptrs[i]->ctrls[info.mode] = info.value; in snd_emux_hwdep_misc_mode() 67 if (info.port < emu->num_ports) { in snd_emux_hwdep_misc_mode() 68 info.port = array_index_nospec(info.port, emu->num_ports); in snd_emux_hwdep_misc_mode() [all …]
|
| H A D | emux_oss.c | 29 static void emuspec_control(struct snd_emux *emu, struct snd_emux_port *port, 31 static void gusspec_control(struct snd_emux *emu, struct snd_emux_port *port, 33 static void fake_event(struct snd_emux *emu, struct snd_emux_port *port, 52 snd_emux_init_seq_oss(struct snd_emux *emu) in snd_emux_init_seq_oss() argument 58 if (snd_seq_device_new(emu->card, 1, SNDRV_SEQ_DEV_ID_OSS, in snd_emux_init_seq_oss() 62 emu->oss_synth = dev; in snd_emux_init_seq_oss() 63 strscpy(dev->name, emu->name); in snd_emux_init_seq_oss() 67 arg->nvoices = emu->max_voices; in snd_emux_init_seq_oss() 69 arg->private_data = emu; in snd_emux_init_seq_oss() 72 snd_device_register(emu->card, dev); in snd_emux_init_seq_oss() [all …]
|
| H A D | emux_voice.h | 18 int snd_emux_init_seq(struct snd_emux *emu, struct snd_card *card, int index); 19 void snd_emux_detach_seq(struct snd_emux *emu); 20 struct snd_emux_port *snd_emux_create_port(struct snd_emux *emu, char *name, 26 int snd_emux_inc_count(struct snd_emux *emu); 27 void snd_emux_dec_count(struct snd_emux *emu); 28 int snd_emux_init_virmidi(struct snd_emux *emu, struct snd_card *card); 29 int snd_emux_delete_virmidi(struct snd_emux *emu); 32 void snd_emux_init_voices(struct snd_emux *emu); 68 void snd_emux_init_seq_oss(struct snd_emux *emu); 69 void snd_emux_detach_seq_oss(struct snd_emux *emu); [all …]
|
| H A D | emux_effect.c | 169 struct snd_emux *emu; in snd_emux_send_effect() local 172 emu = port->emu; in snd_emux_send_effect() 174 if (emu == NULL || fx == NULL) in snd_emux_send_effect() 197 scoped_guard(spinlock_irqsave, &emu->voice_lock) { in snd_emux_send_effect() 198 for (i = 0; i < emu->max_voices; i++) { in snd_emux_send_effect() 199 struct snd_emux_voice *vp = &emu->voices[i]; in snd_emux_send_effect()
|
| H A D | emux_nrpn.c | 369 struct snd_emux *emu; in snd_emux_sysex() local 374 emu = port->emu; in snd_emux_sysex() 381 if (emu->ops.sysex) in snd_emux_sysex() 382 emu->ops.sysex(emu, buf, len, parsed, chset); in snd_emux_sysex()
|
| /linux/sound/pci/emu10k1/ |
| H A D | irq.c | 14 struct snd_emu10k1 *emu = dev_id; in snd_emu10k1_interrupt() local 19 while ((status = inl(emu->port + IPR)) != 0) { in snd_emu10k1_interrupt() 22 dev_info(emu->card->dev, in snd_emu10k1_interrupt() 27 dev_info(emu->card->dev, "emu10k1 irq routine failure\n"); in snd_emu10k1_interrupt() 32 dev_err(emu->card->dev, "interrupt: PCI error\n"); in snd_emu10k1_interrupt() 33 snd_emu10k1_intr_disable(emu, INTE_PCIERRORENABLE); in snd_emu10k1_interrupt() 37 if (emu->hwvol_interrupt) in snd_emu10k1_interrupt() 38 emu->hwvol_interrupt(emu, status); in snd_emu10k1_interrupt() 40 snd_emu10k1_intr_disable(emu, INTE_VOLINCRENABLE|INTE_VOLDECRENABLE|INTE_MUTEENABLE); in snd_emu10k1_interrupt() 49 val = snd_emu10k1_ptr_read(emu, CLIPL, 0); in snd_emu10k1_interrupt() [all …]
|
| H A D | emupcm.c | 20 static void snd_emu10k1_pcm_interrupt(struct snd_emu10k1 *emu, in snd_emu10k1_pcm_interrupt() argument 31 dev_dbg(emu->card->dev, in snd_emu10k1_pcm_interrupt() 33 epcm->substream->runtime->hw->pointer(emu, epcm->substream), in snd_emu10k1_pcm_interrupt() 40 static void snd_emu10k1_pcm_ac97adc_interrupt(struct snd_emu10k1 *emu, in snd_emu10k1_pcm_ac97adc_interrupt() argument 45 if (emu->pcm_capture_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) in snd_emu10k1_pcm_ac97adc_interrupt() 49 snd_pcm_period_elapsed(emu->pcm_capture_substream); in snd_emu10k1_pcm_ac97adc_interrupt() 52 static void snd_emu10k1_pcm_ac97mic_interrupt(struct snd_emu10k1 *emu, in snd_emu10k1_pcm_ac97mic_interrupt() argument 57 if (emu->pcm_capture_mic_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) in snd_emu10k1_pcm_ac97mic_interrupt() 61 snd_pcm_period_elapsed(emu->pcm_capture_mic_substream); in snd_emu10k1_pcm_ac97mic_interrupt() 64 static void snd_emu10k1_pcm_efx_interrupt(struct snd_emu10k1 *emu, in snd_emu10k1_pcm_efx_interrupt() argument [all …]
|
| H A D | emu10k1x.c | 185 struct emu10k1x *emu; member 193 struct emu10k1x *emu; member 200 struct emu10k1x *emu; member 211 void (*interrupt)(struct emu10k1x *emu, unsigned int status); 280 static unsigned int snd_emu10k1x_ptr_read(struct emu10k1x * emu, in snd_emu10k1x_ptr_read() argument 288 guard(spinlock_irqsave)(&emu->emu_lock); in snd_emu10k1x_ptr_read() 289 outl(regptr, emu->port + PTR); in snd_emu10k1x_ptr_read() 290 return inl(emu->port + DATA); in snd_emu10k1x_ptr_read() 293 static void snd_emu10k1x_ptr_write(struct emu10k1x *emu, in snd_emu10k1x_ptr_write() argument 302 guard(spinlock_irqsave)(&emu in snd_emu10k1x_ptr_write() 307 snd_emu10k1x_intr_enable(struct emu10k1x * emu,unsigned int intrenb) snd_emu10k1x_intr_enable() argument 316 snd_emu10k1x_intr_disable(struct emu10k1x * emu,unsigned int intrenb) snd_emu10k1x_intr_disable() argument 325 snd_emu10k1x_gpio_write(struct emu10k1x * emu,unsigned int value) snd_emu10k1x_gpio_write() argument 336 snd_emu10k1x_pcm_interrupt(struct emu10k1x * emu,struct emu10k1x_voice * voice) snd_emu10k1x_pcm_interrupt() argument 429 struct emu10k1x *emu = snd_pcm_substream_chip(substream); snd_emu10k1x_pcm_prepare() local 459 struct emu10k1x *emu = snd_pcm_substream_chip(substream); snd_emu10k1x_pcm_trigger() local 496 struct emu10k1x *emu = snd_pcm_substream_chip(substream); snd_emu10k1x_pcm_pointer() local 612 struct emu10k1x *emu = snd_pcm_substream_chip(substream); snd_emu10k1x_pcm_prepare_capture() local 627 struct emu10k1x *emu = snd_pcm_substream_chip(substream); snd_emu10k1x_pcm_trigger_capture() local 656 struct emu10k1x *emu = snd_pcm_substream_chip(substream); snd_emu10k1x_pcm_pointer_capture() local 684 struct emu10k1x *emu = ac97->private_data; snd_emu10k1x_ac97_read() local 694 struct emu10k1x *emu = ac97->private_data; snd_emu10k1x_ac97_write() local 796 snd_emu10k1x_pcm(struct emu10k1x * emu,int device) snd_emu10k1x_pcm() argument 949 struct emu10k1x *emu = entry->private_data; snd_emu10k1x_proc_reg_read() local 975 struct emu10k1x *emu = entry->private_data; snd_emu10k1x_proc_reg_write() local 988 snd_emu10k1x_proc_init(struct emu10k1x * emu) snd_emu10k1x_proc_init() argument 1001 struct emu10k1x *emu = snd_kcontrol_chip(kcontrol); snd_emu10k1x_shared_spdif_get() local 1011 struct emu10k1x *emu = snd_kcontrol_chip(kcontrol); snd_emu10k1x_shared_spdif_put() local 1049 struct emu10k1x *emu = snd_kcontrol_chip(kcontrol); snd_emu10k1x_spdif_get() local 1072 struct emu10k1x *emu = snd_kcontrol_chip(kcontrol); snd_emu10k1x_spdif_put() local 1109 snd_emu10k1x_mixer(struct emu10k1x * emu) snd_emu10k1x_mixer() argument 1140 mpu401_read(struct emu10k1x * emu,struct emu10k1x_midi * mpu,int idx) mpu401_read() argument 1145 mpu401_write(struct emu10k1x * emu,struct emu10k1x_midi * mpu,int data,int idx) mpu401_write() argument 1150 mpu401_write_data(emu,mpu,data) global() argument 1151 mpu401_write_cmd(emu,mpu,data) global() argument 1152 mpu401_read_data(emu,mpu) global() argument 1153 mpu401_read_stat(emu,mpu) global() argument 1155 mpu401_input_avail(emu,mpu) global() argument 1156 mpu401_output_ready(emu,mpu) global() argument 1162 mpu401_clear_rx(struct emu10k1x * emu,struct emu10k1x_midi * mpu) mpu401_clear_rx() argument 1179 do_emu10k1x_midi_interrupt(struct emu10k1x * emu,struct emu10k1x_midi * midi,unsigned int status) do_emu10k1x_midi_interrupt() argument 1213 snd_emu10k1x_midi_interrupt(struct emu10k1x * emu,unsigned int status) snd_emu10k1x_midi_interrupt() argument 1218 snd_emu10k1x_midi_cmd(struct emu10k1x * emu,struct emu10k1x_midi * midi,unsigned char cmd,int ack) snd_emu10k1x_midi_cmd() argument 1256 struct emu10k1x *emu; snd_emu10k1x_midi_input_open() local 1277 struct emu10k1x *emu; snd_emu10k1x_midi_output_open() local 1298 struct emu10k1x *emu; snd_emu10k1x_midi_input_close() local 1316 struct emu10k1x *emu; snd_emu10k1x_midi_output_close() local 1334 struct emu10k1x *emu; snd_emu10k1x_midi_input_trigger() local 1348 struct emu10k1x *emu; snd_emu10k1x_midi_output_trigger() local 1406 emu10k1x_midi_init(struct emu10k1x * emu,struct emu10k1x_midi * midi,int device,char * name) emu10k1x_midi_init() argument 1432 snd_emu10k1x_midi(struct emu10k1x * emu) snd_emu10k1x_midi() argument [all...] |
| H A D | emu10k1.c | 74 struct snd_emu10k1 *emu; in snd_card_emu10k1_probe() local 88 sizeof(*emu), &card); in snd_card_emu10k1_probe() 91 emu = card->private_data; in snd_card_emu10k1_probe() 102 err = snd_emu10k1_pcm(emu, 0); in snd_card_emu10k1_probe() 105 if (emu->card_capabilities->ac97_chip) { in snd_card_emu10k1_probe() 106 err = snd_emu10k1_pcm_mic(emu, 1); in snd_card_emu10k1_probe() 110 err = snd_emu10k1_pcm_efx(emu, 2); in snd_card_emu10k1_probe() 114 if (emu->card_capabilities->ca0151_chip) { /* P16V */ in snd_card_emu10k1_probe() 115 emu->p16v_buffer = in snd_card_emu10k1_probe() 117 if (!emu in snd_card_emu10k1_probe() 187 struct snd_emu10k1 *emu = card->private_data; snd_emu10k1_suspend() local 209 struct snd_emu10k1 *emu = card->private_data; snd_emu10k1_resume() local [all...] |
| H A D | emufx.c | 362 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); in snd_emu10k1_gpr_ctl_put() local 380 snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[i], 0, val); in snd_emu10k1_gpr_ctl_put() 383 snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[i], 0, ~val); in snd_emu10k1_gpr_ctl_put() 386 snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[i], 0, db_table[val]); in snd_emu10k1_gpr_ctl_put() 389 snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[i], 0, in snd_emu10k1_gpr_ctl_put() 398 snd_emu10k1_ptr_write(emu, em in snd_emu10k1_gpr_ctl_put() 421 snd_emu10k1_fx8010_interrupt(struct snd_emu10k1 * emu) snd_emu10k1_fx8010_interrupt() argument 437 snd_emu10k1_fx8010_register_irq_handler(struct snd_emu10k1 * emu,snd_fx8010_irq_handler_t * handler,unsigned char gpr_running,void * private_data,struct snd_emu10k1_fx8010_irq * irq) snd_emu10k1_fx8010_register_irq_handler() argument 459 snd_emu10k1_fx8010_unregister_irq_handler(struct snd_emu10k1 * emu,struct snd_emu10k1_fx8010_irq * irq) snd_emu10k1_fx8010_unregister_irq_handler() argument 519 snd_emu10k1_efx_write(struct snd_emu10k1 * emu,unsigned int pc,unsigned int data) snd_emu10k1_efx_write() argument 525 snd_emu10k1_efx_read(struct snd_emu10k1 * emu,unsigned int pc) snd_emu10k1_efx_read() argument 531 snd_emu10k1_gpr_poke(struct snd_emu10k1 * emu,struct snd_emu10k1_fx8010_code * icode,bool in_kernel) snd_emu10k1_gpr_poke() argument 550 snd_emu10k1_gpr_peek(struct snd_emu10k1 * emu,struct snd_emu10k1_fx8010_code * icode) snd_emu10k1_gpr_peek() argument 565 snd_emu10k1_tram_poke(struct snd_emu10k1 * emu,struct snd_emu10k1_fx8010_code * icode,bool in_kernel) snd_emu10k1_tram_poke() argument 594 snd_emu10k1_tram_peek(struct snd_emu10k1 * emu,struct snd_emu10k1_fx8010_code * icode) snd_emu10k1_tram_peek() argument 617 snd_emu10k1_code_poke(struct snd_emu10k1 * emu,struct snd_emu10k1_fx8010_code * icode,bool in_kernel) snd_emu10k1_code_poke() argument 640 snd_emu10k1_code_peek(struct snd_emu10k1 * emu,struct snd_emu10k1_fx8010_code * icode) snd_emu10k1_code_peek() argument 659 snd_emu10k1_look_for_ctl(struct snd_emu10k1 * emu,struct emu10k1_ctl_elem_id * _id) snd_emu10k1_look_for_ctl() argument 704 copy_gctl(struct snd_emu10k1 * emu,struct snd_emu10k1_fx8010_control_gpr * dst,struct snd_emu10k1_fx8010_control_gpr * src,int idx,bool in_kernel) copy_gctl() argument 732 copy_gctl_to_user(struct snd_emu10k1 * emu,struct snd_emu10k1_fx8010_control_gpr * dst,struct snd_emu10k1_fx8010_control_gpr * src,int idx) copy_gctl_to_user() argument 761 snd_emu10k1_verify_controls(struct snd_emu10k1 * emu,struct snd_emu10k1_fx8010_code * icode,bool in_kernel) snd_emu10k1_verify_controls() argument 854 snd_emu10k1_add_controls(struct snd_emu10k1 * emu,struct snd_emu10k1_fx8010_code * icode,bool in_kernel) snd_emu10k1_add_controls() argument 952 snd_emu10k1_del_controls(struct snd_emu10k1 * emu,struct snd_emu10k1_fx8010_code * icode,bool in_kernel) snd_emu10k1_del_controls() argument 974 snd_emu10k1_list_controls(struct snd_emu10k1 * emu,struct snd_emu10k1_fx8010_code * icode) snd_emu10k1_list_controls() argument 1020 snd_emu10k1_icode_poke(struct snd_emu10k1 * emu,struct snd_emu10k1_fx8010_code * icode,bool in_kernel) snd_emu10k1_icode_poke() argument 1061 snd_emu10k1_icode_peek(struct snd_emu10k1 * emu,struct snd_emu10k1_fx8010_code * icode) snd_emu10k1_icode_peek() argument 1079 snd_emu10k1_ipcm_poke(struct snd_emu10k1 * emu,struct snd_emu10k1_fx8010_pcm_rec * ipcm) snd_emu10k1_ipcm_poke() argument 1119 snd_emu10k1_ipcm_peek(struct snd_emu10k1 * emu,struct snd_emu10k1_fx8010_pcm_rec * ipcm) snd_emu10k1_ipcm_peek() argument 1260 _snd_emu10k1_audigy_init_efx(struct snd_emu10k1 * emu) _snd_emu10k1_audigy_init_efx() argument 1791 _snd_emu10k1_init_efx(struct snd_emu10k1 * emu) _snd_emu10k1_init_efx() argument 2342 snd_emu10k1_init_efx(struct snd_emu10k1 * emu) snd_emu10k1_init_efx() argument 2352 snd_emu10k1_free_efx(struct snd_emu10k1 * emu) snd_emu10k1_free_efx() argument 2379 snd_emu10k1_fx8010_tram_setup(struct snd_emu10k1 * emu,u32 size) snd_emu10k1_fx8010_tram_setup() argument 2434 snd_emu10k1_fx8010_info(struct snd_emu10k1 * emu,struct snd_emu10k1_fx8010_info * info) snd_emu10k1_fx8010_info() argument 2460 struct snd_emu10k1 *emu = hw->private_data; snd_emu10k1_fx8010_ioctl() local 2596 snd_emu10k1_fx8010_new(struct snd_emu10k1 * emu,int device) snd_emu10k1_fx8010_new() argument 2614 snd_emu10k1_efx_alloc_pm_buffer(struct snd_emu10k1 * emu) snd_emu10k1_efx_alloc_pm_buffer() argument 2634 snd_emu10k1_efx_free_pm_buffer(struct snd_emu10k1 * emu) snd_emu10k1_efx_free_pm_buffer() argument 2645 snd_emu10k1_efx_suspend(struct snd_emu10k1 * emu) snd_emu10k1_efx_suspend() argument 2669 snd_emu10k1_efx_resume(struct snd_emu10k1 * emu) snd_emu10k1_efx_resume() argument [all...] |
| H A D | timer.c | 16 struct snd_emu10k1 *emu; in snd_emu10k1_timer_start() local 19 emu = snd_timer_chip(timer); in snd_emu10k1_timer_start() 23 snd_emu10k1_intr_enable(emu, INTE_INTERVALTIMERENB); in snd_emu10k1_timer_start() 24 outw(delay & TIMER_RATE_MASK, emu->port + TIMER); in snd_emu10k1_timer_start() 30 struct snd_emu10k1 *emu; in snd_emu10k1_timer_stop() local 32 emu = snd_timer_chip(timer); in snd_emu10k1_timer_stop() 33 snd_emu10k1_intr_disable(emu, INTE_INTERVALTIMERENB); in snd_emu10k1_timer_stop() 39 struct snd_emu10k1 *emu = snd_timer_chip(timer); in snd_emu10k1_timer_c_resolution() local 41 if (emu->card_capabilities->emu_model && in snd_emu10k1_timer_c_resolution() 42 emu->emu1010.word_clock == 44100) in snd_emu10k1_timer_c_resolution() [all …]
|
| H A D | emu10k1_patch.c | 35 struct snd_emu10k1 *emu; in snd_emu10k1_sample_new() local 37 emu = rec->hw; in snd_emu10k1_sample_new() 43 dev_warn(emu->card->dev, in snd_emu10k1_sample_new() 100 sp->block = snd_emu10k1_synth_alloc(emu, blocksize); in snd_emu10k1_sample_new() 102 dev_dbg(emu->card->dev, in snd_emu10k1_sample_new() 113 snd_emu10k1_synth_memset(emu, sp->block, offset, size, fill); in snd_emu10k1_sample_new() 119 if (snd_emu10k1_synth_copy_from_user(emu, sp->block, offset, data, size, xor)) in snd_emu10k1_sample_new() 126 if (snd_emu10k1_synth_copy_from_user(emu, sp->block, offset, data, size, xor)) in snd_emu10k1_sample_new() 135 if (snd_emu10k1_synth_copy_from_user(emu, sp->block, offset, data, size, xor)) in snd_emu10k1_sample_new() 141 snd_emu10k1_synth_memset(emu, sp->block, offset, blocksize - offset, fill); in snd_emu10k1_sample_new() [all …]
|
| H A D | emu10k1_callback.c | 38 static int get_pitch_shift(struct snd_emux *emu); 82 struct snd_emux *emu; in snd_emu10k1_synth_get_voice() local 87 emu = hw->synth; in snd_emu10k1_synth_get_voice() 89 lookup_voices(emu, hw, best, 1); /* no OFF voices */ in snd_emu10k1_synth_get_voice() 93 vp = &emu->voices[best[i].voice]; in snd_emu10k1_synth_get_voice() 102 vp->emu->num_voices--; in snd_emu10k1_synth_get_voice() 171 vp->emu->num_voices--; in free_voice() 210 lookup_voices(struct snd_emux *emu, struct snd_emu10k1 *hw, in lookup_voices() argument 226 for (i = 0; i < emu->max_voices; i++) { in lookup_voices() 229 vp = &emu->voices[i]; in lookup_voices() [all …]
|
| /linux/sound/pci/ca0106/ |
| H A D | ca0106_mixer.c | 63 static void ca0106_spdif_enable(struct snd_ca0106 *emu) in ca0106_spdif_enable() argument 67 if (emu->spdif_enable) { in ca0106_spdif_enable() 69 snd_ca0106_ptr_write(emu, SPDIF_SELECT1, 0, 0xf); in ca0106_spdif_enable() 70 snd_ca0106_ptr_write(emu, SPDIF_SELECT2, 0, 0x0b000000); in ca0106_spdif_enable() 71 val = snd_ca0106_ptr_read(emu, CAPTURE_CONTROL, 0) & ~0x1000; in ca0106_spdif_enable() 72 snd_ca0106_ptr_write(emu, CAPTURE_CONTROL, 0, val); in ca0106_spdif_enable() 73 val = inl(emu->port + CA0106_GPIO) & ~0x101; in ca0106_spdif_enable() 74 outl(val, emu->port + CA0106_GPIO); in ca0106_spdif_enable() 78 snd_ca0106_ptr_write(emu, SPDIF_SELECT1, 0, 0xf); in ca0106_spdif_enable() 79 snd_ca0106_ptr_write(emu, SPDIF_SELECT2, 0, 0x000f0000); in ca0106_spdif_enable() [all …]
|
| H A D | ca0106_main.c | 331 unsigned int snd_ca0106_ptr_read(struct snd_ca0106 * emu, in snd_ca0106_ptr_read() argument 339 guard(spinlock_irqsave)(&emu->emu_lock); in snd_ca0106_ptr_read() 340 outl(regptr, emu->port + CA0106_PTR); in snd_ca0106_ptr_read() 341 return inl(emu->port + CA0106_DATA); in snd_ca0106_ptr_read() 344 void snd_ca0106_ptr_write(struct snd_ca0106 *emu, in snd_ca0106_ptr_write() argument 353 guard(spinlock_irqsave)(&emu->emu_lock); in snd_ca0106_ptr_write() 354 outl(regptr, emu->port + CA0106_PTR); in snd_ca0106_ptr_write() 355 outl(data, emu->port + CA0106_DATA); in snd_ca0106_ptr_write() 358 int snd_ca0106_spi_write(struct snd_ca0106 * emu, in snd_ca0106_spi_write() argument 367 tmp = snd_ca0106_ptr_read(emu, re in snd_ca0106_spi_write() 391 snd_ca0106_i2c_write(struct snd_ca0106 * emu,u32 reg,u32 value) snd_ca0106_i2c_write() argument 447 snd_ca0106_intr_enable(struct snd_ca0106 * emu,unsigned int intrenb) snd_ca0106_intr_enable() argument 456 snd_ca0106_intr_disable(struct snd_ca0106 * emu,unsigned int intrenb) snd_ca0106_intr_disable() argument 708 struct snd_ca0106 *emu = snd_pcm_substream_chip(substream); snd_ca0106_pcm_prepare_playback() local 821 struct snd_ca0106 *emu = snd_pcm_substream_chip(substream); snd_ca0106_pcm_prepare_capture() local 913 struct snd_ca0106 *emu = snd_pcm_substream_chip(substream); snd_ca0106_pcm_trigger_playback() local 980 struct snd_ca0106 *emu = snd_pcm_substream_chip(substream); snd_ca0106_pcm_trigger_capture() local 1008 struct snd_ca0106 *emu = snd_pcm_substream_chip(substream); snd_ca0106_pcm_pointer_playback() local 1038 struct snd_ca0106 *emu = snd_pcm_substream_chip(substream); snd_ca0106_pcm_pointer_capture() local 1131 struct snd_ca0106 *emu = ac97->private_data; snd_ca0106_ac97_read() local 1141 struct snd_ca0106 *emu = ac97->private_data; snd_ca0106_ac97_write() local 1266 snd_ca0106_pcm(struct snd_ca0106 * emu,int device) snd_ca0106_pcm() argument [all...] |
| H A D | ca0106.h | 635 struct snd_ca0106 *emu; member 638 void (*interrupt)(struct snd_ca0106 *emu, struct snd_ca0106_channel *channel); 643 struct snd_ca0106 *emu; member 703 int snd_ca0106_mixer(struct snd_ca0106 *emu); 704 int snd_ca0106_proc_init(struct snd_ca0106 * emu); 706 unsigned int snd_ca0106_ptr_read(struct snd_ca0106 * emu, 710 void snd_ca0106_ptr_write(struct snd_ca0106 *emu, 715 int snd_ca0106_i2c_write(struct snd_ca0106 *emu, u32 reg, u32 value); 717 int snd_ca0106_spi_write(struct snd_ca0106 * emu,
|
| /linux/drivers/input/gameport/ |
| H A D | emu10k1-gp.c | 22 struct emu { struct 42 struct emu *emu; in emu_probe() argument 46 emu = kzalloc_obj(*emu); in emu_probe() 48 if (!emu || !port) { in emu_probe() 58 emu->io = pci_resource_start(pdev, 0); in emu_probe() 59 emu->size = pci_resource_len(pdev, 0); in emu_probe() 61 emu->dev = pdev; in emu_probe() 62 emu->gameport = port; in emu_probe() 67 port->io = emu->io; in emu_probe() 69 if (!request_region(emu->io, emu->size, "emu10k1-gp")) { in emu_probe() [all …]
|
| /linux/sound/isa/sb/ |
| H A D | emu8000_patch.c | 24 snd_emu8000_open_dma(struct snd_emu8000 *emu, int write) in snd_emu8000_open_dma() argument 30 snd_emux_lock_voice(emu->emu, i); in snd_emu8000_open_dma() 31 snd_emu8000_dma_chan(emu, i, write); in snd_emu8000_open_dma() 35 EMU8000_VTFT_WRITE(emu, 30, 0); in snd_emu8000_open_dma() 36 EMU8000_PSST_WRITE(emu, 30, 0x1d8); in snd_emu8000_open_dma() 37 EMU8000_CSL_WRITE(emu, 30, 0x1e0); in snd_emu8000_open_dma() 38 EMU8000_CCCA_WRITE(emu, 30, 0x1d8); in snd_emu8000_open_dma() 39 EMU8000_VTFT_WRITE(emu, 31, 0); in snd_emu8000_open_dma() 40 EMU8000_PSST_WRITE(emu, 31, 0x1d8); in snd_emu8000_open_dma() 41 EMU8000_CSL_WRITE(emu, 31, 0x1e0); in snd_emu8000_open_dma() [all …]
|
| H A D | emu8000_pcm.c | 40 struct snd_emu8000 *emu; member 68 emu8k_open_dram_for_pcm(struct snd_emu8000 *emu, int channels) in emu8k_open_dram_for_pcm() argument 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() 85 snd_emu8000_dma_chan(emu, i, mode); in emu8k_open_dram_for_pcm() 89 EMU8000_VTFT_WRITE(emu, 30, 0); in emu8k_open_dram_for_pcm() 90 EMU8000_PSST_WRITE(emu, 30, 0x1d8); in emu8k_open_dram_for_pcm() 91 EMU8000_CSL_WRITE(emu, 30, 0x1e0); in emu8k_open_dram_for_pcm() 92 EMU8000_CCCA_WRITE(emu, 30, 0x1d8); in emu8k_open_dram_for_pcm() [all …]
|
| H A D | emu8000_synth.c | 27 struct snd_emux *emu; in snd_emu8000_probe() 33 if (hw->emu) in snd_emu8000_probe() 36 if (snd_emux_new(&emu) < 0) in snd_emu8000_probe() 39 hw->emu = emu; in snd_emu8000_probe() 42 emu->hw = hw; in snd_emu8000_probe() 43 emu->max_voices = EMU8000_DRAM_VOICES; in snd_emu8000_probe() 44 emu->num_ports = hw->seq_ports; in snd_emu8000_probe() 52 snd_emux_free(emu); in snd_emu8000_probe() 53 hw->emu in snd_emu8000_probe() 28 struct snd_emux *emu; snd_emu8000_probe() local [all...] |
| H A D | emu8000_callback.c | 16 static struct snd_emux_voice *get_voice(struct snd_emux *emu, 22 static void reset_voice(struct snd_emux *emu, int ch); 24 static void sysex(struct snd_emux *emu, char *buf, int len, int parsed, 27 static int oss_ioctl(struct snd_emux *emu, int cmd, int p1, int p2); 29 static int load_fx(struct snd_emux *emu, int type, int mode, 39 static void snd_emu8000_tweak_voice(struct snd_emu8000 *emu, int ch); 74 hw->emu->ops = emu8000_ops; in snd_emu8000_ops_setup() 144 get_voice(struct snd_emux *emu, struct snd_emux_port *port) in get_voice() argument 162 hw = emu->hw; in get_voice() 172 for (i = 0; i < emu->max_voices; i++) { in get_voice() [all …]
|