Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/include/sound/
Demu8000_reg.h30 #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 …]
/kernel/linux/linux-5.10/sound/pci/emu10k1/
Demu10k1_main.c58 void snd_emu10k1_voice_init(struct snd_emu10k1 *emu, int ch) in snd_emu10k1_voice_init() argument
60 snd_emu10k1_ptr_write(emu, DCYSUSV, ch, 0); in snd_emu10k1_voice_init()
61 snd_emu10k1_ptr_write(emu, IP, ch, 0); in snd_emu10k1_voice_init()
62 snd_emu10k1_ptr_write(emu, VTFT, ch, 0xffff); in snd_emu10k1_voice_init()
63 snd_emu10k1_ptr_write(emu, CVCF, ch, 0xffff); in snd_emu10k1_voice_init()
64 snd_emu10k1_ptr_write(emu, PTRX, ch, 0); in snd_emu10k1_voice_init()
65 snd_emu10k1_ptr_write(emu, CPF, ch, 0); in snd_emu10k1_voice_init()
66 snd_emu10k1_ptr_write(emu, CCR, ch, 0); in snd_emu10k1_voice_init()
68 snd_emu10k1_ptr_write(emu, PSST, ch, 0); in snd_emu10k1_voice_init()
69 snd_emu10k1_ptr_write(emu, DSL, ch, 0x10); in snd_emu10k1_voice_init()
[all …]
Dio.c21 unsigned int snd_emu10k1_ptr_read(struct snd_emu10k1 * emu, unsigned int reg, unsigned int chn) in snd_emu10k1_ptr_read() argument
27 mask = emu->audigy ? A_PTR_ADDRESS_MASK : PTR_ADDRESS_MASK; in snd_emu10k1_ptr_read()
37 spin_lock_irqsave(&emu->emu_lock, flags); in snd_emu10k1_ptr_read()
38 outl(regptr, emu->port + PTR); in snd_emu10k1_ptr_read()
39 val = inl(emu->port + DATA); in snd_emu10k1_ptr_read()
40 spin_unlock_irqrestore(&emu->emu_lock, flags); in snd_emu10k1_ptr_read()
44 spin_lock_irqsave(&emu->emu_lock, flags); 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()
47 spin_unlock_irqrestore(&emu->emu_lock, flags); in snd_emu10k1_ptr_read()
[all …]
Demumpu401.c15 static inline unsigned char mpu401_read(struct snd_emu10k1 *emu, in mpu401_read() argument
18 if (emu->audigy) in mpu401_read()
19 return (unsigned char)snd_emu10k1_ptr_read(emu, mpu->port + idx, 0); in mpu401_read()
21 return inb(emu->port + mpu->port + idx); in mpu401_read()
24 static inline void mpu401_write(struct snd_emu10k1 *emu, in mpu401_write() argument
27 if (emu->audigy) in mpu401_write()
28 snd_emu10k1_ptr_write(emu, mpu->port + idx, 0, data); in mpu401_write()
30 outb(data, emu->port + mpu->port + idx); in mpu401_write()
33 #define mpu401_write_data(emu, mpu, data) mpu401_write(emu, mpu, data, 0) argument
34 #define mpu401_write_cmd(emu, mpu, data) mpu401_write(emu, mpu, data, 1) argument
[all …]
Dirq.c20 struct snd_emu10k1 *emu = dev_id; in snd_emu10k1_interrupt() local
25 while (((status = inl(emu->port + IPR)) != 0) && (timeout < 1000)) { in snd_emu10k1_interrupt()
30 dev_info(emu->card->dev, in snd_emu10k1_interrupt()
35 dev_err(emu->card->dev, "interrupt: PCI error\n"); in snd_emu10k1_interrupt()
36 snd_emu10k1_intr_disable(emu, INTE_PCIERRORENABLE); in snd_emu10k1_interrupt()
40 if (emu->hwvol_interrupt) in snd_emu10k1_interrupt()
41 emu->hwvol_interrupt(emu, status); in snd_emu10k1_interrupt()
43 snd_emu10k1_intr_disable(emu, INTE_VOLINCRENABLE|INTE_VOLDECRENABLE|INTE_MUTEENABLE); in snd_emu10k1_interrupt()
50 struct snd_emu10k1_voice *pvoice = emu->voices; in snd_emu10k1_interrupt()
52 val = snd_emu10k1_ptr_read(emu, CLIPL, 0); in snd_emu10k1_interrupt()
[all …]
Demupcm.c23 static void snd_emu10k1_pcm_interrupt(struct snd_emu10k1 *emu, in snd_emu10k1_pcm_interrupt() argument
33 dev_dbg(emu->card->dev, in snd_emu10k1_pcm_interrupt()
35 epcm->substream->runtime->hw->pointer(emu, epcm->substream), in snd_emu10k1_pcm_interrupt()
42 static void snd_emu10k1_pcm_ac97adc_interrupt(struct snd_emu10k1 *emu, in snd_emu10k1_pcm_ac97adc_interrupt() argument
47 if (emu->pcm_capture_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) in snd_emu10k1_pcm_ac97adc_interrupt()
51 snd_pcm_period_elapsed(emu->pcm_capture_substream); in snd_emu10k1_pcm_ac97adc_interrupt()
54 static void snd_emu10k1_pcm_ac97mic_interrupt(struct snd_emu10k1 *emu, in snd_emu10k1_pcm_ac97mic_interrupt() argument
59 if (emu->pcm_capture_mic_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) in snd_emu10k1_pcm_ac97mic_interrupt()
63 snd_pcm_period_elapsed(emu->pcm_capture_mic_substream); in snd_emu10k1_pcm_ac97mic_interrupt()
66 static void snd_emu10k1_pcm_efx_interrupt(struct snd_emu10k1 *emu, in snd_emu10k1_pcm_efx_interrupt() argument
[all …]
Dp16v.c162 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); in snd_p16v_pcm_open_playback_channel() local
163 struct snd_emu10k1_voice *channel = &(emu->p16v_voices[channel_id]); in snd_p16v_pcm_open_playback_channel()
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()
192 dev_dbg(emu->card->dev, "open:channel_id=%d, chip=%p, channel=%p\n", in snd_p16v_pcm_open_playback_channel()
210 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); in snd_p16v_pcm_open_capture_channel() local
211 struct snd_emu10k1_voice *channel = &(emu->p16v_capture_voice); in snd_p16v_pcm_open_capture_channel()
221 epcm->emu = emu; in snd_p16v_pcm_open_capture_channel()
232 channel->emu = emu; in snd_p16v_pcm_open_capture_channel()
[all …]
Demumixer.c42 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); in snd_emu10k1_spdif_get() local
49 spin_lock_irqsave(&emu->reg_lock, flags); in snd_emu10k1_spdif_get()
50 ucontrol->value.iec958.status[0] = (emu->spdif_bits[idx] >> 0) & 0xff; in snd_emu10k1_spdif_get()
51 ucontrol->value.iec958.status[1] = (emu->spdif_bits[idx] >> 8) & 0xff; in snd_emu10k1_spdif_get()
52 ucontrol->value.iec958.status[2] = (emu->spdif_bits[idx] >> 16) & 0xff; in snd_emu10k1_spdif_get()
53 ucontrol->value.iec958.status[3] = (emu->spdif_bits[idx] >> 24) & 0xff; in snd_emu10k1_spdif_get()
54 spin_unlock_irqrestore(&emu->reg_lock, flags); in snd_emu10k1_spdif_get()
381 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); in snd_emu1010_input_output_source_info() local
383 if (emu->card_capabilities->emu_model == EMU_MODEL_EMU1616) in snd_emu1010_input_output_source_info()
392 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); in snd_emu1010_output_source_get() local
[all …]
Demuproc.c23 static void snd_emu10k1_proc_spdif_status(struct snd_emu10k1 * emu, in snd_emu10k1_proc_spdif_status() argument
35 status = snd_emu10k1_ptr_read(emu, status_reg, 0); in snd_emu10k1_proc_spdif_status()
53 rate = snd_emu10k1_ptr_read(emu, rate_reg, 0); in snd_emu10k1_proc_spdif_status()
172 struct snd_emu10k1 *emu = entry->private_data; in snd_emu10k1_proc_read() local
174 int nefx = emu->audigy ? 64 : 32; in snd_emu10k1_proc_read()
175 const char * const *outputs = emu->audigy ? audigy_outs : creative_outs; in snd_emu10k1_proc_read()
180 emu->audigy ? "Audigy" : (emu->card_capabilities->ecard ? "EMU APS" : "Creative")); in snd_emu10k1_proc_read()
181 snd_iprintf(buffer, "Internal TRAM (words) : 0x%x\n", emu->fx8010.itram_size); in snd_emu10k1_proc_read()
182 snd_iprintf(buffer, "External TRAM (words) : 0x%x\n", (int)emu->fx8010.etram_pages.bytes / 2); in snd_emu10k1_proc_read()
186 val = emu->audigy ? in snd_emu10k1_proc_read()
[all …]
Demu10k1x.c185 struct emu10k1x *emu; member
193 struct emu10k1x *emu; member
200 struct emu10k1x *emu; member
211 void (*interrupt)(struct emu10k1x *emu, unsigned int status);
281 static unsigned int snd_emu10k1x_ptr_read(struct emu10k1x * emu, in snd_emu10k1x_ptr_read() argument
290 spin_lock_irqsave(&emu->emu_lock, flags); in snd_emu10k1x_ptr_read()
291 outl(regptr, emu->port + PTR); in snd_emu10k1x_ptr_read()
292 val = inl(emu->port + DATA); in snd_emu10k1x_ptr_read()
293 spin_unlock_irqrestore(&emu->emu_lock, flags); in snd_emu10k1x_ptr_read()
297 static void snd_emu10k1x_ptr_write(struct emu10k1x *emu, in snd_emu10k1x_ptr_write() argument
[all …]
Dmemory.c21 #define __set_ptb_entry(emu,page,addr) \ argument
22 (((__le32 *)(emu)->ptb_pages.area)[page] = \
23 cpu_to_le32(((addr) << (emu->address_mode)) | (page)))
24 #define __get_ptb_entry(emu, page) \ argument
25 (le32_to_cpu(((__le32 *)(emu)->ptb_pages.area)[page]))
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
42 static inline void set_ptb_entry(struct snd_emu10k1 *emu, int page, dma_addr_t addr) in set_ptb_entry() argument
47 __set_ptb_entry(emu, page, addr); in set_ptb_entry()
48 dev_dbg(emu->card->dev, "mapped page %d to entry %.8x\n", page, in set_ptb_entry()
[all …]
Demu10k1.c91 struct snd_emu10k1 *emu; in snd_card_emu10k1_probe() local
115 &emu)) < 0) in snd_card_emu10k1_probe()
117 card->private_data = emu; in snd_card_emu10k1_probe()
118 emu->delay_pcm_irq = delay_pcm_irq[dev] & 0x1f; in snd_card_emu10k1_probe()
119 if ((err = snd_emu10k1_pcm(emu, 0)) < 0) in snd_card_emu10k1_probe()
121 if ((err = snd_emu10k1_pcm_mic(emu, 1)) < 0) in snd_card_emu10k1_probe()
123 if ((err = snd_emu10k1_pcm_efx(emu, 2)) < 0) in snd_card_emu10k1_probe()
126 if (emu->card_capabilities->ca0151_chip) { /* P16V */ in snd_card_emu10k1_probe()
128 1024, &emu->p16v_buffer); in snd_card_emu10k1_probe()
133 if ((err = snd_emu10k1_mixer(emu, 0, 3)) < 0) in snd_card_emu10k1_probe()
[all …]
Demufx.c321 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); in snd_emu10k1_gpr_ctl_get() local
327 spin_lock_irqsave(&emu->reg_lock, flags); in snd_emu10k1_gpr_ctl_get()
330 spin_unlock_irqrestore(&emu->reg_lock, flags); in snd_emu10k1_gpr_ctl_get()
336 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); in snd_emu10k1_gpr_ctl_put() local
344 spin_lock_irqsave(&emu->reg_lock, flags); in snd_emu10k1_gpr_ctl_put()
356 snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[i], 0, val); in snd_emu10k1_gpr_ctl_put()
359 snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[i], 0, db_table[val]); in snd_emu10k1_gpr_ctl_put()
367 … 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()
375 …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()
378 snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[i], 0, onoff_table[val]); in snd_emu10k1_gpr_ctl_put()
[all …]
/kernel/linux/linux-5.10/sound/isa/sb/
Demu8000.c35 void snd_emu8000_poke(struct snd_emu8000 *emu, unsigned int port, unsigned int reg, unsigned int va… in snd_emu8000_poke() argument
38 spin_lock_irqsave(&emu->reg_lock, flags); in snd_emu8000_poke()
39 if (reg != emu->last_reg) { in snd_emu8000_poke()
40 outw((unsigned short)reg, EMU8000_PTR(emu)); /* Set register */ in snd_emu8000_poke()
41 emu->last_reg = reg; in snd_emu8000_poke()
44 spin_unlock_irqrestore(&emu->reg_lock, flags); in snd_emu8000_poke()
48 unsigned short snd_emu8000_peek(struct snd_emu8000 *emu, unsigned int port, unsigned int reg) in snd_emu8000_peek() argument
52 spin_lock_irqsave(&emu->reg_lock, flags); in snd_emu8000_peek()
53 if (reg != emu->last_reg) { in snd_emu8000_peek()
54 outw((unsigned short)reg, EMU8000_PTR(emu)); /* Set register */ in snd_emu8000_peek()
[all …]
Demu8000_patch.c24 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 …]
Demu8000_synth.c28 struct snd_emux *emu; in snd_emu8000_probe() local
34 if (hw->emu) in snd_emu8000_probe()
37 if (snd_emux_new(&emu) < 0) in snd_emu8000_probe()
40 hw->emu = emu; in snd_emu8000_probe()
43 emu->hw = hw; in snd_emu8000_probe()
44 emu->max_voices = EMU8000_DRAM_VOICES; in snd_emu8000_probe()
45 emu->num_ports = hw->seq_ports; in snd_emu8000_probe()
53 snd_emux_free(emu); in snd_emu8000_probe()
54 hw->emu = NULL; in snd_emu8000_probe()
58 emu->memhdr = hw->memhdr; in snd_emu8000_probe()
[all …]
/kernel/linux/linux-5.10/sound/synth/emux/
Demux.c26 struct snd_emux *emu; in snd_emux_new() local
29 emu = kzalloc(sizeof(*emu), GFP_KERNEL); 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 …]
Demux_seq.c55 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()
74 emu->num_ports = SNDRV_EMUX_MAX_PORTS; in snd_emux_init_seq()
83 for (i = 0; i < emu->num_ports; i++) { in snd_emux_init_seq()
86 sprintf(tmpname, "%s Port %d", emu->name, i); in snd_emux_init_seq()
[all …]
Demux_synth.c26 static int get_zone(struct snd_emux *emu, struct snd_emux_port *port,
30 static void terminate_note1(struct snd_emux *emu, int note,
32 static void exclusive_note_off(struct snd_emux *emu, struct snd_emux_port *port,
34 static void terminate_voice(struct snd_emux *emu, struct snd_emux_voice *vp, int free);
35 static void update_voice(struct snd_emux *emu, struct snd_emux_voice *vp, int update);
48 struct snd_emux *emu; in snd_emux_note_on() local
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()
64 nvoices = get_zone(emu, port, &note, vel, chan, table); in snd_emux_note_on()
72 exclusive_note_off(emu, port, zp->v.exclusiveClass); in snd_emux_note_on()
[all …]
Demux_hwdep.c20 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->sflist, arg, in snd_emux_hwdep_load_patch()
35 err = snd_soundfont_load(emu->sflist, arg, patch.len + sizeof(patch), TMP_CLIENT_ID); in snd_emux_hwdep_load_patch()
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()
51 snd_emux_hwdep_misc_mode(struct snd_emux *emu, void __user *arg) in snd_emux_hwdep_misc_mode() argument
63 for (i = 0; i < emu->num_ports; i++) in snd_emux_hwdep_misc_mode()
64 emu->portptrs[i]->ctrls[info.mode] = info.value; in snd_emux_hwdep_misc_mode()
66 if (info.port < emu->num_ports) { in snd_emux_hwdep_misc_mode()
67 info.port = array_index_nospec(info.port, emu->num_ports); in snd_emux_hwdep_misc_mode()
[all …]
Demux_oss.c29 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 strcpy(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 …]
Demux_proc.c18 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()
24 snd_iprintf(buf, "Device: %s\n", emu->name); in snd_emux_proc_info_read()
25 snd_iprintf(buf, "Ports: %d\n", emu->num_ports); in snd_emux_proc_info_read()
27 for (i = 0; i < emu->num_ports; i++) in snd_emux_proc_info_read()
28 snd_iprintf(buf, " %d:%d", emu->client, emu->ports[i]); in snd_emux_proc_info_read()
30 snd_iprintf(buf, "Use Counter: %d\n", emu->used); in snd_emux_proc_info_read()
31 snd_iprintf(buf, "Max Voices: %d\n", emu->max_voices); in snd_emux_proc_info_read()
[all …]
/kernel/linux/linux-5.10/sound/pci/ca0106/
Dca0106_mixer.c63 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 + GPIO) & ~0x101; in ca0106_spdif_enable()
74 outl(val, emu->port + 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 …]
Dca0106_proc.c261 struct snd_ca0106 *emu = entry->private_data; in snd_ca0106_proc_iec958() local
264 value = snd_ca0106_ptr_read(emu, SAMPLE_RATE_TRACKER_STATUS, 0); in snd_ca0106_proc_iec958()
273 value = snd_ca0106_ptr_read(emu, SPDIF_INPUT_STATUS, 0); in snd_ca0106_proc_iec958()
283 struct snd_ca0106 *emu = entry->private_data; in snd_ca0106_proc_reg_write32() local
291 spin_lock_irqsave(&emu->emu_lock, flags); in snd_ca0106_proc_reg_write32()
292 outl(val, emu->port + (reg & 0xfffffffc)); in snd_ca0106_proc_reg_write32()
293 spin_unlock_irqrestore(&emu->emu_lock, flags); in snd_ca0106_proc_reg_write32()
301 struct snd_ca0106 *emu = entry->private_data; in snd_ca0106_proc_reg_read32() local
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()
[all …]
/kernel/linux/linux-5.10/drivers/input/gameport/
Demu10k1-gp.c25 struct emu { struct
45 struct emu *emu; in emu_probe() argument
49 emu = kzalloc(sizeof(struct emu), GFP_KERNEL); in emu_probe()
51 if (!emu || !port) { in emu_probe()
61 emu->io = pci_resource_start(pdev, 0); in emu_probe()
62 emu->size = pci_resource_len(pdev, 0); in emu_probe()
64 emu->dev = pdev; in emu_probe()
65 emu->gameport = port; in emu_probe()
70 port->io = emu->io; in emu_probe()
72 if (!request_region(emu->io, emu->size, "emu10k1-gp")) { in emu_probe()
[all …]

123