Home
last modified time | relevance | path

Searched refs:emu (Results 1 – 65 of 65) sorted by relevance

/linux-4.4.14/include/sound/
Demu8000_reg.h44 #define EMU8000_CPF_READ(emu, chan) \ argument
45 snd_emu8000_peek_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(0, (chan)))
46 #define EMU8000_PTRX_READ(emu, chan) \ argument
47 snd_emu8000_peek_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(1, (chan)))
48 #define EMU8000_CVCF_READ(emu, chan) \ argument
49 snd_emu8000_peek_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(2, (chan)))
50 #define EMU8000_VTFT_READ(emu, chan) \ argument
51 snd_emu8000_peek_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(3, (chan)))
52 #define EMU8000_PSST_READ(emu, chan) \ argument
53 snd_emu8000_peek_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(6, (chan)))
[all …]
Demu10k1.h1503 struct snd_emu10k1 *emu; member
1510 void (*interrupt)(struct snd_emu10k1 *emu, struct snd_emu10k1_voice *pvoice);
1524 struct snd_emu10k1 *emu; member
1587 typedef void (snd_fx8010_irq_handler_t)(struct snd_emu10k1 *emu, void *private_data);
1635 struct snd_emu10k1 *emu; member
1646 void (*interrupt)(struct snd_emu10k1 *emu, unsigned int status);
1747 int (*get_synth_voice)(struct snd_emu10k1 *emu);
1771 void (*hwvol_interrupt)(struct snd_emu10k1 *emu, unsigned int status);
1772 void (*capture_interrupt)(struct snd_emu10k1 *emu, unsigned int status);
1773 void (*capture_mic_interrupt)(struct snd_emu10k1 *emu, unsigned int status);
[all …]
Demu8000.h61 struct snd_emux *emu; member
103 void snd_emu8000_poke(struct snd_emu8000 *emu, unsigned int port, unsigned int reg,
105 unsigned short snd_emu8000_peek(struct snd_emu8000 *emu, unsigned int port,
107 void snd_emu8000_poke_dw(struct snd_emu8000 *emu, unsigned int port, unsigned int reg,
109 unsigned int snd_emu8000_peek_dw(struct snd_emu8000 *emu, unsigned int port,
111 void snd_emu8000_dma_chan(struct snd_emu8000 *emu, int ch, int mode);
113 void snd_emu8000_init_fm(struct snd_emu8000 *emu);
115 void snd_emu8000_update_chorus_mode(struct snd_emu8000 *emu);
116 void snd_emu8000_update_reverb_mode(struct snd_emu8000 *emu);
117 void snd_emu8000_update_equalizer(struct snd_emu8000 *emu);
[all …]
Demux_synth.h49 struct snd_emux_voice *(*get_voice)(struct snd_emux *emu,
57 void (*reset)(struct snd_emux *emu, int ch);
59 int (*sample_new)(struct snd_emux *emu, struct snd_sf_sample *sp,
62 int (*sample_free)(struct snd_emux *emu, struct snd_sf_sample *sp,
64 void (*sample_reset)(struct snd_emux *emu);
65 int (*load_fx)(struct snd_emux *emu, int type, int arg,
67 void (*sysex)(struct snd_emux *emu, char *buf, int len, int parsed,
70 int (*oss_ioctl)(struct snd_emux *emu, int cmd, int p1, int p2);
144 struct snd_emux *emu; member
187 struct snd_emux *emu; /* assigned root info */ member
[all …]
/linux-4.4.14/sound/pci/emu10k1/
Demu10k1_main.c73 void snd_emu10k1_voice_init(struct snd_emu10k1 *emu, int ch) in snd_emu10k1_voice_init() argument
75 snd_emu10k1_ptr_write(emu, DCYSUSV, ch, 0); in snd_emu10k1_voice_init()
76 snd_emu10k1_ptr_write(emu, IP, ch, 0); in snd_emu10k1_voice_init()
77 snd_emu10k1_ptr_write(emu, VTFT, ch, 0xffff); in snd_emu10k1_voice_init()
78 snd_emu10k1_ptr_write(emu, CVCF, ch, 0xffff); in snd_emu10k1_voice_init()
79 snd_emu10k1_ptr_write(emu, PTRX, ch, 0); in snd_emu10k1_voice_init()
80 snd_emu10k1_ptr_write(emu, CPF, ch, 0); in snd_emu10k1_voice_init()
81 snd_emu10k1_ptr_write(emu, CCR, ch, 0); in snd_emu10k1_voice_init()
83 snd_emu10k1_ptr_write(emu, PSST, ch, 0); in snd_emu10k1_voice_init()
84 snd_emu10k1_ptr_write(emu, DSL, ch, 0x10); in snd_emu10k1_voice_init()
[all …]
Dio.c35 unsigned int snd_emu10k1_ptr_read(struct snd_emu10k1 * emu, unsigned int reg, unsigned int chn) in snd_emu10k1_ptr_read() argument
41 mask = emu->audigy ? A_PTR_ADDRESS_MASK : PTR_ADDRESS_MASK; in snd_emu10k1_ptr_read()
51 spin_lock_irqsave(&emu->emu_lock, flags); in snd_emu10k1_ptr_read()
52 outl(regptr, emu->port + PTR); in snd_emu10k1_ptr_read()
53 val = inl(emu->port + DATA); in snd_emu10k1_ptr_read()
54 spin_unlock_irqrestore(&emu->emu_lock, flags); in snd_emu10k1_ptr_read()
58 spin_lock_irqsave(&emu->emu_lock, flags); in snd_emu10k1_ptr_read()
59 outl(regptr, emu->port + PTR); in snd_emu10k1_ptr_read()
60 val = inl(emu->port + DATA); in snd_emu10k1_ptr_read()
61 spin_unlock_irqrestore(&emu->emu_lock, flags); in snd_emu10k1_ptr_read()
[all …]
Demumpu401.c30 static inline unsigned char mpu401_read(struct snd_emu10k1 *emu, in mpu401_read() argument
33 if (emu->audigy) in mpu401_read()
34 return (unsigned char)snd_emu10k1_ptr_read(emu, mpu->port + idx, 0); in mpu401_read()
36 return inb(emu->port + mpu->port + idx); in mpu401_read()
39 static inline void mpu401_write(struct snd_emu10k1 *emu, in mpu401_write() argument
42 if (emu->audigy) in mpu401_write()
43 snd_emu10k1_ptr_write(emu, mpu->port + idx, 0, data); in mpu401_write()
45 outb(data, emu->port + mpu->port + idx); in mpu401_write()
48 #define mpu401_write_data(emu, mpu, data) mpu401_write(emu, mpu, data, 0) argument
49 #define mpu401_write_cmd(emu, mpu, data) mpu401_write(emu, mpu, data, 1) argument
[all …]
Dirq.c34 struct snd_emu10k1 *emu = dev_id; in snd_emu10k1_interrupt() local
39 while (((status = inl(emu->port + IPR)) != 0) && (timeout < 1000)) { in snd_emu10k1_interrupt()
44 dev_info(emu->card->dev, in snd_emu10k1_interrupt()
49 dev_err(emu->card->dev, "interrupt: PCI error\n"); in snd_emu10k1_interrupt()
50 snd_emu10k1_intr_disable(emu, INTE_PCIERRORENABLE); in snd_emu10k1_interrupt()
54 if (emu->hwvol_interrupt) in snd_emu10k1_interrupt()
55 emu->hwvol_interrupt(emu, status); in snd_emu10k1_interrupt()
57 snd_emu10k1_intr_disable(emu, INTE_VOLINCRENABLE|INTE_VOLDECRENABLE|INTE_MUTEENABLE); in snd_emu10k1_interrupt()
64 struct snd_emu10k1_voice *pvoice = emu->voices; in snd_emu10k1_interrupt()
66 val = snd_emu10k1_ptr_read(emu, CLIPL, 0); in snd_emu10k1_interrupt()
[all …]
Demupcm.c37 static void snd_emu10k1_pcm_interrupt(struct snd_emu10k1 *emu, in snd_emu10k1_pcm_interrupt() argument
47 dev_dbg(emu->card->dev, in snd_emu10k1_pcm_interrupt()
49 epcm->substream->runtime->hw->pointer(emu, epcm->substream), in snd_emu10k1_pcm_interrupt()
56 static void snd_emu10k1_pcm_ac97adc_interrupt(struct snd_emu10k1 *emu, in snd_emu10k1_pcm_ac97adc_interrupt() argument
61 if (emu->pcm_capture_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) in snd_emu10k1_pcm_ac97adc_interrupt()
65 snd_pcm_period_elapsed(emu->pcm_capture_substream); in snd_emu10k1_pcm_ac97adc_interrupt()
68 static void snd_emu10k1_pcm_ac97mic_interrupt(struct snd_emu10k1 *emu, in snd_emu10k1_pcm_ac97mic_interrupt() argument
73 if (emu->pcm_capture_mic_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) in snd_emu10k1_pcm_ac97mic_interrupt()
77 snd_pcm_period_elapsed(emu->pcm_capture_mic_substream); in snd_emu10k1_pcm_ac97mic_interrupt()
80 static void snd_emu10k1_pcm_efx_interrupt(struct snd_emu10k1 *emu, in snd_emu10k1_pcm_efx_interrupt() argument
[all …]
Demumixer.c56 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); in snd_emu10k1_spdif_get() local
63 spin_lock_irqsave(&emu->reg_lock, flags); in snd_emu10k1_spdif_get()
64 ucontrol->value.iec958.status[0] = (emu->spdif_bits[idx] >> 0) & 0xff; in snd_emu10k1_spdif_get()
65 ucontrol->value.iec958.status[1] = (emu->spdif_bits[idx] >> 8) & 0xff; in snd_emu10k1_spdif_get()
66 ucontrol->value.iec958.status[2] = (emu->spdif_bits[idx] >> 16) & 0xff; in snd_emu10k1_spdif_get()
67 ucontrol->value.iec958.status[3] = (emu->spdif_bits[idx] >> 24) & 0xff; in snd_emu10k1_spdif_get()
68 spin_unlock_irqrestore(&emu->reg_lock, flags); in snd_emu10k1_spdif_get()
395 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); in snd_emu1010_input_output_source_info() local
397 if (emu->card_capabilities->emu_model == EMU_MODEL_EMU1616) in snd_emu1010_input_output_source_info()
406 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); in snd_emu1010_output_source_get() local
[all …]
Demuproc.c37 static void snd_emu10k1_proc_spdif_status(struct snd_emu10k1 * emu, in snd_emu10k1_proc_spdif_status() argument
49 status = snd_emu10k1_ptr_read(emu, status_reg, 0); in snd_emu10k1_proc_spdif_status()
67 rate = snd_emu10k1_ptr_read(emu, rate_reg, 0); in snd_emu10k1_proc_spdif_status()
186 struct snd_emu10k1 *emu = entry->private_data; in snd_emu10k1_proc_read() local
188 int nefx = emu->audigy ? 64 : 32; in snd_emu10k1_proc_read()
189 char **outputs = emu->audigy ? audigy_outs : creative_outs; in snd_emu10k1_proc_read()
194 emu->audigy ? "Audigy" : (emu->card_capabilities->ecard ? "EMU APS" : "Creative")); in snd_emu10k1_proc_read()
195 snd_iprintf(buffer, "Internal TRAM (words) : 0x%x\n", emu->fx8010.itram_size); in snd_emu10k1_proc_read()
196 snd_iprintf(buffer, "External TRAM (words) : 0x%x\n", (int)emu->fx8010.etram_pages.bytes / 2); in snd_emu10k1_proc_read()
200 val = emu->audigy ? in snd_emu10k1_proc_read()
[all …]
Dp16v.c176 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); in snd_p16v_pcm_open_playback_channel() local
177 struct snd_emu10k1_voice *channel = &(emu->p16v_voices[channel_id]); in snd_p16v_pcm_open_playback_channel()
187 epcm->emu = emu; in snd_p16v_pcm_open_playback_channel()
198 channel->emu = emu; in snd_p16v_pcm_open_playback_channel()
203 dev_dbg(emu->card->dev, in snd_p16v_pcm_open_playback_channel()
206 dev_dbg(emu->card->dev, "open:channel_id=%d, chip=%p, channel=%p\n", in snd_p16v_pcm_open_playback_channel()
224 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); in snd_p16v_pcm_open_capture_channel() local
225 struct snd_emu10k1_voice *channel = &(emu->p16v_capture_voice); in snd_p16v_pcm_open_capture_channel()
235 epcm->emu = emu; in snd_p16v_pcm_open_capture_channel()
246 channel->emu = emu; in snd_p16v_pcm_open_capture_channel()
[all …]
Demu10k1.c107 struct snd_emu10k1 *emu; in snd_card_emu10k1_probe() local
131 &emu)) < 0) in snd_card_emu10k1_probe()
133 card->private_data = emu; in snd_card_emu10k1_probe()
134 emu->delay_pcm_irq = delay_pcm_irq[dev] & 0x1f; in snd_card_emu10k1_probe()
135 if ((err = snd_emu10k1_pcm(emu, 0)) < 0) in snd_card_emu10k1_probe()
137 if ((err = snd_emu10k1_pcm_mic(emu, 1)) < 0) in snd_card_emu10k1_probe()
139 if ((err = snd_emu10k1_pcm_efx(emu, 2)) < 0) in snd_card_emu10k1_probe()
142 if (emu->card_capabilities->ca0151_chip) { /* P16V */ in snd_card_emu10k1_probe()
144 1024, &emu->p16v_buffer)) < 0) in snd_card_emu10k1_probe()
148 if ((err = snd_emu10k1_mixer(emu, 0, 3)) < 0) in snd_card_emu10k1_probe()
[all …]
Demu10k1x.c199 struct emu10k1x *emu; member
207 struct emu10k1x *emu; member
214 struct emu10k1x *emu; member
225 void (*interrupt)(struct emu10k1x *emu, unsigned int status);
295 static unsigned int snd_emu10k1x_ptr_read(struct emu10k1x * emu, in snd_emu10k1x_ptr_read() argument
304 spin_lock_irqsave(&emu->emu_lock, flags); in snd_emu10k1x_ptr_read()
305 outl(regptr, emu->port + PTR); in snd_emu10k1x_ptr_read()
306 val = inl(emu->port + DATA); in snd_emu10k1x_ptr_read()
307 spin_unlock_irqrestore(&emu->emu_lock, flags); in snd_emu10k1x_ptr_read()
311 static void snd_emu10k1x_ptr_write(struct emu10k1x *emu, in snd_emu10k1x_ptr_write() argument
[all …]
Dmemory.c36 #define __set_ptb_entry(emu,page,addr) \ argument
37 (((u32 *)(emu)->ptb_pages.area)[page] = cpu_to_le32(((addr) << (emu->address_mode)) | (page)))
50 #define set_ptb_entry(emu,page,addr) __set_ptb_entry(emu,page,addr) argument
52 #define set_silent_ptb(emu,page) __set_ptb_entry(emu,page,emu->silent_page.addr) argument
55 static inline void set_ptb_entry(struct snd_emu10k1 *emu, int page, dma_addr_t addr) in set_ptb_entry() argument
60 __set_ptb_entry(emu, page, addr); in set_ptb_entry()
64 static inline void set_silent_ptb(struct snd_emu10k1 *emu, int page) in set_silent_ptb() argument
70 __set_ptb_entry(emu, page, emu->silent_page.addr); in set_silent_ptb()
103 static int search_empty_map_area(struct snd_emu10k1 *emu, int npages, struct list_head **nextp) in search_empty_map_area() argument
108 struct list_head *candidate = &emu->mapped_link_head; in search_empty_map_area()
[all …]
Dtimer.c34 struct snd_emu10k1 *emu; in snd_emu10k1_timer_start() local
38 emu = snd_timer_chip(timer); in snd_emu10k1_timer_start()
42 spin_lock_irqsave(&emu->reg_lock, flags); in snd_emu10k1_timer_start()
43 snd_emu10k1_intr_enable(emu, INTE_INTERVALTIMERENB); in snd_emu10k1_timer_start()
44 outw(delay & TIMER_RATE_MASK, emu->port + TIMER); in snd_emu10k1_timer_start()
45 spin_unlock_irqrestore(&emu->reg_lock, flags); in snd_emu10k1_timer_start()
51 struct snd_emu10k1 *emu; in snd_emu10k1_timer_stop() local
54 emu = snd_timer_chip(timer); in snd_emu10k1_timer_stop()
55 spin_lock_irqsave(&emu->reg_lock, flags); in snd_emu10k1_timer_stop()
56 snd_emu10k1_intr_disable(emu, INTE_INTERVALTIMERENB); in snd_emu10k1_timer_stop()
[all …]
Demufx.c349 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); in snd_emu10k1_gpr_ctl_get() local
355 spin_lock_irqsave(&emu->reg_lock, flags); in snd_emu10k1_gpr_ctl_get()
358 spin_unlock_irqrestore(&emu->reg_lock, flags); in snd_emu10k1_gpr_ctl_get()
364 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); in snd_emu10k1_gpr_ctl_put() local
372 spin_lock_irqsave(&emu->reg_lock, flags); in snd_emu10k1_gpr_ctl_put()
384 snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[i], 0, val); in snd_emu10k1_gpr_ctl_put()
387 snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[i], 0, db_table[val]); in snd_emu10k1_gpr_ctl_put()
395 … snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[j * ctl->vcount + i], 0, bass_table[val][j]); in snd_emu10k1_gpr_ctl_put()
403 …snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[j * ctl->vcount + i], 0, treble_table[val][j]); in snd_emu10k1_gpr_ctl_put()
406 snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[i], 0, onoff_table[val]); in snd_emu10k1_gpr_ctl_put()
[all …]
Dvoice.c48 static int voice_alloc(struct snd_emu10k1 *emu, int type, int number, in voice_alloc() argument
56 for (i = emu->next_free_voice, j = 0; j < NUM_G ; i += number, j += number) { in voice_alloc()
71 voice = &emu->voices[(i+k) % NUM_G]; in voice_alloc()
81 emu->next_free_voice = last_voice; in voice_alloc()
90 voice = &emu->voices[(first_voice + i) % NUM_G]; in voice_alloc()
111 *rvoice = &emu->voices[first_voice]; in voice_alloc()
115 int snd_emu10k1_voice_alloc(struct snd_emu10k1 *emu, int type, int number, in snd_emu10k1_voice_alloc() argument
126 spin_lock_irqsave(&emu->voice_lock, flags); in snd_emu10k1_voice_alloc()
128 result = voice_alloc(emu, type, number, rvoice); in snd_emu10k1_voice_alloc()
133 if (emu->get_synth_voice) { in snd_emu10k1_voice_alloc()
[all …]
Demu10k1_patch.c46 struct snd_emu10k1 *emu; in snd_emu10k1_sample_new() local
48 emu = rec->hw; in snd_emu10k1_sample_new()
53 dev_dbg(emu->card->dev, in snd_emu10k1_sample_new()
94 sp->block = snd_emu10k1_synth_alloc(emu, blocksize); in snd_emu10k1_sample_new()
96 dev_dbg(emu->card->dev, in snd_emu10k1_sample_new()
111 snd_emu10k1_synth_bzero(emu, sp->block, offset, size); in snd_emu10k1_sample_new()
120 if (snd_emu10k1_synth_copy_from_user(emu, sp->block, offset, data, size)) { in snd_emu10k1_sample_new()
121 snd_emu10k1_synth_free(emu, sp->block); in snd_emu10k1_sample_new()
167 if (snd_emu10k1_synth_copy_from_user(emu, sp->block, offset, data, size)) { in snd_emu10k1_sample_new()
168 snd_emu10k1_synth_free(emu, sp->block); in snd_emu10k1_sample_new()
[all …]
Demu10k1_callback.c94 struct snd_emux *emu; in snd_emu10k1_synth_get_voice() local
99 emu = hw->synth; in snd_emu10k1_synth_get_voice()
101 lookup_voices(emu, hw, best, 1); /* no OFF voices */ in snd_emu10k1_synth_get_voice()
105 vp = &emu->voices[best[i].voice]; in snd_emu10k1_synth_get_voice()
113 vp->emu->num_voices--; in snd_emu10k1_synth_get_voice()
182 vp->emu->num_voices--; in free_voice()
221 lookup_voices(struct snd_emux *emu, struct snd_emu10k1 *hw, in lookup_voices() argument
237 for (i = 0; i < emu->max_voices; i++) { in lookup_voices()
240 vp = &emu->voices[i]; in lookup_voices()
287 get_voice(struct snd_emux *emu, struct snd_emux_port *port) in get_voice() argument
[all …]
Demu10k1_synth_local.h35 int snd_emu10k1_memhdr_init(struct snd_emux *emu);
38 void snd_emu10k1_ops_setup(struct snd_emux *emu);
/linux-4.4.14/sound/isa/sb/
Demu8000.c48 void snd_emu8000_poke(struct snd_emu8000 *emu, unsigned int port, unsigned int reg, unsigned int va… in snd_emu8000_poke() argument
51 spin_lock_irqsave(&emu->reg_lock, flags); in snd_emu8000_poke()
52 if (reg != emu->last_reg) { in snd_emu8000_poke()
53 outw((unsigned short)reg, EMU8000_PTR(emu)); /* Set register */ in snd_emu8000_poke()
54 emu->last_reg = reg; in snd_emu8000_poke()
57 spin_unlock_irqrestore(&emu->reg_lock, flags); in snd_emu8000_poke()
61 unsigned short snd_emu8000_peek(struct snd_emu8000 *emu, unsigned int port, unsigned int reg) in snd_emu8000_peek() argument
65 spin_lock_irqsave(&emu->reg_lock, flags); in snd_emu8000_peek()
66 if (reg != emu->last_reg) { in snd_emu8000_peek()
67 outw((unsigned short)reg, EMU8000_PTR(emu)); /* Set register */ in snd_emu8000_peek()
[all …]
Demu8000_pcm.c51 struct snd_emu8000 *emu; member
79 emu8k_open_dram_for_pcm(struct snd_emu8000 *emu, int channels) in emu8k_open_dram_for_pcm() argument
84 snd_emux_lock_voice(emu->emu, 0); in emu8k_open_dram_for_pcm()
86 snd_emux_lock_voice(emu->emu, 1); in emu8k_open_dram_for_pcm()
91 snd_emux_lock_voice(emu->emu, i); in emu8k_open_dram_for_pcm()
96 snd_emu8000_dma_chan(emu, i, mode); in emu8k_open_dram_for_pcm()
100 EMU8000_VTFT_WRITE(emu, 30, 0); in emu8k_open_dram_for_pcm()
101 EMU8000_PSST_WRITE(emu, 30, 0x1d8); in emu8k_open_dram_for_pcm()
102 EMU8000_CSL_WRITE(emu, 30, 0x1e0); in emu8k_open_dram_for_pcm()
103 EMU8000_CCCA_WRITE(emu, 30, 0x1d8); in emu8k_open_dram_for_pcm()
[all …]
Demu8000_patch.c35 snd_emu8000_open_dma(struct snd_emu8000 *emu, int write) in snd_emu8000_open_dma() argument
41 snd_emux_lock_voice(emu->emu, i); in snd_emu8000_open_dma()
42 snd_emu8000_dma_chan(emu, i, write); in snd_emu8000_open_dma()
46 EMU8000_VTFT_WRITE(emu, 30, 0); in snd_emu8000_open_dma()
47 EMU8000_PSST_WRITE(emu, 30, 0x1d8); in snd_emu8000_open_dma()
48 EMU8000_CSL_WRITE(emu, 30, 0x1e0); in snd_emu8000_open_dma()
49 EMU8000_CCCA_WRITE(emu, 30, 0x1d8); in snd_emu8000_open_dma()
50 EMU8000_VTFT_WRITE(emu, 31, 0); in snd_emu8000_open_dma()
51 EMU8000_PSST_WRITE(emu, 31, 0x1d8); in snd_emu8000_open_dma()
52 EMU8000_CSL_WRITE(emu, 31, 0x1e0); in snd_emu8000_open_dma()
[all …]
Demu8000_synth.c41 struct snd_emux *emu; in snd_emu8000_probe() local
47 if (hw->emu) in snd_emu8000_probe()
50 if (snd_emux_new(&emu) < 0) in snd_emu8000_probe()
53 hw->emu = emu; in snd_emu8000_probe()
56 emu->hw = hw; in snd_emu8000_probe()
57 emu->max_voices = EMU8000_DRAM_VOICES; in snd_emu8000_probe()
58 emu->num_ports = hw->seq_ports; in snd_emu8000_probe()
66 snd_emux_free(emu); in snd_emu8000_probe()
67 hw->emu = NULL; in snd_emu8000_probe()
71 emu->memhdr = hw->memhdr; in snd_emu8000_probe()
[all …]
Demu8000_callback.c29 static struct snd_emux_voice *get_voice(struct snd_emux *emu,
35 static void reset_voice(struct snd_emux *emu, int ch);
37 static void sysex(struct snd_emux *emu, char *buf, int len, int parsed,
40 static int oss_ioctl(struct snd_emux *emu, int cmd, int p1, int p2);
42 static int load_fx(struct snd_emux *emu, int type, int mode,
52 static void snd_emu8000_tweak_voice(struct snd_emu8000 *emu, int ch);
87 hw->emu->ops = emu8000_ops; in snd_emu8000_ops_setup()
157 get_voice(struct snd_emux *emu, struct snd_emux_port *port) in get_voice() argument
175 hw = emu->hw; in get_voice()
185 for (i = 0; i < emu->max_voices; i++) { in get_voice()
[all …]
Demu8000_local.h40 void snd_emu8000_ops_setup(struct snd_emu8000 *emu);
43 int snd_emu8000_pcm_new(struct snd_card *card, struct snd_emu8000 *emu, int index);
/linux-4.4.14/sound/synth/emux/
Demux.c39 struct snd_emux *emu; in snd_emux_new() local
42 emu = kzalloc(sizeof(*emu), GFP_KERNEL); in snd_emux_new()
43 if (emu == NULL) in snd_emux_new()
46 spin_lock_init(&emu->voice_lock); in snd_emux_new()
47 mutex_init(&emu->register_mutex); in snd_emux_new()
49 emu->client = -1; in snd_emux_new()
51 emu->oss_synth = NULL; in snd_emux_new()
53 emu->max_voices = 0; in snd_emux_new()
54 emu->use_time = 0; in snd_emux_new()
56 setup_timer(&emu->tlist, snd_emux_timer_callback, (unsigned long)emu); in snd_emux_new()
[all …]
Demux_seq.c68 snd_emux_init_seq(struct snd_emux *emu, struct snd_card *card, int index) in snd_emux_init_seq() argument
74 emu->client = snd_seq_create_kernel_client(card, index, in snd_emux_init_seq()
75 "%s WaveTable", emu->name); in snd_emux_init_seq()
76 if (emu->client < 0) { in snd_emux_init_seq()
81 if (emu->num_ports < 0) { in snd_emux_init_seq()
83 emu->num_ports = 1; in snd_emux_init_seq()
84 } else if (emu->num_ports >= SNDRV_EMUX_MAX_PORTS) { in snd_emux_init_seq()
87 emu->num_ports = SNDRV_EMUX_MAX_PORTS; in snd_emux_init_seq()
96 for (i = 0; i < emu->num_ports; i++) { in snd_emux_init_seq()
99 sprintf(tmpname, "%s Port %d", emu->name, i); in snd_emux_init_seq()
[all …]
Demux_synth.c40 static int get_zone(struct snd_emux *emu, struct snd_emux_port *port,
44 static void terminate_note1(struct snd_emux *emu, int note,
46 static void exclusive_note_off(struct snd_emux *emu, struct snd_emux_port *port,
48 static void terminate_voice(struct snd_emux *emu, struct snd_emux_voice *vp, int free);
49 static void update_voice(struct snd_emux *emu, struct snd_emux_voice *vp, int update);
62 struct snd_emux *emu; in snd_emux_note_on() local
73 emu = port->emu; in snd_emux_note_on()
74 if (snd_BUG_ON(!emu || !emu->ops.get_voice || !emu->ops.trigger)) in snd_emux_note_on()
78 nvoices = get_zone(emu, port, &note, vel, chan, table); in snd_emux_note_on()
86 exclusive_note_off(emu, port, zp->v.exclusiveClass); in snd_emux_note_on()
[all …]
Demux_hwdep.c34 snd_emux_hwdep_load_patch(struct snd_emux *emu, void __user *arg) in snd_emux_hwdep_load_patch() argument
44 err = snd_soundfont_load(emu->sflist, arg, patch.len + sizeof(patch), TMP_CLIENT_ID); in snd_emux_hwdep_load_patch()
48 if (emu->ops.load_fx) in snd_emux_hwdep_load_patch()
49 return emu->ops.load_fx(emu, patch.type, patch.optarg, arg, patch.len + sizeof(patch)); in snd_emux_hwdep_load_patch()
60 snd_emux_hwdep_misc_mode(struct snd_emux *emu, void __user *arg) in snd_emux_hwdep_misc_mode() argument
71 for (i = 0; i < emu->num_ports; i++) in snd_emux_hwdep_misc_mode()
72 emu->portptrs[i]->ctrls[info.mode] = info.value; in snd_emux_hwdep_misc_mode()
74 if (info.port < emu->num_ports) in snd_emux_hwdep_misc_mode()
75 emu->portptrs[info.port]->ctrls[info.mode] = info.value; in snd_emux_hwdep_misc_mode()
88 struct snd_emux *emu = hw->private_data; in snd_emux_hwdep_ioctl() local
[all …]
Demux_proc.c31 struct snd_emux *emu; in snd_emux_proc_info_read() local
34 emu = entry->private_data; in snd_emux_proc_info_read()
35 mutex_lock(&emu->register_mutex); in snd_emux_proc_info_read()
36 if (emu->name) in snd_emux_proc_info_read()
37 snd_iprintf(buf, "Device: %s\n", emu->name); in snd_emux_proc_info_read()
38 snd_iprintf(buf, "Ports: %d\n", emu->num_ports); in snd_emux_proc_info_read()
40 for (i = 0; i < emu->num_ports; i++) in snd_emux_proc_info_read()
41 snd_iprintf(buf, " %d:%d", emu->client, emu->ports[i]); in snd_emux_proc_info_read()
43 snd_iprintf(buf, "Use Counter: %d\n", emu->used); in snd_emux_proc_info_read()
44 snd_iprintf(buf, "Max Voices: %d\n", emu->max_voices); in snd_emux_proc_info_read()
[all …]
Demux_oss.c44 static void emuspec_control(struct snd_emux *emu, struct snd_emux_port *port,
46 static void gusspec_control(struct snd_emux *emu, struct snd_emux_port *port,
48 static void fake_event(struct snd_emux *emu, struct snd_emux_port *port,
67 snd_emux_init_seq_oss(struct snd_emux *emu) in snd_emux_init_seq_oss() argument
73 if (snd_seq_device_new(emu->card, 1, SNDRV_SEQ_DEV_ID_OSS, in snd_emux_init_seq_oss()
77 emu->oss_synth = dev; in snd_emux_init_seq_oss()
78 strcpy(dev->name, emu->name); in snd_emux_init_seq_oss()
82 arg->nvoices = emu->max_voices; in snd_emux_init_seq_oss()
84 arg->private_data = emu; in snd_emux_init_seq_oss()
87 snd_device_register(emu->card, dev); in snd_emux_init_seq_oss()
[all …]
Demux_voice.h31 int snd_emux_init_seq(struct snd_emux *emu, struct snd_card *card, int index);
32 void snd_emux_detach_seq(struct snd_emux *emu);
33 struct snd_emux_port *snd_emux_create_port(struct snd_emux *emu, char *name,
39 int snd_emux_inc_count(struct snd_emux *emu);
40 void snd_emux_dec_count(struct snd_emux *emu);
41 int snd_emux_init_virmidi(struct snd_emux *emu, struct snd_card *card);
42 int snd_emux_delete_virmidi(struct snd_emux *emu);
45 void snd_emux_init_voices(struct snd_emux *emu);
81 void snd_emux_init_seq_oss(struct snd_emux *emu);
82 void snd_emux_detach_seq_oss(struct snd_emux *emu);
[all …]
Demux_effect.c183 struct snd_emux *emu; in snd_emux_send_effect() local
187 emu = port->emu; in snd_emux_send_effect()
189 if (emu == NULL || fx == NULL) in snd_emux_send_effect()
209 spin_lock_irqsave(&emu->voice_lock, flags); in snd_emux_send_effect()
210 for (i = 0; i < emu->max_voices; i++) { in snd_emux_send_effect()
211 struct snd_emux_voice *vp = &emu->voices[i]; in snd_emux_send_effect()
224 spin_unlock_irqrestore(&emu->voice_lock, flags); in snd_emux_send_effect()
Demux_nrpn.c379 struct snd_emux *emu; in snd_emux_sysex() local
384 emu = port->emu; in snd_emux_sysex()
391 if (emu->ops.sysex) in snd_emux_sysex()
392 emu->ops.sysex(emu, buf, len, parsed, chset); in snd_emux_sysex()
/linux-4.4.14/sound/pci/ca0106/
Dca0106_mixer.c77 static void ca0106_spdif_enable(struct snd_ca0106 *emu) in ca0106_spdif_enable() argument
81 if (emu->spdif_enable) { in ca0106_spdif_enable()
83 snd_ca0106_ptr_write(emu, SPDIF_SELECT1, 0, 0xf); in ca0106_spdif_enable()
84 snd_ca0106_ptr_write(emu, SPDIF_SELECT2, 0, 0x0b000000); in ca0106_spdif_enable()
85 val = snd_ca0106_ptr_read(emu, CAPTURE_CONTROL, 0) & ~0x1000; in ca0106_spdif_enable()
86 snd_ca0106_ptr_write(emu, CAPTURE_CONTROL, 0, val); in ca0106_spdif_enable()
87 val = inl(emu->port + GPIO) & ~0x101; in ca0106_spdif_enable()
88 outl(val, emu->port + GPIO); in ca0106_spdif_enable()
92 snd_ca0106_ptr_write(emu, SPDIF_SELECT1, 0, 0xf); in ca0106_spdif_enable()
93 snd_ca0106_ptr_write(emu, SPDIF_SELECT2, 0, 0x000f0000); in ca0106_spdif_enable()
[all …]
Dca0106_proc.c275 struct snd_ca0106 *emu = entry->private_data; in snd_ca0106_proc_iec958() local
278 value = snd_ca0106_ptr_read(emu, SAMPLE_RATE_TRACKER_STATUS, 0); in snd_ca0106_proc_iec958()
287 value = snd_ca0106_ptr_read(emu, SPDIF_INPUT_STATUS, 0); in snd_ca0106_proc_iec958()
297 struct snd_ca0106 *emu = entry->private_data; in snd_ca0106_proc_reg_write32() local
305 spin_lock_irqsave(&emu->emu_lock, flags); in snd_ca0106_proc_reg_write32()
306 outl(val, emu->port + (reg & 0xfffffffc)); in snd_ca0106_proc_reg_write32()
307 spin_unlock_irqrestore(&emu->emu_lock, flags); in snd_ca0106_proc_reg_write32()
315 struct snd_ca0106 *emu = entry->private_data; in snd_ca0106_proc_reg_read32() local
321 spin_lock_irqsave(&emu->emu_lock, flags); in snd_ca0106_proc_reg_read32()
322 value = inl(emu->port + i); in snd_ca0106_proc_reg_read32()
[all …]
Dca0106_main.c346 unsigned int snd_ca0106_ptr_read(struct snd_ca0106 * emu, in snd_ca0106_ptr_read() argument
355 spin_lock_irqsave(&emu->emu_lock, flags); in snd_ca0106_ptr_read()
356 outl(regptr, emu->port + PTR); in snd_ca0106_ptr_read()
357 val = inl(emu->port + DATA); in snd_ca0106_ptr_read()
358 spin_unlock_irqrestore(&emu->emu_lock, flags); in snd_ca0106_ptr_read()
362 void snd_ca0106_ptr_write(struct snd_ca0106 *emu, in snd_ca0106_ptr_write() argument
372 spin_lock_irqsave(&emu->emu_lock, flags); in snd_ca0106_ptr_write()
373 outl(regptr, emu->port + PTR); in snd_ca0106_ptr_write()
374 outl(data, emu->port + DATA); in snd_ca0106_ptr_write()
375 spin_unlock_irqrestore(&emu->emu_lock, flags); in snd_ca0106_ptr_write()
[all …]
Dca0106.h650 struct snd_ca0106 *emu; member
653 void (*interrupt)(struct snd_ca0106 *emu, struct snd_ca0106_channel *channel);
658 struct snd_ca0106 *emu; member
719 int snd_ca0106_mixer(struct snd_ca0106 *emu);
720 int snd_ca0106_proc_init(struct snd_ca0106 * emu);
722 unsigned int snd_ca0106_ptr_read(struct snd_ca0106 * emu,
726 void snd_ca0106_ptr_write(struct snd_ca0106 *emu,
731 int snd_ca0106_i2c_write(struct snd_ca0106 *emu, u32 reg, u32 value);
733 int snd_ca0106_spi_write(struct snd_ca0106 * emu,
/linux-4.4.14/drivers/input/gameport/
Demu10k1-gp.c41 struct emu { struct
61 struct emu *emu; in emu_probe() argument
65 emu = kzalloc(sizeof(struct emu), GFP_KERNEL); in emu_probe()
67 if (!emu || !port) { in emu_probe()
77 emu->io = pci_resource_start(pdev, 0); in emu_probe()
78 emu->size = pci_resource_len(pdev, 0); in emu_probe()
80 emu->dev = pdev; in emu_probe()
81 emu->gameport = port; in emu_probe()
86 port->io = emu->io; in emu_probe()
88 if (!request_region(emu->io, emu->size, "emu10k1-gp")) { in emu_probe()
[all …]
/linux-4.4.14/arch/powerpc/math-emu/
DMakefile1 math-emu-common-objs = math.o fre.o fsqrt.o fsqrts.o frsqrtes.o mtfsf.o mtfsfi.o
2 obj-$(CONFIG_MATH_EMULATION_HW_UNIMPLEMENTED) += $(math-emu-common-objs)
3 obj-$(CONFIG_MATH_EMULATION_FULL) += $(math-emu-common-objs) fabs.o fadd.o \
19 ccflags-y = -I. -Iinclude/math-emu -w
/linux-4.4.14/drivers/isdn/i4l/
Disdn_tty.h97 ((info->emu.mdmreg[REG_L2PROT] == ISDN_PROTO_L2_FAX) && \
98 (info->emu.mdmreg[REG_L3PROT] == ISDN_PROTO_L3_FCLASS1))
100 ((info->emu.mdmreg[REG_L2PROT] == ISDN_PROTO_L2_FAX) && \
101 (info->emu.mdmreg[REG_L3PROT] == ISDN_PROTO_L3_FCLASS2))
Disdn_tty.c104 if (info->emu.mdmreg[REG_CPPP] & BIT_CPPP) in isdn_tty_try_read()
139 if ((info->vonline & 1) && (info->emu.vpar[1])) in isdn_tty_readmodem()
144 if (!(info->emu.mdmreg[REG_CPPP] & BIT_CPPP)) in isdn_tty_readmodem()
185 if ((info->vonline) && (!info->emu.vpar[4])) in isdn_tty_rcv_skb()
187 if ((info->vonline & 1) && (info->emu.vpar[1])) in isdn_tty_rcv_skb()
199 if (info->emu.mdmreg[REG_T70] & BIT_T70) { in isdn_tty_rcv_skb()
200 if (info->emu.mdmreg[REG_T70] & BIT_T70_EXT) { in isdn_tty_rcv_skb()
217 switch (info->emu.vpar[3]) { in isdn_tty_rcv_skb()
445 if ((info->emu.mdmreg[REG_CTS] & BIT_CTS) != 0) in isdn_tty_senddown()
462 audio_len = buflen * voice_cf[info->emu.vpar[3]]; in isdn_tty_senddown()
[all …]
Disdn_audio.c640 if (!info->emu.vpar[1]) return; in isdn_audio_calc_silence()
651 if (c > (info->emu.vpar[1] * 4)) { in isdn_audio_calc_silence()
698 if (s->idx > (info->emu.vpar[2] * 800)) { in isdn_audio_eval_silence()
Disdn_common.c1549 if (copy_to_user(p, dev->mdm.info[i].emu.profile, in isdn_ioctl()
1553 if (copy_to_user(p, dev->mdm.info[i].emu.pmsn, ISDN_MSNLEN)) in isdn_ioctl()
1556 if (copy_to_user(p, dev->mdm.info[i].emu.plmsn, ISDN_LMSNLEN)) in isdn_ioctl()
1576 if (copy_from_user(dev->mdm.info[i].emu.profile, p, in isdn_ioctl()
1580 if (copy_from_user(dev->mdm.info[i].emu.plmsn, p, ISDN_LMSNLEN)) in isdn_ioctl()
1583 if (copy_from_user(dev->mdm.info[i].emu.pmsn, p, ISDN_MSNLEN)) in isdn_ioctl()
Disdn_ttyfax.c50 atemu *m = &info->emu; in isdn_tty_fax_modem_result()
414 atemu *m = &info->emu; in isdn_tty_cmd_FCLASS2()
/linux-4.4.14/arch/alpha/math-emu/
DMakefile7 obj-$(CONFIG_MATHEMU) += math-emu.o
9 math-emu-objs := math.o qrnnd.o
/linux-4.4.14/arch/sparc/
DKbuild7 obj-y += math-emu/
/linux-4.4.14/arch/x86/math-emu/
DREADME2 | wm-FPU-emu an FPU emulator for 80386 and 80486SX microprocessors. |
25 wm-FPU-emu is an FPU emulator for Linux. It is derived from wm-emu387
31 My target FPU for wm-FPU-emu is that described in the Intel486
40 wm-FPU-emu does not implement all of the behaviour of the 80486 FPU,
56 ----------------------- Internals of wm-FPU-emu -----------------------
99 ----------------------- Limitations of wm-FPU-emu -----------------------
101 There are a number of differences between the current wm-FPU-emu
159 ----------------------- Performance of wm-FPU-emu -----------------------
174 ms-dos extender. The final column is for wm-FPU-emu in Linux 0.97,
177 function Turbo C djgpp 1.06 WM-emu387 wm-FPU-emu
[all …]
/linux-4.4.14/arch/ia64/hp/sim/boot/
DMakefile35 $(obj)/bootloader: $(src)/bootloader.lds $(obj)/bootloader.o $(obj)/boot_head.o $(obj)/fw-emu.o \
/linux-4.4.14/arch/alpha/
DMakefile42 core-$(CONFIG_MATHEMU) += arch/alpha/math-emu/
/linux-4.4.14/drivers/input/serio/
Dhil_mlc.c821 goto emu; in hil_mlc_serio_write()
824 goto emu; in hil_mlc_serio_write()
827 goto emu; in hil_mlc_serio_write()
830 goto emu; in hil_mlc_serio_write()
840 emu: in hil_mlc_serio_write()
/linux-4.4.14/arch/parisc/
DMakefile86 kernel-y := mm/ kernel/ math-emu/
/linux-4.4.14/arch/powerpc/platforms/83xx/
DKconfig121 # used for math-emu
/linux-4.4.14/include/linux/
Disdn.h355 atemu emu; /* AT-emulator data */ member
/linux-4.4.14/Documentation/sound/alsa/
DHD-Audio.txt290 codec verbs to the device. Some tools are available: hda-emu and
634 included in hda-emu package below. For example, the value e3a019 is
812 hda-emu
814 hda-emu is an HD-audio emulator. The main purpose of this program is
823 proc file, and the hda-emu program will start parsing the codec file
827 % hda-emu codecs/stac9200-dell-d820-laptop
845 - git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/hda-emu.git
847 See README file in the tarball for more details about hda-emu
/linux-4.4.14/arch/sh/
DMakefile131 core-$(CONFIG_SH_FPU_EMU) += arch/sh/math-emu/
/linux-4.4.14/arch/x86/
DMakefile219 drivers-$(CONFIG_MATH_EMULATION) += arch/x86/math-emu/
DKconfig1548 emulation can be found in <file:arch/x86/math-emu/README>.
/linux-4.4.14/arch/m68k/q40/
DREADME35 floppy.c # normal PC driver, DMA emu in asm/floppy.h
/linux-4.4.14/arch/powerpc/
DMakefile231 arch/powerpc/math-emu/ \
/linux-4.4.14/arch/mips/
DMakefile288 libs-y += arch/mips/math-emu/
/linux-4.4.14/arch/s390/kernel/
Dentry.S1223 #define SYSCALL(esame,emu) .long esame argument
1231 #define SYSCALL(esame,emu) .long emu argument
/linux-4.4.14/
DMAINTAINERS4425 F: arch/x86/math-emu/