Home
last modified time | relevance | path

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

123

/linux/include/sound/
H A 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, cha argument
38 EMU8000_PSST_READ(emu,chan) global() argument
40 EMU8000_CSL_READ(emu,chan) global() argument
42 EMU8000_CCCA_READ(emu,chan) global() argument
44 EMU8000_HWCF4_READ(emu) global() argument
46 EMU8000_HWCF5_READ(emu) global() argument
48 EMU8000_HWCF6_READ(emu) global() argument
50 EMU8000_SMALR_READ(emu) global() argument
52 EMU8000_SMARR_READ(emu) global() argument
54 EMU8000_SMALW_READ(emu) global() argument
56 EMU8000_SMARW_READ(emu) global() argument
58 EMU8000_SMLD_READ(emu) global() argument
60 EMU8000_SMRD_READ(emu) global() argument
62 EMU8000_WC_READ(emu) global() argument
64 EMU8000_HWCF1_READ(emu) global() argument
66 EMU8000_HWCF2_READ(emu) global() argument
68 EMU8000_HWCF3_READ(emu) global() argument
70 EMU8000_INIT1_READ(emu,chan) global() argument
72 EMU8000_INIT2_READ(emu,chan) global() argument
74 EMU8000_INIT3_READ(emu,chan) global() argument
76 EMU8000_INIT4_READ(emu,chan) global() argument
78 EMU8000_ENVVOL_READ(emu,chan) global() argument
80 EMU8000_DCYSUSV_READ(emu,chan) global() argument
82 EMU8000_ENVVAL_READ(emu,chan) global() argument
84 EMU8000_DCYSUS_READ(emu,chan) global() argument
86 EMU8000_ATKHLDV_READ(emu,chan) global() argument
88 EMU8000_LFO1VAL_READ(emu,chan) global() argument
90 EMU8000_ATKHLD_READ(emu,chan) global() argument
92 EMU8000_LFO2VAL_READ(emu,chan) global() argument
94 EMU8000_IP_READ(emu,chan) global() argument
96 EMU8000_IFATN_READ(emu,chan) global() argument
98 EMU8000_PEFE_READ(emu,chan) global() argument
100 EMU8000_FMMOD_READ(emu,chan) global() argument
102 EMU8000_TREMFRQ_READ(emu,chan) global() argument
104 EMU8000_FM2FRQ2_READ(emu,chan) global() argument
108 EMU8000_CPF_WRITE(emu,chan,val) global() argument
110 EMU8000_PTRX_WRITE(emu,chan,val) global() argument
112 EMU8000_CVCF_WRITE(emu,chan,val) global() argument
114 EMU8000_VTFT_WRITE(emu,chan,val) global() argument
116 EMU8000_PSST_WRITE(emu,chan,val) global() argument
118 EMU8000_CSL_WRITE(emu,chan,val) global() argument
120 EMU8000_CCCA_WRITE(emu,chan,val) global() argument
122 EMU8000_HWCF4_WRITE(emu,val) global() argument
124 EMU8000_HWCF5_WRITE(emu,val) global() argument
126 EMU8000_HWCF6_WRITE(emu,val) global() argument
129 EMU8000_HWCF7_WRITE(emu,val) global() argument
131 EMU8000_SMALR_WRITE(emu,val) global() argument
133 EMU8000_SMARR_WRITE(emu,val) global() argument
135 EMU8000_SMALW_WRITE(emu,val) global() argument
137 EMU8000_SMARW_WRITE(emu,val) global() argument
139 EMU8000_SMLD_WRITE(emu,val) global() argument
141 EMU8000_SMRD_WRITE(emu,val) global() argument
143 EMU8000_WC_WRITE(emu,val) global() argument
145 EMU8000_HWCF1_WRITE(emu,val) global() argument
147 EMU8000_HWCF2_WRITE(emu,val) global() argument
149 EMU8000_HWCF3_WRITE(emu,val) global() argument
151 EMU8000_INIT1_WRITE(emu,chan,val) global() argument
153 EMU8000_INIT2_WRITE(emu,chan,val) global() argument
155 EMU8000_INIT3_WRITE(emu,chan,val) global() argument
157 EMU8000_INIT4_WRITE(emu,chan,val) global() argument
159 EMU8000_ENVVOL_WRITE(emu,chan,val) global() argument
161 EMU8000_DCYSUSV_WRITE(emu,chan,val) global() argument
163 EMU8000_ENVVAL_WRITE(emu,chan,val) global() argument
165 EMU8000_DCYSUS_WRITE(emu,chan,val) global() argument
167 EMU8000_ATKHLDV_WRITE(emu,chan,val) global() argument
169 EMU8000_LFO1VAL_WRITE(emu,chan,val) global() argument
171 EMU8000_ATKHLD_WRITE(emu,chan,val) global() argument
173 EMU8000_LFO2VAL_WRITE(emu,chan,val) global() argument
175 EMU8000_IP_WRITE(emu,chan,val) global() argument
177 EMU8000_IFATN_WRITE(emu,chan,val) global() argument
179 EMU8000_PEFE_WRITE(emu,chan,val) global() argument
181 EMU8000_FMMOD_WRITE(emu,chan,val) global() argument
183 EMU8000_TREMFRQ_WRITE(emu,chan,val) global() argument
185 EMU8000_FM2FRQ2_WRITE(emu,chan,val) global() argument
188 EMU8000_0080_WRITE(emu,chan,val) global() argument
190 EMU8000_00A0_WRITE(emu,chan,val) global() argument
[all...]
H A Demu10k1.h1489 void (*interrupt)(struct snd_emu10k1 *emu, struct snd_emu10k1_voice *pvoice);
1503 struct snd_emu10k1 *emu; member
1573 typedef void (snd_fx8010_irq_handler_t)(struct snd_emu10k1 *emu, void *private_data);
1619 struct snd_emu10k1 *emu; member
1630 void (*interrupt)(struct snd_emu10k1 *emu, unsigned int status);
1750 int (*get_synth_voice)(struct snd_emu10k1 *emu);
1773 void (*hwvol_interrupt)(struct snd_emu10k1 *emu, unsigned int status);
1774 void (*capture_interrupt)(struct snd_emu10k1 *emu, unsigned int status);
1775 void (*capture_mic_interrupt)(struct snd_emu10k1 *emu, unsigned int status);
1776 void (*capture_efx_interrupt)(struct snd_emu10k1 *emu, unsigne
1845 snd_emu1010_fpga_lock(struct snd_emu10k1 * emu) snd_emu1010_fpga_lock() argument
1846 snd_emu1010_fpga_unlock(struct snd_emu10k1 * emu) snd_emu1010_fpga_unlock() argument
1872 snd_emu10k1_wc(struct snd_emu10k1 * emu) snd_emu10k1_wc() argument
[all...]
/linux/sound/pci/emu10k1/
H A Demu10k1_main.c31 #define HANA_FILENAME "emu/hana.fw"
32 #define DOCK_FILENAME "emu/audio_dock.fw"
33 #define EMU1010B_FILENAME "emu/emu1010b.fw"
34 #define MICRO_DOCK_FILENAME "emu/micro_dock.fw"
35 #define EMU0404_FILENAME "emu/emu0404.fw"
36 #define EMU1010_NOTEBOOK_FILENAME "emu/emu1010_notebook.fw"
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, c in snd_emu10k1_voice_init()
138 snd_emu10k1_init(struct snd_emu10k1 * emu,int enable_ir) snd_emu10k1_init() argument
339 snd_emu10k1_audio_enable(struct snd_emu10k1 * emu) snd_emu10k1_audio_enable() argument
392 snd_emu10k1_done(struct snd_emu10k1 * emu) snd_emu10k1_done() argument
522 snd_emu10k1_ecard_write(struct snd_emu10k1 * emu,unsigned int value) snd_emu10k1_ecard_write() argument
560 snd_emu10k1_ecard_setadcgain(struct snd_emu10k1 * emu,unsigned short gain) snd_emu10k1_ecard_setadcgain() argument
588 snd_emu10k1_ecard_init(struct snd_emu10k1 * emu) snd_emu10k1_ecard_init() argument
628 snd_emu10k1_cardbus_init(struct snd_emu10k1 * emu) snd_emu10k1_cardbus_init() argument
671 snd_emu1010_load_firmware(struct snd_emu10k1 * emu,int dock,const struct firmware ** fw) snd_emu1010_load_firmware() argument
690 snd_emu1010_load_dock_firmware(struct snd_emu10k1 * emu) snd_emu1010_load_dock_firmware() argument
726 emu1010_dock_event(struct snd_emu10k1 * emu) emu1010_dock_event() argument
744 emu1010_clock_event(struct snd_emu10k1 * emu) emu1010_clock_event() argument
760 struct snd_emu10k1 *emu; emu1010_work() local
786 emu1010_interrupt(struct snd_emu10k1 * emu) emu1010_interrupt() argument
806 snd_emu10k1_emu1010_init(struct snd_emu10k1 * emu) snd_emu10k1_emu1010_init() argument
909 struct snd_emu10k1 *emu = card->private_data; snd_emu10k1_free() local
1448 snd_emu10k1_detect_iommu(struct snd_emu10k1 * emu) snd_emu10k1_detect_iommu() argument
1471 struct snd_emu10k1 *emu = card->private_data; snd_emu10k1_create() local
1715 alloc_pm_buffer(struct snd_emu10k1 * emu) alloc_pm_buffer() argument
1733 free_pm_buffer(struct snd_emu10k1 * emu) free_pm_buffer() argument
1741 snd_emu10k1_suspend_regs(struct snd_emu10k1 * emu) snd_emu10k1_suspend_regs() argument
1761 snd_emu10k1_resume_init(struct snd_emu10k1 * emu) snd_emu10k1_resume_init() argument
1774 snd_emu10k1_resume_regs(struct snd_emu10k1 * emu) snd_emu10k1_resume_regs() argument
[all...]
H A Dio.c19 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, unsigne argument
95 snd_emu10k1_ptr_write_multiple(struct snd_emu10k1 * emu,unsigned int chn,...) snd_emu10k1_ptr_write_multiple() argument
126 snd_emu10k1_ptr20_read(struct snd_emu10k1 * emu,unsigned int reg,unsigned int chn) snd_emu10k1_ptr20_read() argument
142 snd_emu10k1_ptr20_write(struct snd_emu10k1 * emu,unsigned int reg,unsigned int chn,unsigned int data) snd_emu10k1_ptr20_write() argument
158 snd_emu10k1_spi_write(struct snd_emu10k1 * emu,unsigned int data) snd_emu10k1_spi_write() argument
212 snd_emu10k1_i2c_write(struct snd_emu10k1 * emu,u32 reg,u32 value) snd_emu10k1_i2c_write() argument
274 snd_emu1010_fpga_write_locked(struct snd_emu10k1 * emu,u32 reg,u32 value) snd_emu1010_fpga_write_locked() argument
291 snd_emu1010_fpga_write(struct snd_emu10k1 * emu,u32 reg,u32 value) snd_emu1010_fpga_write() argument
298 snd_emu1010_fpga_write_lock(struct snd_emu10k1 * emu,u32 reg,u32 value) snd_emu1010_fpga_write_lock() argument
305 snd_emu1010_fpga_read(struct snd_emu10k1 * emu,u32 reg,u32 * value) snd_emu1010_fpga_read() argument
328 snd_emu1010_fpga_link_dst_src_write(struct snd_emu10k1 * emu,u32 dst,u32 src) snd_emu1010_fpga_link_dst_src_write() argument
340 snd_emu1010_fpga_link_dst_src_read(struct snd_emu10k1 * emu,u32 dst) snd_emu1010_fpga_link_dst_src_read() argument
353 snd_emu1010_get_raw_rate(struct snd_emu10k1 * emu,u8 src) snd_emu1010_get_raw_rate() argument
386 snd_emu1010_update_clock(struct snd_emu10k1 * emu) snd_emu1010_update_clock() argument
425 snd_emu1010_load_firmware_entry(struct snd_emu10k1 * emu,int dock,const struct firmware * fw_entry) snd_emu1010_load_firmware_entry() argument
478 snd_emu10k1_intr_enable(struct snd_emu10k1 * emu,unsigned int intrenb) snd_emu10k1_intr_enable() argument
489 snd_emu10k1_intr_disable(struct snd_emu10k1 * emu,unsigned int intrenb) snd_emu10k1_intr_disable() argument
500 snd_emu10k1_voice_intr_enable(struct snd_emu10k1 * emu,unsigned int voicenum) snd_emu10k1_voice_intr_enable() argument
519 snd_emu10k1_voice_intr_disable(struct snd_emu10k1 * emu,unsigned int voicenum) snd_emu10k1_voice_intr_disable() argument
538 snd_emu10k1_voice_intr_ack(struct snd_emu10k1 * emu,unsigned int voicenum) snd_emu10k1_voice_intr_ack() argument
554 snd_emu10k1_voice_half_loop_intr_enable(struct snd_emu10k1 * emu,unsigned int voicenum) snd_emu10k1_voice_half_loop_intr_enable() argument
573 snd_emu10k1_voice_half_loop_intr_disable(struct snd_emu10k1 * emu,unsigned int voicenum) snd_emu10k1_voice_half_loop_intr_disable() argument
592 snd_emu10k1_voice_half_loop_intr_ack(struct snd_emu10k1 * emu,unsigned int voicenum) snd_emu10k1_voice_half_loop_intr_ack() argument
648 snd_emu10k1_voice_set_loop_stop_multiple(struct snd_emu10k1 * emu,u64 voices) snd_emu10k1_voice_set_loop_stop_multiple() argument
660 snd_emu10k1_voice_clear_loop_stop_multiple(struct snd_emu10k1 * emu,u64 voices) snd_emu10k1_voice_clear_loop_stop_multiple() argument
672 snd_emu10k1_voice_clear_loop_stop_multiple_atomic(struct snd_emu10k1 * emu,u64 voices) snd_emu10k1_voice_clear_loop_stop_multiple_atomic() argument
730 snd_emu10k1_wait(struct snd_emu10k1 * emu,unsigned int wait) snd_emu10k1_wait() argument
751 struct snd_emu10k1 *emu = ac97->private_data; snd_emu10k1_ac97_read() local
764 struct snd_emu10k1 *emu = ac97->private_data; snd_emu10k1_ac97_write() local
[all...]
H A Dirq.c14 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_VOLINCRENABL in snd_emu10k1_interrupt()
[all...]
H A 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, mp argument
34 mpu401_write_cmd(emu,mpu,data) global() argument
35 mpu401_read_data(emu,mpu) global() argument
36 mpu401_read_stat(emu,mpu) global() argument
38 mpu401_input_avail(emu,mpu) global() argument
39 mpu401_output_ready(emu,mpu) global() argument
45 mpu401_clear_rx(struct snd_emu10k1 * emu,struct snd_emu10k1_midi * mpu) mpu401_clear_rx() argument
62 do_emu10k1_midi_interrupt(struct snd_emu10k1 * emu,struct snd_emu10k1_midi * midi,unsigned int status) do_emu10k1_midi_interrupt() argument
95 snd_emu10k1_midi_interrupt(struct snd_emu10k1 * emu,unsigned int status) snd_emu10k1_midi_interrupt() argument
100 snd_emu10k1_midi_interrupt2(struct snd_emu10k1 * emu,unsigned int status) snd_emu10k1_midi_interrupt2() argument
105 snd_emu10k1_midi_cmd(struct snd_emu10k1 * emu,struct snd_emu10k1_midi * midi,unsigned char cmd,int ack) snd_emu10k1_midi_cmd() argument
142 struct snd_emu10k1 *emu; snd_emu10k1_midi_input_open() local
168 struct snd_emu10k1 *emu; snd_emu10k1_midi_output_open() local
194 struct snd_emu10k1 *emu; snd_emu10k1_midi_input_close() local
216 struct snd_emu10k1 *emu; snd_emu10k1_midi_output_close() local
238 struct snd_emu10k1 *emu; snd_emu10k1_midi_input_trigger() local
252 struct snd_emu10k1 *emu; snd_emu10k1_midi_output_trigger() local
311 emu10k1_midi_init(struct snd_emu10k1 * emu,struct snd_emu10k1_midi * midi,int device,char * name) emu10k1_midi_init() argument
335 snd_emu10k1_midi(struct snd_emu10k1 * emu) snd_emu10k1_midi() argument
353 snd_emu10k1_audigy_midi(struct snd_emu10k1 * emu) snd_emu10k1_audigy_midi() argument
[all...]
H A Demupcm.c20 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
185 snd_emu10k1_constrain_capture_rates(struct snd_emu10k1 * emu,struct snd_pcm_runtime * runtime) snd_emu10k1_constrain_capture_rates() argument
202 snd_emu1010_constrain_efx_rate(struct snd_emu10k1 * emu,struct snd_pcm_runtime * runtime) snd_emu1010_constrain_efx_rate() argument
260 snd_emu10k1_pcm_init_voice(struct snd_emu10k1 * emu,struct snd_emu10k1_voice * evoice,bool w_16,bool stereo,unsigned int start_addr,unsigned int end_addr,const unsigned char * send_routing,const unsigned char * send_amount) snd_emu10k1_pcm_init_voice() argument
315 snd_emu10k1_pcm_init_voices(struct snd_emu10k1 * emu,struct snd_emu10k1_voice * evoice,bool w_16,bool stereo,unsigned int start_addr,unsigned int end_addr,struct snd_emu10k1_pcm_mixer * mix) snd_emu10k1_pcm_init_voices() argument
335 snd_emu10k1_pcm_init_extra_voice(struct snd_emu10k1 * emu,struct snd_emu10k1_voice * evoice,bool w_16,unsigned int start_addr,unsigned int end_addr) snd_emu10k1_pcm_init_extra_voice() argument
352 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); snd_emu10k1_playback_hw_params() local
398 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); snd_emu10k1_playback_hw_free() local
421 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); snd_emu10k1_playback_prepare() local
451 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); snd_emu10k1_efx_playback_prepare() local
500 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); snd_emu10k1_capture_prepare() local
557 snd_emu10k1_playback_fill_cache(struct snd_emu10k1 * emu,unsigned voice,u32 sample,bool stereo) snd_emu10k1_playback_fill_cache() argument
581 snd_emu10k1_playback_prepare_voices(struct snd_emu10k1 * emu,struct snd_emu10k1_pcm * epcm,bool w_16,bool stereo,int channels) snd_emu10k1_playback_prepare_voices() argument
629 snd_emu10k1_playback_commit_volume(struct snd_emu10k1 * emu,struct snd_emu10k1_voice * evoice,unsigned int vattn) snd_emu10k1_playback_commit_volume() argument
639 snd_emu10k1_playback_unmute_voice(struct snd_emu10k1 * emu,struct snd_emu10k1_voice * evoice,bool stereo,bool master,struct snd_emu10k1_pcm_mixer * mix) snd_emu10k1_playback_unmute_voice() argument
652 snd_emu10k1_playback_unmute_voices(struct snd_emu10k1 * emu,struct snd_emu10k1_voice * evoice,bool stereo,struct snd_emu10k1_pcm_mixer * mix) snd_emu10k1_playback_unmute_voices() argument
662 snd_emu10k1_playback_mute_voice(struct snd_emu10k1 * emu,struct snd_emu10k1_voice * evoice) snd_emu10k1_playback_mute_voice() argument
668 snd_emu10k1_playback_mute_voices(struct snd_emu10k1 * emu,struct snd_emu10k1_voice * evoice,bool stereo) snd_emu10k1_playback_mute_voices() argument
677 snd_emu10k1_playback_commit_pitch(struct snd_emu10k1 * emu,u32 voice,u32 pitch_target) snd_emu10k1_playback_commit_pitch() argument
688 snd_emu10k1_playback_trigger_voice(struct snd_emu10k1 * emu,struct snd_emu10k1_voice * evoice) snd_emu10k1_playback_trigger_voice() argument
697 snd_emu10k1_playback_stop_voice(struct snd_emu10k1 * emu,struct snd_emu10k1_voice * evoice) snd_emu10k1_playback_stop_voice() argument
706 snd_emu10k1_playback_set_running(struct snd_emu10k1 * emu,struct snd_emu10k1_pcm * epcm) snd_emu10k1_playback_set_running() argument
713 snd_emu10k1_playback_set_stopped(struct snd_emu10k1 * emu,struct snd_emu10k1_pcm * epcm) snd_emu10k1_playback_set_stopped() argument
723 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); snd_emu10k1_playback_trigger() local
768 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); snd_emu10k1_capture_trigger() local
840 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); snd_emu10k1_playback_pointer() local
885 snd_emu10k1_efx_playback_freeze_voices(struct snd_emu10k1 * emu,struct snd_emu10k1_pcm * epcm,int channels) snd_emu10k1_efx_playback_freeze_voices() argument
896 snd_emu10k1_efx_playback_unmute_voices(struct snd_emu10k1 * emu,struct snd_emu10k1_pcm * epcm,int channels) snd_emu10k1_efx_playback_unmute_voices() argument
905 snd_emu10k1_efx_playback_stop_voices(struct snd_emu10k1 * emu,struct snd_emu10k1_pcm * epcm,int channels) snd_emu10k1_efx_playback_stop_voices() argument
920 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); snd_emu10k1_efx_playback_trigger() local
986 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); snd_emu10k1_capture_pointer() local
1072 snd_emu10k1_pcm_mixer_notify1(struct snd_emu10k1 * emu,struct snd_kcontrol * kctl,int idx,int activate) snd_emu10k1_pcm_mixer_notify1() argument
1087 snd_emu10k1_pcm_mixer_notify(struct snd_emu10k1 * emu,int idx,int activate) snd_emu10k1_pcm_mixer_notify() argument
1094 snd_emu10k1_pcm_efx_mixer_notify(struct snd_emu10k1 * emu,int idx,int activate) snd_emu10k1_pcm_efx_mixer_notify() argument
1108 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); snd_emu10k1_efx_playback_close() local
1138 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); snd_emu10k1_efx_playback_open() local
1177 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); snd_emu10k1_playback_open() local
1220 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); snd_emu10k1_playback_close() local
1230 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); snd_emu10k1_capture_open() local
1258 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); snd_emu10k1_capture_close() local
1267 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); snd_emu10k1_capture_mic_open() local
1296 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); snd_emu10k1_capture_mic_close() local
1305 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); snd_emu10k1_capture_efx_open() local
1375 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); snd_emu10k1_capture_efx_close() local
1411 snd_emu10k1_pcm(struct snd_emu10k1 * emu,int device) snd_emu10k1_pcm() argument
1444 snd_emu10k1_pcm_multi(struct snd_emu10k1 * emu,int device) snd_emu10k1_pcm_multi() argument
1480 snd_emu10k1_pcm_mic(struct snd_emu10k1 * emu,int device) snd_emu10k1_pcm_mic() argument
1505 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); snd_emu10k1_pcm_efx_voices_mask_info() local
1516 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); snd_emu10k1_pcm_efx_voices_mask_get() local
1527 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); snd_emu10k1_pcm_efx_voices_mask_put() local
1573 snd_emu10k1_fx8010_playback_irq(struct snd_emu10k1 * emu,void * private_data) snd_emu10k1_fx8010_playback_irq() argument
1607 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); fx8010_pb_trans_copy() local
1635 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); snd_emu10k1_fx8010_playback_transfer() local
1644 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); snd_emu10k1_fx8010_playback_hw_free() local
1655 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); snd_emu10k1_fx8010_playback_prepare() local
1686 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); snd_emu10k1_fx8010_playback_trigger() local
1733 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); snd_emu10k1_fx8010_playback_pointer() local
1765 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); snd_emu10k1_fx8010_playback_open() local
1784 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); snd_emu10k1_fx8010_playback_close() local
1803 snd_emu10k1_pcm_efx(struct snd_emu10k1 * emu,int device) snd_emu10k1_pcm_efx() argument
[all...]
H A Dp16v.c159 dev_dbg(emu->card->dev, "epcm device=%d, channel_id=%d\n", in snd_p16v_pcm_open_playback_channel()
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()
187 dev_dbg(emu->card->dev, "epcm device=%d, channel_id=%d\n", in snd_p16v_pcm_open_capture_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 in snd_p16v_pcm_prepare_playback()
305 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); snd_p16v_pcm_prepare_capture() local
343 snd_p16v_intr_enable(struct snd_emu10k1 * emu,unsigned int intrenb) snd_p16v_intr_enable() argument
354 snd_p16v_intr_disable(struct snd_emu10k1 * emu,unsigned int intrenb) snd_p16v_intr_disable() argument
365 snd_p16v_interrupt(struct snd_emu10k1 * emu) snd_p16v_interrupt() argument
405 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); snd_p16v_pcm_trigger_playback() local
457 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); snd_p16v_pcm_trigger_capture() local
486 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); snd_p16v_pcm_pointer_playback() local
511 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); snd_p16v_pcm_pointer_capture() local
554 snd_p16v_pcm(struct snd_emu10k1 * emu,int device) snd_p16v_pcm() argument
621 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); snd_p16v_volume_get() local
640 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); snd_p16v_volume_put() local
676 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); snd_p16v_capture_source_get() local
685 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); snd_p16v_capture_source_put() local
715 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); snd_p16v_capture_channel_get() local
724 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); snd_p16v_capture_channel_put() local
779 snd_p16v_mixer(struct snd_emu10k1 * emu) snd_p16v_mixer() argument
796 snd_p16v_alloc_pm_buffer(struct snd_emu10k1 * emu) snd_p16v_alloc_pm_buffer() argument
804 snd_p16v_free_pm_buffer(struct snd_emu10k1 * emu) snd_p16v_free_pm_buffer() argument
809 snd_p16v_suspend(struct snd_emu10k1 * emu) snd_p16v_suspend() argument
820 snd_p16v_resume(struct snd_emu10k1 * emu) snd_p16v_resume() argument
[all...]
H A 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);
280 static unsigned int snd_emu10k1x_ptr_read(struct emu10k1x * emu, in snd_emu10k1x_ptr_read() argument
289 spin_lock_irqsave(&emu->emu_lock, flags); in snd_emu10k1x_ptr_read()
290 outl(regptr, emu->port + PTR); in snd_emu10k1x_ptr_read()
291 val = inl(emu->port + DATA); in snd_emu10k1x_ptr_read()
292 spin_unlock_irqrestore(&emu->emu_lock, flags); in snd_emu10k1x_ptr_read()
296 static void snd_emu10k1x_ptr_write(struct emu10k1x *emu, in snd_emu10k1x_ptr_write() argument
312 snd_emu10k1x_intr_enable(struct emu10k1x * emu,unsigned int intrenb) snd_emu10k1x_intr_enable() argument
323 snd_emu10k1x_intr_disable(struct emu10k1x * emu,unsigned int intrenb) snd_emu10k1x_intr_disable() argument
334 snd_emu10k1x_gpio_write(struct emu10k1x * emu,unsigned int value) snd_emu10k1x_gpio_write() argument
348 snd_emu10k1x_pcm_interrupt(struct emu10k1x * emu,struct emu10k1x_voice * voice) snd_emu10k1x_pcm_interrupt() argument
441 struct emu10k1x *emu = snd_pcm_substream_chip(substream); snd_emu10k1x_pcm_prepare() local
471 struct emu10k1x *emu = snd_pcm_substream_chip(substream); snd_emu10k1x_pcm_trigger() local
508 struct emu10k1x *emu = snd_pcm_substream_chip(substream); snd_emu10k1x_pcm_pointer() local
624 struct emu10k1x *emu = snd_pcm_substream_chip(substream); snd_emu10k1x_pcm_prepare_capture() local
639 struct emu10k1x *emu = snd_pcm_substream_chip(substream); snd_emu10k1x_pcm_trigger_capture() local
668 struct emu10k1x *emu = snd_pcm_substream_chip(substream); snd_emu10k1x_pcm_pointer_capture() local
696 struct emu10k1x *emu = ac97->private_data; snd_emu10k1x_ac97_read() local
710 struct emu10k1x *emu = ac97->private_data; snd_emu10k1x_ac97_write() local
814 snd_emu10k1x_pcm(struct emu10k1x * emu,int device) snd_emu10k1x_pcm() argument
967 struct emu10k1x *emu = entry->private_data; snd_emu10k1x_proc_reg_read() local
995 struct emu10k1x *emu = entry->private_data; snd_emu10k1x_proc_reg_write() local
1008 snd_emu10k1x_proc_init(struct emu10k1x * emu) snd_emu10k1x_proc_init() argument
1021 struct emu10k1x *emu = snd_kcontrol_chip(kcontrol); snd_emu10k1x_shared_spdif_get() local
1031 struct emu10k1x *emu = snd_kcontrol_chip(kcontrol); snd_emu10k1x_shared_spdif_put() local
1069 struct emu10k1x *emu = snd_kcontrol_chip(kcontrol); snd_emu10k1x_spdif_get() local
1092 struct emu10k1x *emu = snd_kcontrol_chip(kcontrol); snd_emu10k1x_spdif_put() local
1129 snd_emu10k1x_mixer(struct emu10k1x * emu) snd_emu10k1x_mixer() argument
1160 mpu401_read(struct emu10k1x * emu,struct emu10k1x_midi * mpu,int idx) mpu401_read() argument
1165 mpu401_write(struct emu10k1x * emu,struct emu10k1x_midi * mpu,int data,int idx) mpu401_write() argument
1170 mpu401_write_data(emu,mpu,data) global() argument
1171 mpu401_write_cmd(emu,mpu,data) global() argument
1172 mpu401_read_data(emu,mpu) global() argument
1173 mpu401_read_stat(emu,mpu) global() argument
1175 mpu401_input_avail(emu,mpu) global() argument
1176 mpu401_output_ready(emu,mpu) global() argument
1182 mpu401_clear_rx(struct emu10k1x * emu,struct emu10k1x_midi * mpu) mpu401_clear_rx() argument
1199 do_emu10k1x_midi_interrupt(struct emu10k1x * emu,struct emu10k1x_midi * midi,unsigned int status) do_emu10k1x_midi_interrupt() argument
1233 snd_emu10k1x_midi_interrupt(struct emu10k1x * emu,unsigned int status) snd_emu10k1x_midi_interrupt() argument
1238 snd_emu10k1x_midi_cmd(struct emu10k1x * emu,struct emu10k1x_midi * midi,unsigned char cmd,int ack) snd_emu10k1x_midi_cmd() argument
1277 struct emu10k1x *emu; snd_emu10k1x_midi_input_open() local
1304 struct emu10k1x *emu; snd_emu10k1x_midi_output_open() local
1331 struct emu10k1x *emu; snd_emu10k1x_midi_input_close() local
1354 struct emu10k1x *emu; snd_emu10k1x_midi_output_close() local
1377 struct emu10k1x *emu; snd_emu10k1x_midi_input_trigger() local
1391 struct emu10k1x *emu; snd_emu10k1x_midi_output_trigger() local
1451 emu10k1x_midi_init(struct emu10k1x * emu,struct emu10k1x_midi * midi,int device,char * name) emu10k1x_midi_init() argument
1477 snd_emu10k1x_midi(struct emu10k1x * emu) snd_emu10k1x_midi() argument
[all...]
H A 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 argument
42 set_ptb_entry(struct snd_emu10k1 * emu,int page,dma_addr_t addr) set_ptb_entry() argument
53 set_silent_ptb(struct snd_emu10k1 * emu,int page) set_silent_ptb() argument
95 search_empty_map_area(struct snd_emu10k1 * emu,int npages,struct list_head ** nextp) search_empty_map_area() argument
134 map_memblk(struct snd_emu10k1 * emu,struct snd_emu10k1_memblk * blk) map_memblk() argument
165 unmap_memblk(struct snd_emu10k1 * emu,struct snd_emu10k1_memblk * blk) unmap_memblk() argument
206 search_empty(struct snd_emu10k1 * emu,int size) search_empty() argument
237 is_valid_page(struct snd_emu10k1 * emu,dma_addr_t addr) is_valid_page() argument
258 snd_emu10k1_memblk_map(struct snd_emu10k1 * emu,struct snd_emu10k1_memblk * blk) snd_emu10k1_memblk_map() argument
302 snd_emu10k1_alloc_pages(struct snd_emu10k1 * emu,struct snd_pcm_substream * substream) snd_emu10k1_alloc_pages() argument
361 snd_emu10k1_free_pages(struct snd_emu10k1 * emu,struct snd_util_memblk * blk) snd_emu10k1_free_pages() argument
377 snd_emu10k1_alloc_pages_maybe_wider(struct snd_emu10k1 * emu,size_t size,struct snd_dma_buffer * dmab) snd_emu10k1_alloc_pages_maybe_wider() argument
432 snd_emu10k1_synth_free(struct snd_emu10k1 * emu,struct snd_util_memblk * memblk) snd_emu10k1_synth_free() argument
478 __synth_free_pages(struct snd_emu10k1 * emu,int first_page,int last_page) __synth_free_pages() argument
510 synth_alloc_pages(struct snd_emu10k1 * emu,struct snd_emu10k1_memblk * blk) synth_alloc_pages() argument
542 synth_free_pages(struct snd_emu10k1 * emu,struct snd_emu10k1_memblk * blk) synth_free_pages() argument
552 offset_ptr(struct snd_emu10k1 * emu,int page,int offset) offset_ptr() argument
570 snd_emu10k1_synth_memset(struct snd_emu10k1 * emu,struct snd_util_memblk * blk,int offset,int size,u8 value) snd_emu10k1_synth_memset() argument
630 snd_emu10k1_synth_copy_from_user(struct snd_emu10k1 * emu,struct snd_util_memblk * blk,int offset,const char __user * data,int size,u32 xor) snd_emu10k1_synth_copy_from_user() argument
[all...]
H A Demu10k1.c74 struct snd_emu10k1 *emu; in snd_card_emu10k1_probe() local
88 sizeof(*emu), &card); in snd_card_emu10k1_probe()
91 emu = card->private_data; in snd_card_emu10k1_probe()
102 err = snd_emu10k1_pcm(emu, 0); in snd_card_emu10k1_probe()
105 if (emu->card_capabilities->ac97_chip) { in snd_card_emu10k1_probe()
106 err = snd_emu10k1_pcm_mic(emu, 1); in snd_card_emu10k1_probe()
110 err = snd_emu10k1_pcm_efx(emu, 2); in snd_card_emu10k1_probe()
114 if (emu->card_capabilities->ca0151_chip) { /* P16V */ in snd_card_emu10k1_probe()
115 emu->p16v_buffer = in snd_card_emu10k1_probe()
117 if (!emu in snd_card_emu10k1_probe()
187 struct snd_emu10k1 *emu = card->private_data; snd_emu10k1_suspend() local
209 struct snd_emu10k1 *emu = card->private_data; snd_emu10k1_resume() local
[all...]
H A Dvoice.c24 static int voice_alloc(struct snd_emu10k1 *emu, int type, int number, in voice_alloc() argument
30 for (i = emu->next_free_voice, j = 0; j < NUM_G; i = (i + skip) % NUM_G, j += skip) { in voice_alloc()
32 dev_dbg(emu->card->dev, "i %d j %d next free %d!\n", in voice_alloc()
33 i, j, emu->next_free_voice); in voice_alloc()
43 voice = &emu->voices[i + k]; in voice_alloc()
51 voice = &emu->voices[i + k]; in voice_alloc()
54 /* dev_dbg(emu->card->dev, "allocated voice %d\n", i + k); */ in voice_alloc()
58 *rvoice = &emu->voices[i]; in voice_alloc()
59 emu->next_free_voice = (i + number) % NUM_G; in voice_alloc()
67 static void voice_free(struct snd_emu10k1 *emu, in voice_free() argument
77 snd_emu10k1_voice_alloc(struct snd_emu10k1 * emu,int type,int count,int channels,struct snd_emu10k1_pcm * epcm,struct snd_emu10k1_voice ** rvoice) snd_emu10k1_voice_alloc() argument
123 snd_emu10k1_voice_free(struct snd_emu10k1 * emu,struct snd_emu10k1_voice * pvoice) snd_emu10k1_voice_free() argument
[all...]
/linux/sound/isa/sb/
H A Demu8000.c36 void snd_emu8000_poke(struct snd_emu8000 *emu, unsigned int port, unsigned int reg, unsigned int val) in snd_emu8000_poke() argument
39 spin_lock_irqsave(&emu->reg_lock, flags); in snd_emu8000_poke()
40 if (reg != emu->last_reg) { in snd_emu8000_poke()
41 outw((unsigned short)reg, EMU8000_PTR(emu)); /* Set register */ in snd_emu8000_poke()
42 emu->last_reg = reg; in snd_emu8000_poke()
45 spin_unlock_irqrestore(&emu->reg_lock, flags); in snd_emu8000_poke()
49 unsigned short snd_emu8000_peek(struct snd_emu8000 *emu, unsigned int port, unsigned int reg) in snd_emu8000_peek() argument
53 spin_lock_irqsave(&emu->reg_lock, flags); in snd_emu8000_peek()
54 if (reg != emu->last_reg) { in snd_emu8000_peek()
55 outw((unsigned short)reg, EMU8000_PTR(emu)); /* Se in snd_emu8000_peek()
64 snd_emu8000_poke_dw(struct snd_emu8000 * emu,unsigned int port,unsigned int reg,unsigned int val) snd_emu8000_poke_dw() argument
78 snd_emu8000_peek_dw(struct snd_emu8000 * emu,unsigned int port,unsigned int reg) snd_emu8000_peek_dw() argument
98 snd_emu8000_dma_chan(struct snd_emu8000 * emu,int ch,int mode) snd_emu8000_dma_chan() argument
123 snd_emu8000_read_wait(struct snd_emu8000 * emu) snd_emu8000_read_wait() argument
135 snd_emu8000_write_wait(struct snd_emu8000 * emu) snd_emu8000_write_wait() argument
148 snd_emu8000_detect(struct snd_emu8000 * emu) snd_emu8000_detect() argument
174 init_audio(struct snd_emu8000 * emu) init_audio() argument
215 init_dma(struct snd_emu8000 * emu) init_dma() argument
319 send_array(struct snd_emu8000 * emu,const unsigned short * data,int size) send_array() argument
341 init_arrays(struct snd_emu8000 * emu) init_arrays() argument
367 size_dram(struct snd_emu8000 * emu) size_dram() argument
457 snd_emu8000_init_fm(struct snd_emu8000 * emu) snd_emu8000_init_fm() argument
503 snd_emu8000_init_hw(struct snd_emu8000 * emu) snd_emu8000_init_hw() argument
587 snd_emu8000_update_equalizer(struct snd_emu8000 * emu) snd_emu8000_update_equalizer() argument
652 snd_emu8000_load_chorus_fx(struct snd_emu8000 * emu,int mode,const void __user * buf,long len) snd_emu8000_load_chorus_fx() argument
667 snd_emu8000_update_chorus_mode(struct snd_emu8000 * emu) snd_emu8000_update_chorus_mode() argument
779 snd_emu8000_load_reverb_fx(struct snd_emu8000 * emu,int mode,const void __user * buf,long len) snd_emu8000_load_reverb_fx() argument
795 snd_emu8000_update_reverb_mode(struct snd_emu8000 * emu) snd_emu8000_update_reverb_mode() argument
832 struct snd_emu8000 *emu = snd_kcontrol_chip(kcontrol); mixer_bass_treble_get() local
840 struct snd_emu8000 *emu = snd_kcontrol_chip(kcontrol); mixer_bass_treble_put() local
893 struct snd_emu8000 *emu = snd_kcontrol_chip(kcontrol); mixer_chorus_reverb_get() local
901 struct snd_emu8000 *emu = snd_kcontrol_chip(kcontrol); mixer_chorus_reverb_put() local
960 struct snd_emu8000 *emu = snd_kcontrol_chip(kcontrol); mixer_fm_depth_get() local
968 struct snd_emu8000 *emu = snd_kcontrol_chip(kcontrol); mixer_fm_depth_put() local
1022 snd_emu8000_create_mixer(struct snd_card * card,struct snd_emu8000 * emu) snd_emu8000_create_mixer() argument
[all...]
H A 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, 3 in snd_emu8000_open_dma()
51 snd_emu8000_close_dma(struct snd_emu8000 * emu) snd_emu8000_close_dma() argument
98 snd_emu8000_write_wait(struct snd_emu8000 * emu) snd_emu8000_write_wait() argument
120 write_word(struct snd_emu8000 * emu,int * offset,unsigned short data) write_word() argument
145 struct snd_emu8000 *emu; snd_emu8000_sample_new() local
[all...]
H A Demu8000_pcm.c40 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, 3 in emu8k_open_dram_for_pcm()
104 snd_emu8000_write_wait(struct snd_emu8000 * emu,int can_schedule) snd_emu8000_write_wait() argument
119 emu8k_close_dram(struct snd_emu8000 * emu) emu8k_close_dram() argument
218 struct snd_emu8000 *emu = snd_pcm_substream_chip(subs); emu8k_pcm_open() local
635 struct snd_emu8000 *emu = pcm->private_data; snd_emu8000_pcm_free() local
639 snd_emu8000_pcm_new(struct snd_card * card,struct snd_emu8000 * emu,int index) snd_emu8000_pcm_new() argument
[all...]
H A 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 in snd_emu8000_probe()
[all...]
/linux/sound/synth/emux/
H A 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 in snd_emux_new()
58 struct snd_emux *emu = private_data; sf_sample_new() local
66 struct snd_emux *emu = private_data; sf_sample_free() local
73 struct snd_emux *emu = private_data; sf_sample_reset() local
77 snd_emux_register(struct snd_emux * emu,struct snd_card * card,int index,char * name) snd_emux_register() argument
125 snd_emux_free(struct snd_emux * emu) snd_emux_free() argument
[all...]
H A 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()
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 in snd_emux_init_seq()
110 snd_emux_detach_seq(struct snd_emux * emu) snd_emux_detach_seq() argument
127 snd_emux_create_port(struct snd_emux * emu,char * name,int max_channels,int oss_port,struct snd_seq_port_callback * callback) snd_emux_create_port() argument
259 __snd_emux_inc_count(struct snd_emux * emu) __snd_emux_inc_count() argument
273 snd_emux_inc_count(struct snd_emux * emu) snd_emux_inc_count() argument
287 __snd_emux_dec_count(struct snd_emux * emu) __snd_emux_dec_count() argument
296 snd_emux_dec_count(struct snd_emux * emu) snd_emux_dec_count() argument
310 struct snd_emux *emu; snd_emux_use() local
333 struct snd_emux *emu; snd_emux_unuse() local
353 snd_emux_init_virmidi(struct snd_emux * emu,struct snd_card * card) snd_emux_init_virmidi() argument
388 snd_emux_delete_virmidi(struct snd_emux * emu) snd_emux_delete_virmidi() argument
[all...]
H A 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 strscpy(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 in snd_emux_init_seq_oss()
80 snd_emux_detach_seq_oss(struct snd_emux * emu) snd_emux_detach_seq_oss() argument
98 struct snd_emux *emu; snd_emux_open_seq_oss() local
164 struct snd_emux *emu; snd_emux_close_seq_oss() local
193 struct snd_emux *emu; snd_emux_load_patch_seq_oss() local
240 struct snd_emux *emu; snd_emux_ioctl_seq_oss() local
292 struct snd_emux *emu; snd_emux_event_oss_input() local
322 emuspec_control(struct snd_emux * emu,struct snd_emux_port * port,int cmd,unsigned char * event,int atomic,int hop) emuspec_control() argument
417 gusspec_control(struct snd_emux * emu,struct snd_emux_port * port,int cmd,unsigned char * event,int atomic,int hop) gusspec_control() argument
483 fake_event(struct snd_emux * emu,struct snd_emux_port * port,int ch,int param,int val,int atomic,int hop) fake_event() argument
[all...]
H A 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 in snd_emux_proc_info_read()
92 snd_emux_proc_init(struct snd_emux * emu,struct snd_card * card,int device) snd_emux_proc_init() argument
108 snd_emux_proc_free(struct snd_emux * emu) snd_emux_proc_free() argument
[all...]
H A Demux_voice.h18 int snd_emux_init_seq(struct snd_emux *emu, struct snd_card *card, int index);
19 void snd_emux_detach_seq(struct snd_emux *emu);
20 struct snd_emux_port *snd_emux_create_port(struct snd_emux *emu, char *name,
26 int snd_emux_inc_count(struct snd_emux *emu);
27 void snd_emux_dec_count(struct snd_emux *emu);
28 int snd_emux_init_virmidi(struct snd_emux *emu, struct snd_card *card);
29 int snd_emux_delete_virmidi(struct snd_emux *emu);
32 void snd_emux_init_voices(struct snd_emux *emu);
68 void snd_emux_init_seq_oss(struct snd_emux *emu);
69 void snd_emux_detach_seq_oss(struct snd_emux *emu);
76 snd_emux_proc_init(struct snd_emux * emu,struct snd_card * card,int device) snd_emux_proc_init() argument
78 snd_emux_proc_free(struct snd_emux * emu) snd_emux_proc_free() argument
[all...]
/linux/sound/pci/ca0106/
H A 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 + 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_SELECT in ca0106_spdif_enable()
87 ca0106_set_capture_source(struct snd_ca0106 * emu) ca0106_set_capture_source() argument
96 ca0106_set_i2c_capture_source(struct snd_ca0106 * emu,unsigned int val,int force) ca0106_set_i2c_capture_source() argument
116 ca0106_set_capture_mic_line_in(struct snd_ca0106 * emu) ca0106_set_capture_mic_line_in() argument
134 ca0106_set_spdif_bits(struct snd_ca0106 * emu,int idx) ca0106_set_spdif_bits() argument
149 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); snd_ca0106_shared_spdif_get() local
158 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); snd_ca0106_shared_spdif_put() local
184 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); snd_ca0106_capture_source_get() local
193 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); snd_ca0106_capture_source_put() local
221 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); snd_ca0106_i2c_capture_source_get() local
230 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); snd_ca0106_i2c_capture_source_put() local
266 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); snd_ca0106_capture_mic_line_in_get() local
275 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); snd_ca0106_capture_mic_line_in_put() local
328 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); snd_ca0106_spdif_get_default() local
339 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); snd_ca0106_spdif_get_stream() local
368 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); snd_ca0106_spdif_put_default() local
388 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); snd_ca0106_spdif_put_stream() local
414 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); snd_ca0106_volume_get() local
430 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); snd_ca0106_volume_put() local
461 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); snd_ca0106_i2c_volume_get() local
474 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); snd_ca0106_i2c_volume_put() local
510 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); spi_mute_get() local
521 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); spi_mute_put() local
719 ADD_CTLS(emu,ctls) global() argument
754 snd_ca0106_mixer(struct snd_ca0106 * emu) snd_ca0106_mixer() argument
[all...]
H A 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 in snd_ca0106_proc_reg_read32()
317 struct snd_ca0106 *emu = entry->private_data; snd_ca0106_proc_reg_read16() local
333 struct snd_ca0106 *emu = entry->private_data; snd_ca0106_proc_reg_read8() local
349 struct snd_ca0106 *emu = entry->private_data; snd_ca0106_proc_reg_read1() local
367 struct snd_ca0106 *emu = entry->private_data; snd_ca0106_proc_reg_read2() local
385 struct snd_ca0106 *emu = entry->private_data; snd_ca0106_proc_reg_write() local
399 struct snd_ca0106 *emu = entry->private_data; snd_ca0106_proc_i2c_write() local
411 snd_ca0106_proc_init(struct snd_ca0106 * emu) snd_ca0106_proc_init() argument
[all...]
H A Dca0106_main.c331 unsigned int snd_ca0106_ptr_read(struct snd_ca0106 * emu, in snd_ca0106_ptr_read() argument
340 spin_lock_irqsave(&emu->emu_lock, flags); in snd_ca0106_ptr_read()
341 outl(regptr, emu->port + CA0106_PTR); in snd_ca0106_ptr_read()
342 val = inl(emu->port + CA0106_DATA); in snd_ca0106_ptr_read()
343 spin_unlock_irqrestore(&emu->emu_lock, flags); in snd_ca0106_ptr_read()
347 void snd_ca0106_ptr_write(struct snd_ca0106 *emu, in snd_ca0106_ptr_write() argument
357 spin_lock_irqsave(&emu->emu_lock, flags); in snd_ca0106_ptr_write()
358 outl(regptr, emu->port + CA0106_PTR); in snd_ca0106_ptr_write()
359 outl(data, emu->port + CA0106_DATA); in snd_ca0106_ptr_write()
360 spin_unlock_irqrestore(&emu in snd_ca0106_ptr_write()
363 snd_ca0106_spi_write(struct snd_ca0106 * emu,unsigned int data) snd_ca0106_spi_write() argument
396 snd_ca0106_i2c_write(struct snd_ca0106 * emu,u32 reg,u32 value) snd_ca0106_i2c_write() argument
452 snd_ca0106_intr_enable(struct snd_ca0106 * emu,unsigned int intrenb) snd_ca0106_intr_enable() argument
463 snd_ca0106_intr_disable(struct snd_ca0106 * emu,unsigned int intrenb) snd_ca0106_intr_disable() argument
717 struct snd_ca0106 *emu = snd_pcm_substream_chip(substream); snd_ca0106_pcm_prepare_playback() local
830 struct snd_ca0106 *emu = snd_pcm_substream_chip(substream); snd_ca0106_pcm_prepare_capture() local
922 struct snd_ca0106 *emu = snd_pcm_substream_chip(substream); snd_ca0106_pcm_trigger_playback() local
989 struct snd_ca0106 *emu = snd_pcm_substream_chip(substream); snd_ca0106_pcm_trigger_capture() local
1017 struct snd_ca0106 *emu = snd_pcm_substream_chip(substream); snd_ca0106_pcm_pointer_playback() local
1047 struct snd_ca0106 *emu = snd_pcm_substream_chip(substream); snd_ca0106_pcm_pointer_capture() local
1140 struct snd_ca0106 *emu = ac97->private_data; snd_ca0106_ac97_read() local
1154 struct snd_ca0106 *emu = ac97->private_data; snd_ca0106_ac97_write() local
1281 snd_ca0106_pcm(struct snd_ca0106 * emu,int device) snd_ca0106_pcm() argument
[all...]
/linux/drivers/input/gameport/
H A Demu10k1-gp.c22 struct emu { struct
42 struct emu *emu; in emu_probe() local
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 in emu_probe()
92 struct emu *emu = pci_get_drvdata(pdev); emu_remove() local
[all...]

123