/Linux-v4.19/include/sound/ |
D | emu8000_reg.h | 44 #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 …]
|
/Linux-v4.19/sound/pci/emu10k1/ |
D | emu10k1_main.c | 73 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 …]
|
D | io.c | 35 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 …]
|
D | emumpu401.c | 30 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 …]
|
D | irq.c | 34 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 …]
|
D | emupcm.c | 37 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 …]
|
D | emumixer.c | 56 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 …]
|
D | emuproc.c | 37 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 …]
|
D | p16v.c | 176 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 …]
|
D | emu10k1.c | 107 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 …]
|
D | memory.c | 36 #define __set_ptb_entry(emu,page,addr) \ argument 37 (((__le32 *)(emu)->ptb_pages.area)[page] = \ 38 cpu_to_le32(((addr) << (emu->address_mode)) | (page))) 39 #define __get_ptb_entry(emu, page) \ argument 40 (le32_to_cpu(((__le32 *)(emu)->ptb_pages.area)[page])) 52 #define set_ptb_entry(emu,page,addr) __set_ptb_entry(emu,page,addr) argument 54 #define set_silent_ptb(emu,page) __set_ptb_entry(emu,page,emu->silent_page.addr) argument 57 static inline void set_ptb_entry(struct snd_emu10k1 *emu, int page, dma_addr_t addr) in set_ptb_entry() argument 62 __set_ptb_entry(emu, page, addr); in set_ptb_entry() 63 dev_dbg(emu->card->dev, "mapped page %d to entry %.8x\n", page, in set_ptb_entry() [all …]
|
D | emu10k1x.c | 199 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 …]
|
D | timer.c | 34 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 …]
|
/Linux-v4.19/sound/isa/sb/ |
D | emu8000.c | 48 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 …]
|
D | emu8000_patch.c | 37 snd_emu8000_open_dma(struct snd_emu8000 *emu, int write) in snd_emu8000_open_dma() argument 43 snd_emux_lock_voice(emu->emu, i); in snd_emu8000_open_dma() 44 snd_emu8000_dma_chan(emu, i, write); in snd_emu8000_open_dma() 48 EMU8000_VTFT_WRITE(emu, 30, 0); in snd_emu8000_open_dma() 49 EMU8000_PSST_WRITE(emu, 30, 0x1d8); in snd_emu8000_open_dma() 50 EMU8000_CSL_WRITE(emu, 30, 0x1e0); in snd_emu8000_open_dma() 51 EMU8000_CCCA_WRITE(emu, 30, 0x1d8); in snd_emu8000_open_dma() 52 EMU8000_VTFT_WRITE(emu, 31, 0); in snd_emu8000_open_dma() 53 EMU8000_PSST_WRITE(emu, 31, 0x1d8); in snd_emu8000_open_dma() 54 EMU8000_CSL_WRITE(emu, 31, 0x1e0); in snd_emu8000_open_dma() [all …]
|
D | emu8000_synth.c | 41 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 …]
|
/Linux-v4.19/sound/synth/emux/ |
D | emux.c | 39 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 timer_setup(&emu->tlist, snd_emux_timer_callback, 0); in snd_emux_new() [all …]
|
D | emux_seq.c | 68 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 …]
|
D | emux_synth.c | 40 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, ¬e, vel, chan, table); in snd_emux_note_on() 86 exclusive_note_off(emu, port, zp->v.exclusiveClass); in snd_emux_note_on() [all …]
|
D | emux_hwdep.c | 34 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 …]
|
D | emux_proc.c | 31 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 …]
|
D | emux_oss.c | 42 static void emuspec_control(struct snd_emux *emu, struct snd_emux_port *port, 44 static void gusspec_control(struct snd_emux *emu, struct snd_emux_port *port, 46 static void fake_event(struct snd_emux *emu, struct snd_emux_port *port, 65 snd_emux_init_seq_oss(struct snd_emux *emu) in snd_emux_init_seq_oss() argument 71 if (snd_seq_device_new(emu->card, 1, SNDRV_SEQ_DEV_ID_OSS, in snd_emux_init_seq_oss() 75 emu->oss_synth = dev; in snd_emux_init_seq_oss() 76 strcpy(dev->name, emu->name); in snd_emux_init_seq_oss() 80 arg->nvoices = emu->max_voices; in snd_emux_init_seq_oss() 82 arg->private_data = emu; in snd_emux_init_seq_oss() 85 snd_device_register(emu->card, dev); in snd_emux_init_seq_oss() [all …]
|
/Linux-v4.19/sound/pci/ca0106/ |
D | ca0106_mixer.c | 77 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 …]
|
D | ca0106_proc.c | 275 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 …]
|
/Linux-v4.19/drivers/input/gameport/ |
D | emu10k1-gp.c | 37 struct emu { struct 57 struct emu *emu; in emu_probe() argument 61 emu = kzalloc(sizeof(struct emu), GFP_KERNEL); in emu_probe() 63 if (!emu || !port) { in emu_probe() 73 emu->io = pci_resource_start(pdev, 0); in emu_probe() 74 emu->size = pci_resource_len(pdev, 0); in emu_probe() 76 emu->dev = pdev; in emu_probe() 77 emu->gameport = port; in emu_probe() 82 port->io = emu->io; in emu_probe() 84 if (!request_region(emu->io, emu->size, "emu10k1-gp")) { in emu_probe() [all …]
|