/linux/include/sound/ |
H A D | emu8000_reg.h | 30 #define EMU8000_CPF_READ(emu, chan) \ argument 31 snd_emu8000_peek_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(0, (chan))) 32 #define EMU8000_PTRX_READ(emu, chan) \ argument 33 snd_emu8000_peek_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(1, (chan))) 34 #define EMU8000_CVCF_READ(emu, chan) \ argument 35 snd_emu8000_peek_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(2, (chan))) 36 #define EMU8000_VTFT_READ(emu, chan) \ argument 37 snd_emu8000_peek_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(3, (chan))) 38 #define EMU8000_PSST_READ(emu, chan) \ argument 39 snd_emu8000_peek_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(6, (chan))) [all …]
|
/linux/sound/pci/emu10k1/ |
H A D | emu10k1_main.c | 50 void snd_emu10k1_voice_init(struct snd_emu10k1 *emu, int ch) in snd_emu10k1_voice_init() argument 52 snd_emu10k1_ptr_write_multiple(emu, ch, in snd_emu10k1_voice_init() 85 if (emu->audigy) { in snd_emu10k1_voice_init() 86 snd_emu10k1_ptr_write_multiple(emu, ch, in snd_emu10k1_voice_init() 138 static int snd_emu10k1_init(struct snd_emu10k1 *emu, int enable_ir) in snd_emu10k1_init() argument 146 HCFG_MUTEBUTTONENABLE, emu->port + HCFG); in snd_emu10k1_init() 148 outl(0, emu->port + INTE); in snd_emu10k1_init() 150 snd_emu10k1_ptr_write_multiple(emu, 0, in snd_emu10k1_init() 169 if (emu->audigy) { in snd_emu10k1_init() 171 snd_emu10k1_ptr_write(emu, SPBYPASS, 0, SPBYPASS_FORMAT); in snd_emu10k1_init() [all …]
|
H A D | io.c | 19 static inline bool check_ptr_reg(struct snd_emu10k1 *emu, unsigned int reg) in check_ptr_reg() argument 21 if (snd_BUG_ON(!emu)) in check_ptr_reg() 23 if (snd_BUG_ON(reg & (emu->audigy ? (0xffff0000 & ~A_PTR_ADDRESS_MASK) in check_ptr_reg() 31 unsigned int snd_emu10k1_ptr_read(struct snd_emu10k1 * emu, unsigned int reg, unsigned int chn) in snd_emu10k1_ptr_read() argument 38 if (!check_ptr_reg(emu, regptr)) in snd_emu10k1_ptr_read() 41 spin_lock_irqsave(&emu->emu_lock, flags); in snd_emu10k1_ptr_read() 42 outl(regptr, emu->port + PTR); in snd_emu10k1_ptr_read() 43 val = inl(emu->port + DATA); in snd_emu10k1_ptr_read() 44 spin_unlock_irqrestore(&emu->emu_lock, flags); in snd_emu10k1_ptr_read() 61 void snd_emu10k1_ptr_write(struct snd_emu10k1 *emu, unsigned int reg, unsigned int chn, unsigned in… in snd_emu10k1_ptr_write() argument [all …]
|
H A D | irq.c | 14 struct snd_emu10k1 *emu = dev_id; in snd_emu10k1_interrupt() local 19 while ((status = inl(emu->port + IPR)) != 0) { in snd_emu10k1_interrupt() 22 dev_info(emu->card->dev, in snd_emu10k1_interrupt() 27 dev_info(emu->card->dev, "emu10k1 irq routine failure\n"); in snd_emu10k1_interrupt() 32 dev_err(emu->card->dev, "interrupt: PCI error\n"); in snd_emu10k1_interrupt() 33 snd_emu10k1_intr_disable(emu, INTE_PCIERRORENABLE); in snd_emu10k1_interrupt() 37 if (emu->hwvol_interrupt) in snd_emu10k1_interrupt() 38 emu->hwvol_interrupt(emu, status); in snd_emu10k1_interrupt() 40 snd_emu10k1_intr_disable(emu, INTE_VOLINCRENABLE|INTE_VOLDECRENABLE|INTE_MUTEENABLE); in snd_emu10k1_interrupt() 49 val = snd_emu10k1_ptr_read(emu, CLIPL, 0); in snd_emu10k1_interrupt() [all …]
|
H A D | emumpu401.c | 15 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 …]
|
H A D | emuproc.c | 19 static void snd_emu10k1_proc_spdif_status(struct snd_emu10k1 * emu, in snd_emu10k1_proc_spdif_status() 31 status = snd_emu10k1_ptr_read(emu, status_reg, 0); in snd_emu10k1_proc_spdif_status() 49 rate = snd_emu10k1_ptr_read(emu, rate_reg, 0); in snd_emu10k1_proc_spdif_status() 65 struct snd_emu10k1 *emu = entry->private_data; in snd_emu10k1_proc_read() 66 const char * const *inputs = emu->audigy ? in snd_emu10k1_proc_read() 68 const char * const *outputs = emu->audigy ? in snd_emu10k1_proc_read() 70 unsigned short extin_mask = emu->audigy ? ~0 : emu->fx8010.extin_mask; in snd_emu10k1_proc_read() 71 unsigned short extout_mask = emu->audigy ? ~0 : emu in snd_emu10k1_proc_read() 18 snd_emu10k1_proc_spdif_status(struct snd_emu10k1 * emu,struct snd_info_buffer * buffer,char * title,int status_reg,int rate_reg) snd_emu10k1_proc_spdif_status() argument 64 struct snd_emu10k1 *emu = entry->private_data; snd_emu10k1_proc_read() local 163 struct snd_emu10k1 *emu = entry->private_data; snd_emu10k1_proc_spdif_read() local 220 struct snd_emu10k1 *emu = entry->private_data; snd_emu10k1_proc_rates_read() local 337 struct snd_emu10k1 *emu = entry->private_data; snd_emu10k1_proc_acode_read() local 389 struct snd_emu10k1 *emu = entry->private_data; snd_emu10k1_fx8010_read() local 430 struct snd_emu10k1 *emu = entry->private_data; snd_emu10k1_proc_voices_read() local 451 snd_emu_proc_emu1010_link_read(struct snd_emu10k1 * emu,struct snd_info_buffer * buffer,u32 dst) snd_emu_proc_emu1010_link_read() argument 462 struct snd_emu10k1 *emu = entry->private_data; snd_emu_proc_emu1010_reg_read() local 513 struct snd_emu10k1 *emu = entry->private_data; snd_emu_proc_io_reg_read() local 526 struct snd_emu10k1 *emu = entry->private_data; snd_emu_proc_io_reg_write() local 538 snd_ptr_read(struct snd_emu10k1 * emu,unsigned int iobase,unsigned int reg,unsigned int chn) snd_ptr_read() argument 554 snd_ptr_write(struct snd_emu10k1 * emu,unsigned int iobase,unsigned int reg,unsigned int chn,unsigned int data) snd_ptr_write() argument 574 struct snd_emu10k1 *emu = entry->private_data; snd_emu_proc_ptr_reg_read() local 596 struct snd_emu10k1 *emu = entry->private_data; snd_emu_proc_ptr_reg_write() local 616 struct snd_emu10k1 *emu = entry->private_data; snd_emu_proc_ptr_reg_write20() local 657 snd_emu10k1_proc_init(struct snd_emu10k1 * emu) snd_emu10k1_proc_init() argument [all...] |
H A D | emupcm.c | 20 static void snd_emu10k1_pcm_interrupt(struct snd_emu10k1 *emu, in snd_emu10k1_pcm_interrupt() argument 31 dev_dbg(emu->card->dev, in snd_emu10k1_pcm_interrupt() 33 epcm->substream->runtime->hw->pointer(emu, epcm->substream), in snd_emu10k1_pcm_interrupt() 40 static void snd_emu10k1_pcm_ac97adc_interrupt(struct snd_emu10k1 *emu, in snd_emu10k1_pcm_ac97adc_interrupt() argument 45 if (emu->pcm_capture_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) in snd_emu10k1_pcm_ac97adc_interrupt() 49 snd_pcm_period_elapsed(emu->pcm_capture_substream); in snd_emu10k1_pcm_ac97adc_interrupt() 52 static void snd_emu10k1_pcm_ac97mic_interrupt(struct snd_emu10k1 *emu, in snd_emu10k1_pcm_ac97mic_interrupt() argument 57 if (emu->pcm_capture_mic_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) in snd_emu10k1_pcm_ac97mic_interrupt() 61 snd_pcm_period_elapsed(emu->pcm_capture_mic_substream); in snd_emu10k1_pcm_ac97mic_interrupt() 64 static void snd_emu10k1_pcm_efx_interrupt(struct snd_emu10k1 *emu, in snd_emu10k1_pcm_efx_interrupt() argument [all …]
|
H A D | emu10k1x.c | 184 struct emu10k1x *emu; member 192 struct emu10k1x *emu; member 199 struct emu10k1x *emu; member 210 void (*interrupt)(struct emu10k1x *emu, unsigned int status); 279 static unsigned int snd_emu10k1x_ptr_read(struct emu10k1x * emu, in snd_emu10k1x_ptr_read() argument 288 spin_lock_irqsave(&emu->emu_lock, flags); in snd_emu10k1x_ptr_read() 289 outl(regptr, emu->port + PTR); in snd_emu10k1x_ptr_read() 290 val = inl(emu->port + DATA); in snd_emu10k1x_ptr_read() 291 spin_unlock_irqrestore(&emu->emu_lock, flags); in snd_emu10k1x_ptr_read() 295 static void snd_emu10k1x_ptr_write(struct emu10k1x *emu, in snd_emu10k1x_ptr_write() argument [all …]
|
H A D | p16v.c | 166 dev_dbg(emu->card->dev, in snd_p16v_pcm_open_playback_channel() 169 dev_dbg(emu->card->dev, "open:channel_id=%d, chip=%p, channel=%p\n", in snd_p16v_pcm_open_playback_channel() 238 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); in snd_p16v_pcm_prepare_playback() local 240 int channel = substream->pcm->device - emu->p16v_device_offset; in snd_p16v_pcm_prepare_playback() 241 u32 *table_base = (u32 *)(emu->p16v_buffer->area+(8*16*channel)); in snd_p16v_pcm_prepare_playback() 247 dev_dbg(emu->card->dev, in snd_p16v_pcm_prepare_playback() 254 dev_dbg(emu->card->dev, in snd_p16v_pcm_prepare_playback() 257 dev_dbg(emu->card->dev, in snd_p16v_pcm_prepare_playback() 259 emu->p16v_buffer->addr, emu->p16v_buffer->area, in snd_p16v_pcm_prepare_playback() 260 emu->p16v_buffer->bytes); in snd_p16v_pcm_prepare_playback() [all …]
|
H A D | emumixer.c | 27 static int add_ctls(struct snd_emu10k1 *emu, const struct snd_kcontrol_new *tpl, in add_ctls() argument 36 err = snd_ctl_add(emu->card, snd_ctl_new1(&kctl, emu)); in add_ctls() 54 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); in snd_emu10k1_spdif_get() local 60 ucontrol->value.iec958.status[0] = (emu->spdif_bits[idx] >> 0) & 0xff; in snd_emu10k1_spdif_get() 61 ucontrol->value.iec958.status[1] = (emu->spdif_bits[idx] >> 8) & 0xff; in snd_emu10k1_spdif_get() 62 ucontrol->value.iec958.status[2] = (emu->spdif_bits[idx] >> 16) & 0xff; in snd_emu10k1_spdif_get() 63 ucontrol->value.iec958.status[3] = (emu->spdif_bits[idx] >> 24) & 0xff; in snd_emu10k1_spdif_get() 576 static unsigned emu1010_idx(struct snd_emu10k1 *emu) in emu1010_idx() argument 578 return emu->card_capabilities->emu_model - 1; in emu1010_idx() 581 static void snd_emu1010_output_source_apply(struct snd_emu10k1 *emu, in snd_emu1010_output_source_apply() argument [all …]
|
H A D | memory.c | 21 #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 …]
|
H A D | emu10k1.c | 73 struct snd_emu10k1 *emu; in snd_card_emu10k1_probe() local 87 sizeof(*emu), &card); in snd_card_emu10k1_probe() 90 emu = card->private_data; in snd_card_emu10k1_probe() 101 err = snd_emu10k1_pcm(emu, 0); in snd_card_emu10k1_probe() 104 if (emu->card_capabilities->ac97_chip) { in snd_card_emu10k1_probe() 105 err = snd_emu10k1_pcm_mic(emu, 1); in snd_card_emu10k1_probe() 109 err = snd_emu10k1_pcm_efx(emu, 2); in snd_card_emu10k1_probe() 113 if (emu->card_capabilities->ca0151_chip) { /* P16V */ in snd_card_emu10k1_probe() 114 emu->p16v_buffer = in snd_card_emu10k1_probe() 116 if (!emu->p16v_buffer) in snd_card_emu10k1_probe() [all …]
|
H A D | emufx.c | 361 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); in snd_emu10k1_gpr_ctl_put() local 379 snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[i], 0, val); in snd_emu10k1_gpr_ctl_put() 382 snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[i], 0, ~val); in snd_emu10k1_gpr_ctl_put() 385 snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[i], 0, db_table[val]); in snd_emu10k1_gpr_ctl_put() 388 snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[i], 0, in snd_emu10k1_gpr_ctl_put() 397 … 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() 405 …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() 408 snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[i], 0, onoff_table[val]); in snd_emu10k1_gpr_ctl_put() 420 static void snd_emu10k1_fx8010_interrupt(struct snd_emu10k1 *emu) in snd_emu10k1_fx8010_interrupt() argument 424 irq = emu->fx8010.irq_handlers; in snd_emu10k1_fx8010_interrupt() [all …]
|
/linux/sound/isa/sb/ |
H A D | emu8000.c | 35 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 …]
|
H A D | emu8000_patch.c | 24 snd_emu8000_open_dma(struct snd_emu8000 *emu, int write) in snd_emu8000_open_dma() argument 30 snd_emux_lock_voice(emu->emu, i); in snd_emu8000_open_dma() 31 snd_emu8000_dma_chan(emu, i, write); in snd_emu8000_open_dma() 35 EMU8000_VTFT_WRITE(emu, 30, 0); in snd_emu8000_open_dma() 36 EMU8000_PSST_WRITE(emu, 30, 0x1d8); in snd_emu8000_open_dma() 37 EMU8000_CSL_WRITE(emu, 30, 0x1e0); in snd_emu8000_open_dma() 38 EMU8000_CCCA_WRITE(emu, 30, 0x1d8); in snd_emu8000_open_dma() 39 EMU8000_VTFT_WRITE(emu, 31, 0); in snd_emu8000_open_dma() 40 EMU8000_PSST_WRITE(emu, 31, 0x1d8); in snd_emu8000_open_dma() 41 EMU8000_CSL_WRITE(emu, 31, 0x1e0); in snd_emu8000_open_dma() [all …]
|
H A D | emu8000_pcm.c | 40 struct snd_emu8000 *emu; member 68 emu8k_open_dram_for_pcm(struct snd_emu8000 *emu, int channels) in emu8k_open_dram_for_pcm() argument 73 snd_emux_lock_voice(emu->emu, 0); in emu8k_open_dram_for_pcm() 75 snd_emux_lock_voice(emu->emu, 1); in emu8k_open_dram_for_pcm() 80 snd_emux_lock_voice(emu->emu, i); in emu8k_open_dram_for_pcm() 85 snd_emu8000_dma_chan(emu, i, mode); in emu8k_open_dram_for_pcm() 89 EMU8000_VTFT_WRITE(emu, 30, 0); in emu8k_open_dram_for_pcm() 90 EMU8000_PSST_WRITE(emu, 30, 0x1d8); in emu8k_open_dram_for_pcm() 91 EMU8000_CSL_WRITE(emu, 30, 0x1e0); in emu8k_open_dram_for_pcm() 92 EMU8000_CCCA_WRITE(emu, 30, 0x1d8); in emu8k_open_dram_for_pcm() [all …]
|
/linux/sound/synth/emux/ |
H A D | emux.c | 26 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 …]
|
H A D | emux_seq.c | 55 snd_emux_init_seq(struct snd_emux *emu, struct snd_card *card, int index) in snd_emux_init_seq() argument 61 emu->client = snd_seq_create_kernel_client(card, index, in snd_emux_init_seq() 62 "%s WaveTable", emu->name); in snd_emux_init_seq() 63 if (emu->client < 0) { in snd_emux_init_seq() 68 if (emu->num_ports <= 0) { in snd_emux_init_seq() 70 emu->num_ports = 1; in snd_emux_init_seq() 71 } else if (emu->num_ports > SNDRV_EMUX_MAX_PORTS) { in snd_emux_init_seq() 75 emu->num_ports = SNDRV_EMUX_MAX_PORTS; in snd_emux_init_seq() 84 for (i = 0; i < emu->num_ports; i++) { in snd_emux_init_seq() 87 sprintf(tmpname, "%s Port %d", emu->name, i); in snd_emux_init_seq() [all …]
|
H A D | emux_synth.c | 26 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, ¬e, vel, chan, table); in snd_emux_note_on() 72 exclusive_note_off(emu, port, zp->v.exclusiveClass); in snd_emux_note_on() [all …]
|
H A D | emux_oss.c | 29 static void emuspec_control(struct snd_emux *emu, struct snd_emux_port *port, 31 static void gusspec_control(struct snd_emux *emu, struct snd_emux_port *port, 33 static void fake_event(struct snd_emux *emu, struct snd_emux_port *port, 52 snd_emux_init_seq_oss(struct snd_emux *emu) in snd_emux_init_seq_oss() argument 58 if (snd_seq_device_new(emu->card, 1, SNDRV_SEQ_DEV_ID_OSS, in snd_emux_init_seq_oss() 62 emu->oss_synth = dev; in snd_emux_init_seq_oss() 63 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 …]
|
H A D | emux_hwdep.c | 20 snd_emux_hwdep_load_patch(struct snd_emux *emu, void __user *arg) in snd_emux_hwdep_load_patch() argument 29 return snd_soundfont_load_guspatch(emu->card, emu->sflist, arg, in snd_emux_hwdep_load_patch() 34 err = snd_soundfont_load(emu->card, emu->sflist, arg, in snd_emux_hwdep_load_patch() 40 if (emu->ops.load_fx) in snd_emux_hwdep_load_patch() 41 return emu->ops.load_fx(emu, patch.type, patch.optarg, arg, patch.len + sizeof(patch)); in snd_emux_hwdep_load_patch() 52 snd_emux_hwdep_misc_mode(struct snd_emux *emu, void __user *arg) in snd_emux_hwdep_misc_mode() argument 64 for (i = 0; i < emu->num_ports; i++) in snd_emux_hwdep_misc_mode() 65 emu->portptrs[i]->ctrls[info.mode] = info.value; in snd_emux_hwdep_misc_mode() 67 if (info.port < emu->num_ports) { in snd_emux_hwdep_misc_mode() 68 info.port = array_index_nospec(info.port, emu->num_ports); in snd_emux_hwdep_misc_mode() [all …]
|
H A D | emux_proc.c | 18 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 …]
|
/linux/sound/pci/ca0106/ |
H A D | ca0106_mixer.c | 63 static void ca0106_spdif_enable(struct snd_ca0106 *emu) in ca0106_spdif_enable() argument 67 if (emu->spdif_enable) { in ca0106_spdif_enable() 69 snd_ca0106_ptr_write(emu, SPDIF_SELECT1, 0, 0xf); in ca0106_spdif_enable() 70 snd_ca0106_ptr_write(emu, SPDIF_SELECT2, 0, 0x0b000000); in ca0106_spdif_enable() 71 val = snd_ca0106_ptr_read(emu, CAPTURE_CONTROL, 0) & ~0x1000; in ca0106_spdif_enable() 72 snd_ca0106_ptr_write(emu, CAPTURE_CONTROL, 0, val); in ca0106_spdif_enable() 73 val = inl(emu->port + CA0106_GPIO) & ~0x101; in ca0106_spdif_enable() 74 outl(val, emu->port + CA0106_GPIO); in ca0106_spdif_enable() 78 snd_ca0106_ptr_write(emu, SPDIF_SELECT1, 0, 0xf); in ca0106_spdif_enable() 79 snd_ca0106_ptr_write(emu, SPDIF_SELECT2, 0, 0x000f0000); in ca0106_spdif_enable() [all …]
|
H A D | ca0106_proc.c | 261 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 …]
|
/linux/drivers/input/gameport/ |
H A D | emu10k1-gp.c | 22 struct emu { struct 42 struct emu *emu; in emu_probe() argument 46 emu = kzalloc(sizeof(*emu), GFP_KERNEL); in emu_probe() 48 if (!emu || !port) { in emu_probe() 58 emu->io = pci_resource_start(pdev, 0); in emu_probe() 59 emu->size = pci_resource_len(pdev, 0); in emu_probe() 61 emu->dev = pdev; in emu_probe() 62 emu->gameport = port; in emu_probe() 67 port->io = emu->io; in emu_probe() 69 if (!request_region(emu->io, emu->size, "emu10k1-gp")) { in emu_probe() [all …]
|