/linux-2.6.39/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-2.6.39/sound/pci/emu10k1/ |
D | emu10k1_main.c | 72 void snd_emu10k1_voice_init(struct snd_emu10k1 *emu, int ch) in snd_emu10k1_voice_init() argument 74 snd_emu10k1_ptr_write(emu, DCYSUSV, ch, 0); in snd_emu10k1_voice_init() 75 snd_emu10k1_ptr_write(emu, IP, ch, 0); in snd_emu10k1_voice_init() 76 snd_emu10k1_ptr_write(emu, VTFT, ch, 0xffff); in snd_emu10k1_voice_init() 77 snd_emu10k1_ptr_write(emu, CVCF, ch, 0xffff); in snd_emu10k1_voice_init() 78 snd_emu10k1_ptr_write(emu, PTRX, ch, 0); in snd_emu10k1_voice_init() 79 snd_emu10k1_ptr_write(emu, CPF, ch, 0); in snd_emu10k1_voice_init() 80 snd_emu10k1_ptr_write(emu, CCR, ch, 0); in snd_emu10k1_voice_init() 82 snd_emu10k1_ptr_write(emu, PSST, ch, 0); in snd_emu10k1_voice_init() 83 snd_emu10k1_ptr_write(emu, DSL, ch, 0x10); in snd_emu10k1_voice_init() [all …]
|
D | io.c | 34 unsigned int snd_emu10k1_ptr_read(struct snd_emu10k1 * emu, unsigned int reg, unsigned int chn) in snd_emu10k1_ptr_read() argument 40 mask = emu->audigy ? A_PTR_ADDRESS_MASK : PTR_ADDRESS_MASK; in snd_emu10k1_ptr_read() 50 spin_lock_irqsave(&emu->emu_lock, flags); in snd_emu10k1_ptr_read() 51 outl(regptr, emu->port + PTR); in snd_emu10k1_ptr_read() 52 val = inl(emu->port + DATA); in snd_emu10k1_ptr_read() 53 spin_unlock_irqrestore(&emu->emu_lock, flags); in snd_emu10k1_ptr_read() 57 spin_lock_irqsave(&emu->emu_lock, flags); in snd_emu10k1_ptr_read() 58 outl(regptr, emu->port + PTR); in snd_emu10k1_ptr_read() 59 val = inl(emu->port + DATA); in snd_emu10k1_ptr_read() 60 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() 49 snd_emu10k1_intr_disable(emu, INTE_PCIERRORENABLE); in snd_emu10k1_interrupt() 53 if (emu->hwvol_interrupt) in snd_emu10k1_interrupt() 54 emu->hwvol_interrupt(emu, status); in snd_emu10k1_interrupt() 56 snd_emu10k1_intr_disable(emu, INTE_VOLINCRENABLE|INTE_VOLDECRENABLE|INTE_MUTEENABLE); in snd_emu10k1_interrupt() 63 struct snd_emu10k1_voice *pvoice = emu->voices; in snd_emu10k1_interrupt() 65 val = snd_emu10k1_ptr_read(emu, CLIPL, 0); in snd_emu10k1_interrupt() 68 val = snd_emu10k1_ptr_read(emu, CLIPH, 0); in snd_emu10k1_interrupt() 71 pvoice->interrupt(emu, pvoice); 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 48 epcm->substream->runtime->hw->pointer(emu, epcm->substream), in snd_emu10k1_pcm_interrupt() 55 static void snd_emu10k1_pcm_ac97adc_interrupt(struct snd_emu10k1 *emu, in snd_emu10k1_pcm_ac97adc_interrupt() argument 60 if (emu->pcm_capture_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) in snd_emu10k1_pcm_ac97adc_interrupt() 64 snd_pcm_period_elapsed(emu->pcm_capture_substream); in snd_emu10k1_pcm_ac97adc_interrupt() 67 static void snd_emu10k1_pcm_ac97mic_interrupt(struct snd_emu10k1 *emu, in snd_emu10k1_pcm_ac97mic_interrupt() argument 72 if (emu->pcm_capture_mic_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) in snd_emu10k1_pcm_ac97mic_interrupt() 76 snd_pcm_period_elapsed(emu->pcm_capture_mic_substream); in snd_emu10k1_pcm_ac97mic_interrupt() 79 static void snd_emu10k1_pcm_efx_interrupt(struct snd_emu10k1 *emu, in snd_emu10k1_pcm_efx_interrupt() argument 84 if (emu->pcm_capture_efx_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) in snd_emu10k1_pcm_efx_interrupt() [all …]
|
D | emuproc.c | 38 static void snd_emu10k1_proc_spdif_status(struct snd_emu10k1 * emu, in snd_emu10k1_proc_spdif_status() argument 50 status = snd_emu10k1_ptr_read(emu, status_reg, 0); in snd_emu10k1_proc_spdif_status() 68 rate = snd_emu10k1_ptr_read(emu, rate_reg, 0); in snd_emu10k1_proc_spdif_status() 187 struct snd_emu10k1 *emu = entry->private_data; in snd_emu10k1_proc_read() local 189 int nefx = emu->audigy ? 64 : 32; in snd_emu10k1_proc_read() 190 char **outputs = emu->audigy ? audigy_outs : creative_outs; in snd_emu10k1_proc_read() 195 emu->audigy ? "Audigy" : (emu->card_capabilities->ecard ? "EMU APS" : "Creative")); in snd_emu10k1_proc_read() 196 snd_iprintf(buffer, "Internal TRAM (words) : 0x%x\n", emu->fx8010.itram_size); in snd_emu10k1_proc_read() 197 snd_iprintf(buffer, "External TRAM (words) : 0x%x\n", (int)emu->fx8010.etram_pages.bytes / 2); in snd_emu10k1_proc_read() 201 val = emu->audigy ? in snd_emu10k1_proc_read() [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 400 if (emu->card_capabilities->emu_model == EMU_MODEL_EMU1616) { in snd_emu1010_input_output_source_info() 418 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); in snd_emu1010_output_source_get() local [all …]
|
D | p16v.c | 179 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); in snd_p16v_pcm_open_playback_channel() local 180 struct snd_emu10k1_voice *channel = &(emu->p16v_voices[channel_id]); in snd_p16v_pcm_open_playback_channel() 190 epcm->emu = emu; in snd_p16v_pcm_open_playback_channel() 201 channel->emu = emu; in snd_p16v_pcm_open_playback_channel() 227 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); in snd_p16v_pcm_open_capture_channel() local 228 struct snd_emu10k1_voice *channel = &(emu->p16v_capture_voice); in snd_p16v_pcm_open_capture_channel() 238 epcm->emu = emu; in snd_p16v_pcm_open_capture_channel() 249 channel->emu = emu; in snd_p16v_pcm_open_capture_channel() 272 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); in snd_p16v_pcm_close_playback() local 275 emu->p16v_voices[substream->pcm->device - emu->p16v_device_offset].use = 0; in snd_p16v_pcm_close_playback() [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 | emu10k1.c | 107 struct snd_emu10k1 *emu; in snd_card_emu10k1_probe() local 130 &emu)) < 0) in snd_card_emu10k1_probe() 132 card->private_data = emu; in snd_card_emu10k1_probe() 133 emu->delay_pcm_irq = delay_pcm_irq[dev] & 0x1f; in snd_card_emu10k1_probe() 134 if ((err = snd_emu10k1_pcm(emu, 0, NULL)) < 0) in snd_card_emu10k1_probe() 136 if ((err = snd_emu10k1_pcm_mic(emu, 1, NULL)) < 0) in snd_card_emu10k1_probe() 138 if ((err = snd_emu10k1_pcm_efx(emu, 2, NULL)) < 0) in snd_card_emu10k1_probe() 141 if (emu->card_capabilities->ca0151_chip) { /* P16V */ in snd_card_emu10k1_probe() 143 1024, &emu->p16v_buffer)) < 0) in snd_card_emu10k1_probe() 147 if ((err = snd_emu10k1_mixer(emu, 0, 3)) < 0) in snd_card_emu10k1_probe() [all …]
|
D | memory.c | 35 #define __set_ptb_entry(emu,page,addr) \ argument 36 (((u32 *)(emu)->ptb_pages.area)[page] = cpu_to_le32(((addr) << 1) | (page))) 48 #define set_ptb_entry(emu,page,addr) __set_ptb_entry(emu,page,addr) argument 50 #define set_silent_ptb(emu,page) __set_ptb_entry(emu,page,emu->silent_page.addr) argument 53 static inline void set_ptb_entry(struct snd_emu10k1 *emu, int page, dma_addr_t addr) in set_ptb_entry() argument 58 __set_ptb_entry(emu, page, addr); in set_ptb_entry() 62 static inline void set_silent_ptb(struct snd_emu10k1 *emu, int page) in set_silent_ptb() argument 68 __set_ptb_entry(emu, page, emu->silent_page.addr); in set_silent_ptb() 101 static int search_empty_map_area(struct snd_emu10k1 *emu, int npages, struct list_head **nextp) in search_empty_map_area() argument 106 struct list_head *candidate = &emu->mapped_link_head; in search_empty_map_area() [all …]
|
/linux-2.6.39/sound/synth/emux/ |
D | emux.c | 38 struct snd_emux *emu; in snd_emux_new() local 41 emu = kzalloc(sizeof(*emu), GFP_KERNEL); in snd_emux_new() 42 if (emu == NULL) in snd_emux_new() 45 spin_lock_init(&emu->voice_lock); in snd_emux_new() 46 mutex_init(&emu->register_mutex); in snd_emux_new() 48 emu->client = -1; in snd_emux_new() 50 emu->oss_synth = NULL; in snd_emux_new() 52 emu->max_voices = 0; in snd_emux_new() 53 emu->use_time = 0; in snd_emux_new() 55 init_timer(&emu->tlist); 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 | 39 static int get_zone(struct snd_emux *emu, struct snd_emux_port *port, 43 static void terminate_note1(struct snd_emux *emu, int note, 45 static void exclusive_note_off(struct snd_emux *emu, struct snd_emux_port *port, 47 static void terminate_voice(struct snd_emux *emu, struct snd_emux_voice *vp, int free); 48 static void update_voice(struct snd_emux *emu, struct snd_emux_voice *vp, int update); 61 struct snd_emux *emu; in snd_emux_note_on() local 72 emu = port->emu; in snd_emux_note_on() 73 if (snd_BUG_ON(!emu || !emu->ops.get_voice || !emu->ops.trigger)) in snd_emux_note_on() 77 nvoices = get_zone(emu, port, ¬e, vel, chan, table); in snd_emux_note_on() 85 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_oss.c | 43 static void emuspec_control(struct snd_emux *emu, struct snd_emux_port *port, 45 static void gusspec_control(struct snd_emux *emu, struct snd_emux_port *port, 47 static void fake_event(struct snd_emux *emu, struct snd_emux_port *port, 66 snd_emux_init_seq_oss(struct snd_emux *emu) in snd_emux_init_seq_oss() argument 71 if (snd_seq_device_new(emu->card, 0, 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 …]
|
D | emux_proc.c | 33 struct snd_emux *emu; in snd_emux_proc_info_read() local 36 emu = entry->private_data; in snd_emux_proc_info_read() 37 mutex_lock(&emu->register_mutex); in snd_emux_proc_info_read() 38 if (emu->name) in snd_emux_proc_info_read() 39 snd_iprintf(buf, "Device: %s\n", emu->name); in snd_emux_proc_info_read() 40 snd_iprintf(buf, "Ports: %d\n", emu->num_ports); in snd_emux_proc_info_read() 42 for (i = 0; i < emu->num_ports; i++) in snd_emux_proc_info_read() 43 snd_iprintf(buf, " %d:%d", emu->client, emu->ports[i]); in snd_emux_proc_info_read() 45 snd_iprintf(buf, "Use Counter: %d\n", emu->used); in snd_emux_proc_info_read() 46 snd_iprintf(buf, "Max Voices: %d\n", emu->max_voices); in snd_emux_proc_info_read() [all …]
|
/linux-2.6.39/sound/isa/sb/ |
D | emu8000.c | 47 void snd_emu8000_poke(struct snd_emu8000 *emu, unsigned int port, unsigned int reg, unsigned int va… in snd_emu8000_poke() argument 50 spin_lock_irqsave(&emu->reg_lock, flags); in snd_emu8000_poke() 51 if (reg != emu->last_reg) { in snd_emu8000_poke() 52 outw((unsigned short)reg, EMU8000_PTR(emu)); /* Set register */ in snd_emu8000_poke() 53 emu->last_reg = reg; in snd_emu8000_poke() 56 spin_unlock_irqrestore(&emu->reg_lock, flags); in snd_emu8000_poke() 60 unsigned short snd_emu8000_peek(struct snd_emu8000 *emu, unsigned int port, unsigned int reg) in snd_emu8000_peek() argument 64 spin_lock_irqsave(&emu->reg_lock, flags); in snd_emu8000_peek() 65 if (reg != emu->last_reg) { in snd_emu8000_peek() 66 outw((unsigned short)reg, EMU8000_PTR(emu)); /* Set register */ in snd_emu8000_peek() [all …]
|
D | emu8000_pcm.c | 51 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 …]
|
D | emu8000_synth.c | 39 struct snd_emux *emu; in snd_emu8000_new_device() local 45 if (hw->emu) in snd_emu8000_new_device() 48 if (snd_emux_new(&emu) < 0) in snd_emu8000_new_device() 51 hw->emu = emu; in snd_emu8000_new_device() 54 emu->hw = hw; in snd_emu8000_new_device() 55 emu->max_voices = EMU8000_DRAM_VOICES; in snd_emu8000_new_device() 56 emu->num_ports = hw->seq_ports; in snd_emu8000_new_device() 64 snd_emux_free(emu); in snd_emu8000_new_device() 65 hw->emu = NULL; in snd_emu8000_new_device() 69 emu->memhdr = hw->memhdr; in snd_emu8000_new_device() [all …]
|
D | emu8000_patch.c | 35 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 …]
|
/linux-2.6.39/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 | 277 struct snd_ca0106 *emu = entry->private_data; in snd_ca0106_proc_iec958() local 280 value = snd_ca0106_ptr_read(emu, SAMPLE_RATE_TRACKER_STATUS, 0); in snd_ca0106_proc_iec958() 289 value = snd_ca0106_ptr_read(emu, SPDIF_INPUT_STATUS, 0); in snd_ca0106_proc_iec958() 299 struct snd_ca0106 *emu = entry->private_data; in snd_ca0106_proc_reg_write32() local 307 spin_lock_irqsave(&emu->emu_lock, flags); in snd_ca0106_proc_reg_write32() 308 outl(val, emu->port + (reg & 0xfffffffc)); in snd_ca0106_proc_reg_write32() 309 spin_unlock_irqrestore(&emu->emu_lock, flags); in snd_ca0106_proc_reg_write32() 317 struct snd_ca0106 *emu = entry->private_data; in snd_ca0106_proc_reg_read32() local 323 spin_lock_irqsave(&emu->emu_lock, flags); in snd_ca0106_proc_reg_read32() 324 value = inl(emu->port + i); in snd_ca0106_proc_reg_read32() [all …]
|
/linux-2.6.39/drivers/input/gameport/ |
D | emu10k1-gp.c | 42 struct emu { struct 62 struct emu *emu; in emu_probe() argument 66 emu = kzalloc(sizeof(struct emu), GFP_KERNEL); in emu_probe() 68 if (!emu || !port) { in emu_probe() 78 emu->io = pci_resource_start(pdev, 0); in emu_probe() 79 emu->size = pci_resource_len(pdev, 0); in emu_probe() 81 emu->dev = pdev; in emu_probe() 82 emu->gameport = port; in emu_probe() 87 port->io = emu->io; in emu_probe() 89 if (!request_region(emu->io, emu->size, "emu10k1-gp")) { in emu_probe() [all …]
|