emu 854 drivers/crypto/cavium/nitrox/nitrox_csr.h u64 emu : 4; emu 884 drivers/crypto/cavium/nitrox/nitrox_csr.h u64 emu : 4; emu 45 drivers/input/gameport/emu10k1-gp.c struct emu *emu; emu 49 drivers/input/gameport/emu10k1-gp.c emu = kzalloc(sizeof(struct emu), GFP_KERNEL); emu 51 drivers/input/gameport/emu10k1-gp.c if (!emu || !port) { emu 61 drivers/input/gameport/emu10k1-gp.c emu->io = pci_resource_start(pdev, 0); emu 62 drivers/input/gameport/emu10k1-gp.c emu->size = pci_resource_len(pdev, 0); emu 64 drivers/input/gameport/emu10k1-gp.c emu->dev = pdev; emu 65 drivers/input/gameport/emu10k1-gp.c emu->gameport = port; emu 70 drivers/input/gameport/emu10k1-gp.c port->io = emu->io; emu 72 drivers/input/gameport/emu10k1-gp.c if (!request_region(emu->io, emu->size, "emu10k1-gp")) { emu 74 drivers/input/gameport/emu10k1-gp.c emu->io, emu->io + emu->size - 1); emu 79 drivers/input/gameport/emu10k1-gp.c pci_set_drvdata(pdev, emu); emu 89 drivers/input/gameport/emu10k1-gp.c kfree(emu); emu 95 drivers/input/gameport/emu10k1-gp.c struct emu *emu = pci_get_drvdata(pdev); emu 97 drivers/input/gameport/emu10k1-gp.c gameport_unregister_port(emu->gameport); emu 98 drivers/input/gameport/emu10k1-gp.c release_region(emu->io, emu->size); emu 99 drivers/input/gameport/emu10k1-gp.c kfree(emu); emu 815 drivers/input/serio/hil_mlc.c goto emu; emu 818 drivers/input/serio/hil_mlc.c goto emu; emu 821 drivers/input/serio/hil_mlc.c goto emu; emu 824 drivers/input/serio/hil_mlc.c goto emu; emu 834 drivers/input/serio/hil_mlc.c emu: emu 1488 include/sound/emu10k1.h struct snd_emu10k1 *emu; emu 1495 include/sound/emu10k1.h void (*interrupt)(struct snd_emu10k1 *emu, struct snd_emu10k1_voice *pvoice); emu 1509 include/sound/emu10k1.h struct snd_emu10k1 *emu; emu 1572 include/sound/emu10k1.h typedef void (snd_fx8010_irq_handler_t)(struct snd_emu10k1 *emu, void *private_data); emu 1620 include/sound/emu10k1.h struct snd_emu10k1 *emu; emu 1631 include/sound/emu10k1.h void (*interrupt)(struct snd_emu10k1 *emu, unsigned int status); emu 1733 include/sound/emu10k1.h int (*get_synth_voice)(struct snd_emu10k1 *emu); emu 1757 include/sound/emu10k1.h void (*hwvol_interrupt)(struct snd_emu10k1 *emu, unsigned int status); emu 1758 include/sound/emu10k1.h void (*capture_interrupt)(struct snd_emu10k1 *emu, unsigned int status); emu 1759 include/sound/emu10k1.h void (*capture_mic_interrupt)(struct snd_emu10k1 *emu, unsigned int status); emu 1760 include/sound/emu10k1.h void (*capture_efx_interrupt)(struct snd_emu10k1 *emu, unsigned int status); emu 1761 include/sound/emu10k1.h void (*spdif_interrupt)(struct snd_emu10k1 *emu, unsigned int status); emu 1762 include/sound/emu10k1.h void (*dsp_interrupt)(struct snd_emu10k1 *emu); emu 1802 include/sound/emu10k1.h int snd_emu10k1_pcm(struct snd_emu10k1 *emu, int device); emu 1803 include/sound/emu10k1.h int snd_emu10k1_pcm_mic(struct snd_emu10k1 *emu, int device); emu 1804 include/sound/emu10k1.h int snd_emu10k1_pcm_efx(struct snd_emu10k1 *emu, int device); emu 1805 include/sound/emu10k1.h int snd_p16v_pcm(struct snd_emu10k1 *emu, int device); emu 1806 include/sound/emu10k1.h int snd_p16v_free(struct snd_emu10k1 * emu); emu 1807 include/sound/emu10k1.h int snd_p16v_mixer(struct snd_emu10k1 * emu); emu 1808 include/sound/emu10k1.h int snd_emu10k1_pcm_multi(struct snd_emu10k1 *emu, int device); emu 1809 include/sound/emu10k1.h int snd_emu10k1_fx8010_pcm(struct snd_emu10k1 *emu, int device); emu 1810 include/sound/emu10k1.h int snd_emu10k1_mixer(struct snd_emu10k1 * emu, int pcm_device, int multi_device); emu 1811 include/sound/emu10k1.h int snd_emu10k1_timer(struct snd_emu10k1 * emu, int device); emu 1812 include/sound/emu10k1.h int snd_emu10k1_fx8010_new(struct snd_emu10k1 *emu, int device); emu 1816 include/sound/emu10k1.h void snd_emu10k1_voice_init(struct snd_emu10k1 * emu, int voice); emu 1817 include/sound/emu10k1.h int snd_emu10k1_init_efx(struct snd_emu10k1 *emu); emu 1818 include/sound/emu10k1.h void snd_emu10k1_free_efx(struct snd_emu10k1 *emu); emu 1819 include/sound/emu10k1.h int snd_emu10k1_fx8010_tram_setup(struct snd_emu10k1 *emu, u32 size); emu 1820 include/sound/emu10k1.h int snd_emu10k1_done(struct snd_emu10k1 * emu); emu 1823 include/sound/emu10k1.h unsigned int snd_emu10k1_ptr_read(struct snd_emu10k1 * emu, unsigned int reg, unsigned int chn); emu 1824 include/sound/emu10k1.h void snd_emu10k1_ptr_write(struct snd_emu10k1 *emu, unsigned int reg, unsigned int chn, unsigned int data); emu 1825 include/sound/emu10k1.h unsigned int snd_emu10k1_ptr20_read(struct snd_emu10k1 * emu, unsigned int reg, unsigned int chn); emu 1826 include/sound/emu10k1.h void snd_emu10k1_ptr20_write(struct snd_emu10k1 *emu, unsigned int reg, unsigned int chn, unsigned int data); emu 1827 include/sound/emu10k1.h int snd_emu10k1_spi_write(struct snd_emu10k1 * emu, unsigned int data); emu 1828 include/sound/emu10k1.h int snd_emu10k1_i2c_write(struct snd_emu10k1 *emu, u32 reg, u32 value); emu 1829 include/sound/emu10k1.h int snd_emu1010_fpga_write(struct snd_emu10k1 * emu, u32 reg, u32 value); emu 1830 include/sound/emu10k1.h int snd_emu1010_fpga_read(struct snd_emu10k1 * emu, u32 reg, u32 *value); emu 1831 include/sound/emu10k1.h int snd_emu1010_fpga_link_dst_src_write(struct snd_emu10k1 * emu, u32 dst, u32 src); emu 1832 include/sound/emu10k1.h unsigned int snd_emu10k1_efx_read(struct snd_emu10k1 *emu, unsigned int pc); emu 1833 include/sound/emu10k1.h void snd_emu10k1_intr_enable(struct snd_emu10k1 *emu, unsigned int intrenb); emu 1834 include/sound/emu10k1.h void snd_emu10k1_intr_disable(struct snd_emu10k1 *emu, unsigned int intrenb); emu 1835 include/sound/emu10k1.h void snd_emu10k1_voice_intr_enable(struct snd_emu10k1 *emu, unsigned int voicenum); emu 1836 include/sound/emu10k1.h void snd_emu10k1_voice_intr_disable(struct snd_emu10k1 *emu, unsigned int voicenum); emu 1837 include/sound/emu10k1.h void snd_emu10k1_voice_intr_ack(struct snd_emu10k1 *emu, unsigned int voicenum); emu 1838 include/sound/emu10k1.h void snd_emu10k1_voice_half_loop_intr_enable(struct snd_emu10k1 *emu, unsigned int voicenum); emu 1839 include/sound/emu10k1.h void snd_emu10k1_voice_half_loop_intr_disable(struct snd_emu10k1 *emu, unsigned int voicenum); emu 1840 include/sound/emu10k1.h void snd_emu10k1_voice_half_loop_intr_ack(struct snd_emu10k1 *emu, unsigned int voicenum); emu 1841 include/sound/emu10k1.h void snd_emu10k1_voice_set_loop_stop(struct snd_emu10k1 *emu, unsigned int voicenum); emu 1842 include/sound/emu10k1.h void snd_emu10k1_voice_clear_loop_stop(struct snd_emu10k1 *emu, unsigned int voicenum); emu 1843 include/sound/emu10k1.h void snd_emu10k1_wait(struct snd_emu10k1 *emu, unsigned int wait); emu 1844 include/sound/emu10k1.h static inline unsigned int snd_emu10k1_wc(struct snd_emu10k1 *emu) { return (inl(emu->port + WC) >> 6) & 0xfffff; } emu 1850 include/sound/emu10k1.h void snd_emu10k1_suspend_regs(struct snd_emu10k1 *emu); emu 1851 include/sound/emu10k1.h void snd_emu10k1_resume_init(struct snd_emu10k1 *emu); emu 1852 include/sound/emu10k1.h void snd_emu10k1_resume_regs(struct snd_emu10k1 *emu); emu 1853 include/sound/emu10k1.h int snd_emu10k1_efx_alloc_pm_buffer(struct snd_emu10k1 *emu); emu 1854 include/sound/emu10k1.h void snd_emu10k1_efx_free_pm_buffer(struct snd_emu10k1 *emu); emu 1855 include/sound/emu10k1.h void snd_emu10k1_efx_suspend(struct snd_emu10k1 *emu); emu 1856 include/sound/emu10k1.h void snd_emu10k1_efx_resume(struct snd_emu10k1 *emu); emu 1857 include/sound/emu10k1.h int snd_p16v_alloc_pm_buffer(struct snd_emu10k1 *emu); emu 1858 include/sound/emu10k1.h void snd_p16v_free_pm_buffer(struct snd_emu10k1 *emu); emu 1859 include/sound/emu10k1.h void snd_p16v_suspend(struct snd_emu10k1 *emu); emu 1860 include/sound/emu10k1.h void snd_p16v_resume(struct snd_emu10k1 *emu); emu 1864 include/sound/emu10k1.h struct snd_util_memblk *snd_emu10k1_alloc_pages(struct snd_emu10k1 *emu, struct snd_pcm_substream *substream); emu 1865 include/sound/emu10k1.h int snd_emu10k1_free_pages(struct snd_emu10k1 *emu, struct snd_util_memblk *blk); emu 1866 include/sound/emu10k1.h int snd_emu10k1_alloc_pages_maybe_wider(struct snd_emu10k1 *emu, size_t size, emu 1868 include/sound/emu10k1.h struct snd_util_memblk *snd_emu10k1_synth_alloc(struct snd_emu10k1 *emu, unsigned int size); emu 1869 include/sound/emu10k1.h int snd_emu10k1_synth_free(struct snd_emu10k1 *emu, struct snd_util_memblk *blk); emu 1870 include/sound/emu10k1.h int snd_emu10k1_synth_bzero(struct snd_emu10k1 *emu, struct snd_util_memblk *blk, int offset, int size); emu 1871 include/sound/emu10k1.h int snd_emu10k1_synth_copy_from_user(struct snd_emu10k1 *emu, struct snd_util_memblk *blk, int offset, const char __user *data, int size); emu 1872 include/sound/emu10k1.h int snd_emu10k1_memblk_map(struct snd_emu10k1 *emu, struct snd_emu10k1_memblk *blk); emu 1875 include/sound/emu10k1.h int snd_emu10k1_voice_alloc(struct snd_emu10k1 *emu, int type, int pair, struct snd_emu10k1_voice **rvoice); emu 1876 include/sound/emu10k1.h int snd_emu10k1_voice_free(struct snd_emu10k1 *emu, struct snd_emu10k1_voice *pvoice); emu 1879 include/sound/emu10k1.h int snd_emu10k1_midi(struct snd_emu10k1 * emu); emu 1880 include/sound/emu10k1.h int snd_emu10k1_audigy_midi(struct snd_emu10k1 * emu); emu 1883 include/sound/emu10k1.h int snd_emu10k1_proc_init(struct snd_emu10k1 * emu); emu 1886 include/sound/emu10k1.h int snd_emu10k1_fx8010_register_irq_handler(struct snd_emu10k1 *emu, emu 1891 include/sound/emu10k1.h int snd_emu10k1_fx8010_unregister_irq_handler(struct snd_emu10k1 *emu, emu 48 include/sound/emu8000.h struct snd_emux *emu; emu 90 include/sound/emu8000.h void snd_emu8000_poke(struct snd_emu8000 *emu, unsigned int port, unsigned int reg, emu 92 include/sound/emu8000.h unsigned short snd_emu8000_peek(struct snd_emu8000 *emu, unsigned int port, emu 94 include/sound/emu8000.h void snd_emu8000_poke_dw(struct snd_emu8000 *emu, unsigned int port, unsigned int reg, emu 96 include/sound/emu8000.h unsigned int snd_emu8000_peek_dw(struct snd_emu8000 *emu, unsigned int port, emu 98 include/sound/emu8000.h void snd_emu8000_dma_chan(struct snd_emu8000 *emu, int ch, int mode); emu 100 include/sound/emu8000.h void snd_emu8000_init_fm(struct snd_emu8000 *emu); emu 102 include/sound/emu8000.h void snd_emu8000_update_chorus_mode(struct snd_emu8000 *emu); emu 103 include/sound/emu8000.h void snd_emu8000_update_reverb_mode(struct snd_emu8000 *emu); emu 104 include/sound/emu8000.h void snd_emu8000_update_equalizer(struct snd_emu8000 *emu); emu 105 include/sound/emu8000.h int snd_emu8000_load_chorus_fx(struct snd_emu8000 *emu, int mode, const void __user *buf, long len); emu 106 include/sound/emu8000.h int snd_emu8000_load_reverb_fx(struct snd_emu8000 *emu, int mode, const void __user *buf, long len); emu 30 include/sound/emu8000_reg.h #define EMU8000_CPF_READ(emu, chan) \ emu 31 include/sound/emu8000_reg.h snd_emu8000_peek_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(0, (chan))) emu 32 include/sound/emu8000_reg.h #define EMU8000_PTRX_READ(emu, chan) \ emu 33 include/sound/emu8000_reg.h snd_emu8000_peek_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(1, (chan))) emu 34 include/sound/emu8000_reg.h #define EMU8000_CVCF_READ(emu, chan) \ emu 35 include/sound/emu8000_reg.h snd_emu8000_peek_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(2, (chan))) emu 36 include/sound/emu8000_reg.h #define EMU8000_VTFT_READ(emu, chan) \ emu 37 include/sound/emu8000_reg.h snd_emu8000_peek_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(3, (chan))) emu 38 include/sound/emu8000_reg.h #define EMU8000_PSST_READ(emu, chan) \ emu 39 include/sound/emu8000_reg.h snd_emu8000_peek_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(6, (chan))) emu 40 include/sound/emu8000_reg.h #define EMU8000_CSL_READ(emu, chan) \ emu 41 include/sound/emu8000_reg.h snd_emu8000_peek_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(7, (chan))) emu 42 include/sound/emu8000_reg.h #define EMU8000_CCCA_READ(emu, chan) \ emu 43 include/sound/emu8000_reg.h snd_emu8000_peek_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(0, (chan))) emu 44 include/sound/emu8000_reg.h #define EMU8000_HWCF4_READ(emu) \ emu 45 include/sound/emu8000_reg.h snd_emu8000_peek_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 9)) emu 46 include/sound/emu8000_reg.h #define EMU8000_HWCF5_READ(emu) \ emu 47 include/sound/emu8000_reg.h snd_emu8000_peek_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 10)) emu 48 include/sound/emu8000_reg.h #define EMU8000_HWCF6_READ(emu) \ emu 49 include/sound/emu8000_reg.h snd_emu8000_peek_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 13)) emu 50 include/sound/emu8000_reg.h #define EMU8000_SMALR_READ(emu) \ emu 51 include/sound/emu8000_reg.h snd_emu8000_peek_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 20)) emu 52 include/sound/emu8000_reg.h #define EMU8000_SMARR_READ(emu) \ emu 53 include/sound/emu8000_reg.h snd_emu8000_peek_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 21)) emu 54 include/sound/emu8000_reg.h #define EMU8000_SMALW_READ(emu) \ emu 55 include/sound/emu8000_reg.h snd_emu8000_peek_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 22)) emu 56 include/sound/emu8000_reg.h #define EMU8000_SMARW_READ(emu) \ emu 57 include/sound/emu8000_reg.h snd_emu8000_peek_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 23)) emu 58 include/sound/emu8000_reg.h #define EMU8000_SMLD_READ(emu) \ emu 59 include/sound/emu8000_reg.h snd_emu8000_peek((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 26)) emu 60 include/sound/emu8000_reg.h #define EMU8000_SMRD_READ(emu) \ emu 61 include/sound/emu8000_reg.h snd_emu8000_peek((emu), EMU8000_DATA2(emu), EMU8000_CMD(1, 26)) emu 62 include/sound/emu8000_reg.h #define EMU8000_WC_READ(emu) \ emu 63 include/sound/emu8000_reg.h snd_emu8000_peek((emu), EMU8000_DATA2(emu), EMU8000_CMD(1, 27)) emu 64 include/sound/emu8000_reg.h #define EMU8000_HWCF1_READ(emu) \ emu 65 include/sound/emu8000_reg.h snd_emu8000_peek((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 29)) emu 66 include/sound/emu8000_reg.h #define EMU8000_HWCF2_READ(emu) \ emu 67 include/sound/emu8000_reg.h snd_emu8000_peek((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 30)) emu 68 include/sound/emu8000_reg.h #define EMU8000_HWCF3_READ(emu) \ emu 69 include/sound/emu8000_reg.h snd_emu8000_peek((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 31)) emu 70 include/sound/emu8000_reg.h #define EMU8000_INIT1_READ(emu, chan) \ emu 71 include/sound/emu8000_reg.h snd_emu8000_peek((emu), EMU8000_DATA1(emu), EMU8000_CMD(2, (chan))) emu 72 include/sound/emu8000_reg.h #define EMU8000_INIT2_READ(emu, chan) \ emu 73 include/sound/emu8000_reg.h snd_emu8000_peek((emu), EMU8000_DATA2(emu), EMU8000_CMD(2, (chan))) emu 74 include/sound/emu8000_reg.h #define EMU8000_INIT3_READ(emu, chan) \ emu 75 include/sound/emu8000_reg.h snd_emu8000_peek((emu), EMU8000_DATA1(emu), EMU8000_CMD(3, (chan))) emu 76 include/sound/emu8000_reg.h #define EMU8000_INIT4_READ(emu, chan) \ emu 77 include/sound/emu8000_reg.h snd_emu8000_peek((emu), EMU8000_DATA2(emu), EMU8000_CMD(3, (chan))) emu 78 include/sound/emu8000_reg.h #define EMU8000_ENVVOL_READ(emu, chan) \ emu 79 include/sound/emu8000_reg.h snd_emu8000_peek((emu), EMU8000_DATA1(emu), EMU8000_CMD(4, (chan))) emu 80 include/sound/emu8000_reg.h #define EMU8000_DCYSUSV_READ(emu, chan) \ emu 81 include/sound/emu8000_reg.h snd_emu8000_peek((emu), EMU8000_DATA1(emu), EMU8000_CMD(5, (chan))) emu 82 include/sound/emu8000_reg.h #define EMU8000_ENVVAL_READ(emu, chan) \ emu 83 include/sound/emu8000_reg.h snd_emu8000_peek((emu), EMU8000_DATA1(emu), EMU8000_CMD(6, (chan))) emu 84 include/sound/emu8000_reg.h #define EMU8000_DCYSUS_READ(emu, chan) \ emu 85 include/sound/emu8000_reg.h snd_emu8000_peek((emu), EMU8000_DATA1(emu), EMU8000_CMD(7, (chan))) emu 86 include/sound/emu8000_reg.h #define EMU8000_ATKHLDV_READ(emu, chan) \ emu 87 include/sound/emu8000_reg.h snd_emu8000_peek((emu), EMU8000_DATA2(emu), EMU8000_CMD(4, (chan))) emu 88 include/sound/emu8000_reg.h #define EMU8000_LFO1VAL_READ(emu, chan) \ emu 89 include/sound/emu8000_reg.h snd_emu8000_peek((emu), EMU8000_DATA2(emu), EMU8000_CMD(5, (chan))) emu 90 include/sound/emu8000_reg.h #define EMU8000_ATKHLD_READ(emu, chan) \ emu 91 include/sound/emu8000_reg.h snd_emu8000_peek((emu), EMU8000_DATA2(emu), EMU8000_CMD(6, (chan))) emu 92 include/sound/emu8000_reg.h #define EMU8000_LFO2VAL_READ(emu, chan) \ emu 93 include/sound/emu8000_reg.h snd_emu8000_peek((emu), EMU8000_DATA2(emu), EMU8000_CMD(7, (chan))) emu 94 include/sound/emu8000_reg.h #define EMU8000_IP_READ(emu, chan) \ emu 95 include/sound/emu8000_reg.h snd_emu8000_peek((emu), EMU8000_DATA3(emu), EMU8000_CMD(0, (chan))) emu 96 include/sound/emu8000_reg.h #define EMU8000_IFATN_READ(emu, chan) \ emu 97 include/sound/emu8000_reg.h snd_emu8000_peek((emu), EMU8000_DATA3(emu), EMU8000_CMD(1, (chan))) emu 98 include/sound/emu8000_reg.h #define EMU8000_PEFE_READ(emu, chan) \ emu 99 include/sound/emu8000_reg.h snd_emu8000_peek((emu), EMU8000_DATA3(emu), EMU8000_CMD(2, (chan))) emu 100 include/sound/emu8000_reg.h #define EMU8000_FMMOD_READ(emu, chan) \ emu 101 include/sound/emu8000_reg.h snd_emu8000_peek((emu), EMU8000_DATA3(emu), EMU8000_CMD(3, (chan))) emu 102 include/sound/emu8000_reg.h #define EMU8000_TREMFRQ_READ(emu, chan) \ emu 103 include/sound/emu8000_reg.h snd_emu8000_peek((emu), EMU8000_DATA3(emu), EMU8000_CMD(4, (chan))) emu 104 include/sound/emu8000_reg.h #define EMU8000_FM2FRQ2_READ(emu, chan) \ emu 105 include/sound/emu8000_reg.h snd_emu8000_peek((emu), EMU8000_DATA3(emu), EMU8000_CMD(5, (chan))) emu 108 include/sound/emu8000_reg.h #define EMU8000_CPF_WRITE(emu, chan, val) \ emu 109 include/sound/emu8000_reg.h snd_emu8000_poke_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(0, (chan)), (val)) emu 110 include/sound/emu8000_reg.h #define EMU8000_PTRX_WRITE(emu, chan, val) \ emu 111 include/sound/emu8000_reg.h snd_emu8000_poke_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(1, (chan)), (val)) emu 112 include/sound/emu8000_reg.h #define EMU8000_CVCF_WRITE(emu, chan, val) \ emu 113 include/sound/emu8000_reg.h snd_emu8000_poke_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(2, (chan)), (val)) emu 114 include/sound/emu8000_reg.h #define EMU8000_VTFT_WRITE(emu, chan, val) \ emu 115 include/sound/emu8000_reg.h snd_emu8000_poke_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(3, (chan)), (val)) emu 116 include/sound/emu8000_reg.h #define EMU8000_PSST_WRITE(emu, chan, val) \ emu 117 include/sound/emu8000_reg.h snd_emu8000_poke_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(6, (chan)), (val)) emu 118 include/sound/emu8000_reg.h #define EMU8000_CSL_WRITE(emu, chan, val) \ emu 119 include/sound/emu8000_reg.h snd_emu8000_poke_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(7, (chan)), (val)) emu 120 include/sound/emu8000_reg.h #define EMU8000_CCCA_WRITE(emu, chan, val) \ emu 121 include/sound/emu8000_reg.h snd_emu8000_poke_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(0, (chan)), (val)) emu 122 include/sound/emu8000_reg.h #define EMU8000_HWCF4_WRITE(emu, val) \ emu 123 include/sound/emu8000_reg.h snd_emu8000_poke_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 9), (val)) emu 124 include/sound/emu8000_reg.h #define EMU8000_HWCF5_WRITE(emu, val) \ emu 125 include/sound/emu8000_reg.h snd_emu8000_poke_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 10), (val)) emu 126 include/sound/emu8000_reg.h #define EMU8000_HWCF6_WRITE(emu, val) \ emu 127 include/sound/emu8000_reg.h snd_emu8000_poke_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 13), (val)) emu 129 include/sound/emu8000_reg.h #define EMU8000_HWCF7_WRITE(emu, val) \ emu 130 include/sound/emu8000_reg.h snd_emu8000_poke_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 14), (val)) emu 131 include/sound/emu8000_reg.h #define EMU8000_SMALR_WRITE(emu, val) \ emu 132 include/sound/emu8000_reg.h snd_emu8000_poke_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 20), (val)) emu 133 include/sound/emu8000_reg.h #define EMU8000_SMARR_WRITE(emu, val) \ emu 134 include/sound/emu8000_reg.h snd_emu8000_poke_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 21), (val)) emu 135 include/sound/emu8000_reg.h #define EMU8000_SMALW_WRITE(emu, val) \ emu 136 include/sound/emu8000_reg.h snd_emu8000_poke_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 22), (val)) emu 137 include/sound/emu8000_reg.h #define EMU8000_SMARW_WRITE(emu, val) \ emu 138 include/sound/emu8000_reg.h snd_emu8000_poke_dw((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 23), (val)) emu 139 include/sound/emu8000_reg.h #define EMU8000_SMLD_WRITE(emu, val) \ emu 140 include/sound/emu8000_reg.h snd_emu8000_poke((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 26), (val)) emu 141 include/sound/emu8000_reg.h #define EMU8000_SMRD_WRITE(emu, val) \ emu 142 include/sound/emu8000_reg.h snd_emu8000_poke((emu), EMU8000_DATA2(emu), EMU8000_CMD(1, 26), (val)) emu 143 include/sound/emu8000_reg.h #define EMU8000_WC_WRITE(emu, val) \ emu 144 include/sound/emu8000_reg.h snd_emu8000_poke((emu), EMU8000_DATA2(emu), EMU8000_CMD(1, 27), (val)) emu 145 include/sound/emu8000_reg.h #define EMU8000_HWCF1_WRITE(emu, val) \ emu 146 include/sound/emu8000_reg.h snd_emu8000_poke((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 29), (val)) emu 147 include/sound/emu8000_reg.h #define EMU8000_HWCF2_WRITE(emu, val) \ emu 148 include/sound/emu8000_reg.h snd_emu8000_poke((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 30), (val)) emu 149 include/sound/emu8000_reg.h #define EMU8000_HWCF3_WRITE(emu, val) \ emu 150 include/sound/emu8000_reg.h snd_emu8000_poke((emu), EMU8000_DATA1(emu), EMU8000_CMD(1, 31), (val)) emu 151 include/sound/emu8000_reg.h #define EMU8000_INIT1_WRITE(emu, chan, val) \ emu 152 include/sound/emu8000_reg.h snd_emu8000_poke((emu), EMU8000_DATA1(emu), EMU8000_CMD(2, (chan)), (val)) emu 153 include/sound/emu8000_reg.h #define EMU8000_INIT2_WRITE(emu, chan, val) \ emu 154 include/sound/emu8000_reg.h snd_emu8000_poke((emu), EMU8000_DATA2(emu), EMU8000_CMD(2, (chan)), (val)) emu 155 include/sound/emu8000_reg.h #define EMU8000_INIT3_WRITE(emu, chan, val) \ emu 156 include/sound/emu8000_reg.h snd_emu8000_poke((emu), EMU8000_DATA1(emu), EMU8000_CMD(3, (chan)), (val)) emu 157 include/sound/emu8000_reg.h #define EMU8000_INIT4_WRITE(emu, chan, val) \ emu 158 include/sound/emu8000_reg.h snd_emu8000_poke((emu), EMU8000_DATA2(emu), EMU8000_CMD(3, (chan)), (val)) emu 159 include/sound/emu8000_reg.h #define EMU8000_ENVVOL_WRITE(emu, chan, val) \ emu 160 include/sound/emu8000_reg.h snd_emu8000_poke((emu), EMU8000_DATA1(emu), EMU8000_CMD(4, (chan)), (val)) emu 161 include/sound/emu8000_reg.h #define EMU8000_DCYSUSV_WRITE(emu, chan, val) \ emu 162 include/sound/emu8000_reg.h snd_emu8000_poke((emu), EMU8000_DATA1(emu), EMU8000_CMD(5, (chan)), (val)) emu 163 include/sound/emu8000_reg.h #define EMU8000_ENVVAL_WRITE(emu, chan, val) \ emu 164 include/sound/emu8000_reg.h snd_emu8000_poke((emu), EMU8000_DATA1(emu), EMU8000_CMD(6, (chan)), (val)) emu 165 include/sound/emu8000_reg.h #define EMU8000_DCYSUS_WRITE(emu, chan, val) \ emu 166 include/sound/emu8000_reg.h snd_emu8000_poke((emu), EMU8000_DATA1(emu), EMU8000_CMD(7, (chan)), (val)) emu 167 include/sound/emu8000_reg.h #define EMU8000_ATKHLDV_WRITE(emu, chan, val) \ emu 168 include/sound/emu8000_reg.h snd_emu8000_poke((emu), EMU8000_DATA2(emu), EMU8000_CMD(4, (chan)), (val)) emu 169 include/sound/emu8000_reg.h #define EMU8000_LFO1VAL_WRITE(emu, chan, val) \ emu 170 include/sound/emu8000_reg.h snd_emu8000_poke((emu), EMU8000_DATA2(emu), EMU8000_CMD(5, (chan)), (val)) emu 171 include/sound/emu8000_reg.h #define EMU8000_ATKHLD_WRITE(emu, chan, val) \ emu 172 include/sound/emu8000_reg.h snd_emu8000_poke((emu), EMU8000_DATA2(emu), EMU8000_CMD(6, (chan)), (val)) emu 173 include/sound/emu8000_reg.h #define EMU8000_LFO2VAL_WRITE(emu, chan, val) \ emu 174 include/sound/emu8000_reg.h snd_emu8000_poke((emu), EMU8000_DATA2(emu), EMU8000_CMD(7, (chan)), (val)) emu 175 include/sound/emu8000_reg.h #define EMU8000_IP_WRITE(emu, chan, val) \ emu 176 include/sound/emu8000_reg.h snd_emu8000_poke((emu), EMU8000_DATA3(emu), EMU8000_CMD(0, (chan)), (val)) emu 177 include/sound/emu8000_reg.h #define EMU8000_IFATN_WRITE(emu, chan, val) \ emu 178 include/sound/emu8000_reg.h snd_emu8000_poke((emu), EMU8000_DATA3(emu), EMU8000_CMD(1, (chan)), (val)) emu 179 include/sound/emu8000_reg.h #define EMU8000_PEFE_WRITE(emu, chan, val) \ emu 180 include/sound/emu8000_reg.h snd_emu8000_poke((emu), EMU8000_DATA3(emu), EMU8000_CMD(2, (chan)), (val)) emu 181 include/sound/emu8000_reg.h #define EMU8000_FMMOD_WRITE(emu, chan, val) \ emu 182 include/sound/emu8000_reg.h snd_emu8000_poke((emu), EMU8000_DATA3(emu), EMU8000_CMD(3, (chan)), (val)) emu 183 include/sound/emu8000_reg.h #define EMU8000_TREMFRQ_WRITE(emu, chan, val) \ emu 184 include/sound/emu8000_reg.h snd_emu8000_poke((emu), EMU8000_DATA3(emu), EMU8000_CMD(4, (chan)), (val)) emu 185 include/sound/emu8000_reg.h #define EMU8000_FM2FRQ2_WRITE(emu, chan, val) \ emu 186 include/sound/emu8000_reg.h snd_emu8000_poke((emu), EMU8000_DATA3(emu), EMU8000_CMD(5, (chan)), (val)) emu 188 include/sound/emu8000_reg.h #define EMU8000_0080_WRITE(emu, chan, val) \ emu 189 include/sound/emu8000_reg.h snd_emu8000_poke_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(4, (chan)), (val)) emu 190 include/sound/emu8000_reg.h #define EMU8000_00A0_WRITE(emu, chan, val) \ emu 191 include/sound/emu8000_reg.h snd_emu8000_poke_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(5, (chan)), (val)) emu 34 include/sound/emux_synth.h struct snd_emux_voice *(*get_voice)(struct snd_emux *emu, emu 42 include/sound/emux_synth.h void (*reset)(struct snd_emux *emu, int ch); emu 44 include/sound/emux_synth.h int (*sample_new)(struct snd_emux *emu, struct snd_sf_sample *sp, emu 47 include/sound/emux_synth.h int (*sample_free)(struct snd_emux *emu, struct snd_sf_sample *sp, emu 49 include/sound/emux_synth.h void (*sample_reset)(struct snd_emux *emu); emu 50 include/sound/emux_synth.h int (*load_fx)(struct snd_emux *emu, int type, int arg, emu 52 include/sound/emux_synth.h void (*sysex)(struct snd_emux *emu, char *buf, int len, int parsed, emu 55 include/sound/emux_synth.h int (*oss_ioctl)(struct snd_emux *emu, int cmd, int p1, int p2); emu 129 include/sound/emux_synth.h struct snd_emux *emu; emu 172 include/sound/emux_synth.h struct snd_emux *emu; /* assigned root info */ emu 219 include/sound/emux_synth.h int snd_emux_register(struct snd_emux *emu, struct snd_card *card, int index, char *name); emu 220 include/sound/emux_synth.h int snd_emux_free(struct snd_emux *emu); emu 225 include/sound/emux_synth.h void snd_emux_terminate_all(struct snd_emux *emu); emu 226 include/sound/emux_synth.h void snd_emux_lock_voice(struct snd_emux *emu, int voice); emu 227 include/sound/emux_synth.h void snd_emux_unlock_voice(struct snd_emux *emu, int voice); emu 35 sound/isa/sb/emu8000.c void snd_emu8000_poke(struct snd_emu8000 *emu, unsigned int port, unsigned int reg, unsigned int val) emu 38 sound/isa/sb/emu8000.c spin_lock_irqsave(&emu->reg_lock, flags); emu 39 sound/isa/sb/emu8000.c if (reg != emu->last_reg) { emu 40 sound/isa/sb/emu8000.c outw((unsigned short)reg, EMU8000_PTR(emu)); /* Set register */ emu 41 sound/isa/sb/emu8000.c emu->last_reg = reg; emu 44 sound/isa/sb/emu8000.c spin_unlock_irqrestore(&emu->reg_lock, flags); emu 48 sound/isa/sb/emu8000.c unsigned short snd_emu8000_peek(struct snd_emu8000 *emu, unsigned int port, unsigned int reg) emu 52 sound/isa/sb/emu8000.c spin_lock_irqsave(&emu->reg_lock, flags); emu 53 sound/isa/sb/emu8000.c if (reg != emu->last_reg) { emu 54 sound/isa/sb/emu8000.c outw((unsigned short)reg, EMU8000_PTR(emu)); /* Set register */ emu 55 sound/isa/sb/emu8000.c emu->last_reg = reg; emu 58 sound/isa/sb/emu8000.c spin_unlock_irqrestore(&emu->reg_lock, flags); emu 63 sound/isa/sb/emu8000.c void snd_emu8000_poke_dw(struct snd_emu8000 *emu, unsigned int port, unsigned int reg, unsigned int val) emu 66 sound/isa/sb/emu8000.c spin_lock_irqsave(&emu->reg_lock, flags); emu 67 sound/isa/sb/emu8000.c if (reg != emu->last_reg) { emu 68 sound/isa/sb/emu8000.c outw((unsigned short)reg, EMU8000_PTR(emu)); /* Set register */ emu 69 sound/isa/sb/emu8000.c emu->last_reg = reg; emu 73 sound/isa/sb/emu8000.c spin_unlock_irqrestore(&emu->reg_lock, flags); emu 77 sound/isa/sb/emu8000.c unsigned int snd_emu8000_peek_dw(struct snd_emu8000 *emu, unsigned int port, unsigned int reg) emu 82 sound/isa/sb/emu8000.c spin_lock_irqsave(&emu->reg_lock, flags); emu 83 sound/isa/sb/emu8000.c if (reg != emu->last_reg) { emu 84 sound/isa/sb/emu8000.c outw((unsigned short)reg, EMU8000_PTR(emu)); /* Set register */ emu 85 sound/isa/sb/emu8000.c emu->last_reg = reg; emu 89 sound/isa/sb/emu8000.c spin_unlock_irqrestore(&emu->reg_lock, flags); emu 97 sound/isa/sb/emu8000.c snd_emu8000_dma_chan(struct snd_emu8000 *emu, int ch, int mode) emu 102 sound/isa/sb/emu8000.c EMU8000_CCCA_WRITE(emu, ch, 0); emu 103 sound/isa/sb/emu8000.c EMU8000_DCYSUSV_WRITE(emu, ch, 0x807F); emu 106 sound/isa/sb/emu8000.c EMU8000_DCYSUSV_WRITE(emu, ch, 0x80); emu 107 sound/isa/sb/emu8000.c EMU8000_VTFT_WRITE(emu, ch, 0); emu 108 sound/isa/sb/emu8000.c EMU8000_CVCF_WRITE(emu, ch, 0); emu 109 sound/isa/sb/emu8000.c EMU8000_PTRX_WRITE(emu, ch, 0x40000000); emu 110 sound/isa/sb/emu8000.c EMU8000_CPF_WRITE(emu, ch, 0x40000000); emu 111 sound/isa/sb/emu8000.c EMU8000_PSST_WRITE(emu, ch, 0); emu 112 sound/isa/sb/emu8000.c EMU8000_CSL_WRITE(emu, ch, 0); emu 114 sound/isa/sb/emu8000.c EMU8000_CCCA_WRITE(emu, ch, 0x06000000 | right_bit); emu 116 sound/isa/sb/emu8000.c EMU8000_CCCA_WRITE(emu, ch, 0x04000000 | right_bit); emu 122 sound/isa/sb/emu8000.c snd_emu8000_read_wait(struct snd_emu8000 *emu) emu 124 sound/isa/sb/emu8000.c while ((EMU8000_SMALR_READ(emu) & 0x80000000) != 0) { emu 134 sound/isa/sb/emu8000.c snd_emu8000_write_wait(struct snd_emu8000 *emu) emu 136 sound/isa/sb/emu8000.c while ((EMU8000_SMALW_READ(emu) & 0x80000000) != 0) { emu 147 sound/isa/sb/emu8000.c snd_emu8000_detect(struct snd_emu8000 *emu) emu 150 sound/isa/sb/emu8000.c EMU8000_HWCF1_WRITE(emu, 0x0059); emu 151 sound/isa/sb/emu8000.c EMU8000_HWCF2_WRITE(emu, 0x0020); emu 152 sound/isa/sb/emu8000.c EMU8000_HWCF3_WRITE(emu, 0x0000); emu 158 sound/isa/sb/emu8000.c if ((EMU8000_HWCF1_READ(emu) & 0x007e) != 0x0058) emu 160 sound/isa/sb/emu8000.c if ((EMU8000_HWCF2_READ(emu) & 0x0003) != 0x0003) emu 164 sound/isa/sb/emu8000.c emu->port1); emu 173 sound/isa/sb/emu8000.c init_audio(struct snd_emu8000 *emu) emu 179 sound/isa/sb/emu8000.c EMU8000_DCYSUSV_WRITE(emu, ch, 0x80); emu 183 sound/isa/sb/emu8000.c EMU8000_ENVVOL_WRITE(emu, ch, 0); emu 184 sound/isa/sb/emu8000.c EMU8000_ENVVAL_WRITE(emu, ch, 0); emu 185 sound/isa/sb/emu8000.c EMU8000_DCYSUS_WRITE(emu, ch, 0); emu 186 sound/isa/sb/emu8000.c EMU8000_ATKHLDV_WRITE(emu, ch, 0); emu 187 sound/isa/sb/emu8000.c EMU8000_LFO1VAL_WRITE(emu, ch, 0); emu 188 sound/isa/sb/emu8000.c EMU8000_ATKHLD_WRITE(emu, ch, 0); emu 189 sound/isa/sb/emu8000.c EMU8000_LFO2VAL_WRITE(emu, ch, 0); emu 190 sound/isa/sb/emu8000.c EMU8000_IP_WRITE(emu, ch, 0); emu 191 sound/isa/sb/emu8000.c EMU8000_IFATN_WRITE(emu, ch, 0); emu 192 sound/isa/sb/emu8000.c EMU8000_PEFE_WRITE(emu, ch, 0); emu 193 sound/isa/sb/emu8000.c EMU8000_FMMOD_WRITE(emu, ch, 0); emu 194 sound/isa/sb/emu8000.c EMU8000_TREMFRQ_WRITE(emu, ch, 0); emu 195 sound/isa/sb/emu8000.c EMU8000_FM2FRQ2_WRITE(emu, ch, 0); emu 196 sound/isa/sb/emu8000.c EMU8000_PTRX_WRITE(emu, ch, 0); emu 197 sound/isa/sb/emu8000.c EMU8000_VTFT_WRITE(emu, ch, 0); emu 198 sound/isa/sb/emu8000.c EMU8000_PSST_WRITE(emu, ch, 0); emu 199 sound/isa/sb/emu8000.c EMU8000_CSL_WRITE(emu, ch, 0); emu 200 sound/isa/sb/emu8000.c EMU8000_CCCA_WRITE(emu, ch, 0); emu 204 sound/isa/sb/emu8000.c EMU8000_CPF_WRITE(emu, ch, 0); emu 205 sound/isa/sb/emu8000.c EMU8000_CVCF_WRITE(emu, ch, 0); emu 214 sound/isa/sb/emu8000.c init_dma(struct snd_emu8000 *emu) emu 216 sound/isa/sb/emu8000.c EMU8000_SMALR_WRITE(emu, 0); emu 217 sound/isa/sb/emu8000.c EMU8000_SMARR_WRITE(emu, 0); emu 218 sound/isa/sb/emu8000.c EMU8000_SMALW_WRITE(emu, 0); emu 219 sound/isa/sb/emu8000.c EMU8000_SMARW_WRITE(emu, 0); emu 318 sound/isa/sb/emu8000.c send_array(struct snd_emu8000 *emu, unsigned short *data, int size) emu 325 sound/isa/sb/emu8000.c EMU8000_INIT1_WRITE(emu, i, *p); emu 327 sound/isa/sb/emu8000.c EMU8000_INIT2_WRITE(emu, i, *p); emu 329 sound/isa/sb/emu8000.c EMU8000_INIT3_WRITE(emu, i, *p); emu 331 sound/isa/sb/emu8000.c EMU8000_INIT4_WRITE(emu, i, *p); emu 340 sound/isa/sb/emu8000.c init_arrays(struct snd_emu8000 *emu) emu 342 sound/isa/sb/emu8000.c send_array(emu, init1, ARRAY_SIZE(init1)/4); emu 345 sound/isa/sb/emu8000.c send_array(emu, init2, ARRAY_SIZE(init2)/4); emu 346 sound/isa/sb/emu8000.c send_array(emu, init3, ARRAY_SIZE(init3)/4); emu 348 sound/isa/sb/emu8000.c EMU8000_HWCF4_WRITE(emu, 0); emu 349 sound/isa/sb/emu8000.c EMU8000_HWCF5_WRITE(emu, 0x83); emu 350 sound/isa/sb/emu8000.c EMU8000_HWCF6_WRITE(emu, 0x8000); emu 352 sound/isa/sb/emu8000.c send_array(emu, init4, ARRAY_SIZE(init4)/4); emu 366 sound/isa/sb/emu8000.c size_dram(struct snd_emu8000 *emu) emu 370 sound/isa/sb/emu8000.c if (emu->dram_checked) emu 376 sound/isa/sb/emu8000.c snd_emu8000_dma_chan(emu, 0, EMU8000_RAM_WRITE); emu 377 sound/isa/sb/emu8000.c snd_emu8000_dma_chan(emu, 1, EMU8000_RAM_READ); emu 378 sound/isa/sb/emu8000.c EMU8000_SMALW_WRITE(emu, EMU8000_DRAM_OFFSET); emu 379 sound/isa/sb/emu8000.c EMU8000_SMLD_WRITE(emu, UNIQUE_ID1); emu 380 sound/isa/sb/emu8000.c snd_emu8000_init_fm(emu); /* This must really be here and not 2 lines back even */ emu 381 sound/isa/sb/emu8000.c snd_emu8000_write_wait(emu); emu 387 sound/isa/sb/emu8000.c EMU8000_SMALR_WRITE(emu, EMU8000_DRAM_OFFSET); emu 388 sound/isa/sb/emu8000.c EMU8000_SMLD_READ(emu); /* discard stale data */ emu 389 sound/isa/sb/emu8000.c if (EMU8000_SMLD_READ(emu) != UNIQUE_ID1) emu 391 sound/isa/sb/emu8000.c snd_emu8000_read_wait(emu); emu 401 sound/isa/sb/emu8000.c EMU8000_SMALW_WRITE(emu, EMU8000_DRAM_OFFSET + (size>>1)); emu 402 sound/isa/sb/emu8000.c EMU8000_SMLD_WRITE(emu, UNIQUE_ID2); emu 403 sound/isa/sb/emu8000.c snd_emu8000_write_wait(emu); emu 410 sound/isa/sb/emu8000.c EMU8000_SMALR_WRITE(emu, EMU8000_DRAM_OFFSET + (size>>1)); emu 412 sound/isa/sb/emu8000.c EMU8000_SMLD_READ(emu); /* discard stale data */ emu 413 sound/isa/sb/emu8000.c if (EMU8000_SMLD_READ(emu) != UNIQUE_ID2) emu 415 sound/isa/sb/emu8000.c snd_emu8000_read_wait(emu); emu 422 sound/isa/sb/emu8000.c EMU8000_SMALR_WRITE(emu, EMU8000_DRAM_OFFSET); emu 423 sound/isa/sb/emu8000.c EMU8000_SMLD_READ(emu); /* discard stale data */ emu 424 sound/isa/sb/emu8000.c if (EMU8000_SMLD_READ(emu) != UNIQUE_ID1) emu 426 sound/isa/sb/emu8000.c snd_emu8000_read_wait(emu); emu 434 sound/isa/sb/emu8000.c if ((EMU8000_SMALW_READ(emu) & 0x80000000) == 0) emu 440 sound/isa/sb/emu8000.c snd_emu8000_dma_chan(emu, 0, EMU8000_RAM_CLOSE); emu 441 sound/isa/sb/emu8000.c snd_emu8000_dma_chan(emu, 1, EMU8000_RAM_CLOSE); emu 444 sound/isa/sb/emu8000.c emu->port1, size/1024); emu 446 sound/isa/sb/emu8000.c emu->mem_size = size; emu 447 sound/isa/sb/emu8000.c emu->dram_checked = 1; emu 456 sound/isa/sb/emu8000.c snd_emu8000_init_fm(struct snd_emu8000 *emu) emu 464 sound/isa/sb/emu8000.c EMU8000_DCYSUSV_WRITE(emu, 30, 0x80); emu 465 sound/isa/sb/emu8000.c EMU8000_PSST_WRITE(emu, 30, 0xFFFFFFE0); /* full left */ emu 466 sound/isa/sb/emu8000.c EMU8000_CSL_WRITE(emu, 30, 0x00FFFFE8 | (emu->fm_chorus_depth << 24)); emu 467 sound/isa/sb/emu8000.c EMU8000_PTRX_WRITE(emu, 30, (emu->fm_reverb_depth << 8)); emu 468 sound/isa/sb/emu8000.c EMU8000_CPF_WRITE(emu, 30, 0); emu 469 sound/isa/sb/emu8000.c EMU8000_CCCA_WRITE(emu, 30, 0x00FFFFE3); emu 472 sound/isa/sb/emu8000.c EMU8000_DCYSUSV_WRITE(emu, 31, 0x80); emu 473 sound/isa/sb/emu8000.c EMU8000_PSST_WRITE(emu, 31, 0x00FFFFF0); /* full right */ emu 474 sound/isa/sb/emu8000.c EMU8000_CSL_WRITE(emu, 31, 0x00FFFFF8 | (emu->fm_chorus_depth << 24)); emu 475 sound/isa/sb/emu8000.c EMU8000_PTRX_WRITE(emu, 31, (emu->fm_reverb_depth << 8)); emu 476 sound/isa/sb/emu8000.c EMU8000_CPF_WRITE(emu, 31, 0x8000); emu 477 sound/isa/sb/emu8000.c EMU8000_CCCA_WRITE(emu, 31, 0x00FFFFF3); emu 479 sound/isa/sb/emu8000.c snd_emu8000_poke((emu), EMU8000_DATA0(emu), EMU8000_CMD(1, (30)), 0); emu 481 sound/isa/sb/emu8000.c spin_lock_irqsave(&emu->reg_lock, flags); emu 482 sound/isa/sb/emu8000.c while (!(inw(EMU8000_PTR(emu)) & 0x1000)) emu 484 sound/isa/sb/emu8000.c while ((inw(EMU8000_PTR(emu)) & 0x1000)) emu 486 sound/isa/sb/emu8000.c spin_unlock_irqrestore(&emu->reg_lock, flags); emu 487 sound/isa/sb/emu8000.c snd_emu8000_poke((emu), EMU8000_DATA0(emu), EMU8000_CMD(1, (30)), 0x4828); emu 489 sound/isa/sb/emu8000.c outb(0x3C, EMU8000_PTR(emu)); emu 490 sound/isa/sb/emu8000.c outb(0, EMU8000_DATA1(emu)); emu 493 sound/isa/sb/emu8000.c EMU8000_VTFT_WRITE(emu, 30, 0x8000FFFF); emu 494 sound/isa/sb/emu8000.c EMU8000_VTFT_WRITE(emu, 31, 0x8000FFFF); emu 502 sound/isa/sb/emu8000.c snd_emu8000_init_hw(struct snd_emu8000 *emu) emu 506 sound/isa/sb/emu8000.c emu->last_reg = 0xffff; /* reset the last register index */ emu 509 sound/isa/sb/emu8000.c EMU8000_HWCF1_WRITE(emu, 0x0059); emu 510 sound/isa/sb/emu8000.c EMU8000_HWCF2_WRITE(emu, 0x0020); emu 513 sound/isa/sb/emu8000.c EMU8000_HWCF3_WRITE(emu, 0); emu 516 sound/isa/sb/emu8000.c init_audio(emu); emu 519 sound/isa/sb/emu8000.c init_dma(emu); emu 522 sound/isa/sb/emu8000.c init_arrays(emu); emu 528 sound/isa/sb/emu8000.c snd_emu8000_init_fm(emu); emu 532 sound/isa/sb/emu8000.c EMU8000_DCYSUSV_WRITE(emu, 0, 0x807F); emu 535 sound/isa/sb/emu8000.c size_dram(emu); emu 538 sound/isa/sb/emu8000.c EMU8000_HWCF3_WRITE(emu, 0x4); emu 541 sound/isa/sb/emu8000.c snd_emu8000_update_equalizer(emu); emu 542 sound/isa/sb/emu8000.c snd_emu8000_update_chorus_mode(emu); emu 543 sound/isa/sb/emu8000.c snd_emu8000_update_reverb_mode(emu); emu 586 sound/isa/sb/emu8000.c snd_emu8000_update_equalizer(struct snd_emu8000 *emu) emu 589 sound/isa/sb/emu8000.c int bass = emu->bass_level; emu 590 sound/isa/sb/emu8000.c int treble = emu->treble_level; emu 594 sound/isa/sb/emu8000.c EMU8000_INIT4_WRITE(emu, 0x01, bass_parm[bass][0]); emu 595 sound/isa/sb/emu8000.c EMU8000_INIT4_WRITE(emu, 0x11, bass_parm[bass][1]); emu 596 sound/isa/sb/emu8000.c EMU8000_INIT3_WRITE(emu, 0x11, treble_parm[treble][0]); emu 597 sound/isa/sb/emu8000.c EMU8000_INIT3_WRITE(emu, 0x13, treble_parm[treble][1]); emu 598 sound/isa/sb/emu8000.c EMU8000_INIT3_WRITE(emu, 0x1b, treble_parm[treble][2]); emu 599 sound/isa/sb/emu8000.c EMU8000_INIT4_WRITE(emu, 0x07, treble_parm[treble][3]); emu 600 sound/isa/sb/emu8000.c EMU8000_INIT4_WRITE(emu, 0x0b, treble_parm[treble][4]); emu 601 sound/isa/sb/emu8000.c EMU8000_INIT4_WRITE(emu, 0x0d, treble_parm[treble][5]); emu 602 sound/isa/sb/emu8000.c EMU8000_INIT4_WRITE(emu, 0x17, treble_parm[treble][6]); emu 603 sound/isa/sb/emu8000.c EMU8000_INIT4_WRITE(emu, 0x19, treble_parm[treble][7]); emu 605 sound/isa/sb/emu8000.c EMU8000_INIT4_WRITE(emu, 0x15, (unsigned short)(w + 0x0262)); emu 606 sound/isa/sb/emu8000.c EMU8000_INIT4_WRITE(emu, 0x1d, (unsigned short)(w + 0x8362)); emu 651 sound/isa/sb/emu8000.c snd_emu8000_load_chorus_fx(struct snd_emu8000 *emu, int mode, const void __user *buf, long len) emu 666 sound/isa/sb/emu8000.c snd_emu8000_update_chorus_mode(struct snd_emu8000 *emu) emu 668 sound/isa/sb/emu8000.c int effect = emu->chorus_mode; emu 672 sound/isa/sb/emu8000.c EMU8000_INIT3_WRITE(emu, 0x09, chorus_parm[effect].feedback); emu 673 sound/isa/sb/emu8000.c EMU8000_INIT3_WRITE(emu, 0x0c, chorus_parm[effect].delay_offset); emu 674 sound/isa/sb/emu8000.c EMU8000_INIT4_WRITE(emu, 0x03, chorus_parm[effect].lfo_depth); emu 675 sound/isa/sb/emu8000.c EMU8000_HWCF4_WRITE(emu, chorus_parm[effect].delay); emu 676 sound/isa/sb/emu8000.c EMU8000_HWCF5_WRITE(emu, chorus_parm[effect].lfo_freq); emu 677 sound/isa/sb/emu8000.c EMU8000_HWCF6_WRITE(emu, 0x8000); emu 678 sound/isa/sb/emu8000.c EMU8000_HWCF7_WRITE(emu, 0x0000); emu 778 sound/isa/sb/emu8000.c snd_emu8000_load_reverb_fx(struct snd_emu8000 *emu, int mode, const void __user *buf, long len) emu 794 sound/isa/sb/emu8000.c snd_emu8000_update_reverb_mode(struct snd_emu8000 *emu) emu 796 sound/isa/sb/emu8000.c int effect = emu->reverb_mode; emu 805 sound/isa/sb/emu8000.c port = EMU8000_DATA1(emu); emu 807 sound/isa/sb/emu8000.c port = EMU8000_DATA2(emu); emu 808 sound/isa/sb/emu8000.c snd_emu8000_poke(emu, port, reverb_cmds[i].cmd, reverb_parm[effect].parms[i]); emu 831 sound/isa/sb/emu8000.c struct snd_emu8000 *emu = snd_kcontrol_chip(kcontrol); emu 833 sound/isa/sb/emu8000.c ucontrol->value.integer.value[0] = kcontrol->private_value ? emu->treble_level : emu->bass_level; emu 839 sound/isa/sb/emu8000.c struct snd_emu8000 *emu = snd_kcontrol_chip(kcontrol); emu 845 sound/isa/sb/emu8000.c spin_lock_irqsave(&emu->control_lock, flags); emu 847 sound/isa/sb/emu8000.c change = val1 != emu->treble_level; emu 848 sound/isa/sb/emu8000.c emu->treble_level = val1; emu 850 sound/isa/sb/emu8000.c change = val1 != emu->bass_level; emu 851 sound/isa/sb/emu8000.c emu->bass_level = val1; emu 853 sound/isa/sb/emu8000.c spin_unlock_irqrestore(&emu->control_lock, flags); emu 854 sound/isa/sb/emu8000.c snd_emu8000_update_equalizer(emu); emu 892 sound/isa/sb/emu8000.c struct snd_emu8000 *emu = snd_kcontrol_chip(kcontrol); emu 894 sound/isa/sb/emu8000.c ucontrol->value.integer.value[0] = kcontrol->private_value ? emu->chorus_mode : emu->reverb_mode; emu 900 sound/isa/sb/emu8000.c struct snd_emu8000 *emu = snd_kcontrol_chip(kcontrol); emu 905 sound/isa/sb/emu8000.c spin_lock_irqsave(&emu->control_lock, flags); emu 908 sound/isa/sb/emu8000.c change = val1 != emu->chorus_mode; emu 909 sound/isa/sb/emu8000.c emu->chorus_mode = val1; emu 912 sound/isa/sb/emu8000.c change = val1 != emu->reverb_mode; emu 913 sound/isa/sb/emu8000.c emu->reverb_mode = val1; emu 915 sound/isa/sb/emu8000.c spin_unlock_irqrestore(&emu->control_lock, flags); emu 918 sound/isa/sb/emu8000.c snd_emu8000_update_chorus_mode(emu); emu 920 sound/isa/sb/emu8000.c snd_emu8000_update_reverb_mode(emu); emu 959 sound/isa/sb/emu8000.c struct snd_emu8000 *emu = snd_kcontrol_chip(kcontrol); emu 961 sound/isa/sb/emu8000.c ucontrol->value.integer.value[0] = kcontrol->private_value ? emu->fm_chorus_depth : emu->fm_reverb_depth; emu 967 sound/isa/sb/emu8000.c struct snd_emu8000 *emu = snd_kcontrol_chip(kcontrol); emu 973 sound/isa/sb/emu8000.c spin_lock_irqsave(&emu->control_lock, flags); emu 975 sound/isa/sb/emu8000.c change = val1 != emu->fm_chorus_depth; emu 976 sound/isa/sb/emu8000.c emu->fm_chorus_depth = val1; emu 978 sound/isa/sb/emu8000.c change = val1 != emu->fm_reverb_depth; emu 979 sound/isa/sb/emu8000.c emu->fm_reverb_depth = val1; emu 981 sound/isa/sb/emu8000.c spin_unlock_irqrestore(&emu->control_lock, flags); emu 983 sound/isa/sb/emu8000.c snd_emu8000_init_fm(emu); emu 1021 sound/isa/sb/emu8000.c snd_emu8000_create_mixer(struct snd_card *card, struct snd_emu8000 *emu) emu 1025 sound/isa/sb/emu8000.c if (snd_BUG_ON(!emu || !card)) emu 1028 sound/isa/sb/emu8000.c spin_lock_init(&emu->control_lock); emu 1030 sound/isa/sb/emu8000.c memset(emu->controls, 0, sizeof(emu->controls)); emu 1032 sound/isa/sb/emu8000.c if ((err = snd_ctl_add(card, emu->controls[i] = snd_ctl_new1(mixer_defs[i], emu))) < 0) emu 1040 sound/isa/sb/emu8000.c if (emu->controls[i]) emu 1041 sound/isa/sb/emu8000.c snd_ctl_remove(card, emu->controls[i]); emu 16 sound/isa/sb/emu8000_callback.c static struct snd_emux_voice *get_voice(struct snd_emux *emu, emu 22 sound/isa/sb/emu8000_callback.c static void reset_voice(struct snd_emux *emu, int ch); emu 24 sound/isa/sb/emu8000_callback.c static void sysex(struct snd_emux *emu, char *buf, int len, int parsed, emu 27 sound/isa/sb/emu8000_callback.c static int oss_ioctl(struct snd_emux *emu, int cmd, int p1, int p2); emu 29 sound/isa/sb/emu8000_callback.c static int load_fx(struct snd_emux *emu, int type, int mode, emu 39 sound/isa/sb/emu8000_callback.c static void snd_emu8000_tweak_voice(struct snd_emu8000 *emu, int ch); emu 74 sound/isa/sb/emu8000_callback.c hw->emu->ops = emu8000_ops; emu 144 sound/isa/sb/emu8000_callback.c get_voice(struct snd_emux *emu, struct snd_emux_port *port) emu 162 sound/isa/sb/emu8000_callback.c hw = emu->hw; emu 172 sound/isa/sb/emu8000_callback.c for (i = 0; i < emu->max_voices; i++) { emu 175 sound/isa/sb/emu8000_callback.c vp = &emu->voices[i]; emu 208 sound/isa/sb/emu8000_callback.c vp = &emu->voices[best[i].voice]; emu 323 sound/isa/sb/emu8000_callback.c reset_voice(struct snd_emux *emu, int ch) emu 327 sound/isa/sb/emu8000_callback.c hw = emu->hw; emu 425 sound/isa/sb/emu8000_callback.c snd_emu8000_tweak_voice(struct snd_emu8000 *emu, int i) emu 428 sound/isa/sb/emu8000_callback.c EMU8000_ENVVOL_WRITE(emu, i, 0x8000); emu 429 sound/isa/sb/emu8000_callback.c EMU8000_ENVVAL_WRITE(emu, i, 0x8000); emu 430 sound/isa/sb/emu8000_callback.c EMU8000_DCYSUS_WRITE(emu, i, 0x7F7F); emu 431 sound/isa/sb/emu8000_callback.c EMU8000_ATKHLDV_WRITE(emu, i, 0x7F7F); emu 432 sound/isa/sb/emu8000_callback.c EMU8000_ATKHLD_WRITE(emu, i, 0x7F7F); emu 433 sound/isa/sb/emu8000_callback.c EMU8000_PEFE_WRITE(emu, i, 0); /* mod envelope height to zero */ emu 434 sound/isa/sb/emu8000_callback.c EMU8000_LFO1VAL_WRITE(emu, i, 0x8000); /* no delay for LFO1 */ emu 435 sound/isa/sb/emu8000_callback.c EMU8000_LFO2VAL_WRITE(emu, i, 0x8000); emu 436 sound/isa/sb/emu8000_callback.c EMU8000_IP_WRITE(emu, i, 0xE000); /* no pitch shift */ emu 437 sound/isa/sb/emu8000_callback.c EMU8000_IFATN_WRITE(emu, i, 0xFF00); /* volume to minimum */ emu 438 sound/isa/sb/emu8000_callback.c EMU8000_FMMOD_WRITE(emu, i, 0); emu 439 sound/isa/sb/emu8000_callback.c EMU8000_TREMFRQ_WRITE(emu, i, 0); emu 440 sound/isa/sb/emu8000_callback.c EMU8000_FM2FRQ2_WRITE(emu, i, 0); emu 447 sound/isa/sb/emu8000_callback.c sysex(struct snd_emux *emu, char *buf, int len, int parsed, struct snd_midi_channel_set *chset) emu 451 sound/isa/sb/emu8000_callback.c hw = emu->hw; emu 472 sound/isa/sb/emu8000_callback.c oss_ioctl(struct snd_emux *emu, int cmd, int p1, int p2) emu 476 sound/isa/sb/emu8000_callback.c hw = emu->hw; emu 517 sound/isa/sb/emu8000_callback.c load_fx(struct snd_emux *emu, int type, int mode, const void __user *buf, long len) emu 520 sound/isa/sb/emu8000_callback.c hw = emu->hw; emu 27 sound/isa/sb/emu8000_local.h void snd_emu8000_ops_setup(struct snd_emu8000 *emu); emu 30 sound/isa/sb/emu8000_local.h int snd_emu8000_pcm_new(struct snd_card *card, struct snd_emu8000 *emu, int index); emu 24 sound/isa/sb/emu8000_patch.c snd_emu8000_open_dma(struct snd_emu8000 *emu, int write) emu 30 sound/isa/sb/emu8000_patch.c snd_emux_lock_voice(emu->emu, i); emu 31 sound/isa/sb/emu8000_patch.c snd_emu8000_dma_chan(emu, i, write); emu 35 sound/isa/sb/emu8000_patch.c EMU8000_VTFT_WRITE(emu, 30, 0); emu 36 sound/isa/sb/emu8000_patch.c EMU8000_PSST_WRITE(emu, 30, 0x1d8); emu 37 sound/isa/sb/emu8000_patch.c EMU8000_CSL_WRITE(emu, 30, 0x1e0); emu 38 sound/isa/sb/emu8000_patch.c EMU8000_CCCA_WRITE(emu, 30, 0x1d8); emu 39 sound/isa/sb/emu8000_patch.c EMU8000_VTFT_WRITE(emu, 31, 0); emu 40 sound/isa/sb/emu8000_patch.c EMU8000_PSST_WRITE(emu, 31, 0x1d8); emu 41 sound/isa/sb/emu8000_patch.c EMU8000_CSL_WRITE(emu, 31, 0x1e0); emu 42 sound/isa/sb/emu8000_patch.c EMU8000_CCCA_WRITE(emu, 31, 0x1d8); emu 51 sound/isa/sb/emu8000_patch.c snd_emu8000_close_dma(struct snd_emu8000 *emu) emu 56 sound/isa/sb/emu8000_patch.c snd_emu8000_dma_chan(emu, i, EMU8000_RAM_CLOSE); emu 57 sound/isa/sb/emu8000_patch.c snd_emux_unlock_voice(emu->emu, i); emu 98 sound/isa/sb/emu8000_patch.c snd_emu8000_write_wait(struct snd_emu8000 *emu) emu 100 sound/isa/sb/emu8000_patch.c while ((EMU8000_SMALW_READ(emu) & 0x80000000) != 0) { emu 120 sound/isa/sb/emu8000_patch.c write_word(struct snd_emu8000 *emu, int *offset, unsigned short data) emu 124 sound/isa/sb/emu8000_patch.c snd_emu8000_write_wait(emu); emu 125 sound/isa/sb/emu8000_patch.c EMU8000_SMALW_WRITE(emu, *offset); emu 127 sound/isa/sb/emu8000_patch.c EMU8000_SMLD_WRITE(emu, data); emu 145 sound/isa/sb/emu8000_patch.c struct snd_emu8000 *emu; emu 147 sound/isa/sb/emu8000_patch.c emu = rec->hw; emu 193 sound/isa/sb/emu8000_patch.c snd_emux_terminate_all(emu->emu); emu 194 sound/isa/sb/emu8000_patch.c if ((rc = snd_emu8000_open_dma(emu, EMU8000_RAM_WRITE)) != 0) emu 198 sound/isa/sb/emu8000_patch.c snd_emu8000_write_wait(emu); emu 199 sound/isa/sb/emu8000_patch.c EMU8000_SMALW_WRITE(emu, dram_offset); emu 207 sound/isa/sb/emu8000_patch.c write_word(emu, &dram_offset, 0); emu 218 sound/isa/sb/emu8000_patch.c write_word(emu, &dram_offset, s); emu 234 sound/isa/sb/emu8000_patch.c write_word(emu, &dram_offset, s); emu 249 sound/isa/sb/emu8000_patch.c write_word(emu, &dram_offset, 0); emu 263 sound/isa/sb/emu8000_patch.c snd_emu8000_close_dma(emu); emu 264 sound/isa/sb/emu8000_patch.c snd_emu8000_init_fm(emu); emu 40 sound/isa/sb/emu8000_pcm.c struct snd_emu8000 *emu; emu 68 sound/isa/sb/emu8000_pcm.c emu8k_open_dram_for_pcm(struct snd_emu8000 *emu, int channels) emu 73 sound/isa/sb/emu8000_pcm.c snd_emux_lock_voice(emu->emu, 0); emu 75 sound/isa/sb/emu8000_pcm.c snd_emux_lock_voice(emu->emu, 1); emu 80 sound/isa/sb/emu8000_pcm.c snd_emux_lock_voice(emu->emu, i); emu 85 sound/isa/sb/emu8000_pcm.c snd_emu8000_dma_chan(emu, i, mode); emu 89 sound/isa/sb/emu8000_pcm.c EMU8000_VTFT_WRITE(emu, 30, 0); emu 90 sound/isa/sb/emu8000_pcm.c EMU8000_PSST_WRITE(emu, 30, 0x1d8); emu 91 sound/isa/sb/emu8000_pcm.c EMU8000_CSL_WRITE(emu, 30, 0x1e0); emu 92 sound/isa/sb/emu8000_pcm.c EMU8000_CCCA_WRITE(emu, 30, 0x1d8); emu 93 sound/isa/sb/emu8000_pcm.c EMU8000_VTFT_WRITE(emu, 31, 0); emu 94 sound/isa/sb/emu8000_pcm.c EMU8000_PSST_WRITE(emu, 31, 0x1d8); emu 95 sound/isa/sb/emu8000_pcm.c EMU8000_CSL_WRITE(emu, 31, 0x1e0); emu 96 sound/isa/sb/emu8000_pcm.c EMU8000_CCCA_WRITE(emu, 31, 0x1d8); emu 104 sound/isa/sb/emu8000_pcm.c snd_emu8000_write_wait(struct snd_emu8000 *emu, int can_schedule) emu 106 sound/isa/sb/emu8000_pcm.c while ((EMU8000_SMALW_READ(emu) & 0x80000000) != 0) { emu 119 sound/isa/sb/emu8000_pcm.c emu8k_close_dram(struct snd_emu8000 *emu) emu 124 sound/isa/sb/emu8000_pcm.c snd_emux_unlock_voice(emu->emu, i); emu 126 sound/isa/sb/emu8000_pcm.c snd_emu8000_dma_chan(emu, i, EMU8000_RAM_CLOSE); emu 127 sound/isa/sb/emu8000_pcm.c snd_emux_unlock_voice(emu->emu, i); emu 173 sound/isa/sb/emu8000_pcm.c int val = EMU8000_CCCA_READ(rec->emu, ch) & 0xfffffff; emu 218 sound/isa/sb/emu8000_pcm.c struct snd_emu8000 *emu = snd_pcm_substream_chip(subs); emu 226 sound/isa/sb/emu8000_pcm.c rec->emu = emu; emu 234 sound/isa/sb/emu8000_pcm.c runtime->hw.buffer_bytes_max = emu->mem_size - LOOP_BLANK_SIZE * 3; emu 271 sound/isa/sb/emu8000_pcm.c struct snd_emu8000 *hw = rec->emu; emu 325 sound/isa/sb/emu8000_pcm.c struct snd_emu8000 *hw = rec->emu; emu 360 sound/isa/sb/emu8000_pcm.c struct snd_emu8000 *hw = rec->emu; emu 437 sound/isa/sb/emu8000_pcm.c struct snd_emu8000 *emu = (rec)->emu; \ emu 439 sound/isa/sb/emu8000_pcm.c snd_emu8000_write_wait(emu, 1); \ emu 440 sound/isa/sb/emu8000_pcm.c EMU8000_SMALW_WRITE(emu, offset); \ emu 445 sound/isa/sb/emu8000_pcm.c EMU8000_SMLD_WRITE(emu, sval); \ emu 494 sound/isa/sb/emu8000_pcm.c struct snd_emu8000 *emu = rec->emu; \ emu 496 sound/isa/sb/emu8000_pcm.c snd_emu8000_write_wait(emu, 1); \ emu 497 sound/isa/sb/emu8000_pcm.c EMU8000_SMALW_WRITE(emu, pos + rec->loop_start[0]); \ emu 499 sound/isa/sb/emu8000_pcm.c EMU8000_SMARW_WRITE(emu, pos + rec->loop_start[1]); \ emu 504 sound/isa/sb/emu8000_pcm.c EMU8000_SMLD_WRITE(emu, sval); \ emu 508 sound/isa/sb/emu8000_pcm.c EMU8000_SMRD_WRITE(emu, sval); \ emu 569 sound/isa/sb/emu8000_pcm.c snd_util_mem_free(rec->emu->memhdr, rec->block); emu 574 sound/isa/sb/emu8000_pcm.c rec->block = snd_util_mem_alloc(rec->emu->memhdr, rec->allocated_bytes); emu 596 sound/isa/sb/emu8000_pcm.c emu8k_close_dram(rec->emu); emu 597 sound/isa/sb/emu8000_pcm.c snd_util_mem_free(rec->emu->memhdr, rec->block); emu 628 sound/isa/sb/emu8000_pcm.c snd_emux_terminate_all(rec->emu->emu); emu 629 sound/isa/sb/emu8000_pcm.c if ((err = emu8k_open_dram_for_pcm(rec->emu, rec->voices)) != 0) emu 634 sound/isa/sb/emu8000_pcm.c snd_emu8000_write_wait(rec->emu, 0); emu 635 sound/isa/sb/emu8000_pcm.c EMU8000_SMALW_WRITE(rec->emu, rec->offset); emu 637 sound/isa/sb/emu8000_pcm.c EMU8000_SMLD_WRITE(rec->emu, 0); emu 639 sound/isa/sb/emu8000_pcm.c EMU8000_SMALW_WRITE(rec->emu, rec->loop_start[ch] + rec->buf_size); emu 641 sound/isa/sb/emu8000_pcm.c EMU8000_SMLD_WRITE(rec->emu, 0); emu 677 sound/isa/sb/emu8000_pcm.c struct snd_emu8000 *emu = pcm->private_data; emu 678 sound/isa/sb/emu8000_pcm.c emu->pcm = NULL; emu 681 sound/isa/sb/emu8000_pcm.c int snd_emu8000_pcm_new(struct snd_card *card, struct snd_emu8000 *emu, int index) emu 688 sound/isa/sb/emu8000_pcm.c pcm->private_data = emu; emu 691 sound/isa/sb/emu8000_pcm.c emu->pcm = pcm; emu 28 sound/isa/sb/emu8000_synth.c struct snd_emux *emu; emu 34 sound/isa/sb/emu8000_synth.c if (hw->emu) emu 37 sound/isa/sb/emu8000_synth.c if (snd_emux_new(&emu) < 0) emu 40 sound/isa/sb/emu8000_synth.c hw->emu = emu; emu 43 sound/isa/sb/emu8000_synth.c emu->hw = hw; emu 44 sound/isa/sb/emu8000_synth.c emu->max_voices = EMU8000_DRAM_VOICES; emu 45 sound/isa/sb/emu8000_synth.c emu->num_ports = hw->seq_ports; emu 53 sound/isa/sb/emu8000_synth.c snd_emux_free(emu); emu 54 sound/isa/sb/emu8000_synth.c hw->emu = NULL; emu 58 sound/isa/sb/emu8000_synth.c emu->memhdr = hw->memhdr; emu 59 sound/isa/sb/emu8000_synth.c emu->midi_ports = hw->seq_ports < 2 ? hw->seq_ports : 2; /* number of virmidi ports */ emu 60 sound/isa/sb/emu8000_synth.c emu->midi_devidx = 1; emu 61 sound/isa/sb/emu8000_synth.c emu->linear_panning = 1; emu 62 sound/isa/sb/emu8000_synth.c emu->hwdep_idx = 2; /* FIXED */ emu 64 sound/isa/sb/emu8000_synth.c if (snd_emux_register(emu, dev->card, hw->index, "Emu8000") < 0) { emu 65 sound/isa/sb/emu8000_synth.c snd_emux_free(emu); emu 67 sound/isa/sb/emu8000_synth.c hw->emu = NULL; emu 95 sound/isa/sb/emu8000_synth.c snd_emux_free(hw->emu); emu 97 sound/isa/sb/emu8000_synth.c hw->emu = NULL; emu 635 sound/pci/ca0106/ca0106.h struct snd_ca0106 *emu; emu 638 sound/pci/ca0106/ca0106.h void (*interrupt)(struct snd_ca0106 *emu, struct snd_ca0106_channel *channel); emu 643 sound/pci/ca0106/ca0106.h struct snd_ca0106 *emu; emu 704 sound/pci/ca0106/ca0106.h int snd_ca0106_mixer(struct snd_ca0106 *emu); emu 705 sound/pci/ca0106/ca0106.h int snd_ca0106_proc_init(struct snd_ca0106 * emu); emu 707 sound/pci/ca0106/ca0106.h unsigned int snd_ca0106_ptr_read(struct snd_ca0106 * emu, emu 711 sound/pci/ca0106/ca0106.h void snd_ca0106_ptr_write(struct snd_ca0106 *emu, emu 716 sound/pci/ca0106/ca0106.h int snd_ca0106_i2c_write(struct snd_ca0106 *emu, u32 reg, u32 value); emu 718 sound/pci/ca0106/ca0106.h int snd_ca0106_spi_write(struct snd_ca0106 * emu, emu 332 sound/pci/ca0106/ca0106_main.c unsigned int snd_ca0106_ptr_read(struct snd_ca0106 * emu, emu 341 sound/pci/ca0106/ca0106_main.c spin_lock_irqsave(&emu->emu_lock, flags); emu 342 sound/pci/ca0106/ca0106_main.c outl(regptr, emu->port + PTR); emu 343 sound/pci/ca0106/ca0106_main.c val = inl(emu->port + DATA); emu 344 sound/pci/ca0106/ca0106_main.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 348 sound/pci/ca0106/ca0106_main.c void snd_ca0106_ptr_write(struct snd_ca0106 *emu, emu 358 sound/pci/ca0106/ca0106_main.c spin_lock_irqsave(&emu->emu_lock, flags); emu 359 sound/pci/ca0106/ca0106_main.c outl(regptr, emu->port + PTR); emu 360 sound/pci/ca0106/ca0106_main.c outl(data, emu->port + DATA); emu 361 sound/pci/ca0106/ca0106_main.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 364 sound/pci/ca0106/ca0106_main.c int snd_ca0106_spi_write(struct snd_ca0106 * emu, emu 373 sound/pci/ca0106/ca0106_main.c tmp = snd_ca0106_ptr_read(emu, reg, 0); emu 376 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, reg, 0, reset | data); emu 377 sound/pci/ca0106/ca0106_main.c tmp = snd_ca0106_ptr_read(emu, reg, 0); /* write post */ emu 378 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, reg, 0, set | data); emu 383 sound/pci/ca0106/ca0106_main.c tmp = snd_ca0106_ptr_read(emu, reg, 0); emu 391 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, reg, 0, reset | data); emu 392 sound/pci/ca0106/ca0106_main.c tmp = snd_ca0106_ptr_read(emu, reg, 0); /* Write post */ emu 397 sound/pci/ca0106/ca0106_main.c int snd_ca0106_i2c_write(struct snd_ca0106 *emu, emu 406 sound/pci/ca0106/ca0106_main.c dev_err(emu->card->dev, "i2c_write: invalid values.\n"); emu 418 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, I2C_D1, 0, tmp); emu 426 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, I2C_A, 0, tmp); emu 430 sound/pci/ca0106/ca0106_main.c status = snd_ca0106_ptr_read(emu, I2C_A, 0); emu 445 sound/pci/ca0106/ca0106_main.c dev_err(emu->card->dev, "Writing to ADC failed!\n"); emu 453 sound/pci/ca0106/ca0106_main.c static void snd_ca0106_intr_enable(struct snd_ca0106 *emu, unsigned int intrenb) emu 458 sound/pci/ca0106/ca0106_main.c spin_lock_irqsave(&emu->emu_lock, flags); emu 459 sound/pci/ca0106/ca0106_main.c intr_enable = inl(emu->port + INTE) | intrenb; emu 460 sound/pci/ca0106/ca0106_main.c outl(intr_enable, emu->port + INTE); emu 461 sound/pci/ca0106/ca0106_main.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 464 sound/pci/ca0106/ca0106_main.c static void snd_ca0106_intr_disable(struct snd_ca0106 *emu, unsigned int intrenb) emu 469 sound/pci/ca0106/ca0106_main.c spin_lock_irqsave(&emu->emu_lock, flags); emu 470 sound/pci/ca0106/ca0106_main.c intr_enable = inl(emu->port + INTE) & ~intrenb; emu 471 sound/pci/ca0106/ca0106_main.c outl(intr_enable, emu->port + INTE); emu 472 sound/pci/ca0106/ca0106_main.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 559 sound/pci/ca0106/ca0106_main.c epcm->emu = chip; emu 568 sound/pci/ca0106/ca0106_main.c channel->emu = chip; emu 652 sound/pci/ca0106/ca0106_main.c epcm->emu = chip; emu 661 sound/pci/ca0106/ca0106_main.c channel->emu = chip; emu 741 sound/pci/ca0106/ca0106_main.c struct snd_ca0106 *emu = snd_pcm_substream_chip(substream); emu 745 sound/pci/ca0106/ca0106_main.c u32 *table_base = (u32 *)(emu->buffer.area+(8*16*channel)); emu 760 sound/pci/ca0106/ca0106_main.c dev_dbg(emu->card->dev, emu 768 sound/pci/ca0106/ca0106_main.c dev_dbg(emu->card->dev, emu 771 sound/pci/ca0106/ca0106_main.c dev_dbg(emu->card->dev, emu 773 sound/pci/ca0106/ca0106_main.c emu->buffer.addr, emu->buffer.area, emu->buffer.bytes); emu 813 sound/pci/ca0106/ca0106_main.c hcfg = inl(emu->port + HCFG) ; emu 815 sound/pci/ca0106/ca0106_main.c outl(hcfg, emu->port + HCFG); emu 816 sound/pci/ca0106/ca0106_main.c reg40 = snd_ca0106_ptr_read(emu, 0x40, 0); emu 818 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, 0x40, 0, reg40); emu 819 sound/pci/ca0106/ca0106_main.c reg71 = snd_ca0106_ptr_read(emu, 0x71, 0); emu 821 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, 0x71, 0, reg71); emu 829 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, PLAYBACK_LIST_ADDR, channel, emu->buffer.addr+(8*16*channel)); emu 830 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, PLAYBACK_LIST_SIZE, channel, (runtime->periods - 1) << 19); emu 831 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, PLAYBACK_LIST_PTR, channel, 0); emu 832 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, PLAYBACK_DMA_ADDR, channel, runtime->dma_addr); emu 833 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, PLAYBACK_PERIOD_SIZE, channel, frames_to_bytes(runtime, runtime->period_size)<<16); // buffer size in bytes emu 835 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, PLAYBACK_PERIOD_SIZE, channel, 0); // buffer size in bytes emu 836 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, PLAYBACK_POINTER, channel, 0); emu 837 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, 0x07, channel, 0x0); emu 838 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, 0x08, channel, 0); emu 839 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, PLAYBACK_MUTE, 0x0, 0x0); /* Unmute output */ emu 841 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, SPCS0, 0, emu 854 sound/pci/ca0106/ca0106_main.c struct snd_ca0106 *emu = snd_pcm_substream_chip(substream); emu 867 sound/pci/ca0106/ca0106_main.c dev_dbg(emu->card->dev, emu 875 sound/pci/ca0106/ca0106_main.c dev_dbg(emu->card->dev, emu 878 sound/pci/ca0106/ca0106_main.c dev_dbg(emu->card->dev, emu 880 sound/pci/ca0106/ca0106_main.c emu->buffer.addr, emu->buffer.area, emu->buffer.bytes); emu 915 sound/pci/ca0106/ca0106_main.c hcfg = inl(emu->port + HCFG) ; emu 917 sound/pci/ca0106/ca0106_main.c outl(hcfg, emu->port + HCFG); emu 918 sound/pci/ca0106/ca0106_main.c reg71 = snd_ca0106_ptr_read(emu, 0x71, 0); emu 920 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, 0x71, 0, reg71); emu 921 sound/pci/ca0106/ca0106_main.c if (emu->details->i2c_adc == 1) { /* The SB0410 and SB0413 use I2C to control ADC. */ emu 922 sound/pci/ca0106/ca0106_main.c snd_ca0106_i2c_write(emu, ADC_MASTER, over_sampling); /* Adjust the over sampler to better suit the capture rate. */ emu 934 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, 0x13, channel, 0); emu 935 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, CAPTURE_DMA_ADDR, channel, runtime->dma_addr); emu 936 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, CAPTURE_BUFFER_SIZE, channel, frames_to_bytes(runtime, runtime->buffer_size)<<16); // buffer size in bytes emu 937 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, CAPTURE_POINTER, channel, 0); emu 946 sound/pci/ca0106/ca0106_main.c struct snd_ca0106 *emu = snd_pcm_substream_chip(substream); emu 969 sound/pci/ca0106/ca0106_main.c if (snd_pcm_substream_chip(s) != emu || emu 986 sound/pci/ca0106/ca0106_main.c bits = snd_ca0106_ptr_read(emu, EXTENDED_INT_MASK, 0); emu 988 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, EXTENDED_INT_MASK, 0, bits); emu 989 sound/pci/ca0106/ca0106_main.c bits = snd_ca0106_ptr_read(emu, BASIC_INTERRUPT, 0); emu 991 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, BASIC_INTERRUPT, 0, bits); emu 995 sound/pci/ca0106/ca0106_main.c bits = snd_ca0106_ptr_read(emu, BASIC_INTERRUPT, 0); emu 997 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, BASIC_INTERRUPT, 0, bits); emu 998 sound/pci/ca0106/ca0106_main.c bits = snd_ca0106_ptr_read(emu, EXTENDED_INT_MASK, 0); emu 1000 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, EXTENDED_INT_MASK, 0, bits); emu 1013 sound/pci/ca0106/ca0106_main.c struct snd_ca0106 *emu = snd_pcm_substream_chip(substream); emu 1021 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, EXTENDED_INT_MASK, 0, snd_ca0106_ptr_read(emu, EXTENDED_INT_MASK, 0) | (0x110000<<channel)); emu 1022 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, BASIC_INTERRUPT, 0, snd_ca0106_ptr_read(emu, BASIC_INTERRUPT, 0)|(0x100<<channel)); emu 1026 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, BASIC_INTERRUPT, 0, snd_ca0106_ptr_read(emu, BASIC_INTERRUPT, 0) & ~(0x100<<channel)); emu 1027 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_write(emu, EXTENDED_INT_MASK, 0, snd_ca0106_ptr_read(emu, EXTENDED_INT_MASK, 0) & ~(0x110000<<channel)); emu 1041 sound/pci/ca0106/ca0106_main.c struct snd_ca0106 *emu = snd_pcm_substream_chip(substream); emu 1053 sound/pci/ca0106/ca0106_main.c ptr = snd_ca0106_ptr_read(emu, PLAYBACK_LIST_PTR, channel); emu 1056 sound/pci/ca0106/ca0106_main.c snd_ca0106_ptr_read(emu, PLAYBACK_POINTER, channel)); emu 1063 sound/pci/ca0106/ca0106_main.c dev_warn(emu->card->dev, "ca0106: unstable DMA pointer!\n"); emu 1071 sound/pci/ca0106/ca0106_main.c struct snd_ca0106 *emu = snd_pcm_substream_chip(substream); emu 1080 sound/pci/ca0106/ca0106_main.c ptr1 = snd_ca0106_ptr_read(emu, CAPTURE_POINTER, channel); emu 1188 sound/pci/ca0106/ca0106_main.c struct snd_ca0106 *emu = ac97->private_data; emu 1192 sound/pci/ca0106/ca0106_main.c spin_lock_irqsave(&emu->emu_lock, flags); emu 1193 sound/pci/ca0106/ca0106_main.c outb(reg, emu->port + AC97ADDRESS); emu 1194 sound/pci/ca0106/ca0106_main.c val = inw(emu->port + AC97DATA); emu 1195 sound/pci/ca0106/ca0106_main.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 1202 sound/pci/ca0106/ca0106_main.c struct snd_ca0106 *emu = ac97->private_data; emu 1205 sound/pci/ca0106/ca0106_main.c spin_lock_irqsave(&emu->emu_lock, flags); emu 1206 sound/pci/ca0106/ca0106_main.c outb(reg, emu->port + AC97ADDRESS); emu 1207 sound/pci/ca0106/ca0106_main.c outw(val, emu->port + AC97DATA); emu 1208 sound/pci/ca0106/ca0106_main.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 1349 sound/pci/ca0106/ca0106_main.c static int snd_ca0106_pcm(struct snd_ca0106 *emu, int device) emu 1356 sound/pci/ca0106/ca0106_main.c err = snd_pcm_new(emu->card, "ca0106", device, 1, 1, &pcm); emu 1360 sound/pci/ca0106/ca0106_main.c pcm->private_data = emu; emu 1392 sound/pci/ca0106/ca0106_main.c snd_dma_pci_data(emu->pci), emu 1400 sound/pci/ca0106/ca0106_main.c snd_dma_pci_data(emu->pci), emu 1409 sound/pci/ca0106/ca0106_main.c emu->pcm[device] = pcm; emu 63 sound/pci/ca0106/ca0106_mixer.c static void ca0106_spdif_enable(struct snd_ca0106 *emu) emu 67 sound/pci/ca0106/ca0106_mixer.c if (emu->spdif_enable) { emu 69 sound/pci/ca0106/ca0106_mixer.c snd_ca0106_ptr_write(emu, SPDIF_SELECT1, 0, 0xf); emu 70 sound/pci/ca0106/ca0106_mixer.c snd_ca0106_ptr_write(emu, SPDIF_SELECT2, 0, 0x0b000000); emu 71 sound/pci/ca0106/ca0106_mixer.c val = snd_ca0106_ptr_read(emu, CAPTURE_CONTROL, 0) & ~0x1000; emu 72 sound/pci/ca0106/ca0106_mixer.c snd_ca0106_ptr_write(emu, CAPTURE_CONTROL, 0, val); emu 73 sound/pci/ca0106/ca0106_mixer.c val = inl(emu->port + GPIO) & ~0x101; emu 74 sound/pci/ca0106/ca0106_mixer.c outl(val, emu->port + GPIO); emu 78 sound/pci/ca0106/ca0106_mixer.c snd_ca0106_ptr_write(emu, SPDIF_SELECT1, 0, 0xf); emu 79 sound/pci/ca0106/ca0106_mixer.c snd_ca0106_ptr_write(emu, SPDIF_SELECT2, 0, 0x000f0000); emu 80 sound/pci/ca0106/ca0106_mixer.c val = snd_ca0106_ptr_read(emu, CAPTURE_CONTROL, 0) | 0x1000; emu 81 sound/pci/ca0106/ca0106_mixer.c snd_ca0106_ptr_write(emu, CAPTURE_CONTROL, 0, val); emu 82 sound/pci/ca0106/ca0106_mixer.c val = inl(emu->port + GPIO) | 0x101; emu 83 sound/pci/ca0106/ca0106_mixer.c outl(val, emu->port + GPIO); emu 87 sound/pci/ca0106/ca0106_mixer.c static void ca0106_set_capture_source(struct snd_ca0106 *emu) emu 89 sound/pci/ca0106/ca0106_mixer.c unsigned int val = emu->capture_source; emu 92 sound/pci/ca0106/ca0106_mixer.c mask = snd_ca0106_ptr_read(emu, CAPTURE_SOURCE, 0) & 0xffff; emu 93 sound/pci/ca0106/ca0106_mixer.c snd_ca0106_ptr_write(emu, CAPTURE_SOURCE, 0, source | mask); emu 96 sound/pci/ca0106/ca0106_mixer.c static void ca0106_set_i2c_capture_source(struct snd_ca0106 *emu, emu 102 sound/pci/ca0106/ca0106_mixer.c snd_ca0106_i2c_write(emu, ADC_MUX, 0); /* Mute input */ emu 103 sound/pci/ca0106/ca0106_mixer.c ngain = emu->i2c_capture_volume[val][0]; /* Left */ emu 104 sound/pci/ca0106/ca0106_mixer.c ogain = emu->i2c_capture_volume[emu->i2c_capture_source][0]; /* Left */ emu 106 sound/pci/ca0106/ca0106_mixer.c snd_ca0106_i2c_write(emu, ADC_ATTEN_ADCL, ngain & 0xff); emu 107 sound/pci/ca0106/ca0106_mixer.c ngain = emu->i2c_capture_volume[val][1]; /* Right */ emu 108 sound/pci/ca0106/ca0106_mixer.c ogain = emu->i2c_capture_volume[emu->i2c_capture_source][1]; /* Right */ emu 110 sound/pci/ca0106/ca0106_mixer.c snd_ca0106_i2c_write(emu, ADC_ATTEN_ADCR, ngain & 0xff); emu 112 sound/pci/ca0106/ca0106_mixer.c snd_ca0106_i2c_write(emu, ADC_MUX, source); /* Set source */ emu 113 sound/pci/ca0106/ca0106_mixer.c emu->i2c_capture_source = val; emu 116 sound/pci/ca0106/ca0106_mixer.c static void ca0106_set_capture_mic_line_in(struct snd_ca0106 *emu) emu 120 sound/pci/ca0106/ca0106_mixer.c if (emu->capture_mic_line_in) { emu 122 sound/pci/ca0106/ca0106_mixer.c tmp = inl(emu->port+GPIO) & ~0x400; emu 124 sound/pci/ca0106/ca0106_mixer.c outl(tmp, emu->port+GPIO); emu 128 sound/pci/ca0106/ca0106_mixer.c tmp = inl(emu->port+GPIO) & ~0x400; emu 129 sound/pci/ca0106/ca0106_mixer.c outl(tmp, emu->port+GPIO); emu 134 sound/pci/ca0106/ca0106_mixer.c static void ca0106_set_spdif_bits(struct snd_ca0106 *emu, int idx) emu 136 sound/pci/ca0106/ca0106_mixer.c snd_ca0106_ptr_write(emu, SPCS0 + idx, 0, emu->spdif_str_bits[idx]); emu 149 sound/pci/ca0106/ca0106_mixer.c struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); emu 151 sound/pci/ca0106/ca0106_mixer.c ucontrol->value.integer.value[0] = emu->spdif_enable; emu 158 sound/pci/ca0106/ca0106_mixer.c struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); emu 163 sound/pci/ca0106/ca0106_mixer.c change = (emu->spdif_enable != val); emu 165 sound/pci/ca0106/ca0106_mixer.c emu->spdif_enable = val; emu 166 sound/pci/ca0106/ca0106_mixer.c ca0106_spdif_enable(emu); emu 184 sound/pci/ca0106/ca0106_mixer.c struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); emu 186 sound/pci/ca0106/ca0106_mixer.c ucontrol->value.enumerated.item[0] = emu->capture_source; emu 193 sound/pci/ca0106/ca0106_mixer.c struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); emu 200 sound/pci/ca0106/ca0106_mixer.c change = (emu->capture_source != val); emu 202 sound/pci/ca0106/ca0106_mixer.c emu->capture_source = val; emu 203 sound/pci/ca0106/ca0106_mixer.c ca0106_set_capture_source(emu); emu 221 sound/pci/ca0106/ca0106_mixer.c struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); emu 223 sound/pci/ca0106/ca0106_mixer.c ucontrol->value.enumerated.item[0] = emu->i2c_capture_source; emu 230 sound/pci/ca0106/ca0106_mixer.c struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); emu 240 sound/pci/ca0106/ca0106_mixer.c change = (emu->i2c_capture_source != source_id); emu 242 sound/pci/ca0106/ca0106_mixer.c ca0106_set_i2c_capture_source(emu, source_id, 0); emu 266 sound/pci/ca0106/ca0106_mixer.c struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); emu 268 sound/pci/ca0106/ca0106_mixer.c ucontrol->value.enumerated.item[0] = emu->capture_mic_line_in; emu 275 sound/pci/ca0106/ca0106_mixer.c struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); emu 282 sound/pci/ca0106/ca0106_mixer.c change = (emu->capture_mic_line_in != val); emu 284 sound/pci/ca0106/ca0106_mixer.c emu->capture_mic_line_in = val; emu 285 sound/pci/ca0106/ca0106_mixer.c ca0106_set_capture_mic_line_in(emu); emu 328 sound/pci/ca0106/ca0106_mixer.c struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); emu 332 sound/pci/ca0106/ca0106_mixer.c emu->spdif_bits[idx]); emu 339 sound/pci/ca0106/ca0106_mixer.c struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); emu 343 sound/pci/ca0106/ca0106_mixer.c emu->spdif_str_bits[idx]); emu 368 sound/pci/ca0106/ca0106_mixer.c struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); emu 373 sound/pci/ca0106/ca0106_mixer.c if (val != emu->spdif_bits[idx]) { emu 374 sound/pci/ca0106/ca0106_mixer.c emu->spdif_bits[idx] = val; emu 378 sound/pci/ca0106/ca0106_mixer.c emu->spdif_str_bits[idx] = val; emu 379 sound/pci/ca0106/ca0106_mixer.c ca0106_set_spdif_bits(emu, idx); emu 388 sound/pci/ca0106/ca0106_mixer.c struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); emu 393 sound/pci/ca0106/ca0106_mixer.c if (val != emu->spdif_str_bits[idx]) { emu 394 sound/pci/ca0106/ca0106_mixer.c emu->spdif_str_bits[idx] = val; emu 395 sound/pci/ca0106/ca0106_mixer.c ca0106_set_spdif_bits(emu, idx); emu 414 sound/pci/ca0106/ca0106_mixer.c struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); emu 421 sound/pci/ca0106/ca0106_mixer.c value = snd_ca0106_ptr_read(emu, reg, channel_id); emu 430 sound/pci/ca0106/ca0106_mixer.c struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); emu 437 sound/pci/ca0106/ca0106_mixer.c oval = snd_ca0106_ptr_read(emu, reg, channel_id); emu 444 sound/pci/ca0106/ca0106_mixer.c snd_ca0106_ptr_write(emu, reg, channel_id, nval); emu 461 sound/pci/ca0106/ca0106_mixer.c struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); emu 466 sound/pci/ca0106/ca0106_mixer.c ucontrol->value.integer.value[0] = emu->i2c_capture_volume[source_id][0]; emu 467 sound/pci/ca0106/ca0106_mixer.c ucontrol->value.integer.value[1] = emu->i2c_capture_volume[source_id][1]; emu 474 sound/pci/ca0106/ca0106_mixer.c struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); emu 481 sound/pci/ca0106/ca0106_mixer.c ogain = emu->i2c_capture_volume[source_id][0]; /* Left */ emu 486 sound/pci/ca0106/ca0106_mixer.c if (emu->i2c_capture_source == source_id) emu 487 sound/pci/ca0106/ca0106_mixer.c snd_ca0106_i2c_write(emu, ADC_ATTEN_ADCL, ((ngain) & 0xff) ); emu 488 sound/pci/ca0106/ca0106_mixer.c emu->i2c_capture_volume[source_id][0] = ucontrol->value.integer.value[0]; emu 491 sound/pci/ca0106/ca0106_mixer.c ogain = emu->i2c_capture_volume[source_id][1]; /* Right */ emu 496 sound/pci/ca0106/ca0106_mixer.c if (emu->i2c_capture_source == source_id) emu 497 sound/pci/ca0106/ca0106_mixer.c snd_ca0106_i2c_write(emu, ADC_ATTEN_ADCR, ((ngain) & 0xff)); emu 498 sound/pci/ca0106/ca0106_mixer.c emu->i2c_capture_volume[source_id][1] = ucontrol->value.integer.value[1]; emu 510 sound/pci/ca0106/ca0106_mixer.c struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); emu 514 sound/pci/ca0106/ca0106_mixer.c ucontrol->value.integer.value[0] = !(emu->spi_dac_reg[reg] & bit); emu 521 sound/pci/ca0106/ca0106_mixer.c struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); emu 526 sound/pci/ca0106/ca0106_mixer.c ret = emu->spi_dac_reg[reg] & bit; emu 530 sound/pci/ca0106/ca0106_mixer.c emu->spi_dac_reg[reg] &= ~bit; emu 534 sound/pci/ca0106/ca0106_mixer.c emu->spi_dac_reg[reg] |= bit; emu 537 sound/pci/ca0106/ca0106_mixer.c ret = snd_ca0106_spi_write(emu, emu->spi_dac_reg[reg]); emu 729 sound/pci/ca0106/ca0106_mixer.c #define ADD_CTLS(emu, ctls) \ emu 733 sound/pci/ca0106/ca0106_mixer.c _err = snd_ctl_add(card, snd_ctl_new1(&ctls[i], emu)); \ emu 774 sound/pci/ca0106/ca0106_mixer.c int snd_ca0106_mixer(struct snd_ca0106 *emu) emu 777 sound/pci/ca0106/ca0106_mixer.c struct snd_card *card = emu->card; emu 824 sound/pci/ca0106/ca0106_mixer.c ADD_CTLS(emu, snd_ca0106_volume_ctls); emu 825 sound/pci/ca0106/ca0106_mixer.c if (emu->details->i2c_adc == 1) { emu 826 sound/pci/ca0106/ca0106_mixer.c ADD_CTLS(emu, snd_ca0106_volume_i2c_adc_ctls); emu 827 sound/pci/ca0106/ca0106_mixer.c if (emu->details->gpio_type == 1) emu 828 sound/pci/ca0106/ca0106_mixer.c err = snd_ctl_add(card, snd_ctl_new1(&snd_ca0106_capture_mic_line_in, emu)); emu 830 sound/pci/ca0106/ca0106_mixer.c err = snd_ctl_add(card, snd_ctl_new1(&snd_ca0106_capture_line_in_side_out, emu)); emu 834 sound/pci/ca0106/ca0106_mixer.c if (emu->details->spi_dac) { emu 838 sound/pci/ca0106/ca0106_mixer.c ctl = snd_ca0106_volume_spi_dac_ctl(emu->details, i); emu 841 sound/pci/ca0106/ca0106_mixer.c err = snd_ctl_add(card, snd_ctl_new1(&ctl, emu)); emu 857 sound/pci/ca0106/ca0106_mixer.c if (emu->details->spi_dac) { emu 261 sound/pci/ca0106/ca0106_proc.c struct snd_ca0106 *emu = entry->private_data; emu 264 sound/pci/ca0106/ca0106_proc.c value = snd_ca0106_ptr_read(emu, SAMPLE_RATE_TRACKER_STATUS, 0); emu 273 sound/pci/ca0106/ca0106_proc.c value = snd_ca0106_ptr_read(emu, SPDIF_INPUT_STATUS, 0); emu 283 sound/pci/ca0106/ca0106_proc.c struct snd_ca0106 *emu = entry->private_data; emu 291 sound/pci/ca0106/ca0106_proc.c spin_lock_irqsave(&emu->emu_lock, flags); emu 292 sound/pci/ca0106/ca0106_proc.c outl(val, emu->port + (reg & 0xfffffffc)); emu 293 sound/pci/ca0106/ca0106_proc.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 301 sound/pci/ca0106/ca0106_proc.c struct snd_ca0106 *emu = entry->private_data; emu 307 sound/pci/ca0106/ca0106_proc.c spin_lock_irqsave(&emu->emu_lock, flags); emu 308 sound/pci/ca0106/ca0106_proc.c value = inl(emu->port + i); emu 309 sound/pci/ca0106/ca0106_proc.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 317 sound/pci/ca0106/ca0106_proc.c struct snd_ca0106 *emu = entry->private_data; emu 323 sound/pci/ca0106/ca0106_proc.c spin_lock_irqsave(&emu->emu_lock, flags); emu 324 sound/pci/ca0106/ca0106_proc.c value = inw(emu->port + i); emu 325 sound/pci/ca0106/ca0106_proc.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 333 sound/pci/ca0106/ca0106_proc.c struct snd_ca0106 *emu = entry->private_data; emu 339 sound/pci/ca0106/ca0106_proc.c spin_lock_irqsave(&emu->emu_lock, flags); emu 340 sound/pci/ca0106/ca0106_proc.c value = inb(emu->port + i); emu 341 sound/pci/ca0106/ca0106_proc.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 349 sound/pci/ca0106/ca0106_proc.c struct snd_ca0106 *emu = entry->private_data; emu 357 sound/pci/ca0106/ca0106_proc.c value = snd_ca0106_ptr_read(emu, i, j); emu 367 sound/pci/ca0106/ca0106_proc.c struct snd_ca0106 *emu = entry->private_data; emu 375 sound/pci/ca0106/ca0106_proc.c value = snd_ca0106_ptr_read(emu, i, j); emu 385 sound/pci/ca0106/ca0106_proc.c struct snd_ca0106 *emu = entry->private_data; emu 392 sound/pci/ca0106/ca0106_proc.c snd_ca0106_ptr_write(emu, reg, channel_id, val); emu 399 sound/pci/ca0106/ca0106_proc.c struct snd_ca0106 *emu = entry->private_data; emu 406 sound/pci/ca0106/ca0106_proc.c snd_ca0106_i2c_write(emu, reg, val); emu 411 sound/pci/ca0106/ca0106_proc.c int snd_ca0106_proc_init(struct snd_ca0106 *emu) emu 413 sound/pci/ca0106/ca0106_proc.c snd_card_ro_proc_new(emu->card, "iec958", emu, snd_ca0106_proc_iec958); emu 414 sound/pci/ca0106/ca0106_proc.c snd_card_rw_proc_new(emu->card, "ca0106_reg32", emu, emu 417 sound/pci/ca0106/ca0106_proc.c snd_card_ro_proc_new(emu->card, "ca0106_reg16", emu, emu 419 sound/pci/ca0106/ca0106_proc.c snd_card_ro_proc_new(emu->card, "ca0106_reg8", emu, emu 421 sound/pci/ca0106/ca0106_proc.c snd_card_rw_proc_new(emu->card, "ca0106_regs1", emu, emu 424 sound/pci/ca0106/ca0106_proc.c snd_card_rw_proc_new(emu->card, "ca0106_i2c", emu, NULL, emu 426 sound/pci/ca0106/ca0106_proc.c snd_card_ro_proc_new(emu->card, "ca0106_regs2", emu, emu 91 sound/pci/emu10k1/emu10k1.c struct snd_emu10k1 *emu; emu 115 sound/pci/emu10k1/emu10k1.c &emu)) < 0) emu 117 sound/pci/emu10k1/emu10k1.c card->private_data = emu; emu 118 sound/pci/emu10k1/emu10k1.c emu->delay_pcm_irq = delay_pcm_irq[dev] & 0x1f; emu 119 sound/pci/emu10k1/emu10k1.c if ((err = snd_emu10k1_pcm(emu, 0)) < 0) emu 121 sound/pci/emu10k1/emu10k1.c if ((err = snd_emu10k1_pcm_mic(emu, 1)) < 0) emu 123 sound/pci/emu10k1/emu10k1.c if ((err = snd_emu10k1_pcm_efx(emu, 2)) < 0) emu 126 sound/pci/emu10k1/emu10k1.c if (emu->card_capabilities->ca0151_chip) { /* P16V */ emu 128 sound/pci/emu10k1/emu10k1.c 1024, &emu->p16v_buffer)) < 0) emu 132 sound/pci/emu10k1/emu10k1.c if ((err = snd_emu10k1_mixer(emu, 0, 3)) < 0) emu 135 sound/pci/emu10k1/emu10k1.c if ((err = snd_emu10k1_timer(emu, 0)) < 0) emu 138 sound/pci/emu10k1/emu10k1.c if ((err = snd_emu10k1_pcm_multi(emu, 3)) < 0) emu 140 sound/pci/emu10k1/emu10k1.c if (emu->card_capabilities->ca0151_chip) { /* P16V */ emu 141 sound/pci/emu10k1/emu10k1.c if ((err = snd_p16v_pcm(emu, 4)) < 0) emu 144 sound/pci/emu10k1/emu10k1.c if (emu->audigy) { emu 145 sound/pci/emu10k1/emu10k1.c if ((err = snd_emu10k1_audigy_midi(emu)) < 0) emu 148 sound/pci/emu10k1/emu10k1.c if ((err = snd_emu10k1_midi(emu)) < 0) emu 151 sound/pci/emu10k1/emu10k1.c if ((err = snd_emu10k1_fx8010_new(emu, 0)) < 0) emu 157 sound/pci/emu10k1/emu10k1.c dev_warn(emu->card->dev, emu 163 sound/pci/emu10k1/emu10k1.c arg->hwptr = emu; emu 170 sound/pci/emu10k1/emu10k1.c strlcpy(card->driver, emu->card_capabilities->driver, emu 172 sound/pci/emu10k1/emu10k1.c strlcpy(card->shortname, emu->card_capabilities->name, emu 176 sound/pci/emu10k1/emu10k1.c card->shortname, emu->revision, emu->serial, emu->port, emu->irq); emu 181 sound/pci/emu10k1/emu10k1.c if (emu->card_capabilities->emu_model) emu 182 sound/pci/emu10k1/emu10k1.c schedule_delayed_work(&emu->emu1010.firmware_work, 0); emu 203 sound/pci/emu10k1/emu10k1.c struct snd_emu10k1 *emu = card->private_data; emu 207 sound/pci/emu10k1/emu10k1.c emu->suspend = 1; emu 209 sound/pci/emu10k1/emu10k1.c cancel_delayed_work_sync(&emu->emu1010.firmware_work); emu 211 sound/pci/emu10k1/emu10k1.c snd_ac97_suspend(emu->ac97); emu 213 sound/pci/emu10k1/emu10k1.c snd_emu10k1_efx_suspend(emu); emu 214 sound/pci/emu10k1/emu10k1.c snd_emu10k1_suspend_regs(emu); emu 215 sound/pci/emu10k1/emu10k1.c if (emu->card_capabilities->ca0151_chip) emu 216 sound/pci/emu10k1/emu10k1.c snd_p16v_suspend(emu); emu 218 sound/pci/emu10k1/emu10k1.c snd_emu10k1_done(emu); emu 225 sound/pci/emu10k1/emu10k1.c struct snd_emu10k1 *emu = card->private_data; emu 227 sound/pci/emu10k1/emu10k1.c snd_emu10k1_resume_init(emu); emu 228 sound/pci/emu10k1/emu10k1.c snd_emu10k1_efx_resume(emu); emu 229 sound/pci/emu10k1/emu10k1.c snd_ac97_resume(emu->ac97); emu 230 sound/pci/emu10k1/emu10k1.c snd_emu10k1_resume_regs(emu); emu 232 sound/pci/emu10k1/emu10k1.c if (emu->card_capabilities->ca0151_chip) emu 233 sound/pci/emu10k1/emu10k1.c snd_p16v_resume(emu); emu 235 sound/pci/emu10k1/emu10k1.c emu->suspend = 0; emu 239 sound/pci/emu10k1/emu10k1.c if (emu->card_capabilities->emu_model) emu 240 sound/pci/emu10k1/emu10k1.c schedule_delayed_work(&emu->emu1010.firmware_work, 0); emu 81 sound/pci/emu10k1/emu10k1_callback.c struct snd_emux *emu; emu 86 sound/pci/emu10k1/emu10k1_callback.c emu = hw->synth; emu 88 sound/pci/emu10k1/emu10k1_callback.c lookup_voices(emu, hw, best, 1); /* no OFF voices */ emu 92 sound/pci/emu10k1/emu10k1_callback.c vp = &emu->voices[best[i].voice]; emu 100 sound/pci/emu10k1/emu10k1_callback.c vp->emu->num_voices--; emu 169 sound/pci/emu10k1/emu10k1_callback.c vp->emu->num_voices--; emu 208 sound/pci/emu10k1/emu10k1_callback.c lookup_voices(struct snd_emux *emu, struct snd_emu10k1 *hw, emu 224 sound/pci/emu10k1/emu10k1_callback.c for (i = 0; i < emu->max_voices; i++) { emu 227 sound/pci/emu10k1/emu10k1_callback.c vp = &emu->voices[i]; emu 274 sound/pci/emu10k1/emu10k1_callback.c get_voice(struct snd_emux *emu, struct snd_emux_port *port) emu 281 sound/pci/emu10k1/emu10k1_callback.c hw = emu->hw; emu 283 sound/pci/emu10k1/emu10k1_callback.c lookup_voices(emu, hw, best, 0); emu 286 sound/pci/emu10k1/emu10k1_callback.c vp = &emu->voices[best[i].voice]; emu 293 sound/pci/emu10k1/emu10k1_callback.c emu->num_voices++; emu 58 sound/pci/emu10k1/emu10k1_main.c void snd_emu10k1_voice_init(struct snd_emu10k1 *emu, int ch) emu 60 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, DCYSUSV, ch, 0); emu 61 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, IP, ch, 0); emu 62 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, VTFT, ch, 0xffff); emu 63 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, CVCF, ch, 0xffff); emu 64 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, PTRX, ch, 0); emu 65 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, CPF, ch, 0); emu 66 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, CCR, ch, 0); emu 68 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, PSST, ch, 0); emu 69 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, DSL, ch, 0x10); emu 70 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, CCCA, ch, 0); emu 71 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, Z1, ch, 0); emu 72 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, Z2, ch, 0); emu 73 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, FXRT, ch, 0x32100000); emu 75 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, ATKHLDM, ch, 0); emu 76 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, DCYSUSM, ch, 0); emu 77 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, IFATN, ch, 0xffff); emu 78 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, PEFE, ch, 0); emu 79 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, FMMOD, ch, 0); emu 80 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, TREMFRQ, ch, 24); /* 1 Hz */ emu 81 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, FM2FRQ2, ch, 24); /* 1 Hz */ emu 82 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, TEMPENV, ch, 0); emu 85 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, LFOVAL2, ch, 0); emu 86 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, LFOVAL1, ch, 0); emu 87 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, ATKHLDV, ch, 0); emu 88 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, ENVVOL, ch, 0); emu 89 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, ENVVAL, ch, 0); emu 92 sound/pci/emu10k1/emu10k1_main.c if (emu->audigy) { emu 93 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, 0x4c, ch, 0); /* ?? */ emu 94 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, 0x4d, ch, 0); /* ?? */ emu 95 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, 0x4e, ch, 0); /* ?? */ emu 96 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, 0x4f, ch, 0); /* ?? */ emu 97 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, A_FXRT1, ch, 0x03020100); emu 98 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, A_FXRT2, ch, 0x3f3f3f3f); emu 99 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, A_SENDAMOUNTS, ch, 0); emu 143 sound/pci/emu10k1/emu10k1_main.c static int snd_emu10k1_init(struct snd_emu10k1 *emu, int enable_ir, int resume) emu 151 sound/pci/emu10k1/emu10k1_main.c HCFG_MUTEBUTTONENABLE, emu->port + HCFG); emu 154 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, MICBS, 0, ADCBS_BUFSIZE_NONE); emu 155 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, MICBA, 0, 0); emu 156 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, FXBS, 0, ADCBS_BUFSIZE_NONE); emu 157 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, FXBA, 0, 0); emu 158 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, ADCBS, 0, ADCBS_BUFSIZE_NONE); emu 159 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, ADCBA, 0, 0); emu 162 sound/pci/emu10k1/emu10k1_main.c outl(0, emu->port + INTE); emu 163 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, CLIEL, 0, 0); emu 164 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, CLIEH, 0, 0); emu 165 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, SOLEL, 0, 0); emu 166 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, SOLEH, 0, 0); emu 168 sound/pci/emu10k1/emu10k1_main.c if (emu->audigy) { emu 170 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, SPBYPASS, 0, SPBYPASS_FORMAT); emu 172 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, AC97SLOT, 0, AC97SLOT_REAR_RIGHT | emu 178 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_voice_init(emu, ch); emu 180 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, SPCS0, 0, emu->spdif_bits[0]); emu 181 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, SPCS1, 0, emu->spdif_bits[1]); emu 182 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, SPCS2, 0, emu->spdif_bits[2]); emu 184 sound/pci/emu10k1/emu10k1_main.c if (emu->card_capabilities->ca0151_chip) { /* audigy2 */ emu 187 sound/pci/emu10k1/emu10k1_main.c tmp = snd_emu10k1_ptr_read(emu, A_SPDIF_SAMPLERATE, 0); emu 190 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, A_SPDIF_SAMPLERATE, 0, tmp); emu 193 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr20_write(emu, SRCSel, 0, 0x14); emu 196 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr20_write(emu, SRCMULTI_ENABLE, 0, 0xFFFFFFFF); emu 199 sound/pci/emu10k1/emu10k1_main.c outl(0x0201, emu->port + HCFG2); emu 201 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr20_write(emu, CAPTURE_P16V_SOURCE, 0, 0x78e4); emu 203 sound/pci/emu10k1/emu10k1_main.c if (emu->card_capabilities->ca0108_chip) { /* audigy2 Value */ emu 205 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, "Audigy2 value: Special config.\n"); emu 207 sound/pci/emu10k1/emu10k1_main.c tmp = snd_emu10k1_ptr_read(emu, A_SPDIF_SAMPLERATE, 0); emu 210 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, A_SPDIF_SAMPLERATE, 0, tmp); emu 213 sound/pci/emu10k1/emu10k1_main.c outl(0x600000, emu->port + 0x20); emu 214 sound/pci/emu10k1/emu10k1_main.c outl(0x14, emu->port + 0x24); emu 217 sound/pci/emu10k1/emu10k1_main.c outl(0x7b0000, emu->port + 0x20); emu 218 sound/pci/emu10k1/emu10k1_main.c outl(0xFF000000, emu->port + 0x24); emu 224 sound/pci/emu10k1/emu10k1_main.c outl(0x7a0000, emu->port + 0x20); emu 225 sound/pci/emu10k1/emu10k1_main.c outl(0xFF000000, emu->port + 0x24); emu 226 sound/pci/emu10k1/emu10k1_main.c tmp = inl(emu->port + A_IOCFG) & ~0x8; /* Clear bit 3 */ emu 227 sound/pci/emu10k1/emu10k1_main.c outl(tmp, emu->port + A_IOCFG); emu 229 sound/pci/emu10k1/emu10k1_main.c if (emu->card_capabilities->spi_dac) { /* Audigy 2 ZS Notebook with DAC Wolfson WM8768/WM8568 */ emu 234 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_spi_write(emu, spi_dac_init[n]); emu 236 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr20_write(emu, 0x60, 0, 0x10); emu 247 sound/pci/emu10k1/emu10k1_main.c outl(0x76, emu->port + A_IOCFG); /* Windows uses 0x3f76 */ emu 249 sound/pci/emu10k1/emu10k1_main.c if (emu->card_capabilities->i2c_adc) { /* Audigy 2 ZS Notebook with ADC Wolfson WM8775 */ emu 252 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr20_write(emu, P17V_I2S_SRC_SEL, 0, 0x2020205f); emu 253 sound/pci/emu10k1/emu10k1_main.c tmp = inl(emu->port + A_IOCFG); emu 254 sound/pci/emu10k1/emu10k1_main.c outl(tmp | 0x4, emu->port + A_IOCFG); /* Set bit 2 for mic input */ emu 255 sound/pci/emu10k1/emu10k1_main.c tmp = inl(emu->port + A_IOCFG); emu 258 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_i2c_write(emu, i2c_adc_init[n][0], i2c_adc_init[n][1]); emu 260 sound/pci/emu10k1/emu10k1_main.c emu->i2c_capture_volume[n][0] = 0xcf; emu 261 sound/pci/emu10k1/emu10k1_main.c emu->i2c_capture_volume[n][1] = 0xcf; emu 266 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, PTB, 0, emu->ptb_pages.addr); emu 267 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, TCB, 0, 0); /* taken from original driver */ emu 268 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, TCBS, 0, 4); /* taken from original driver */ emu 270 sound/pci/emu10k1/emu10k1_main.c silent_page = (emu->silent_page.addr << emu->address_mode) | (emu->address_mode ? MAP_PTI_MASK1 : MAP_PTI_MASK0); emu 272 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, MAPA, ch, silent_page); emu 273 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, MAPB, ch, silent_page); emu 276 sound/pci/emu10k1/emu10k1_main.c if (emu->card_capabilities->emu_model) { emu 279 sound/pci/emu10k1/emu10k1_main.c HCFG_AUDIOENABLE, emu->port + HCFG); emu 287 sound/pci/emu10k1/emu10k1_main.c } else if (emu->audigy) { emu 288 sound/pci/emu10k1/emu10k1_main.c if (emu->revision == 4) /* audigy2 */ emu 292 sound/pci/emu10k1/emu10k1_main.c HCFG_AUTOMUTE | HCFG_JOYENABLE, emu->port + HCFG); emu 294 sound/pci/emu10k1/emu10k1_main.c outl(HCFG_AUTOMUTE | HCFG_JOYENABLE, emu->port + HCFG); emu 297 sound/pci/emu10k1/emu10k1_main.c } else if (emu->model == 0x20 || emu 298 sound/pci/emu10k1/emu10k1_main.c emu->model == 0xc400 || emu 299 sound/pci/emu10k1/emu10k1_main.c (emu->model == 0x21 && emu->revision < 6)) emu 300 sound/pci/emu10k1/emu10k1_main.c outl(HCFG_LOCKTANKCACHE_MASK | HCFG_AUTOMUTE, emu->port + HCFG); emu 303 sound/pci/emu10k1/emu10k1_main.c outl(HCFG_LOCKTANKCACHE_MASK | HCFG_AUTOMUTE | HCFG_JOYENABLE, emu->port + HCFG); emu 306 sound/pci/emu10k1/emu10k1_main.c if (emu->card_capabilities->emu_model) { emu 308 sound/pci/emu10k1/emu10k1_main.c } else if (emu->card_capabilities->i2c_adc) { emu 310 sound/pci/emu10k1/emu10k1_main.c } else if (emu->audigy) { emu 311 sound/pci/emu10k1/emu10k1_main.c unsigned int reg = inl(emu->port + A_IOCFG); emu 312 sound/pci/emu10k1/emu10k1_main.c outl(reg | A_IOCFG_GPOUT2, emu->port + A_IOCFG); emu 314 sound/pci/emu10k1/emu10k1_main.c outl(reg | A_IOCFG_GPOUT1 | A_IOCFG_GPOUT2, emu->port + A_IOCFG); emu 316 sound/pci/emu10k1/emu10k1_main.c outl(reg, emu->port + A_IOCFG); emu 318 sound/pci/emu10k1/emu10k1_main.c unsigned int reg = inl(emu->port + HCFG); emu 319 sound/pci/emu10k1/emu10k1_main.c outl(reg | HCFG_GPOUT2, emu->port + HCFG); emu 321 sound/pci/emu10k1/emu10k1_main.c outl(reg | HCFG_GPOUT1 | HCFG_GPOUT2, emu->port + HCFG); emu 323 sound/pci/emu10k1/emu10k1_main.c outl(reg, emu->port + HCFG); emu 327 sound/pci/emu10k1/emu10k1_main.c if (emu->card_capabilities->emu_model) { emu 329 sound/pci/emu10k1/emu10k1_main.c } else if (emu->card_capabilities->i2c_adc) { emu 331 sound/pci/emu10k1/emu10k1_main.c } else if (emu->audigy) { /* enable analog output */ emu 332 sound/pci/emu10k1/emu10k1_main.c unsigned int reg = inl(emu->port + A_IOCFG); emu 333 sound/pci/emu10k1/emu10k1_main.c outl(reg | A_IOCFG_GPOUT0, emu->port + A_IOCFG); emu 336 sound/pci/emu10k1/emu10k1_main.c if (emu->address_mode == 0) { emu 338 sound/pci/emu10k1/emu10k1_main.c outl(inl(emu->port + HCFG) | HCFG_EXPANDED_MEM, emu->port + HCFG); emu 344 sound/pci/emu10k1/emu10k1_main.c static void snd_emu10k1_audio_enable(struct snd_emu10k1 *emu) emu 349 sound/pci/emu10k1/emu10k1_main.c outl(inl(emu->port + HCFG) | HCFG_AUDIOENABLE, emu->port + HCFG); emu 352 sound/pci/emu10k1/emu10k1_main.c if (emu->card_capabilities->emu_model) { emu 354 sound/pci/emu10k1/emu10k1_main.c } else if (emu->card_capabilities->i2c_adc) { emu 356 sound/pci/emu10k1/emu10k1_main.c } else if (emu->audigy) { emu 357 sound/pci/emu10k1/emu10k1_main.c outl(inl(emu->port + A_IOCFG) & ~0x44, emu->port + A_IOCFG); emu 359 sound/pci/emu10k1/emu10k1_main.c if (emu->card_capabilities->ca0151_chip) { /* audigy2 */ emu 363 sound/pci/emu10k1/emu10k1_main.c outl(inl(emu->port + A_IOCFG) | 0x0040, emu->port + A_IOCFG); emu 364 sound/pci/emu10k1/emu10k1_main.c } else if (emu->card_capabilities->ca0108_chip) { /* audigy2 value */ emu 366 sound/pci/emu10k1/emu10k1_main.c outl(inl(emu->port + A_IOCFG) | 0x0060, emu->port + A_IOCFG); emu 369 sound/pci/emu10k1/emu10k1_main.c outl(inl(emu->port + A_IOCFG) | 0x0080, emu->port + A_IOCFG); emu 378 sound/pci/emu10k1/emu10k1_main.c emu->tos_link = 0; emu 379 sound/pci/emu10k1/emu10k1_main.c tmp = inl(emu->port + HCFG); emu 381 sound/pci/emu10k1/emu10k1_main.c outl(tmp|0x800, emu->port + HCFG); emu 383 sound/pci/emu10k1/emu10k1_main.c if (tmp != (inl(emu->port + HCFG) & ~0x800)) { emu 384 sound/pci/emu10k1/emu10k1_main.c emu->tos_link = 1; emu 385 sound/pci/emu10k1/emu10k1_main.c outl(tmp, emu->port + HCFG); emu 391 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_intr_enable(emu, INTE_PCIERRORENABLE); emu 394 sound/pci/emu10k1/emu10k1_main.c int snd_emu10k1_done(struct snd_emu10k1 *emu) emu 398 sound/pci/emu10k1/emu10k1_main.c outl(0, emu->port + INTE); emu 404 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, DCYSUSV, ch, 0); emu 406 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, VTFT, ch, 0); emu 407 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, CVCF, ch, 0); emu 408 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, PTRX, ch, 0); emu 409 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, CPF, ch, 0); emu 413 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, MICBS, 0, 0); emu 414 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, MICBA, 0, 0); emu 415 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, FXBS, 0, 0); emu 416 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, FXBA, 0, 0); emu 417 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, FXWC, 0, 0); emu 418 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, ADCBS, 0, ADCBS_BUFSIZE_NONE); emu 419 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, ADCBA, 0, 0); emu 420 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, TCBS, 0, TCBS_BUFFSIZE_16K); emu 421 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, TCB, 0, 0); emu 422 sound/pci/emu10k1/emu10k1_main.c if (emu->audigy) emu 423 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, A_DBG, 0, A_DBG_SINGLE_STEP); emu 425 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, DBG, 0, EMU10K1_DBG_SINGLE_STEP); emu 428 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, CLIEL, 0, 0); emu 429 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, CLIEH, 0, 0); emu 430 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, SOLEL, 0, 0); emu 431 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, SOLEH, 0, 0); emu 434 sound/pci/emu10k1/emu10k1_main.c outl(HCFG_LOCKSOUNDCACHE | HCFG_LOCKTANKCACHE_MASK | HCFG_MUTEBUTTONENABLE, emu->port + HCFG); emu 435 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, PTB, 0, 0); emu 517 sound/pci/emu10k1/emu10k1_main.c static void snd_emu10k1_ecard_write(struct snd_emu10k1 *emu, unsigned int value) emu 524 sound/pci/emu10k1/emu10k1_main.c hc_port = emu->port + HCFG; emu 555 sound/pci/emu10k1/emu10k1_main.c static void snd_emu10k1_ecard_setadcgain(struct snd_emu10k1 *emu, emu 561 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ecard_write(emu, emu->ecard_ctrl & ~EC_TRIM_CSN); emu 564 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ecard_write(emu, emu->ecard_ctrl & ~EC_TRIM_CSN); emu 569 sound/pci/emu10k1/emu10k1_main.c value = emu->ecard_ctrl & ~(EC_TRIM_CSN | EC_TRIM_SDATA); emu 575 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ecard_write(emu, value); emu 576 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ecard_write(emu, value | EC_TRIM_SCLK); emu 577 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ecard_write(emu, value); emu 580 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ecard_write(emu, emu->ecard_ctrl); emu 583 sound/pci/emu10k1/emu10k1_main.c static int snd_emu10k1_ecard_init(struct snd_emu10k1 *emu) emu 588 sound/pci/emu10k1/emu10k1_main.c emu->ecard_ctrl = EC_RAW_RUN_MODE | emu 594 sound/pci/emu10k1/emu10k1_main.c hc_value = inl(emu->port + HCFG); emu 595 sound/pci/emu10k1/emu10k1_main.c outl(hc_value | HCFG_AUDIOENABLE | HCFG_CODECFORMAT_I2S, emu->port + HCFG); emu 596 sound/pci/emu10k1/emu10k1_main.c inl(emu->port + HCFG); emu 599 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ecard_write(emu, EC_ADCCAL | EC_LEDN | EC_TRIM_CSN); emu 602 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ecard_write(emu, EC_DACCAL | EC_LEDN | EC_TRIM_CSN); emu 607 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_wait(emu, 48000); emu 612 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ecard_write(emu, EC_ADCCAL | EC_LEDN | EC_TRIM_CSN); emu 615 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ecard_write(emu, emu->ecard_ctrl); emu 618 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ecard_setadcgain(emu, EC_DEFAULT_ADC_GAIN); emu 623 sound/pci/emu10k1/emu10k1_main.c static int snd_emu10k1_cardbus_init(struct snd_emu10k1 *emu) emu 631 sound/pci/emu10k1/emu10k1_main.c special_port = emu->port + 0x38; emu 644 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr20_write(emu, TINA2_VOLUME, 0, 0xfefefefe); /* Defaults to 0x30303030 */ emu 650 sound/pci/emu10k1/emu10k1_main.c static int snd_emu1010_load_firmware_entry(struct snd_emu10k1 *emu, emu 668 sound/pci/emu10k1/emu10k1_main.c spin_lock_irqsave(&emu->emu_lock, flags); emu 669 sound/pci/emu10k1/emu10k1_main.c outl(0x00, emu->port + A_IOCFG); /* Set PGMN low for 1uS. */ emu 670 sound/pci/emu10k1/emu10k1_main.c write_post = inl(emu->port + A_IOCFG); emu 672 sound/pci/emu10k1/emu10k1_main.c outl(0x80, emu->port + A_IOCFG); /* Leave bit 7 set during netlist setup. */ emu 673 sound/pci/emu10k1/emu10k1_main.c write_post = inl(emu->port + A_IOCFG); emu 682 sound/pci/emu10k1/emu10k1_main.c outl(reg, emu->port + A_IOCFG); emu 683 sound/pci/emu10k1/emu10k1_main.c write_post = inl(emu->port + A_IOCFG); emu 684 sound/pci/emu10k1/emu10k1_main.c outl(reg | 0x40, emu->port + A_IOCFG); emu 685 sound/pci/emu10k1/emu10k1_main.c write_post = inl(emu->port + A_IOCFG); emu 689 sound/pci/emu10k1/emu10k1_main.c outl(0x10, emu->port + A_IOCFG); emu 690 sound/pci/emu10k1/emu10k1_main.c write_post = inl(emu->port + A_IOCFG); emu 691 sound/pci/emu10k1/emu10k1_main.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 712 sound/pci/emu10k1/emu10k1_main.c static int snd_emu1010_load_firmware(struct snd_emu10k1 *emu, int dock, emu 719 sound/pci/emu10k1/emu10k1_main.c filename = firmware_names[emu->card_capabilities->emu_model][dock]; emu 722 sound/pci/emu10k1/emu10k1_main.c err = request_firmware(fw, filename, &emu->pci->dev); emu 727 sound/pci/emu10k1/emu10k1_main.c return snd_emu1010_load_firmware_entry(emu, *fw); emu 732 sound/pci/emu10k1/emu10k1_main.c struct snd_emu10k1 *emu; emu 736 sound/pci/emu10k1/emu10k1_main.c emu = container_of(work, struct snd_emu10k1, emu 738 sound/pci/emu10k1/emu10k1_main.c if (emu->card->shutdown) emu 741 sound/pci/emu10k1/emu10k1_main.c if (emu->suspend) emu 744 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_read(emu, EMU_HANA_IRQ_STATUS, &tmp); /* IRQ Status */ emu 745 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_read(emu, EMU_HANA_OPTION_CARDS, ®); /* OPTIONS: Which cards are attached to the EMU */ emu 749 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, emu 751 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_write(emu, EMU_HANA_FPGA_CONFIG, emu 753 sound/pci/emu10k1/emu10k1_main.c err = snd_emu1010_load_firmware(emu, 1, &emu->dock_fw); emu 757 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_write(emu, EMU_HANA_FPGA_CONFIG, 0); emu 758 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_read(emu, EMU_HANA_IRQ_STATUS, &tmp); emu 759 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, emu 762 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_read(emu, EMU_HANA_ID, &tmp); emu 763 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, emu 767 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, emu 772 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, emu 774 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_read(emu, EMU_DOCK_MAJOR_REV, &tmp); emu 775 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_read(emu, EMU_DOCK_MINOR_REV, &tmp2); emu 776 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, "Audio Dock ver: %u.%u\n", tmp, tmp2); emu 781 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_write(emu, EMU_HANA_UNMUTE, EMU_UNMUTE); emu 782 sound/pci/emu10k1/emu10k1_main.c } else if (!reg && emu->emu1010.last_reg) { emu 784 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, "emu1010: Audio Dock detached\n"); emu 786 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_write(emu, EMU_HANA_UNMUTE, EMU_UNMUTE); emu 790 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.last_reg = reg; emu 791 sound/pci/emu10k1/emu10k1_main.c if (!emu->card->shutdown) emu 792 sound/pci/emu10k1/emu10k1_main.c schedule_delayed_work(&emu->emu1010.firmware_work, emu 827 sound/pci/emu10k1/emu10k1_main.c static int snd_emu10k1_emu1010_init(struct snd_emu10k1 *emu) emu 833 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, "emu1010: Special config.\n"); emu 838 sound/pci/emu10k1/emu10k1_main.c outl(0x0005a00c, emu->port + HCFG); emu 843 sound/pci/emu10k1/emu10k1_main.c outl(0x0005a004, emu->port + HCFG); emu 847 sound/pci/emu10k1/emu10k1_main.c outl(0x0005a000, emu->port + HCFG); emu 851 sound/pci/emu10k1/emu10k1_main.c outl(0x0005a000, emu->port + HCFG); emu 854 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_write(emu, EMU_HANA_DOCK_PWR, 0); emu 857 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_read(emu, EMU_HANA_ID, ®); emu 858 sound/pci/emu10k1/emu10k1_main.c dev_dbg(emu->card->dev, "reg1 = 0x%x\n", reg); emu 863 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_write(emu, EMU_HANA_FPGA_CONFIG, 0x02); emu 865 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_read(emu, EMU_HANA_ID, ®); emu 866 sound/pci/emu10k1/emu10k1_main.c dev_dbg(emu->card->dev, "reg2 = 0x%x\n", reg); emu 869 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, emu 873 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, "emu1010: EMU_HANA_ID = 0x%x\n", reg); emu 875 sound/pci/emu10k1/emu10k1_main.c err = snd_emu1010_load_firmware(emu, 0, &emu->firmware); emu 877 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, "emu1010: Loading Firmware failed\n"); emu 882 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_read(emu, EMU_HANA_ID, ®); emu 885 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, emu 891 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, "emu1010: Hana Firmware loaded\n"); emu 892 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_read(emu, EMU_HANA_MAJOR_REV, &tmp); emu 893 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_read(emu, EMU_HANA_MINOR_REV, &tmp2); emu 894 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, "emu1010: Hana version: %u.%u\n", tmp, tmp2); emu 896 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_write(emu, EMU_HANA_DOCK_PWR, EMU_HANA_DOCK_PWR_ON); emu 898 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_read(emu, EMU_HANA_OPTION_CARDS, ®); emu 899 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, "emu1010: Card options = 0x%x\n", reg); emu 900 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_read(emu, EMU_HANA_OPTION_CARDS, ®); emu 901 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, "emu1010: Card options = 0x%x\n", reg); emu 902 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_read(emu, EMU_HANA_OPTICAL_TYPE, &tmp); emu 907 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.optical_in = 1; /* IN_ADAT */ emu 908 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.optical_out = 1; /* IN_ADAT */ emu 910 sound/pci/emu10k1/emu10k1_main.c tmp = (emu->emu1010.optical_in ? EMU_HANA_OPTICAL_IN_ADAT : 0) | emu 911 sound/pci/emu10k1/emu10k1_main.c (emu->emu1010.optical_out ? EMU_HANA_OPTICAL_OUT_ADAT : 0); emu 912 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_write(emu, EMU_HANA_OPTICAL_TYPE, tmp); emu 913 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_read(emu, EMU_HANA_ADC_PADS, &tmp); emu 915 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_write(emu, EMU_HANA_ADC_PADS, 0x00); emu 916 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.adc_pads = 0x00; emu 917 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_read(emu, EMU_HANA_DOCK_MISC, &tmp); emu 919 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_write(emu, EMU_HANA_DOCK_MISC, 0x30); emu 920 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_write(emu, EMU_HANA_DOCK_LEDS_2, 0x12); emu 921 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_read(emu, EMU_HANA_DAC_PADS, &tmp); emu 923 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_write(emu, EMU_HANA_DAC_PADS, 0x0f); emu 924 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.dac_pads = 0x0f; emu 925 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_read(emu, EMU_HANA_DOCK_MISC, &tmp); emu 926 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_write(emu, EMU_HANA_DOCK_MISC, 0x30); emu 927 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_read(emu, EMU_HANA_SPDIF_MODE, &tmp); emu 929 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_write(emu, EMU_HANA_SPDIF_MODE, 0x10); emu 931 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_write(emu, EMU_HANA_MIDI_IN, 0x19); emu 933 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_write(emu, EMU_HANA_MIDI_OUT, 0x0c); emu 937 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_write(emu, EMU_HANA_IRQ_ENABLE, 0x00); emu 939 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_read(emu, EMU_HANA_OPTION_CARDS, ®); emu 940 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, "emu1010: Card options3 = 0x%x\n", reg); emu 942 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_write(emu, EMU_HANA_DEFCLOCK, 0x00); emu 944 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_write(emu, EMU_HANA_WCLOCK, EMU_HANA_WCLOCK_INT_48K); emu 947 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_write(emu, EMU_HANA_DOCK_LEDS_2, 0x12); emu 951 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 953 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 955 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 957 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 962 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 964 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 966 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 968 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 970 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 972 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 974 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 976 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 981 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 983 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 985 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 987 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 989 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 991 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 993 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 995 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1002 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1004 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1006 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1008 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1010 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1012 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1014 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1016 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1021 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1023 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1025 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1027 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1029 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1031 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1033 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1035 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1037 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1039 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1041 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1043 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1048 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, 0x0100 + i, EMU_SRC_SILENCE); emu 1052 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, 0x0200 + i, EMU_SRC_SILENCE); emu 1056 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, 0x0300 + i, EMU_SRC_SILENCE); emu 1060 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, EMU_DST_HANA_ADAT + i, EMU_SRC_SILENCE); emu 1062 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1064 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1066 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1068 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1070 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1072 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1074 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_write(emu, EMU_HANA_UNMUTE, 0x01); /* Unmute all */ emu 1076 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_read(emu, EMU_HANA_OPTION_CARDS, &tmp); emu 1082 sound/pci/emu10k1/emu10k1_main.c outl(0x0000a000, emu->port + HCFG); emu 1087 sound/pci/emu10k1/emu10k1_main.c outl(0x0000a001, emu->port + HCFG); emu 1091 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_read(emu, EMU_HANA_OPTION_CARDS, &tmp); emu 1092 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_write(emu, EMU_HANA_MIDI_IN, 0x19); /* MIDI Route */ emu 1093 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_write(emu, EMU_HANA_MIDI_OUT, 0x0c); /* Unknown */ emu 1094 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_write(emu, EMU_HANA_MIDI_IN, 0x19); /* MIDI Route */ emu 1095 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_write(emu, EMU_HANA_MIDI_OUT, 0x0c); /* Unknown */ emu 1096 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_read(emu, EMU_HANA_SPDIF_MODE, &tmp); emu 1097 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_write(emu, EMU_HANA_SPDIF_MODE, 0x10); /* SPDIF Format spdif (or 0x11 for aes/ebu) */ emu 1100 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1102 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1104 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1106 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1110 sound/pci/emu10k1/emu10k1_main.c if (emu->card_capabilities->emu_model == EMU_MODEL_EMU1616) { emu 1113 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1115 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.output_source[0] = 17; emu 1116 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1118 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.output_source[1] = 18; emu 1119 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1121 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.output_source[2] = 19; emu 1122 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1124 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.output_source[3] = 20; emu 1125 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1127 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.output_source[4] = 21; emu 1128 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1130 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.output_source[5] = 22; emu 1132 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1134 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.output_source[16] = 17; emu 1135 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1137 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.output_source[17] = 18; emu 1140 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1142 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.output_source[0] = 21; emu 1143 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1145 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.output_source[1] = 22; emu 1146 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1148 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.output_source[2] = 23; emu 1149 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1151 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.output_source[3] = 24; emu 1152 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1154 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.output_source[4] = 25; emu 1155 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1157 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.output_source[5] = 26; emu 1158 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1160 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.output_source[6] = 27; emu 1161 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1163 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.output_source[7] = 28; emu 1165 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1167 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.output_source[8] = 21; emu 1168 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1170 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.output_source[9] = 22; emu 1172 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1174 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.output_source[10] = 21; emu 1175 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1177 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.output_source[11] = 22; emu 1179 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1181 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.output_source[12] = 21; emu 1182 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1184 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.output_source[13] = 22; emu 1186 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1188 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.output_source[14] = 21; emu 1189 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1191 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.output_source[15] = 22; emu 1193 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1195 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.output_source[16] = 21; emu 1196 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1198 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.output_source[17] = 22; emu 1199 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1201 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.output_source[18] = 23; emu 1202 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1204 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.output_source[19] = 24; emu 1205 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1207 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.output_source[20] = 25; emu 1208 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1210 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.output_source[21] = 26; emu 1211 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1213 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.output_source[22] = 27; emu 1214 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_link_dst_src_write(emu, emu 1216 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.output_source[23] = 28; emu 1222 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_write(emu, EMU_HANA_UNMUTE, 0x0); /* Mute all */ emu 1223 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_write(emu, EMU_HANA_DEFCLOCK, 0x0); /* Default fallback clock 48kHz */ emu 1225 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_write(emu, EMU_HANA_WCLOCK, EMU_HANA_WCLOCK_INT_48K); emu 1227 sound/pci/emu10k1/emu10k1_main.c emu->emu1010.internal_clock = 1; /* 48000 */ emu 1228 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_write(emu, EMU_HANA_DOCK_LEDS_2, 0x12); /* Set LEDs on Audio Dock */ emu 1229 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_write(emu, EMU_HANA_UNMUTE, 0x1); /* Unmute all */ emu 1241 sound/pci/emu10k1/emu10k1_main.c static int alloc_pm_buffer(struct snd_emu10k1 *emu); emu 1242 sound/pci/emu10k1/emu10k1_main.c static void free_pm_buffer(struct snd_emu10k1 *emu); emu 1245 sound/pci/emu10k1/emu10k1_main.c static int snd_emu10k1_free(struct snd_emu10k1 *emu) emu 1247 sound/pci/emu10k1/emu10k1_main.c if (emu->port) { /* avoid access to already used hardware */ emu 1248 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_fx8010_tram_setup(emu, 0); emu 1249 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_done(emu); emu 1250 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_free_efx(emu); emu 1252 sound/pci/emu10k1/emu10k1_main.c if (emu->card_capabilities->emu_model == EMU_MODEL_EMU1010) { emu 1254 sound/pci/emu10k1/emu10k1_main.c snd_emu1010_fpga_write(emu, EMU_HANA_DOCK_PWR, 0); emu 1256 sound/pci/emu10k1/emu10k1_main.c cancel_delayed_work_sync(&emu->emu1010.firmware_work); emu 1257 sound/pci/emu10k1/emu10k1_main.c release_firmware(emu->firmware); emu 1258 sound/pci/emu10k1/emu10k1_main.c release_firmware(emu->dock_fw); emu 1259 sound/pci/emu10k1/emu10k1_main.c if (emu->irq >= 0) emu 1260 sound/pci/emu10k1/emu10k1_main.c free_irq(emu->irq, emu); emu 1261 sound/pci/emu10k1/emu10k1_main.c snd_util_memhdr_free(emu->memhdr); emu 1262 sound/pci/emu10k1/emu10k1_main.c if (emu->silent_page.area) emu 1263 sound/pci/emu10k1/emu10k1_main.c snd_dma_free_pages(&emu->silent_page); emu 1264 sound/pci/emu10k1/emu10k1_main.c if (emu->ptb_pages.area) emu 1265 sound/pci/emu10k1/emu10k1_main.c snd_dma_free_pages(&emu->ptb_pages); emu 1266 sound/pci/emu10k1/emu10k1_main.c vfree(emu->page_ptr_table); emu 1267 sound/pci/emu10k1/emu10k1_main.c vfree(emu->page_addr_table); emu 1269 sound/pci/emu10k1/emu10k1_main.c free_pm_buffer(emu); emu 1271 sound/pci/emu10k1/emu10k1_main.c if (emu->port) emu 1272 sound/pci/emu10k1/emu10k1_main.c pci_release_regions(emu->pci); emu 1273 sound/pci/emu10k1/emu10k1_main.c if (emu->card_capabilities->ca0151_chip) /* P16V */ emu 1274 sound/pci/emu10k1/emu10k1_main.c snd_p16v_free(emu); emu 1275 sound/pci/emu10k1/emu10k1_main.c pci_disable_device(emu->pci); emu 1276 sound/pci/emu10k1/emu10k1_main.c kfree(emu); emu 1282 sound/pci/emu10k1/emu10k1_main.c struct snd_emu10k1 *emu = device->device_data; emu 1283 sound/pci/emu10k1/emu10k1_main.c return snd_emu10k1_free(emu); emu 1761 sound/pci/emu10k1/emu10k1_main.c static void snd_emu10k1_detect_iommu(struct snd_emu10k1 *emu) emu 1765 sound/pci/emu10k1/emu10k1_main.c emu->iommu_workaround = false; emu 1767 sound/pci/emu10k1/emu10k1_main.c if (!iommu_present(emu->card->dev->bus)) emu 1770 sound/pci/emu10k1/emu10k1_main.c domain = iommu_get_domain_for_dev(emu->card->dev); emu 1774 sound/pci/emu10k1/emu10k1_main.c dev_notice(emu->card->dev, emu 1776 sound/pci/emu10k1/emu10k1_main.c emu->iommu_workaround = true; emu 1788 sound/pci/emu10k1/emu10k1_main.c struct snd_emu10k1 *emu; emu 1805 sound/pci/emu10k1/emu10k1_main.c emu = kzalloc(sizeof(*emu), GFP_KERNEL); emu 1806 sound/pci/emu10k1/emu10k1_main.c if (emu == NULL) { emu 1810 sound/pci/emu10k1/emu10k1_main.c emu->card = card; emu 1811 sound/pci/emu10k1/emu10k1_main.c spin_lock_init(&emu->reg_lock); emu 1812 sound/pci/emu10k1/emu10k1_main.c spin_lock_init(&emu->emu_lock); emu 1813 sound/pci/emu10k1/emu10k1_main.c spin_lock_init(&emu->spi_lock); emu 1814 sound/pci/emu10k1/emu10k1_main.c spin_lock_init(&emu->i2c_lock); emu 1815 sound/pci/emu10k1/emu10k1_main.c spin_lock_init(&emu->voice_lock); emu 1816 sound/pci/emu10k1/emu10k1_main.c spin_lock_init(&emu->synth_lock); emu 1817 sound/pci/emu10k1/emu10k1_main.c spin_lock_init(&emu->memblk_lock); emu 1818 sound/pci/emu10k1/emu10k1_main.c mutex_init(&emu->fx8010.lock); emu 1819 sound/pci/emu10k1/emu10k1_main.c INIT_LIST_HEAD(&emu->mapped_link_head); emu 1820 sound/pci/emu10k1/emu10k1_main.c INIT_LIST_HEAD(&emu->mapped_order_link_head); emu 1821 sound/pci/emu10k1/emu10k1_main.c emu->pci = pci; emu 1822 sound/pci/emu10k1/emu10k1_main.c emu->irq = -1; emu 1823 sound/pci/emu10k1/emu10k1_main.c emu->synth = NULL; emu 1824 sound/pci/emu10k1/emu10k1_main.c emu->get_synth_voice = NULL; emu 1825 sound/pci/emu10k1/emu10k1_main.c INIT_DELAYED_WORK(&emu->emu1010.firmware_work, emu1010_firmware_work); emu 1827 sound/pci/emu10k1/emu10k1_main.c emu->revision = pci->revision; emu 1828 sound/pci/emu10k1/emu10k1_main.c pci_read_config_dword(pci, PCI_SUBSYSTEM_VENDOR_ID, &emu->serial); emu 1829 sound/pci/emu10k1/emu10k1_main.c pci_read_config_word(pci, PCI_SUBSYSTEM_ID, &emu->model); emu 1832 sound/pci/emu10k1/emu10k1_main.c pci->vendor, pci->device, emu->serial, emu->model); emu 1842 sound/pci/emu10k1/emu10k1_main.c if (c->subsystem && (c->subsystem != emu->serial)) emu 1844 sound/pci/emu10k1/emu10k1_main.c if (c->revision && c->revision != emu->revision) emu 1852 sound/pci/emu10k1/emu10k1_main.c kfree(emu); emu 1856 sound/pci/emu10k1/emu10k1_main.c emu->card_capabilities = c; emu 1863 sound/pci/emu10k1/emu10k1_main.c pci->vendor, pci->device, emu->serial, c->subsystem); emu 1868 sound/pci/emu10k1/emu10k1_main.c emu->serial); emu 1873 sound/pci/emu10k1/emu10k1_main.c is_audigy = emu->audigy = c->emu10k2_chip; emu 1875 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_detect_iommu(emu); emu 1878 sound/pci/emu10k1/emu10k1_main.c emu->address_mode = is_audigy ? 0 : 1; emu 1880 sound/pci/emu10k1/emu10k1_main.c emu->dma_mask = emu->address_mode ? EMU10K1_DMA_MASK : AUDIGY_DMA_MASK; emu 1881 sound/pci/emu10k1/emu10k1_main.c if (dma_set_mask_and_coherent(&pci->dev, emu->dma_mask) < 0) { emu 1884 sound/pci/emu10k1/emu10k1_main.c emu->dma_mask); emu 1885 sound/pci/emu10k1/emu10k1_main.c kfree(emu); emu 1890 sound/pci/emu10k1/emu10k1_main.c emu->gpr_base = A_FXGPREGBASE; emu 1892 sound/pci/emu10k1/emu10k1_main.c emu->gpr_base = FXGPREGBASE; emu 1896 sound/pci/emu10k1/emu10k1_main.c kfree(emu); emu 1900 sound/pci/emu10k1/emu10k1_main.c emu->port = pci_resource_start(pci, 0); emu 1902 sound/pci/emu10k1/emu10k1_main.c emu->max_cache_pages = max_cache_bytes >> PAGE_SHIFT; emu 1904 sound/pci/emu10k1/emu10k1_main.c page_table_size = sizeof(u32) * (emu->address_mode ? MAXPAGES1 : emu 1906 sound/pci/emu10k1/emu10k1_main.c if (snd_emu10k1_alloc_pages_maybe_wider(emu, page_table_size, emu 1907 sound/pci/emu10k1/emu10k1_main.c &emu->ptb_pages) < 0) { emu 1912 sound/pci/emu10k1/emu10k1_main.c (unsigned long)emu->ptb_pages.addr, emu 1913 sound/pci/emu10k1/emu10k1_main.c (unsigned long)(emu->ptb_pages.addr + emu->ptb_pages.bytes)); emu 1915 sound/pci/emu10k1/emu10k1_main.c emu->page_ptr_table = vmalloc(array_size(sizeof(void *), emu 1916 sound/pci/emu10k1/emu10k1_main.c emu->max_cache_pages)); emu 1917 sound/pci/emu10k1/emu10k1_main.c emu->page_addr_table = vmalloc(array_size(sizeof(unsigned long), emu 1918 sound/pci/emu10k1/emu10k1_main.c emu->max_cache_pages)); emu 1919 sound/pci/emu10k1/emu10k1_main.c if (emu->page_ptr_table == NULL || emu->page_addr_table == NULL) { emu 1924 sound/pci/emu10k1/emu10k1_main.c if (snd_emu10k1_alloc_pages_maybe_wider(emu, EMUPAGESIZE, emu 1925 sound/pci/emu10k1/emu10k1_main.c &emu->silent_page) < 0) { emu 1930 sound/pci/emu10k1/emu10k1_main.c (unsigned long)emu->silent_page.addr, emu 1931 sound/pci/emu10k1/emu10k1_main.c (unsigned long)(emu->silent_page.addr + emu 1932 sound/pci/emu10k1/emu10k1_main.c emu->silent_page.bytes)); emu 1934 sound/pci/emu10k1/emu10k1_main.c emu->memhdr = snd_util_memhdr_new(emu->max_cache_pages * PAGE_SIZE); emu 1935 sound/pci/emu10k1/emu10k1_main.c if (emu->memhdr == NULL) { emu 1939 sound/pci/emu10k1/emu10k1_main.c emu->memhdr->block_extra_size = sizeof(struct snd_emu10k1_memblk) - emu 1944 sound/pci/emu10k1/emu10k1_main.c emu->fx8010.fxbus_mask = 0x303f; emu 1949 sound/pci/emu10k1/emu10k1_main.c emu->fx8010.extin_mask = extin_mask; emu 1950 sound/pci/emu10k1/emu10k1_main.c emu->fx8010.extout_mask = extout_mask; emu 1951 sound/pci/emu10k1/emu10k1_main.c emu->enable_ir = enable_ir; emu 1953 sound/pci/emu10k1/emu10k1_main.c if (emu->card_capabilities->ca_cardbus_chip) { emu 1954 sound/pci/emu10k1/emu10k1_main.c err = snd_emu10k1_cardbus_init(emu); emu 1958 sound/pci/emu10k1/emu10k1_main.c if (emu->card_capabilities->ecard) { emu 1959 sound/pci/emu10k1/emu10k1_main.c err = snd_emu10k1_ecard_init(emu); emu 1962 sound/pci/emu10k1/emu10k1_main.c } else if (emu->card_capabilities->emu_model) { emu 1963 sound/pci/emu10k1/emu10k1_main.c err = snd_emu10k1_emu1010_init(emu); emu 1965 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_free(emu); emu 1971 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, AC97SLOT, 0, emu 1976 sound/pci/emu10k1/emu10k1_main.c emu->fx8010.itram_size = (16 * 1024)/2; emu 1977 sound/pci/emu10k1/emu10k1_main.c emu->fx8010.etram_pages.area = NULL; emu 1978 sound/pci/emu10k1/emu10k1_main.c emu->fx8010.etram_pages.bytes = 0; emu 1982 sound/pci/emu10k1/emu10k1_main.c KBUILD_MODNAME, emu)) { emu 1986 sound/pci/emu10k1/emu10k1_main.c emu->irq = pci->irq; emu 2002 sound/pci/emu10k1/emu10k1_main.c emu->spdif_bits[0] = emu->spdif_bits[1] = emu 2003 sound/pci/emu10k1/emu10k1_main.c emu->spdif_bits[2] = SPCS_CLKACCY_1000PPM | SPCS_SAMPLERATE_48 | emu 2009 sound/pci/emu10k1/emu10k1_main.c memset(emu->silent_page.area, 0, emu->silent_page.bytes); emu 2010 sound/pci/emu10k1/emu10k1_main.c silent_page = emu->silent_page.addr << emu->address_mode; emu 2011 sound/pci/emu10k1/emu10k1_main.c for (idx = 0; idx < (emu->address_mode ? MAXPAGES1 : MAXPAGES0); idx++) emu 2012 sound/pci/emu10k1/emu10k1_main.c ((u32 *)emu->ptb_pages.area)[idx] = cpu_to_le32(silent_page | idx); emu 2016 sound/pci/emu10k1/emu10k1_main.c emu->voices[idx].emu = emu; emu 2017 sound/pci/emu10k1/emu10k1_main.c emu->voices[idx].number = idx; emu 2020 sound/pci/emu10k1/emu10k1_main.c err = snd_emu10k1_init(emu, enable_ir, 0); emu 2024 sound/pci/emu10k1/emu10k1_main.c err = alloc_pm_buffer(emu); emu 2030 sound/pci/emu10k1/emu10k1_main.c err = snd_emu10k1_init_efx(emu); emu 2033 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_audio_enable(emu); emu 2035 sound/pci/emu10k1/emu10k1_main.c err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, emu, &ops); emu 2040 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_proc_init(emu); emu 2043 sound/pci/emu10k1/emu10k1_main.c *remu = emu; emu 2047 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_free(emu); emu 2067 sound/pci/emu10k1/emu10k1_main.c static int alloc_pm_buffer(struct snd_emu10k1 *emu) emu 2072 sound/pci/emu10k1/emu10k1_main.c if (emu->audigy) emu 2074 sound/pci/emu10k1/emu10k1_main.c emu->saved_ptr = vmalloc(array3_size(4, NUM_G, size)); emu 2075 sound/pci/emu10k1/emu10k1_main.c if (!emu->saved_ptr) emu 2077 sound/pci/emu10k1/emu10k1_main.c if (snd_emu10k1_efx_alloc_pm_buffer(emu) < 0) emu 2079 sound/pci/emu10k1/emu10k1_main.c if (emu->card_capabilities->ca0151_chip && emu 2080 sound/pci/emu10k1/emu10k1_main.c snd_p16v_alloc_pm_buffer(emu) < 0) emu 2085 sound/pci/emu10k1/emu10k1_main.c static void free_pm_buffer(struct snd_emu10k1 *emu) emu 2087 sound/pci/emu10k1/emu10k1_main.c vfree(emu->saved_ptr); emu 2088 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_efx_free_pm_buffer(emu); emu 2089 sound/pci/emu10k1/emu10k1_main.c if (emu->card_capabilities->ca0151_chip) emu 2090 sound/pci/emu10k1/emu10k1_main.c snd_p16v_free_pm_buffer(emu); emu 2093 sound/pci/emu10k1/emu10k1_main.c void snd_emu10k1_suspend_regs(struct snd_emu10k1 *emu) emu 2099 sound/pci/emu10k1/emu10k1_main.c val = emu->saved_ptr; emu 2102 sound/pci/emu10k1/emu10k1_main.c *val = snd_emu10k1_ptr_read(emu, *reg, i); emu 2103 sound/pci/emu10k1/emu10k1_main.c if (emu->audigy) { emu 2106 sound/pci/emu10k1/emu10k1_main.c *val = snd_emu10k1_ptr_read(emu, *reg, i); emu 2108 sound/pci/emu10k1/emu10k1_main.c if (emu->audigy) emu 2109 sound/pci/emu10k1/emu10k1_main.c emu->saved_a_iocfg = inl(emu->port + A_IOCFG); emu 2110 sound/pci/emu10k1/emu10k1_main.c emu->saved_hcfg = inl(emu->port + HCFG); emu 2113 sound/pci/emu10k1/emu10k1_main.c void snd_emu10k1_resume_init(struct snd_emu10k1 *emu) emu 2115 sound/pci/emu10k1/emu10k1_main.c if (emu->card_capabilities->ca_cardbus_chip) emu 2116 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_cardbus_init(emu); emu 2117 sound/pci/emu10k1/emu10k1_main.c if (emu->card_capabilities->ecard) emu 2118 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ecard_init(emu); emu 2119 sound/pci/emu10k1/emu10k1_main.c else if (emu->card_capabilities->emu_model) emu 2120 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_emu1010_init(emu); emu 2122 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, AC97SLOT, 0, AC97SLOT_CNTR|AC97SLOT_LFE); emu 2123 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_init(emu, emu->enable_ir, 1); emu 2126 sound/pci/emu10k1/emu10k1_main.c void snd_emu10k1_resume_regs(struct snd_emu10k1 *emu) emu 2132 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_audio_enable(emu); emu 2135 sound/pci/emu10k1/emu10k1_main.c if (emu->audigy) emu 2136 sound/pci/emu10k1/emu10k1_main.c outl(emu->saved_a_iocfg, emu->port + A_IOCFG); emu 2137 sound/pci/emu10k1/emu10k1_main.c outl(emu->saved_hcfg, emu->port + HCFG); emu 2139 sound/pci/emu10k1/emu10k1_main.c val = emu->saved_ptr; emu 2142 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, *reg, i, *val); emu 2143 sound/pci/emu10k1/emu10k1_main.c if (emu->audigy) { emu 2146 sound/pci/emu10k1/emu10k1_main.c snd_emu10k1_ptr_write(emu, *reg, i, *val); emu 33 sound/pci/emu10k1/emu10k1_patch.c struct snd_emu10k1 *emu; emu 35 sound/pci/emu10k1/emu10k1_patch.c emu = rec->hw; emu 40 sound/pci/emu10k1/emu10k1_patch.c dev_dbg(emu->card->dev, emu 78 sound/pci/emu10k1/emu10k1_patch.c sp->block = snd_emu10k1_synth_alloc(emu, blocksize); emu 80 sound/pci/emu10k1/emu10k1_patch.c dev_dbg(emu->card->dev, emu 95 sound/pci/emu10k1/emu10k1_patch.c snd_emu10k1_synth_bzero(emu, sp->block, offset, size); emu 104 sound/pci/emu10k1/emu10k1_patch.c if (snd_emu10k1_synth_copy_from_user(emu, sp->block, offset, data, size)) { emu 105 sound/pci/emu10k1/emu10k1_patch.c snd_emu10k1_synth_free(emu, sp->block); emu 151 sound/pci/emu10k1/emu10k1_patch.c if (snd_emu10k1_synth_copy_from_user(emu, sp->block, offset, data, size)) { emu 152 sound/pci/emu10k1/emu10k1_patch.c snd_emu10k1_synth_free(emu, sp->block); emu 160 sound/pci/emu10k1/emu10k1_patch.c snd_emu10k1_synth_bzero(emu, sp->block, offset, blocksize - offset); emu 203 sound/pci/emu10k1/emu10k1_patch.c struct snd_emu10k1 *emu; emu 205 sound/pci/emu10k1/emu10k1_patch.c emu = rec->hw; emu 210 sound/pci/emu10k1/emu10k1_patch.c snd_emu10k1_synth_free(emu, sp->block); emu 22 sound/pci/emu10k1/emu10k1_synth_local.h int snd_emu10k1_memhdr_init(struct snd_emux *emu); emu 25 sound/pci/emu10k1/emu10k1_synth_local.h void snd_emu10k1_ops_setup(struct snd_emux *emu); emu 185 sound/pci/emu10k1/emu10k1x.c struct emu10k1x *emu; emu 193 sound/pci/emu10k1/emu10k1x.c struct emu10k1x *emu; emu 200 sound/pci/emu10k1/emu10k1x.c struct emu10k1x *emu; emu 211 sound/pci/emu10k1/emu10k1x.c void (*interrupt)(struct emu10k1x *emu, unsigned int status); emu 281 sound/pci/emu10k1/emu10k1x.c static unsigned int snd_emu10k1x_ptr_read(struct emu10k1x * emu, emu 290 sound/pci/emu10k1/emu10k1x.c spin_lock_irqsave(&emu->emu_lock, flags); emu 291 sound/pci/emu10k1/emu10k1x.c outl(regptr, emu->port + PTR); emu 292 sound/pci/emu10k1/emu10k1x.c val = inl(emu->port + DATA); emu 293 sound/pci/emu10k1/emu10k1x.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 297 sound/pci/emu10k1/emu10k1x.c static void snd_emu10k1x_ptr_write(struct emu10k1x *emu, emu 307 sound/pci/emu10k1/emu10k1x.c spin_lock_irqsave(&emu->emu_lock, flags); emu 308 sound/pci/emu10k1/emu10k1x.c outl(regptr, emu->port + PTR); emu 309 sound/pci/emu10k1/emu10k1x.c outl(data, emu->port + DATA); emu 310 sound/pci/emu10k1/emu10k1x.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 313 sound/pci/emu10k1/emu10k1x.c static void snd_emu10k1x_intr_enable(struct emu10k1x *emu, unsigned int intrenb) emu 318 sound/pci/emu10k1/emu10k1x.c spin_lock_irqsave(&emu->emu_lock, flags); emu 319 sound/pci/emu10k1/emu10k1x.c intr_enable = inl(emu->port + INTE) | intrenb; emu 320 sound/pci/emu10k1/emu10k1x.c outl(intr_enable, emu->port + INTE); emu 321 sound/pci/emu10k1/emu10k1x.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 324 sound/pci/emu10k1/emu10k1x.c static void snd_emu10k1x_intr_disable(struct emu10k1x *emu, unsigned int intrenb) emu 329 sound/pci/emu10k1/emu10k1x.c spin_lock_irqsave(&emu->emu_lock, flags); emu 330 sound/pci/emu10k1/emu10k1x.c intr_enable = inl(emu->port + INTE) & ~intrenb; emu 331 sound/pci/emu10k1/emu10k1x.c outl(intr_enable, emu->port + INTE); emu 332 sound/pci/emu10k1/emu10k1x.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 335 sound/pci/emu10k1/emu10k1x.c static void snd_emu10k1x_gpio_write(struct emu10k1x *emu, unsigned int value) emu 339 sound/pci/emu10k1/emu10k1x.c spin_lock_irqsave(&emu->emu_lock, flags); emu 340 sound/pci/emu10k1/emu10k1x.c outl(value, emu->port + GPIO); emu 341 sound/pci/emu10k1/emu10k1x.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 349 sound/pci/emu10k1/emu10k1x.c static void snd_emu10k1x_pcm_interrupt(struct emu10k1x *emu, struct emu10k1x_voice *voice) emu 358 sound/pci/emu10k1/emu10k1x.c dev_info(emu->card->dev, emu 384 sound/pci/emu10k1/emu10k1x.c epcm->emu = chip; emu 409 sound/pci/emu10k1/emu10k1x.c epcm->voice = &epcm->emu->voices[substream->pcm->device]; emu 441 sound/pci/emu10k1/emu10k1x.c struct emu10k1x *emu = snd_pcm_substream_chip(substream); emu 445 sound/pci/emu10k1/emu10k1x.c u32 *table_base = (u32 *)(emu->dma_buffer.area+1024*voice); emu 454 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_ptr_write(emu, PLAYBACK_LIST_ADDR, voice, emu->dma_buffer.addr+1024*voice); emu 455 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_ptr_write(emu, PLAYBACK_LIST_SIZE, voice, (runtime->periods - 1) << 19); emu 456 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_ptr_write(emu, PLAYBACK_LIST_PTR, voice, 0); emu 457 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_ptr_write(emu, PLAYBACK_POINTER, voice, 0); emu 458 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_ptr_write(emu, PLAYBACK_UNKNOWN1, voice, 0); emu 459 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_ptr_write(emu, PLAYBACK_UNKNOWN2, voice, 0); emu 460 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_ptr_write(emu, PLAYBACK_DMA_ADDR, voice, runtime->dma_addr); emu 462 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_ptr_write(emu, PLAYBACK_PERIOD_SIZE, voice, frames_to_bytes(runtime, runtime->period_size)<<16); emu 471 sound/pci/emu10k1/emu10k1x.c struct emu10k1x *emu = snd_pcm_substream_chip(substream); emu 486 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_intr_enable(emu, (INTE_CH_0_LOOP | INTE_CH_0_HALF_LOOP) << channel); emu 488 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_intr_enable(emu, INTE_CH_0_LOOP << channel); emu 490 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_ptr_write(emu, TRIGGER_CHANNEL, 0, snd_emu10k1x_ptr_read(emu, TRIGGER_CHANNEL, 0)|(TRIGGER_CHANNEL_0<<channel)); emu 494 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_intr_disable(emu, (INTE_CH_0_LOOP | INTE_CH_0_HALF_LOOP) << channel); emu 495 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_ptr_write(emu, TRIGGER_CHANNEL, 0, snd_emu10k1x_ptr_read(emu, TRIGGER_CHANNEL, 0) & ~(TRIGGER_CHANNEL_0<<channel)); emu 508 sound/pci/emu10k1/emu10k1x.c struct emu10k1x *emu = snd_pcm_substream_chip(substream); emu 517 sound/pci/emu10k1/emu10k1x.c ptr3 = snd_emu10k1x_ptr_read(emu, PLAYBACK_LIST_PTR, channel); emu 518 sound/pci/emu10k1/emu10k1x.c ptr1 = snd_emu10k1x_ptr_read(emu, PLAYBACK_POINTER, channel); emu 519 sound/pci/emu10k1/emu10k1x.c ptr4 = snd_emu10k1x_ptr_read(emu, PLAYBACK_LIST_PTR, channel); emu 525 sound/pci/emu10k1/emu10k1x.c ptr1 = snd_emu10k1x_ptr_read(emu, PLAYBACK_POINTER, channel); emu 565 sound/pci/emu10k1/emu10k1x.c epcm->emu = chip; emu 590 sound/pci/emu10k1/emu10k1x.c if (epcm->emu->capture_voice.use) emu 592 sound/pci/emu10k1/emu10k1x.c epcm->voice = &epcm->emu->capture_voice; emu 624 sound/pci/emu10k1/emu10k1x.c struct emu10k1x *emu = snd_pcm_substream_chip(substream); emu 627 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_ptr_write(emu, CAPTURE_DMA_ADDR, 0, runtime->dma_addr); emu 628 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_ptr_write(emu, CAPTURE_BUFFER_SIZE, 0, frames_to_bytes(runtime, runtime->buffer_size)<<16); // buffer size in bytes emu 629 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_ptr_write(emu, CAPTURE_POINTER, 0, 0); emu 630 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_ptr_write(emu, CAPTURE_UNKNOWN, 0, 0); emu 639 sound/pci/emu10k1/emu10k1x.c struct emu10k1x *emu = snd_pcm_substream_chip(substream); emu 646 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_intr_enable(emu, INTE_CAP_0_LOOP | emu 648 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_ptr_write(emu, TRIGGER_CHANNEL, 0, snd_emu10k1x_ptr_read(emu, TRIGGER_CHANNEL, 0)|TRIGGER_CAPTURE); emu 653 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_intr_disable(emu, INTE_CAP_0_LOOP | emu 655 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_ptr_write(emu, TRIGGER_CHANNEL, 0, snd_emu10k1x_ptr_read(emu, TRIGGER_CHANNEL, 0) & ~(TRIGGER_CAPTURE)); emu 668 sound/pci/emu10k1/emu10k1x.c struct emu10k1x *emu = snd_pcm_substream_chip(substream); emu 676 sound/pci/emu10k1/emu10k1x.c ptr = bytes_to_frames(runtime, snd_emu10k1x_ptr_read(emu, CAPTURE_POINTER, 0)); emu 697 sound/pci/emu10k1/emu10k1x.c struct emu10k1x *emu = ac97->private_data; emu 701 sound/pci/emu10k1/emu10k1x.c spin_lock_irqsave(&emu->emu_lock, flags); emu 702 sound/pci/emu10k1/emu10k1x.c outb(reg, emu->port + AC97ADDRESS); emu 703 sound/pci/emu10k1/emu10k1x.c val = inw(emu->port + AC97DATA); emu 704 sound/pci/emu10k1/emu10k1x.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 711 sound/pci/emu10k1/emu10k1x.c struct emu10k1x *emu = ac97->private_data; emu 714 sound/pci/emu10k1/emu10k1x.c spin_lock_irqsave(&emu->emu_lock, flags); emu 715 sound/pci/emu10k1/emu10k1x.c outb(reg, emu->port + AC97ADDRESS); emu 716 sound/pci/emu10k1/emu10k1x.c outw(val, emu->port + AC97DATA); emu 717 sound/pci/emu10k1/emu10k1x.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 836 sound/pci/emu10k1/emu10k1x.c static int snd_emu10k1x_pcm(struct emu10k1x *emu, int device) emu 846 sound/pci/emu10k1/emu10k1x.c if ((err = snd_pcm_new(emu->card, "emu10k1x", device, 1, capture, &pcm)) < 0) emu 849 sound/pci/emu10k1/emu10k1x.c pcm->private_data = emu; emu 877 sound/pci/emu10k1/emu10k1x.c emu->pcm = pcm; emu 880 sound/pci/emu10k1/emu10k1x.c snd_dma_pci_data(emu->pci), emu 956 sound/pci/emu10k1/emu10k1x.c chip->voices[ch].emu = chip; emu 1011 sound/pci/emu10k1/emu10k1x.c struct emu10k1x *emu = entry->private_data; emu 1018 sound/pci/emu10k1/emu10k1x.c spin_lock_irqsave(&emu->emu_lock, flags); emu 1019 sound/pci/emu10k1/emu10k1x.c value = inl(emu->port + i); emu 1020 sound/pci/emu10k1/emu10k1x.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 1025 sound/pci/emu10k1/emu10k1x.c value = snd_emu10k1x_ptr_read(emu, i, 0); emu 1027 sound/pci/emu10k1/emu10k1x.c value1 = snd_emu10k1x_ptr_read(emu, i, 1); emu 1028 sound/pci/emu10k1/emu10k1x.c value2 = snd_emu10k1x_ptr_read(emu, i, 2); emu 1039 sound/pci/emu10k1/emu10k1x.c struct emu10k1x *emu = entry->private_data; emu 1048 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_ptr_write(emu, reg, channel_id, val); emu 1052 sound/pci/emu10k1/emu10k1x.c static int snd_emu10k1x_proc_init(struct emu10k1x *emu) emu 1054 sound/pci/emu10k1/emu10k1x.c snd_card_rw_proc_new(emu->card, "emu10k1x_regs", emu, emu 1065 sound/pci/emu10k1/emu10k1x.c struct emu10k1x *emu = snd_kcontrol_chip(kcontrol); emu 1067 sound/pci/emu10k1/emu10k1x.c ucontrol->value.integer.value[0] = (snd_emu10k1x_ptr_read(emu, SPDIF_SELECT, 0) == 0x700) ? 0 : 1; emu 1075 sound/pci/emu10k1/emu10k1x.c struct emu10k1x *emu = snd_kcontrol_chip(kcontrol); emu 1082 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_ptr_write(emu, SPDIF_SELECT, 0, 0x000); emu 1083 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_ptr_write(emu, ROUTING, 0, 0x700); emu 1084 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_gpio_write(emu, 0x1000); emu 1087 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_ptr_write(emu, SPDIF_SELECT, 0, 0x700); emu 1088 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_ptr_write(emu, ROUTING, 0, 0x1003F); emu 1089 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_gpio_write(emu, 0x1080); emu 1113 sound/pci/emu10k1/emu10k1x.c struct emu10k1x *emu = snd_kcontrol_chip(kcontrol); emu 1116 sound/pci/emu10k1/emu10k1x.c ucontrol->value.iec958.status[0] = (emu->spdif_bits[idx] >> 0) & 0xff; emu 1117 sound/pci/emu10k1/emu10k1x.c ucontrol->value.iec958.status[1] = (emu->spdif_bits[idx] >> 8) & 0xff; emu 1118 sound/pci/emu10k1/emu10k1x.c ucontrol->value.iec958.status[2] = (emu->spdif_bits[idx] >> 16) & 0xff; emu 1119 sound/pci/emu10k1/emu10k1x.c ucontrol->value.iec958.status[3] = (emu->spdif_bits[idx] >> 24) & 0xff; emu 1136 sound/pci/emu10k1/emu10k1x.c struct emu10k1x *emu = snd_kcontrol_chip(kcontrol); emu 1145 sound/pci/emu10k1/emu10k1x.c change = val != emu->spdif_bits[idx]; emu 1147 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_ptr_write(emu, SPCS0 + idx, 0, val); emu 1148 sound/pci/emu10k1/emu10k1x.c emu->spdif_bits[idx] = val; emu 1173 sound/pci/emu10k1/emu10k1x.c static int snd_emu10k1x_mixer(struct emu10k1x *emu) emu 1177 sound/pci/emu10k1/emu10k1x.c struct snd_card *card = emu->card; emu 1179 sound/pci/emu10k1/emu10k1x.c if ((kctl = snd_ctl_new1(&snd_emu10k1x_spdif_mask_control, emu)) == NULL) emu 1183 sound/pci/emu10k1/emu10k1x.c if ((kctl = snd_ctl_new1(&snd_emu10k1x_shared_spdif, emu)) == NULL) emu 1187 sound/pci/emu10k1/emu10k1x.c if ((kctl = snd_ctl_new1(&snd_emu10k1x_spdif_control, emu)) == NULL) emu 1198 sound/pci/emu10k1/emu10k1x.c static inline unsigned char mpu401_read(struct emu10k1x *emu, struct emu10k1x_midi *mpu, int idx) emu 1200 sound/pci/emu10k1/emu10k1x.c return (unsigned char)snd_emu10k1x_ptr_read(emu, mpu->port + idx, 0); emu 1203 sound/pci/emu10k1/emu10k1x.c static inline void mpu401_write(struct emu10k1x *emu, struct emu10k1x_midi *mpu, int data, int idx) emu 1205 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_ptr_write(emu, mpu->port + idx, 0, data); emu 1208 sound/pci/emu10k1/emu10k1x.c #define mpu401_write_data(emu, mpu, data) mpu401_write(emu, mpu, data, 0) emu 1209 sound/pci/emu10k1/emu10k1x.c #define mpu401_write_cmd(emu, mpu, data) mpu401_write(emu, mpu, data, 1) emu 1210 sound/pci/emu10k1/emu10k1x.c #define mpu401_read_data(emu, mpu) mpu401_read(emu, mpu, 0) emu 1211 sound/pci/emu10k1/emu10k1x.c #define mpu401_read_stat(emu, mpu) mpu401_read(emu, mpu, 1) emu 1213 sound/pci/emu10k1/emu10k1x.c #define mpu401_input_avail(emu,mpu) (!(mpu401_read_stat(emu,mpu) & 0x80)) emu 1214 sound/pci/emu10k1/emu10k1x.c #define mpu401_output_ready(emu,mpu) (!(mpu401_read_stat(emu,mpu) & 0x40)) emu 1220 sound/pci/emu10k1/emu10k1x.c static void mpu401_clear_rx(struct emu10k1x *emu, struct emu10k1x_midi *mpu) emu 1223 sound/pci/emu10k1/emu10k1x.c for (; timeout > 0 && mpu401_input_avail(emu, mpu); timeout--) emu 1224 sound/pci/emu10k1/emu10k1x.c mpu401_read_data(emu, mpu); emu 1227 sound/pci/emu10k1/emu10k1x.c dev_err(emu->card->dev, emu 1229 sound/pci/emu10k1/emu10k1x.c mpu401_read_stat(emu, mpu)); emu 1237 sound/pci/emu10k1/emu10k1x.c static void do_emu10k1x_midi_interrupt(struct emu10k1x *emu, emu 1243 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_intr_disable(emu, midi->tx_enable | midi->rx_enable); emu 1248 sound/pci/emu10k1/emu10k1x.c if ((status & midi->ipr_rx) && mpu401_input_avail(emu, midi)) { emu 1250 sound/pci/emu10k1/emu10k1x.c mpu401_clear_rx(emu, midi); emu 1252 sound/pci/emu10k1/emu10k1x.c byte = mpu401_read_data(emu, midi); emu 1260 sound/pci/emu10k1/emu10k1x.c if ((status & midi->ipr_tx) && mpu401_output_ready(emu, midi)) { emu 1263 sound/pci/emu10k1/emu10k1x.c mpu401_write_data(emu, midi, byte); emu 1265 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_intr_disable(emu, midi->tx_enable); emu 1271 sound/pci/emu10k1/emu10k1x.c static void snd_emu10k1x_midi_interrupt(struct emu10k1x *emu, unsigned int status) emu 1273 sound/pci/emu10k1/emu10k1x.c do_emu10k1x_midi_interrupt(emu, &emu->midi, status); emu 1276 sound/pci/emu10k1/emu10k1x.c static int snd_emu10k1x_midi_cmd(struct emu10k1x * emu, emu 1283 sound/pci/emu10k1/emu10k1x.c mpu401_write_data(emu, midi, 0x00); emu 1286 sound/pci/emu10k1/emu10k1x.c mpu401_write_cmd(emu, midi, cmd); emu 1291 sound/pci/emu10k1/emu10k1x.c if (mpu401_input_avail(emu, midi)) { emu 1292 sound/pci/emu10k1/emu10k1x.c if (mpu401_read_data(emu, midi) == MPU401_ACK) emu 1296 sound/pci/emu10k1/emu10k1x.c if (!ok && mpu401_read_data(emu, midi) == MPU401_ACK) emu 1303 sound/pci/emu10k1/emu10k1x.c dev_err(emu->card->dev, emu 1305 sound/pci/emu10k1/emu10k1x.c cmd, emu->port, emu 1306 sound/pci/emu10k1/emu10k1x.c mpu401_read_stat(emu, midi), emu 1307 sound/pci/emu10k1/emu10k1x.c mpu401_read_data(emu, midi)); emu 1315 sound/pci/emu10k1/emu10k1x.c struct emu10k1x *emu; emu 1319 sound/pci/emu10k1/emu10k1x.c emu = midi->emu; emu 1320 sound/pci/emu10k1/emu10k1x.c if (snd_BUG_ON(!emu)) emu 1327 sound/pci/emu10k1/emu10k1x.c if (snd_emu10k1x_midi_cmd(emu, midi, MPU401_RESET, 1)) emu 1329 sound/pci/emu10k1/emu10k1x.c if (snd_emu10k1x_midi_cmd(emu, midi, MPU401_ENTER_UART, 1)) emu 1342 sound/pci/emu10k1/emu10k1x.c struct emu10k1x *emu; emu 1346 sound/pci/emu10k1/emu10k1x.c emu = midi->emu; emu 1347 sound/pci/emu10k1/emu10k1x.c if (snd_BUG_ON(!emu)) emu 1354 sound/pci/emu10k1/emu10k1x.c if (snd_emu10k1x_midi_cmd(emu, midi, MPU401_RESET, 1)) emu 1356 sound/pci/emu10k1/emu10k1x.c if (snd_emu10k1x_midi_cmd(emu, midi, MPU401_ENTER_UART, 1)) emu 1369 sound/pci/emu10k1/emu10k1x.c struct emu10k1x *emu; emu 1374 sound/pci/emu10k1/emu10k1x.c emu = midi->emu; emu 1375 sound/pci/emu10k1/emu10k1x.c if (snd_BUG_ON(!emu)) emu 1378 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_intr_disable(emu, midi->rx_enable); emu 1383 sound/pci/emu10k1/emu10k1x.c err = snd_emu10k1x_midi_cmd(emu, midi, MPU401_RESET, 0); emu 1392 sound/pci/emu10k1/emu10k1x.c struct emu10k1x *emu; emu 1397 sound/pci/emu10k1/emu10k1x.c emu = midi->emu; emu 1398 sound/pci/emu10k1/emu10k1x.c if (snd_BUG_ON(!emu)) emu 1401 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_intr_disable(emu, midi->tx_enable); emu 1406 sound/pci/emu10k1/emu10k1x.c err = snd_emu10k1x_midi_cmd(emu, midi, MPU401_RESET, 0); emu 1415 sound/pci/emu10k1/emu10k1x.c struct emu10k1x *emu; emu 1417 sound/pci/emu10k1/emu10k1x.c emu = midi->emu; emu 1418 sound/pci/emu10k1/emu10k1x.c if (snd_BUG_ON(!emu)) emu 1422 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_intr_enable(emu, midi->rx_enable); emu 1424 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_intr_disable(emu, midi->rx_enable); emu 1429 sound/pci/emu10k1/emu10k1x.c struct emu10k1x *emu; emu 1433 sound/pci/emu10k1/emu10k1x.c emu = midi->emu; emu 1434 sound/pci/emu10k1/emu10k1x.c if (snd_BUG_ON(!emu)) emu 1444 sound/pci/emu10k1/emu10k1x.c if (mpu401_output_ready(emu, midi)) { emu 1451 sound/pci/emu10k1/emu10k1x.c mpu401_write_data(emu, midi, byte); emu 1458 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_intr_enable(emu, midi->tx_enable); emu 1460 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_intr_disable(emu, midi->tx_enable); emu 1489 sound/pci/emu10k1/emu10k1x.c static int emu10k1x_midi_init(struct emu10k1x *emu, emu 1496 sound/pci/emu10k1/emu10k1x.c if ((err = snd_rawmidi_new(emu->card, name, device, 1, 1, &rmidi)) < 0) emu 1498 sound/pci/emu10k1/emu10k1x.c midi->emu = emu; emu 1514 sound/pci/emu10k1/emu10k1x.c static int snd_emu10k1x_midi(struct emu10k1x *emu) emu 1516 sound/pci/emu10k1/emu10k1x.c struct emu10k1x_midi *midi = &emu->midi; emu 1519 sound/pci/emu10k1/emu10k1x.c if ((err = emu10k1x_midi_init(emu, midi, 0, "EMU10K1X MPU-401 (UART)")) < 0) emu 321 sound/pci/emu10k1/emufx.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 327 sound/pci/emu10k1/emufx.c spin_lock_irqsave(&emu->reg_lock, flags); emu 330 sound/pci/emu10k1/emufx.c spin_unlock_irqrestore(&emu->reg_lock, flags); emu 336 sound/pci/emu10k1/emufx.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 344 sound/pci/emu10k1/emufx.c spin_lock_irqsave(&emu->reg_lock, flags); emu 356 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[i], 0, val); emu 359 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[i], 0, db_table[val]); emu 367 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[j * ctl->vcount + i], 0, bass_table[val][j]); emu 375 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[j * ctl->vcount + i], 0, treble_table[val][j]); emu 378 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[i], 0, onoff_table[val]); emu 383 sound/pci/emu10k1/emufx.c spin_unlock_irqrestore(&emu->reg_lock, flags); emu 391 sound/pci/emu10k1/emufx.c static void snd_emu10k1_fx8010_interrupt(struct snd_emu10k1 *emu) emu 395 sound/pci/emu10k1/emufx.c irq = emu->fx8010.irq_handlers; emu 398 sound/pci/emu10k1/emufx.c if (snd_emu10k1_ptr_read(emu, emu->gpr_base + irq->gpr_running, 0) & 0xffff0000) { emu 400 sound/pci/emu10k1/emufx.c irq->handler(emu, irq->private_data); emu 401 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, emu->gpr_base + irq->gpr_running, 0, 1); emu 407 sound/pci/emu10k1/emufx.c int snd_emu10k1_fx8010_register_irq_handler(struct snd_emu10k1 *emu, emu 419 sound/pci/emu10k1/emufx.c spin_lock_irqsave(&emu->fx8010.irq_lock, flags); emu 420 sound/pci/emu10k1/emufx.c if (emu->fx8010.irq_handlers == NULL) { emu 421 sound/pci/emu10k1/emufx.c emu->fx8010.irq_handlers = irq; emu 422 sound/pci/emu10k1/emufx.c emu->dsp_interrupt = snd_emu10k1_fx8010_interrupt; emu 423 sound/pci/emu10k1/emufx.c snd_emu10k1_intr_enable(emu, INTE_FXDSPENABLE); emu 425 sound/pci/emu10k1/emufx.c irq->next = emu->fx8010.irq_handlers; emu 426 sound/pci/emu10k1/emufx.c emu->fx8010.irq_handlers = irq; emu 428 sound/pci/emu10k1/emufx.c spin_unlock_irqrestore(&emu->fx8010.irq_lock, flags); emu 432 sound/pci/emu10k1/emufx.c int snd_emu10k1_fx8010_unregister_irq_handler(struct snd_emu10k1 *emu, emu 438 sound/pci/emu10k1/emufx.c spin_lock_irqsave(&emu->fx8010.irq_lock, flags); emu 439 sound/pci/emu10k1/emufx.c if ((tmp = emu->fx8010.irq_handlers) == irq) { emu 440 sound/pci/emu10k1/emufx.c emu->fx8010.irq_handlers = tmp->next; emu 441 sound/pci/emu10k1/emufx.c if (emu->fx8010.irq_handlers == NULL) { emu 442 sound/pci/emu10k1/emufx.c snd_emu10k1_intr_disable(emu, INTE_FXDSPENABLE); emu 443 sound/pci/emu10k1/emufx.c emu->dsp_interrupt = NULL; emu 451 sound/pci/emu10k1/emufx.c spin_unlock_irqrestore(&emu->fx8010.irq_lock, flags); emu 493 sound/pci/emu10k1/emufx.c static void snd_emu10k1_efx_write(struct snd_emu10k1 *emu, unsigned int pc, unsigned int data) emu 495 sound/pci/emu10k1/emufx.c pc += emu->audigy ? A_MICROCODEBASE : MICROCODEBASE; emu 496 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, pc, 0, data); emu 499 sound/pci/emu10k1/emufx.c unsigned int snd_emu10k1_efx_read(struct snd_emu10k1 *emu, unsigned int pc) emu 501 sound/pci/emu10k1/emufx.c pc += emu->audigy ? A_MICROCODEBASE : MICROCODEBASE; emu 502 sound/pci/emu10k1/emufx.c return snd_emu10k1_ptr_read(emu, pc, 0); emu 505 sound/pci/emu10k1/emufx.c static int snd_emu10k1_gpr_poke(struct snd_emu10k1 *emu, emu 512 sound/pci/emu10k1/emufx.c for (gpr = 0; gpr < (emu->audigy ? 0x200 : 0x100); gpr++) { emu 519 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, emu->gpr_base + gpr, 0, val); emu 524 sound/pci/emu10k1/emufx.c static int snd_emu10k1_gpr_peek(struct snd_emu10k1 *emu, emu 530 sound/pci/emu10k1/emufx.c for (gpr = 0; gpr < (emu->audigy ? 0x200 : 0x100); gpr++) { emu 532 sound/pci/emu10k1/emufx.c val = snd_emu10k1_ptr_read(emu, emu->gpr_base + gpr, 0); emu 539 sound/pci/emu10k1/emufx.c static int snd_emu10k1_tram_poke(struct snd_emu10k1 *emu, emu 546 sound/pci/emu10k1/emufx.c for (tram = 0; tram < (emu->audigy ? 0x100 : 0xa0); tram++) { emu 557 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, TANKMEMDATAREGBASE + tram, 0, val); emu 558 sound/pci/emu10k1/emufx.c if (!emu->audigy) { emu 559 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, TANKMEMADDRREGBASE + tram, 0, addr); emu 561 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, TANKMEMADDRREGBASE + tram, 0, addr << 12); emu 562 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, A_TANKMEMCTLREGBASE + tram, 0, addr >> 20); emu 568 sound/pci/emu10k1/emufx.c static int snd_emu10k1_tram_peek(struct snd_emu10k1 *emu, emu 575 sound/pci/emu10k1/emufx.c for (tram = 0; tram < (emu->audigy ? 0x100 : 0xa0); tram++) { emu 577 sound/pci/emu10k1/emufx.c val = snd_emu10k1_ptr_read(emu, TANKMEMDATAREGBASE + tram, 0); emu 578 sound/pci/emu10k1/emufx.c if (!emu->audigy) { emu 579 sound/pci/emu10k1/emufx.c addr = snd_emu10k1_ptr_read(emu, TANKMEMADDRREGBASE + tram, 0); emu 581 sound/pci/emu10k1/emufx.c addr = snd_emu10k1_ptr_read(emu, TANKMEMADDRREGBASE + tram, 0) >> 12; emu 582 sound/pci/emu10k1/emufx.c addr |= snd_emu10k1_ptr_read(emu, A_TANKMEMCTLREGBASE + tram, 0) << 20; emu 591 sound/pci/emu10k1/emufx.c static int snd_emu10k1_code_poke(struct snd_emu10k1 *emu, emu 597 sound/pci/emu10k1/emufx.c for (pc = 0; pc < (emu->audigy ? 2*1024 : 2*512); pc += 2) { emu 608 sound/pci/emu10k1/emufx.c snd_emu10k1_efx_write(emu, pc + 0, lo); emu 609 sound/pci/emu10k1/emufx.c snd_emu10k1_efx_write(emu, pc + 1, hi); emu 614 sound/pci/emu10k1/emufx.c static int snd_emu10k1_code_peek(struct snd_emu10k1 *emu, emu 620 sound/pci/emu10k1/emufx.c for (pc = 0; pc < (emu->audigy ? 2*1024 : 2*512); pc += 2) { emu 622 sound/pci/emu10k1/emufx.c if (put_user(snd_emu10k1_efx_read(emu, pc + 0), &icode->code[pc + 0])) emu 624 sound/pci/emu10k1/emufx.c if (put_user(snd_emu10k1_efx_read(emu, pc + 1), &icode->code[pc + 1])) emu 631 sound/pci/emu10k1/emufx.c snd_emu10k1_look_for_ctl(struct snd_emu10k1 *emu, struct snd_ctl_elem_id *id) emu 636 sound/pci/emu10k1/emufx.c list_for_each_entry(ctl, &emu->fx8010.gpr_ctl, list) { emu 674 sound/pci/emu10k1/emufx.c static int copy_gctl(struct snd_emu10k1 *emu, emu 681 sound/pci/emu10k1/emufx.c if (emu->support_tlv) { emu 698 sound/pci/emu10k1/emufx.c static int copy_gctl_to_user(struct snd_emu10k1 *emu, emu 705 sound/pci/emu10k1/emufx.c if (emu->support_tlv) emu 712 sound/pci/emu10k1/emufx.c static int snd_emu10k1_verify_controls(struct snd_emu10k1 *emu, emu 728 sound/pci/emu10k1/emufx.c if (snd_emu10k1_look_for_ctl(emu, &id) == NULL) emu 736 sound/pci/emu10k1/emufx.c if (copy_gctl(emu, gctl, icode->gpr_add_controls, i, emu 741 sound/pci/emu10k1/emufx.c if (snd_emu10k1_look_for_ctl(emu, &gctl->id)) emu 743 sound/pci/emu10k1/emufx.c down_read(&emu->card->controls_rwsem); emu 744 sound/pci/emu10k1/emufx.c if (snd_ctl_find_id(emu->card, &gctl->id) != NULL) { emu 745 sound/pci/emu10k1/emufx.c up_read(&emu->card->controls_rwsem); emu 749 sound/pci/emu10k1/emufx.c up_read(&emu->card->controls_rwsem); emu 758 sound/pci/emu10k1/emufx.c if (copy_gctl(emu, gctl, icode->gpr_list_controls, i, emu 780 sound/pci/emu10k1/emufx.c static int snd_emu10k1_add_controls(struct snd_emu10k1 *emu, emu 801 sound/pci/emu10k1/emufx.c if (copy_gctl(emu, gctl, icode->gpr_add_controls, i, emu 815 sound/pci/emu10k1/emufx.c ctl = snd_emu10k1_look_for_ctl(emu, &gctl->id); emu 849 sound/pci/emu10k1/emufx.c if ((err = snd_ctl_add(emu->card, kctl = snd_ctl_new1(&knew, emu))) < 0) { emu 856 sound/pci/emu10k1/emufx.c list_add_tail(&ctl->list, &emu->fx8010.gpr_ctl); emu 862 sound/pci/emu10k1/emufx.c snd_ctl_notify(emu->card, SNDRV_CTL_EVENT_MASK_VALUE | emu 874 sound/pci/emu10k1/emufx.c static int snd_emu10k1_del_controls(struct snd_emu10k1 *emu, emu 882 sound/pci/emu10k1/emufx.c struct snd_card *card = emu->card; emu 891 sound/pci/emu10k1/emufx.c ctl = snd_emu10k1_look_for_ctl(emu, &id); emu 899 sound/pci/emu10k1/emufx.c static int snd_emu10k1_list_controls(struct snd_emu10k1 *emu, emu 912 sound/pci/emu10k1/emufx.c list_for_each_entry(ctl, &emu->fx8010.gpr_ctl, list) { emu 932 sound/pci/emu10k1/emufx.c if (copy_gctl_to_user(emu, icode->gpr_list_controls, emu 945 sound/pci/emu10k1/emufx.c static int snd_emu10k1_icode_poke(struct snd_emu10k1 *emu, emu 951 sound/pci/emu10k1/emufx.c mutex_lock(&emu->fx8010.lock); emu 952 sound/pci/emu10k1/emufx.c err = snd_emu10k1_verify_controls(emu, icode, in_kernel); emu 955 sound/pci/emu10k1/emufx.c strlcpy(emu->fx8010.name, icode->name, sizeof(emu->fx8010.name)); emu 958 sound/pci/emu10k1/emufx.c if (emu->audigy) emu 959 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, A_DBG, 0, emu->fx8010.dbg | A_DBG_SINGLE_STEP); emu 961 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, DBG, 0, emu->fx8010.dbg | EMU10K1_DBG_SINGLE_STEP); emu 963 sound/pci/emu10k1/emufx.c err = snd_emu10k1_del_controls(emu, icode, in_kernel); emu 966 sound/pci/emu10k1/emufx.c err = snd_emu10k1_gpr_poke(emu, icode, in_kernel); emu 969 sound/pci/emu10k1/emufx.c err = snd_emu10k1_tram_poke(emu, icode, in_kernel); emu 972 sound/pci/emu10k1/emufx.c err = snd_emu10k1_code_poke(emu, icode, in_kernel); emu 975 sound/pci/emu10k1/emufx.c err = snd_emu10k1_add_controls(emu, icode, in_kernel); emu 979 sound/pci/emu10k1/emufx.c if (emu->audigy) emu 980 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, A_DBG, 0, emu->fx8010.dbg); emu 982 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, DBG, 0, emu->fx8010.dbg); emu 984 sound/pci/emu10k1/emufx.c mutex_unlock(&emu->fx8010.lock); emu 988 sound/pci/emu10k1/emufx.c static int snd_emu10k1_icode_peek(struct snd_emu10k1 *emu, emu 993 sound/pci/emu10k1/emufx.c mutex_lock(&emu->fx8010.lock); emu 994 sound/pci/emu10k1/emufx.c strlcpy(icode->name, emu->fx8010.name, sizeof(icode->name)); emu 996 sound/pci/emu10k1/emufx.c err = snd_emu10k1_gpr_peek(emu, icode); emu 998 sound/pci/emu10k1/emufx.c err = snd_emu10k1_tram_peek(emu, icode); emu 1000 sound/pci/emu10k1/emufx.c err = snd_emu10k1_code_peek(emu, icode); emu 1002 sound/pci/emu10k1/emufx.c err = snd_emu10k1_list_controls(emu, icode); emu 1003 sound/pci/emu10k1/emufx.c mutex_unlock(&emu->fx8010.lock); emu 1007 sound/pci/emu10k1/emufx.c static int snd_emu10k1_ipcm_poke(struct snd_emu10k1 *emu, emu 1020 sound/pci/emu10k1/emufx.c pcm = &emu->fx8010.pcm[ipcm->substream]; emu 1021 sound/pci/emu10k1/emufx.c mutex_lock(&emu->fx8010.lock); emu 1022 sound/pci/emu10k1/emufx.c spin_lock_irq(&emu->reg_lock); emu 1050 sound/pci/emu10k1/emufx.c spin_unlock_irq(&emu->reg_lock); emu 1051 sound/pci/emu10k1/emufx.c mutex_unlock(&emu->fx8010.lock); emu 1055 sound/pci/emu10k1/emufx.c static int snd_emu10k1_ipcm_peek(struct snd_emu10k1 *emu, emu 1066 sound/pci/emu10k1/emufx.c pcm = &emu->fx8010.pcm[ipcm->substream]; emu 1067 sound/pci/emu10k1/emufx.c mutex_lock(&emu->fx8010.lock); emu 1068 sound/pci/emu10k1/emufx.c spin_lock_irq(&emu->reg_lock); emu 1082 sound/pci/emu10k1/emufx.c spin_unlock_irq(&emu->reg_lock); emu 1083 sound/pci/emu10k1/emufx.c mutex_unlock(&emu->fx8010.lock); emu 1187 sound/pci/emu10k1/emufx.c static int _snd_emu10k1_audigy_init_efx(struct snd_emu10k1 *emu) emu 1238 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, A_DBG, 0, (emu->fx8010.dbg = 0) | A_DBG_SINGLE_STEP); emu 1258 sound/pci/emu10k1/emufx.c if (emu->card_capabilities->spk71) { emu 1309 sound/pci/emu10k1/emufx.c if (emu->card_capabilities->emu_model) { emu 1310 sound/pci/emu10k1/emufx.c if (emu->card_capabilities->ca0108_chip) { emu 1341 sound/pci/emu10k1/emufx.c emu->card_capabilities->ac97_chip ? "Audigy CD Playback Volume" : "CD Playback Volume", emu 1348 sound/pci/emu10k1/emufx.c emu->card_capabilities->ac97_chip ? "Audigy CD Capture Volume" : "CD Capture Volume", emu 1367 sound/pci/emu10k1/emufx.c emu->card_capabilities->ac97_chip ? "Line2 Playback Volume" : "Line Playback Volume", emu 1374 sound/pci/emu10k1/emufx.c emu->card_capabilities->ac97_chip ? "Line2 Capture Volume" : "Line Capture Volume", emu 1393 sound/pci/emu10k1/emufx.c emu->card_capabilities->ac97_chip ? "Aux2 Playback Volume" : "Aux Playback Volume", emu 1400 sound/pci/emu10k1/emufx.c emu->card_capabilities->ac97_chip ? "Aux2 Capture Volume" : "Aux Capture Volume", emu 1428 sound/pci/emu10k1/emufx.c if (emu->card_capabilities->spk71) { emu 1462 sound/pci/emu10k1/emufx.c if (emu->card_capabilities->spk71) { emu 1555 sound/pci/emu10k1/emufx.c if (emu->card_capabilities->spk71) emu 1563 sound/pci/emu10k1/emufx.c if (emu->card_capabilities->emu_model) { emu 1565 sound/pci/emu10k1/emufx.c dev_info(emu->card->dev, "EMU outputs on\n"); emu 1567 sound/pci/emu10k1/emufx.c if (emu->card_capabilities->ca0108_chip) { emu 1587 sound/pci/emu10k1/emufx.c if ((z==1) && (emu->card_capabilities->spdif_bug)) { emu 1589 sound/pci/emu10k1/emufx.c dev_info(emu->card->dev, emu 1591 sound/pci/emu10k1/emufx.c emu->card_capabilities->name); emu 1613 sound/pci/emu10k1/emufx.c if (emu->card_capabilities->emu_model) { emu 1614 sound/pci/emu10k1/emufx.c if (emu->card_capabilities->ca0108_chip) { emu 1615 sound/pci/emu10k1/emufx.c dev_info(emu->card->dev, "EMU2 inputs on\n"); emu 1623 sound/pci/emu10k1/emufx.c dev_info(emu->card->dev, "EMU inputs on\n"); emu 1760 sound/pci/emu10k1/emufx.c emu->support_tlv = 1; /* support TLV */ emu 1761 sound/pci/emu10k1/emufx.c err = snd_emu10k1_icode_poke(emu, icode, true); emu 1762 sound/pci/emu10k1/emufx.c emu->support_tlv = 0; /* clear again */ emu 1826 sound/pci/emu10k1/emufx.c static int _snd_emu10k1_init_efx(struct snd_emu10k1 *emu) emu 1880 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, DBG, 0, (emu->fx8010.dbg = 0) | EMU10K1_DBG_SINGLE_STEP); emu 2062 sound/pci/emu10k1/emufx.c if (emu->fx8010.extin_mask & ((1<<EXTIN_AC97_L)|(1<<EXTIN_AC97_R))) { emu 2073 sound/pci/emu10k1/emufx.c if (emu->fx8010.extin_mask & ((1<<EXTIN_SPDIF_CD_L)|(1<<EXTIN_SPDIF_CD_R))) { emu 2090 sound/pci/emu10k1/emufx.c if (emu->fx8010.extin_mask & ((1<<EXTIN_ZOOM_L)|(1<<EXTIN_ZOOM_R))) { emu 2107 sound/pci/emu10k1/emufx.c if (emu->fx8010.extin_mask & ((1<<EXTIN_TOSLINK_L)|(1<<EXTIN_TOSLINK_R))) { emu 2124 sound/pci/emu10k1/emufx.c if (emu->fx8010.extin_mask & ((1<<EXTIN_LINE1_L)|(1<<EXTIN_LINE1_R))) { emu 2141 sound/pci/emu10k1/emufx.c if (emu->fx8010.extin_mask & ((1<<EXTIN_COAX_SPDIF_L)|(1<<EXTIN_COAX_SPDIF_R))) { emu 2158 sound/pci/emu10k1/emufx.c if (emu->fx8010.extin_mask & ((1<<EXTIN_LINE2_L)|(1<<EXTIN_LINE2_R))) { emu 2263 sound/pci/emu10k1/emufx.c if (emu->fx8010.extout_mask & ((1<<EXTOUT_AC97_L)|(1<<EXTOUT_AC97_R))) { emu 2270 sound/pci/emu10k1/emufx.c if (emu->fx8010.extout_mask & ((1<<EXTOUT_TOSLINK_L)|(1<<EXTOUT_TOSLINK_R))) { emu 2287 sound/pci/emu10k1/emufx.c if (emu->fx8010.extout_mask & ((1<<EXTOUT_HEADPHONE_L)|(1<<EXTOUT_HEADPHONE_R))) { emu 2308 sound/pci/emu10k1/emufx.c if (emu->fx8010.extout_mask & ((1<<EXTOUT_REAR_L)|(1<<EXTOUT_REAR_R))) emu 2312 sound/pci/emu10k1/emufx.c if (emu->fx8010.extout_mask & ((1<<EXTOUT_AC97_REAR_L)|(1<<EXTOUT_AC97_REAR_R))) emu 2316 sound/pci/emu10k1/emufx.c if (emu->fx8010.extout_mask & (1<<EXTOUT_AC97_CENTER)) { emu 2326 sound/pci/emu10k1/emufx.c if (emu->fx8010.extout_mask & (1<<EXTOUT_AC97_LFE)) { emu 2341 sound/pci/emu10k1/emufx.c if (emu->fx8010.extout_mask & (1<<EXTOUT_MIC_CAP)) emu 2345 sound/pci/emu10k1/emufx.c if (emu->card_capabilities->sblive51) { emu 2382 sound/pci/emu10k1/emufx.c if ((err = snd_emu10k1_fx8010_tram_setup(emu, ipcm->buffer_size)) < 0) emu 2386 sound/pci/emu10k1/emufx.c emu->support_tlv = 1; /* support TLV */ emu 2387 sound/pci/emu10k1/emufx.c err = snd_emu10k1_icode_poke(emu, icode, true); emu 2388 sound/pci/emu10k1/emufx.c emu->support_tlv = 0; /* clear again */ emu 2390 sound/pci/emu10k1/emufx.c err = snd_emu10k1_ipcm_poke(emu, ipcm); emu 2402 sound/pci/emu10k1/emufx.c int snd_emu10k1_init_efx(struct snd_emu10k1 *emu) emu 2404 sound/pci/emu10k1/emufx.c spin_lock_init(&emu->fx8010.irq_lock); emu 2405 sound/pci/emu10k1/emufx.c INIT_LIST_HEAD(&emu->fx8010.gpr_ctl); emu 2406 sound/pci/emu10k1/emufx.c if (emu->audigy) emu 2407 sound/pci/emu10k1/emufx.c return _snd_emu10k1_audigy_init_efx(emu); emu 2409 sound/pci/emu10k1/emufx.c return _snd_emu10k1_init_efx(emu); emu 2412 sound/pci/emu10k1/emufx.c void snd_emu10k1_free_efx(struct snd_emu10k1 *emu) emu 2415 sound/pci/emu10k1/emufx.c if (emu->audigy) emu 2416 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, A_DBG, 0, emu->fx8010.dbg = A_DBG_SINGLE_STEP); emu 2418 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, DBG, 0, emu->fx8010.dbg = EMU10K1_DBG_SINGLE_STEP); emu 2422 sound/pci/emu10k1/emufx.c int snd_emu10k1_fx8010_tone_control_activate(struct snd_emu10k1 *emu, int output) emu 2426 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, emu->gpr_base + 0x94 + output, 0, 1); emu 2430 sound/pci/emu10k1/emufx.c int snd_emu10k1_fx8010_tone_control_deactivate(struct snd_emu10k1 *emu, int output) emu 2434 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, emu->gpr_base + 0x94 + output, 0, 0); emu 2439 sound/pci/emu10k1/emufx.c int snd_emu10k1_fx8010_tram_setup(struct snd_emu10k1 *emu, u32 size) emu 2453 sound/pci/emu10k1/emufx.c if ((emu->fx8010.etram_pages.bytes / 2) == size) emu 2455 sound/pci/emu10k1/emufx.c spin_lock_irq(&emu->emu_lock); emu 2456 sound/pci/emu10k1/emufx.c outl(HCFG_LOCKTANKCACHE_MASK | inl(emu->port + HCFG), emu->port + HCFG); emu 2457 sound/pci/emu10k1/emufx.c spin_unlock_irq(&emu->emu_lock); emu 2458 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, TCB, 0, 0); emu 2459 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, TCBS, 0, 0); emu 2460 sound/pci/emu10k1/emufx.c if (emu->fx8010.etram_pages.area != NULL) { emu 2461 sound/pci/emu10k1/emufx.c snd_dma_free_pages(&emu->fx8010.etram_pages); emu 2462 sound/pci/emu10k1/emufx.c emu->fx8010.etram_pages.area = NULL; emu 2463 sound/pci/emu10k1/emufx.c emu->fx8010.etram_pages.bytes = 0; emu 2467 sound/pci/emu10k1/emufx.c if (snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, snd_dma_pci_data(emu->pci), emu 2468 sound/pci/emu10k1/emufx.c size * 2, &emu->fx8010.etram_pages) < 0) emu 2470 sound/pci/emu10k1/emufx.c memset(emu->fx8010.etram_pages.area, 0, size * 2); emu 2471 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, TCB, 0, emu->fx8010.etram_pages.addr); emu 2472 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, TCBS, 0, size_reg); emu 2473 sound/pci/emu10k1/emufx.c spin_lock_irq(&emu->emu_lock); emu 2474 sound/pci/emu10k1/emufx.c outl(inl(emu->port + HCFG) & ~HCFG_LOCKTANKCACHE_MASK, emu->port + HCFG); emu 2475 sound/pci/emu10k1/emufx.c spin_unlock_irq(&emu->emu_lock); emu 2494 sound/pci/emu10k1/emufx.c static void snd_emu10k1_fx8010_info(struct snd_emu10k1 *emu, emu 2501 sound/pci/emu10k1/emufx.c info->internal_tram_size = emu->fx8010.itram_size; emu 2502 sound/pci/emu10k1/emufx.c info->external_tram_size = emu->fx8010.etram_pages.bytes / 2; emu 2504 sound/pci/emu10k1/emufx.c extin = emu->audigy ? audigy_ins : creative_ins; emu 2505 sound/pci/emu10k1/emufx.c extout = emu->audigy ? audigy_outs : creative_outs; emu 2506 sound/pci/emu10k1/emufx.c fxbus_mask = emu->fx8010.fxbus_mask; emu 2507 sound/pci/emu10k1/emufx.c extin_mask = emu->fx8010.extin_mask; emu 2508 sound/pci/emu10k1/emufx.c extout_mask = emu->fx8010.extout_mask; emu 2516 sound/pci/emu10k1/emufx.c info->gpr_controls = emu->fx8010.gpr_count; emu 2521 sound/pci/emu10k1/emufx.c struct snd_emu10k1 *emu = hw->private_data; emu 2531 sound/pci/emu10k1/emufx.c emu->support_tlv = 1; emu 2537 sound/pci/emu10k1/emufx.c snd_emu10k1_fx8010_info(emu, info); emu 2551 sound/pci/emu10k1/emufx.c res = snd_emu10k1_icode_poke(emu, icode, false); emu 2558 sound/pci/emu10k1/emufx.c res = snd_emu10k1_icode_peek(emu, icode); emu 2569 sound/pci/emu10k1/emufx.c res = snd_emu10k1_ipcm_poke(emu, ipcm); emu 2576 sound/pci/emu10k1/emufx.c res = snd_emu10k1_ipcm_peek(emu, ipcm); emu 2588 sound/pci/emu10k1/emufx.c mutex_lock(&emu->fx8010.lock); emu 2589 sound/pci/emu10k1/emufx.c res = snd_emu10k1_fx8010_tram_setup(emu, addr); emu 2590 sound/pci/emu10k1/emufx.c mutex_unlock(&emu->fx8010.lock); emu 2595 sound/pci/emu10k1/emufx.c if (emu->audigy) emu 2596 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, A_DBG, 0, emu->fx8010.dbg |= A_DBG_SINGLE_STEP); emu 2598 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, DBG, 0, emu->fx8010.dbg |= EMU10K1_DBG_SINGLE_STEP); emu 2603 sound/pci/emu10k1/emufx.c if (emu->audigy) emu 2604 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, A_DBG, 0, emu->fx8010.dbg = 0); emu 2606 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, DBG, 0, emu->fx8010.dbg = 0); emu 2611 sound/pci/emu10k1/emufx.c if (emu->audigy) emu 2612 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, A_DBG, 0, emu->fx8010.dbg | A_DBG_ZC); emu 2614 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, DBG, 0, emu->fx8010.dbg | EMU10K1_DBG_ZC); emu 2616 sound/pci/emu10k1/emufx.c if (emu->audigy) emu 2617 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, A_DBG, 0, emu->fx8010.dbg); emu 2619 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, DBG, 0, emu->fx8010.dbg); emu 2628 sound/pci/emu10k1/emufx.c if (emu->audigy) emu 2629 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, A_DBG, 0, emu->fx8010.dbg |= A_DBG_SINGLE_STEP | addr); emu 2631 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, DBG, 0, emu->fx8010.dbg |= EMU10K1_DBG_SINGLE_STEP | addr); emu 2633 sound/pci/emu10k1/emufx.c if (emu->audigy) emu 2634 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, A_DBG, 0, emu->fx8010.dbg |= A_DBG_SINGLE_STEP | A_DBG_STEP_ADDR | addr); emu 2636 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, DBG, 0, emu->fx8010.dbg |= EMU10K1_DBG_SINGLE_STEP | EMU10K1_DBG_STEP | addr); emu 2639 sound/pci/emu10k1/emufx.c if (emu->audigy) emu 2640 sound/pci/emu10k1/emufx.c addr = snd_emu10k1_ptr_read(emu, A_DBG, 0); emu 2642 sound/pci/emu10k1/emufx.c addr = snd_emu10k1_ptr_read(emu, DBG, 0); emu 2655 sound/pci/emu10k1/emufx.c int snd_emu10k1_fx8010_new(struct snd_emu10k1 *emu, int device) emu 2660 sound/pci/emu10k1/emufx.c if ((err = snd_hwdep_new(emu->card, "FX8010", device, &hw)) < 0) emu 2667 sound/pci/emu10k1/emufx.c hw->private_data = emu; emu 2672 sound/pci/emu10k1/emufx.c int snd_emu10k1_efx_alloc_pm_buffer(struct snd_emu10k1 *emu) emu 2676 sound/pci/emu10k1/emufx.c len = emu->audigy ? 0x200 : 0x100; emu 2677 sound/pci/emu10k1/emufx.c emu->saved_gpr = kmalloc_array(len, 4, GFP_KERNEL); emu 2678 sound/pci/emu10k1/emufx.c if (! emu->saved_gpr) emu 2680 sound/pci/emu10k1/emufx.c len = emu->audigy ? 0x100 : 0xa0; emu 2681 sound/pci/emu10k1/emufx.c emu->tram_val_saved = kmalloc_array(len, 4, GFP_KERNEL); emu 2682 sound/pci/emu10k1/emufx.c emu->tram_addr_saved = kmalloc_array(len, 4, GFP_KERNEL); emu 2683 sound/pci/emu10k1/emufx.c if (! emu->tram_val_saved || ! emu->tram_addr_saved) emu 2685 sound/pci/emu10k1/emufx.c len = emu->audigy ? 2 * 1024 : 2 * 512; emu 2686 sound/pci/emu10k1/emufx.c emu->saved_icode = vmalloc(array_size(len, 4)); emu 2687 sound/pci/emu10k1/emufx.c if (! emu->saved_icode) emu 2692 sound/pci/emu10k1/emufx.c void snd_emu10k1_efx_free_pm_buffer(struct snd_emu10k1 *emu) emu 2694 sound/pci/emu10k1/emufx.c kfree(emu->saved_gpr); emu 2695 sound/pci/emu10k1/emufx.c kfree(emu->tram_val_saved); emu 2696 sound/pci/emu10k1/emufx.c kfree(emu->tram_addr_saved); emu 2697 sound/pci/emu10k1/emufx.c vfree(emu->saved_icode); emu 2703 sound/pci/emu10k1/emufx.c void snd_emu10k1_efx_suspend(struct snd_emu10k1 *emu) emu 2707 sound/pci/emu10k1/emufx.c len = emu->audigy ? 0x200 : 0x100; emu 2709 sound/pci/emu10k1/emufx.c emu->saved_gpr[i] = snd_emu10k1_ptr_read(emu, emu->gpr_base + i, 0); emu 2711 sound/pci/emu10k1/emufx.c len = emu->audigy ? 0x100 : 0xa0; emu 2713 sound/pci/emu10k1/emufx.c emu->tram_val_saved[i] = snd_emu10k1_ptr_read(emu, TANKMEMDATAREGBASE + i, 0); emu 2714 sound/pci/emu10k1/emufx.c emu->tram_addr_saved[i] = snd_emu10k1_ptr_read(emu, TANKMEMADDRREGBASE + i, 0); emu 2715 sound/pci/emu10k1/emufx.c if (emu->audigy) { emu 2716 sound/pci/emu10k1/emufx.c emu->tram_addr_saved[i] >>= 12; emu 2717 sound/pci/emu10k1/emufx.c emu->tram_addr_saved[i] |= emu 2718 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_read(emu, A_TANKMEMCTLREGBASE + i, 0) << 20; emu 2722 sound/pci/emu10k1/emufx.c len = emu->audigy ? 2 * 1024 : 2 * 512; emu 2724 sound/pci/emu10k1/emufx.c emu->saved_icode[i] = snd_emu10k1_efx_read(emu, i); emu 2727 sound/pci/emu10k1/emufx.c void snd_emu10k1_efx_resume(struct snd_emu10k1 *emu) emu 2732 sound/pci/emu10k1/emufx.c if (emu->fx8010.etram_pages.bytes > 0) { emu 2734 sound/pci/emu10k1/emufx.c size = emu->fx8010.etram_pages.bytes / 2; emu 2740 sound/pci/emu10k1/emufx.c outl(HCFG_LOCKTANKCACHE_MASK | inl(emu->port + HCFG), emu->port + HCFG); emu 2741 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, TCB, 0, emu->fx8010.etram_pages.addr); emu 2742 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, TCBS, 0, size_reg); emu 2743 sound/pci/emu10k1/emufx.c outl(inl(emu->port + HCFG) & ~HCFG_LOCKTANKCACHE_MASK, emu->port + HCFG); emu 2746 sound/pci/emu10k1/emufx.c if (emu->audigy) emu 2747 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, A_DBG, 0, emu->fx8010.dbg | A_DBG_SINGLE_STEP); emu 2749 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, DBG, 0, emu->fx8010.dbg | EMU10K1_DBG_SINGLE_STEP); emu 2751 sound/pci/emu10k1/emufx.c len = emu->audigy ? 0x200 : 0x100; emu 2753 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, emu->gpr_base + i, 0, emu->saved_gpr[i]); emu 2755 sound/pci/emu10k1/emufx.c len = emu->audigy ? 0x100 : 0xa0; emu 2757 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, TANKMEMDATAREGBASE + i, 0, emu 2758 sound/pci/emu10k1/emufx.c emu->tram_val_saved[i]); emu 2759 sound/pci/emu10k1/emufx.c if (! emu->audigy) emu 2760 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, TANKMEMADDRREGBASE + i, 0, emu 2761 sound/pci/emu10k1/emufx.c emu->tram_addr_saved[i]); emu 2763 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, TANKMEMADDRREGBASE + i, 0, emu 2764 sound/pci/emu10k1/emufx.c emu->tram_addr_saved[i] << 12); emu 2765 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, TANKMEMADDRREGBASE + i, 0, emu 2766 sound/pci/emu10k1/emufx.c emu->tram_addr_saved[i] >> 20); emu 2770 sound/pci/emu10k1/emufx.c len = emu->audigy ? 2 * 1024 : 2 * 512; emu 2772 sound/pci/emu10k1/emufx.c snd_emu10k1_efx_write(emu, i, emu->saved_icode[i]); emu 2775 sound/pci/emu10k1/emufx.c if (emu->audigy) emu 2776 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, A_DBG, 0, emu->fx8010.dbg); emu 2778 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, DBG, 0, emu->fx8010.dbg); emu 42 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 49 sound/pci/emu10k1/emumixer.c spin_lock_irqsave(&emu->reg_lock, flags); emu 50 sound/pci/emu10k1/emumixer.c ucontrol->value.iec958.status[0] = (emu->spdif_bits[idx] >> 0) & 0xff; emu 51 sound/pci/emu10k1/emumixer.c ucontrol->value.iec958.status[1] = (emu->spdif_bits[idx] >> 8) & 0xff; emu 52 sound/pci/emu10k1/emumixer.c ucontrol->value.iec958.status[2] = (emu->spdif_bits[idx] >> 16) & 0xff; emu 53 sound/pci/emu10k1/emumixer.c ucontrol->value.iec958.status[3] = (emu->spdif_bits[idx] >> 24) & 0xff; emu 54 sound/pci/emu10k1/emumixer.c spin_unlock_irqrestore(&emu->reg_lock, flags); emu 381 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 383 sound/pci/emu10k1/emumixer.c if (emu->card_capabilities->emu_model == EMU_MODEL_EMU1616) emu 392 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 398 sound/pci/emu10k1/emumixer.c (emu->card_capabilities->emu_model == EMU_MODEL_EMU1616 && emu 401 sound/pci/emu10k1/emumixer.c ucontrol->value.enumerated.item[0] = emu->emu1010.output_source[channel]; emu 408 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 414 sound/pci/emu10k1/emumixer.c (emu->card_capabilities->emu_model == EMU_MODEL_EMU1616 && emu 420 sound/pci/emu10k1/emumixer.c (emu->card_capabilities->emu_model == EMU_MODEL_EMU1616 && emu 423 sound/pci/emu10k1/emumixer.c if (emu->emu1010.output_source[channel] == val) emu 425 sound/pci/emu10k1/emumixer.c emu->emu1010.output_source[channel] = val; emu 426 sound/pci/emu10k1/emumixer.c if (emu->card_capabilities->emu_model == EMU_MODEL_EMU1616) emu 427 sound/pci/emu10k1/emumixer.c snd_emu1010_fpga_link_dst_src_write(emu, emu 430 sound/pci/emu10k1/emumixer.c snd_emu1010_fpga_link_dst_src_write(emu, emu 438 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 445 sound/pci/emu10k1/emumixer.c ucontrol->value.enumerated.item[0] = emu->emu1010.input_source[channel]; emu 452 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 458 sound/pci/emu10k1/emumixer.c (emu->card_capabilities->emu_model == EMU_MODEL_EMU1616 && emu 465 sound/pci/emu10k1/emumixer.c if (emu->emu1010.input_source[channel] == val) emu 467 sound/pci/emu10k1/emumixer.c emu->emu1010.input_source[channel] = val; emu 468 sound/pci/emu10k1/emumixer.c if (emu->card_capabilities->emu_model == EMU_MODEL_EMU1616) emu 469 sound/pci/emu10k1/emumixer.c snd_emu1010_fpga_link_dst_src_write(emu, emu 472 sound/pci/emu10k1/emumixer.c snd_emu1010_fpga_link_dst_src_write(emu, emu 579 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 581 sound/pci/emu10k1/emumixer.c ucontrol->value.integer.value[0] = (emu->emu1010.adc_pads & mask) ? 1 : 0; emu 587 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 591 sound/pci/emu10k1/emumixer.c cache = emu->emu1010.adc_pads; emu 596 sound/pci/emu10k1/emumixer.c if (cache != emu->emu1010.adc_pads) { emu 597 sound/pci/emu10k1/emumixer.c snd_emu1010_fpga_write(emu, EMU_HANA_ADC_PADS, cache ); emu 598 sound/pci/emu10k1/emumixer.c emu->emu1010.adc_pads = cache; emu 627 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 629 sound/pci/emu10k1/emumixer.c ucontrol->value.integer.value[0] = (emu->emu1010.dac_pads & mask) ? 1 : 0; emu 635 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 639 sound/pci/emu10k1/emumixer.c cache = emu->emu1010.dac_pads; emu 644 sound/pci/emu10k1/emumixer.c if (cache != emu->emu1010.dac_pads) { emu 645 sound/pci/emu10k1/emumixer.c snd_emu1010_fpga_write(emu, EMU_HANA_DAC_PADS, cache ); emu 646 sound/pci/emu10k1/emumixer.c emu->emu1010.dac_pads = cache; emu 686 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 688 sound/pci/emu10k1/emumixer.c ucontrol->value.enumerated.item[0] = emu->emu1010.internal_clock; emu 695 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 703 sound/pci/emu10k1/emumixer.c change = (emu->emu1010.internal_clock != val); emu 705 sound/pci/emu10k1/emumixer.c emu->emu1010.internal_clock = val; emu 710 sound/pci/emu10k1/emumixer.c snd_emu1010_fpga_write(emu, EMU_HANA_UNMUTE, EMU_MUTE ); emu 712 sound/pci/emu10k1/emumixer.c snd_emu1010_fpga_write(emu, EMU_HANA_DEFCLOCK, EMU_HANA_DEFCLOCK_44_1K ); emu 714 sound/pci/emu10k1/emumixer.c snd_emu1010_fpga_write(emu, EMU_HANA_WCLOCK, emu 717 sound/pci/emu10k1/emumixer.c snd_emu1010_fpga_write(emu, EMU_HANA_DOCK_LEDS_2, emu 722 sound/pci/emu10k1/emumixer.c snd_emu1010_fpga_write(emu, EMU_HANA_UNMUTE, EMU_UNMUTE ); emu 727 sound/pci/emu10k1/emumixer.c snd_emu1010_fpga_write(emu, EMU_HANA_UNMUTE, EMU_MUTE ); emu 729 sound/pci/emu10k1/emumixer.c snd_emu1010_fpga_write(emu, EMU_HANA_DEFCLOCK, EMU_HANA_DEFCLOCK_48K ); emu 731 sound/pci/emu10k1/emumixer.c snd_emu1010_fpga_write(emu, EMU_HANA_WCLOCK, emu 734 sound/pci/emu10k1/emumixer.c snd_emu1010_fpga_write(emu, EMU_HANA_DOCK_LEDS_2, emu 739 sound/pci/emu10k1/emumixer.c snd_emu1010_fpga_write(emu, EMU_HANA_UNMUTE, EMU_UNMUTE ); emu 744 sound/pci/emu10k1/emumixer.c snd_emu1010_fpga_write(emu, EMU_HANA_UNMUTE, EMU_MUTE ); emu 746 sound/pci/emu10k1/emumixer.c snd_emu1010_fpga_write(emu, EMU_HANA_DEFCLOCK, EMU_HANA_DEFCLOCK_48K ); emu 748 sound/pci/emu10k1/emumixer.c snd_emu1010_fpga_write(emu, EMU_HANA_WCLOCK, emu 751 sound/pci/emu10k1/emumixer.c snd_emu1010_fpga_write(emu, EMU_HANA_DOCK_LEDS_2, emu 757 sound/pci/emu10k1/emumixer.c snd_emu1010_fpga_write(emu, EMU_HANA_UNMUTE, EMU_UNMUTE ); emu 763 sound/pci/emu10k1/emumixer.c snd_emu1010_fpga_write(emu, EMU_HANA_UNMUTE, EMU_MUTE ); emu 765 sound/pci/emu10k1/emumixer.c snd_emu1010_fpga_write(emu, EMU_HANA_DEFCLOCK, EMU_HANA_DEFCLOCK_48K ); emu 767 sound/pci/emu10k1/emumixer.c snd_emu1010_fpga_write(emu, EMU_HANA_WCLOCK, emu 770 sound/pci/emu10k1/emumixer.c snd_emu1010_fpga_write(emu, EMU_HANA_DOCK_LEDS_2, EMU_HANA_DOCK_LEDS_2_EXT | EMU_HANA_DOCK_LEDS_2_LOCK ); emu 775 sound/pci/emu10k1/emumixer.c snd_emu1010_fpga_write(emu, EMU_HANA_UNMUTE, EMU_UNMUTE ); emu 808 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 810 sound/pci/emu10k1/emumixer.c ucontrol->value.enumerated.item[0] = emu->emu1010.optical_out; emu 817 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 826 sound/pci/emu10k1/emumixer.c change = (emu->emu1010.optical_out != val); emu 828 sound/pci/emu10k1/emumixer.c emu->emu1010.optical_out = val; emu 829 sound/pci/emu10k1/emumixer.c tmp = (emu->emu1010.optical_in ? EMU_HANA_OPTICAL_IN_ADAT : 0) | emu 830 sound/pci/emu10k1/emumixer.c (emu->emu1010.optical_out ? EMU_HANA_OPTICAL_OUT_ADAT : 0); emu 831 sound/pci/emu10k1/emumixer.c snd_emu1010_fpga_write(emu, EMU_HANA_OPTICAL_TYPE, tmp); emu 859 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 861 sound/pci/emu10k1/emumixer.c ucontrol->value.enumerated.item[0] = emu->emu1010.optical_in; emu 868 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 877 sound/pci/emu10k1/emumixer.c change = (emu->emu1010.optical_in != val); emu 879 sound/pci/emu10k1/emumixer.c emu->emu1010.optical_in = val; emu 880 sound/pci/emu10k1/emumixer.c tmp = (emu->emu1010.optical_in ? EMU_HANA_OPTICAL_IN_ADAT : 0) | emu 881 sound/pci/emu10k1/emumixer.c (emu->emu1010.optical_out ? EMU_HANA_OPTICAL_OUT_ADAT : 0); emu 882 sound/pci/emu10k1/emumixer.c snd_emu1010_fpga_write(emu, EMU_HANA_OPTICAL_TYPE, tmp); emu 915 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 917 sound/pci/emu10k1/emumixer.c ucontrol->value.enumerated.item[0] = emu->i2c_capture_source; emu 924 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 940 sound/pci/emu10k1/emumixer.c change = (emu->i2c_capture_source != source_id); emu 942 sound/pci/emu10k1/emumixer.c snd_emu10k1_i2c_write(emu, ADC_MUX, 0); /* Mute input */ emu 943 sound/pci/emu10k1/emumixer.c spin_lock_irqsave(&emu->emu_lock, flags); emu 944 sound/pci/emu10k1/emumixer.c gpio = inl(emu->port + A_IOCFG); emu 946 sound/pci/emu10k1/emumixer.c outl(gpio | 0x4, emu->port + A_IOCFG); emu 948 sound/pci/emu10k1/emumixer.c outl(gpio & ~0x4, emu->port + A_IOCFG); emu 949 sound/pci/emu10k1/emumixer.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 951 sound/pci/emu10k1/emumixer.c ngain = emu->i2c_capture_volume[source_id][0]; /* Left */ emu 952 sound/pci/emu10k1/emumixer.c ogain = emu->i2c_capture_volume[emu->i2c_capture_source][0]; /* Left */ emu 954 sound/pci/emu10k1/emumixer.c snd_emu10k1_i2c_write(emu, ADC_ATTEN_ADCL, ((ngain) & 0xff)); emu 955 sound/pci/emu10k1/emumixer.c ngain = emu->i2c_capture_volume[source_id][1]; /* Right */ emu 956 sound/pci/emu10k1/emumixer.c ogain = emu->i2c_capture_volume[emu->i2c_capture_source][1]; /* Right */ emu 958 sound/pci/emu10k1/emumixer.c snd_emu10k1_i2c_write(emu, ADC_ATTEN_ADCR, ((ngain) & 0xff)); emu 961 sound/pci/emu10k1/emumixer.c snd_emu10k1_i2c_write(emu, ADC_MUX, source); /* Set source */ emu 962 sound/pci/emu10k1/emumixer.c emu->i2c_capture_source = source_id; emu 989 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 998 sound/pci/emu10k1/emumixer.c ucontrol->value.integer.value[0] = emu->i2c_capture_volume[source_id][0]; emu 999 sound/pci/emu10k1/emumixer.c ucontrol->value.integer.value[1] = emu->i2c_capture_volume[source_id][1]; emu 1006 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 1017 sound/pci/emu10k1/emumixer.c ogain = emu->i2c_capture_volume[source_id][0]; /* Left */ emu 1022 sound/pci/emu10k1/emumixer.c if (emu->i2c_capture_source == source_id) emu 1023 sound/pci/emu10k1/emumixer.c snd_emu10k1_i2c_write(emu, ADC_ATTEN_ADCL, ((ngain) & 0xff) ); emu 1024 sound/pci/emu10k1/emumixer.c emu->i2c_capture_volume[source_id][0] = ngain; emu 1027 sound/pci/emu10k1/emumixer.c ogain = emu->i2c_capture_volume[source_id][1]; /* Right */ emu 1032 sound/pci/emu10k1/emumixer.c if (emu->i2c_capture_source == source_id) emu 1033 sound/pci/emu10k1/emumixer.c snd_emu10k1_i2c_write(emu, ADC_ATTEN_ADCR, ((ngain) & 0xff)); emu 1034 sound/pci/emu10k1/emumixer.c emu->i2c_capture_volume[source_id][1] = ngain; emu 1070 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 1075 sound/pci/emu10k1/emumixer.c spin_lock_irqsave(&emu->reg_lock, flags); emu 1076 sound/pci/emu10k1/emumixer.c tmp = snd_emu10k1_ptr_read(emu, A_SPDIF_SAMPLERATE, 0); emu 1090 sound/pci/emu10k1/emumixer.c spin_unlock_irqrestore(&emu->reg_lock, flags); emu 1097 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 1118 sound/pci/emu10k1/emumixer.c spin_lock_irqsave(&emu->reg_lock, flags); emu 1119 sound/pci/emu10k1/emumixer.c reg = snd_emu10k1_ptr_read(emu, A_SPDIF_SAMPLERATE, 0); emu 1123 sound/pci/emu10k1/emumixer.c snd_emu10k1_ptr_write(emu, A_SPDIF_SAMPLERATE, 0, tmp); emu 1124 sound/pci/emu10k1/emumixer.c spin_unlock_irqrestore(&emu->reg_lock, flags); emu 1143 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 1156 sound/pci/emu10k1/emumixer.c spin_lock_irqsave(&emu->reg_lock, flags); emu 1157 sound/pci/emu10k1/emumixer.c change = val != emu->spdif_bits[idx]; emu 1159 sound/pci/emu10k1/emumixer.c snd_emu10k1_ptr_write(emu, SPCS0 + idx, 0, val); emu 1160 sound/pci/emu10k1/emumixer.c emu->spdif_bits[idx] = val; emu 1162 sound/pci/emu10k1/emumixer.c spin_unlock_irqrestore(&emu->reg_lock, flags); emu 1187 sound/pci/emu10k1/emumixer.c static void update_emu10k1_fxrt(struct snd_emu10k1 *emu, int voice, unsigned char *route) emu 1189 sound/pci/emu10k1/emumixer.c if (emu->audigy) { emu 1190 sound/pci/emu10k1/emumixer.c snd_emu10k1_ptr_write(emu, A_FXRT1, voice, emu 1192 sound/pci/emu10k1/emumixer.c snd_emu10k1_ptr_write(emu, A_FXRT2, voice, emu 1195 sound/pci/emu10k1/emumixer.c snd_emu10k1_ptr_write(emu, FXRT, voice, emu 1200 sound/pci/emu10k1/emumixer.c static void update_emu10k1_send_volume(struct snd_emu10k1 *emu, int voice, unsigned char *volume) emu 1202 sound/pci/emu10k1/emumixer.c snd_emu10k1_ptr_write(emu, PTRX_FXSENDAMOUNT_A, voice, volume[0]); emu 1203 sound/pci/emu10k1/emumixer.c snd_emu10k1_ptr_write(emu, PTRX_FXSENDAMOUNT_B, voice, volume[1]); emu 1204 sound/pci/emu10k1/emumixer.c snd_emu10k1_ptr_write(emu, PSST_FXSENDAMOUNT_C, voice, volume[2]); emu 1205 sound/pci/emu10k1/emumixer.c snd_emu10k1_ptr_write(emu, DSL_FXSENDAMOUNT_D, voice, volume[3]); emu 1206 sound/pci/emu10k1/emumixer.c if (emu->audigy) { emu 1211 sound/pci/emu10k1/emumixer.c snd_emu10k1_ptr_write(emu, A_SENDAMOUNTS, voice, val); emu 1219 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 1221 sound/pci/emu10k1/emumixer.c uinfo->count = emu->audigy ? 3*8 : 3*4; emu 1223 sound/pci/emu10k1/emumixer.c uinfo->value.integer.max = emu->audigy ? 0x3f : 0x0f; emu 1231 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 1233 sound/pci/emu10k1/emumixer.c &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; emu 1235 sound/pci/emu10k1/emumixer.c int num_efx = emu->audigy ? 8 : 4; emu 1236 sound/pci/emu10k1/emumixer.c int mask = emu->audigy ? 0x3f : 0x0f; emu 1238 sound/pci/emu10k1/emumixer.c spin_lock_irqsave(&emu->reg_lock, flags); emu 1243 sound/pci/emu10k1/emumixer.c spin_unlock_irqrestore(&emu->reg_lock, flags); emu 1251 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 1253 sound/pci/emu10k1/emumixer.c &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; emu 1255 sound/pci/emu10k1/emumixer.c int num_efx = emu->audigy ? 8 : 4; emu 1256 sound/pci/emu10k1/emumixer.c int mask = emu->audigy ? 0x3f : 0x0f; emu 1258 sound/pci/emu10k1/emumixer.c spin_lock_irqsave(&emu->reg_lock, flags); emu 1269 sound/pci/emu10k1/emumixer.c update_emu10k1_fxrt(emu, mix->epcm->voices[0]->number, emu 1271 sound/pci/emu10k1/emumixer.c update_emu10k1_fxrt(emu, mix->epcm->voices[1]->number, emu 1274 sound/pci/emu10k1/emumixer.c update_emu10k1_fxrt(emu, mix->epcm->voices[0]->number, emu 1278 sound/pci/emu10k1/emumixer.c spin_unlock_irqrestore(&emu->reg_lock, flags); emu 1295 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 1297 sound/pci/emu10k1/emumixer.c uinfo->count = emu->audigy ? 3*8 : 3*4; emu 1307 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 1309 sound/pci/emu10k1/emumixer.c &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; emu 1311 sound/pci/emu10k1/emumixer.c int num_efx = emu->audigy ? 8 : 4; emu 1313 sound/pci/emu10k1/emumixer.c spin_lock_irqsave(&emu->reg_lock, flags); emu 1316 sound/pci/emu10k1/emumixer.c spin_unlock_irqrestore(&emu->reg_lock, flags); emu 1324 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 1326 sound/pci/emu10k1/emumixer.c &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; emu 1328 sound/pci/emu10k1/emumixer.c int num_efx = emu->audigy ? 8 : 4; emu 1330 sound/pci/emu10k1/emumixer.c spin_lock_irqsave(&emu->reg_lock, flags); emu 1340 sound/pci/emu10k1/emumixer.c update_emu10k1_send_volume(emu, mix->epcm->voices[0]->number, emu 1342 sound/pci/emu10k1/emumixer.c update_emu10k1_send_volume(emu, mix->epcm->voices[1]->number, emu 1345 sound/pci/emu10k1/emumixer.c update_emu10k1_send_volume(emu, mix->epcm->voices[0]->number, emu 1349 sound/pci/emu10k1/emumixer.c spin_unlock_irqrestore(&emu->reg_lock, flags); emu 1376 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 1378 sound/pci/emu10k1/emumixer.c &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; emu 1382 sound/pci/emu10k1/emumixer.c spin_lock_irqsave(&emu->reg_lock, flags); emu 1385 sound/pci/emu10k1/emumixer.c spin_unlock_irqrestore(&emu->reg_lock, flags); emu 1393 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 1395 sound/pci/emu10k1/emumixer.c &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; emu 1398 sound/pci/emu10k1/emumixer.c spin_lock_irqsave(&emu->reg_lock, flags); emu 1408 sound/pci/emu10k1/emumixer.c snd_emu10k1_ptr_write(emu, VTFT_VOLUMETARGET, mix->epcm->voices[0]->number, mix->attn[1]); emu 1409 sound/pci/emu10k1/emumixer.c snd_emu10k1_ptr_write(emu, VTFT_VOLUMETARGET, mix->epcm->voices[1]->number, mix->attn[2]); emu 1411 sound/pci/emu10k1/emumixer.c snd_emu10k1_ptr_write(emu, VTFT_VOLUMETARGET, mix->epcm->voices[0]->number, mix->attn[0]); emu 1414 sound/pci/emu10k1/emumixer.c spin_unlock_irqrestore(&emu->reg_lock, flags); emu 1433 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 1435 sound/pci/emu10k1/emumixer.c uinfo->count = emu->audigy ? 8 : 4; emu 1437 sound/pci/emu10k1/emumixer.c uinfo->value.integer.max = emu->audigy ? 0x3f : 0x0f; emu 1445 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 1447 sound/pci/emu10k1/emumixer.c &emu->efx_pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; emu 1449 sound/pci/emu10k1/emumixer.c int num_efx = emu->audigy ? 8 : 4; emu 1450 sound/pci/emu10k1/emumixer.c int mask = emu->audigy ? 0x3f : 0x0f; emu 1452 sound/pci/emu10k1/emumixer.c spin_lock_irqsave(&emu->reg_lock, flags); emu 1456 sound/pci/emu10k1/emumixer.c spin_unlock_irqrestore(&emu->reg_lock, flags); emu 1464 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 1466 sound/pci/emu10k1/emumixer.c struct snd_emu10k1_pcm_mixer *mix = &emu->efx_pcm_mixer[ch]; emu 1468 sound/pci/emu10k1/emumixer.c int num_efx = emu->audigy ? 8 : 4; emu 1469 sound/pci/emu10k1/emumixer.c int mask = emu->audigy ? 0x3f : 0x0f; emu 1471 sound/pci/emu10k1/emumixer.c spin_lock_irqsave(&emu->reg_lock, flags); emu 1482 sound/pci/emu10k1/emumixer.c update_emu10k1_fxrt(emu, mix->epcm->voices[ch]->number, emu 1486 sound/pci/emu10k1/emumixer.c spin_unlock_irqrestore(&emu->reg_lock, flags); emu 1503 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 1505 sound/pci/emu10k1/emumixer.c uinfo->count = emu->audigy ? 8 : 4; emu 1515 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 1517 sound/pci/emu10k1/emumixer.c &emu->efx_pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; emu 1519 sound/pci/emu10k1/emumixer.c int num_efx = emu->audigy ? 8 : 4; emu 1521 sound/pci/emu10k1/emumixer.c spin_lock_irqsave(&emu->reg_lock, flags); emu 1524 sound/pci/emu10k1/emumixer.c spin_unlock_irqrestore(&emu->reg_lock, flags); emu 1532 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 1534 sound/pci/emu10k1/emumixer.c struct snd_emu10k1_pcm_mixer *mix = &emu->efx_pcm_mixer[ch]; emu 1536 sound/pci/emu10k1/emumixer.c int num_efx = emu->audigy ? 8 : 4; emu 1538 sound/pci/emu10k1/emumixer.c spin_lock_irqsave(&emu->reg_lock, flags); emu 1548 sound/pci/emu10k1/emumixer.c update_emu10k1_send_volume(emu, mix->epcm->voices[ch]->number, emu 1552 sound/pci/emu10k1/emumixer.c spin_unlock_irqrestore(&emu->reg_lock, flags); emu 1580 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 1582 sound/pci/emu10k1/emumixer.c &emu->efx_pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; emu 1585 sound/pci/emu10k1/emumixer.c spin_lock_irqsave(&emu->reg_lock, flags); emu 1587 sound/pci/emu10k1/emumixer.c spin_unlock_irqrestore(&emu->reg_lock, flags); emu 1595 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 1597 sound/pci/emu10k1/emumixer.c struct snd_emu10k1_pcm_mixer *mix = &emu->efx_pcm_mixer[ch]; emu 1600 sound/pci/emu10k1/emumixer.c spin_lock_irqsave(&emu->reg_lock, flags); emu 1608 sound/pci/emu10k1/emumixer.c snd_emu10k1_ptr_write(emu, VTFT_VOLUMETARGET, mix->epcm->voices[ch]->number, mix->attn[0]); emu 1611 sound/pci/emu10k1/emumixer.c spin_unlock_irqrestore(&emu->reg_lock, flags); emu 1631 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 1633 sound/pci/emu10k1/emumixer.c if (emu->audigy) emu 1634 sound/pci/emu10k1/emumixer.c ucontrol->value.integer.value[0] = inl(emu->port + A_IOCFG) & A_IOCFG_GPOUT0 ? 1 : 0; emu 1636 sound/pci/emu10k1/emumixer.c ucontrol->value.integer.value[0] = inl(emu->port + HCFG) & HCFG_GPOUT0 ? 1 : 0; emu 1637 sound/pci/emu10k1/emumixer.c if (emu->card_capabilities->invert_shared_spdif) emu 1648 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 1653 sound/pci/emu10k1/emumixer.c if (emu->card_capabilities->invert_shared_spdif) emu 1655 sound/pci/emu10k1/emumixer.c spin_lock_irqsave(&emu->reg_lock, flags); emu 1656 sound/pci/emu10k1/emumixer.c if ( emu->card_capabilities->i2c_adc) { emu 1658 sound/pci/emu10k1/emumixer.c } else if (emu->audigy) { emu 1659 sound/pci/emu10k1/emumixer.c reg = inl(emu->port + A_IOCFG); emu 1665 sound/pci/emu10k1/emumixer.c outl(reg | val, emu->port + A_IOCFG); emu 1668 sound/pci/emu10k1/emumixer.c reg = inl(emu->port + HCFG); emu 1674 sound/pci/emu10k1/emumixer.c outl(reg | val, emu->port + HCFG); emu 1676 sound/pci/emu10k1/emumixer.c spin_unlock_irqrestore(&emu->reg_lock, flags); emu 1705 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 1709 sound/pci/emu10k1/emumixer.c val = snd_ac97_read(emu->ac97, AC97_REC_GAIN); emu 1717 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 1724 sound/pci/emu10k1/emumixer.c return snd_ac97_update(emu->ac97, AC97_REC_GAIN, val); emu 1741 sound/pci/emu10k1/emumixer.c struct snd_emu10k1 *emu = ac97->private_data; emu 1742 sound/pci/emu10k1/emumixer.c emu->ac97 = NULL; emu 1775 sound/pci/emu10k1/emumixer.c int snd_emu10k1_mixer(struct snd_emu10k1 *emu, emu 1780 sound/pci/emu10k1/emumixer.c struct snd_card *card = emu->card; emu 1898 sound/pci/emu10k1/emumixer.c if (emu->card_capabilities->ac97_chip) { emu 1906 sound/pci/emu10k1/emumixer.c if ((err = snd_ac97_bus(emu->card, 0, &ops, NULL, &pbus)) < 0) emu 1911 sound/pci/emu10k1/emumixer.c ac97.private_data = emu; emu 1914 sound/pci/emu10k1/emumixer.c if ((err = snd_ac97_mixer(pbus, &ac97, &emu->ac97)) < 0) { emu 1915 sound/pci/emu10k1/emumixer.c if (emu->card_capabilities->ac97_chip == 1) emu 1917 sound/pci/emu10k1/emumixer.c dev_info(emu->card->dev, emu 1919 sound/pci/emu10k1/emumixer.c dev_info(emu->card->dev, emu 1921 sound/pci/emu10k1/emumixer.c snd_device_free(emu->card, pbus); emu 1924 sound/pci/emu10k1/emumixer.c if (emu->audigy) { emu 1926 sound/pci/emu10k1/emumixer.c snd_ac97_write_cache(emu->ac97, AC97_MASTER, 0x0000); emu 1928 sound/pci/emu10k1/emumixer.c snd_ac97_write_cache(emu->ac97, AC97_REC_SEL, 0x0000); emu 1930 sound/pci/emu10k1/emumixer.c snd_ac97_update_bits(emu->ac97, AC97_GENERAL_PURPOSE, emu 1932 sound/pci/emu10k1/emumixer.c if (emu->card_capabilities->adc_1361t) emu 1942 sound/pci/emu10k1/emumixer.c if (emu->ac97->id == AC97_ID_STAC9758) { emu 1943 sound/pci/emu10k1/emumixer.c emu->rear_ac97 = 1; emu 1944 sound/pci/emu10k1/emumixer.c snd_emu10k1_ptr_write(emu, AC97SLOT, 0, AC97SLOT_CNTR|AC97SLOT_LFE|AC97SLOT_REAR_LEFT|AC97SLOT_REAR_RIGHT); emu 1945 sound/pci/emu10k1/emumixer.c snd_ac97_write_cache(emu->ac97, AC97_HEADPHONE, 0x0202); emu 1950 sound/pci/emu10k1/emumixer.c snd_ac97_write_cache(emu->ac97, AC97_SURROUND_MASTER, 0x0202); emu 1951 sound/pci/emu10k1/emumixer.c snd_ac97_write_cache(emu->ac97, AC97_CENTER_LFE_MASTER, 0x0202); emu 1956 sound/pci/emu10k1/emumixer.c } else if (emu->card_capabilities->i2c_adc) { emu 1962 sound/pci/emu10k1/emumixer.c if (emu->card_capabilities->ecard) emu 1963 sound/pci/emu10k1/emumixer.c strcpy(emu->card->mixername, "EMU APS"); emu 1964 sound/pci/emu10k1/emumixer.c else if (emu->audigy) emu 1965 sound/pci/emu10k1/emumixer.c strcpy(emu->card->mixername, "SB Audigy"); emu 1967 sound/pci/emu10k1/emumixer.c strcpy(emu->card->mixername, "Emu10k1"); emu 1970 sound/pci/emu10k1/emumixer.c if (emu->audigy) emu 1971 sound/pci/emu10k1/emumixer.c if (emu->card_capabilities->adc_1361t) emu 1973 sound/pci/emu10k1/emumixer.c else if (emu->card_capabilities->i2c_adc) emu 1982 sound/pci/emu10k1/emumixer.c if (emu->card_capabilities->subsystem == 0x80401102) { /* SB Live! Platinum CT4760P */ emu 1988 sound/pci/emu10k1/emumixer.c if (emu->card_capabilities->subsystem == 0x20071102) { /* Audigy 4 Pro */ emu 1994 sound/pci/emu10k1/emumixer.c if ((kctl = emu->ctl_send_routing = snd_ctl_new1(&snd_emu10k1_send_routing_control, emu)) == NULL) emu 1999 sound/pci/emu10k1/emumixer.c if ((kctl = emu->ctl_send_volume = snd_ctl_new1(&snd_emu10k1_send_volume_control, emu)) == NULL) emu 2004 sound/pci/emu10k1/emumixer.c if ((kctl = emu->ctl_attn = snd_ctl_new1(&snd_emu10k1_attn_control, emu)) == NULL) emu 2010 sound/pci/emu10k1/emumixer.c if ((kctl = emu->ctl_efx_send_routing = snd_ctl_new1(&snd_emu10k1_efx_send_routing_control, emu)) == NULL) emu 2016 sound/pci/emu10k1/emumixer.c if ((kctl = emu->ctl_efx_send_volume = snd_ctl_new1(&snd_emu10k1_efx_send_volume_control, emu)) == NULL) emu 2022 sound/pci/emu10k1/emumixer.c if ((kctl = emu->ctl_efx_attn = snd_ctl_new1(&snd_emu10k1_efx_attn_control, emu)) == NULL) emu 2033 sound/pci/emu10k1/emumixer.c mix = &emu->pcm_mixer[pcm]; emu 2053 sound/pci/emu10k1/emumixer.c mix = &emu->efx_pcm_mixer[pcm]; emu 2060 sound/pci/emu10k1/emumixer.c if (emu->audigy) emu 2070 sound/pci/emu10k1/emumixer.c if (! emu->card_capabilities->ecard) { /* FIXME: APS has these controls? */ emu 2072 sound/pci/emu10k1/emumixer.c if ((kctl = snd_ctl_new1(&snd_emu10k1_spdif_mask_control, emu)) == NULL) emu 2074 sound/pci/emu10k1/emumixer.c if (!emu->audigy) emu 2075 sound/pci/emu10k1/emumixer.c kctl->id.device = emu->pcm_efx->device; emu 2078 sound/pci/emu10k1/emumixer.c if ((kctl = snd_ctl_new1(&snd_emu10k1_spdif_control, emu)) == NULL) emu 2080 sound/pci/emu10k1/emumixer.c if (!emu->audigy) emu 2081 sound/pci/emu10k1/emumixer.c kctl->id.device = emu->pcm_efx->device; emu 2086 sound/pci/emu10k1/emumixer.c if (emu->card_capabilities->emu_model) { emu 2088 sound/pci/emu10k1/emumixer.c } else if (emu->audigy) { emu 2089 sound/pci/emu10k1/emumixer.c if ((kctl = snd_ctl_new1(&snd_audigy_shared_spdif, emu)) == NULL) emu 2094 sound/pci/emu10k1/emumixer.c if ((kctl = snd_ctl_new1(&snd_audigy_spdif_output_rate, emu)) == NULL) emu 2099 sound/pci/emu10k1/emumixer.c } else if (! emu->card_capabilities->ecard) { emu 2101 sound/pci/emu10k1/emumixer.c if ((kctl = snd_ctl_new1(&snd_emu10k1_shared_spdif, emu)) == NULL) emu 2106 sound/pci/emu10k1/emumixer.c if (emu->card_capabilities->ca0151_chip) { /* P16V */ emu 2107 sound/pci/emu10k1/emumixer.c if ((err = snd_p16v_mixer(emu))) emu 2111 sound/pci/emu10k1/emumixer.c if (emu->card_capabilities->emu_model == EMU_MODEL_EMU1616) { emu 2118 sound/pci/emu10k1/emumixer.c emu)); emu 2125 sound/pci/emu10k1/emumixer.c emu)); emu 2131 sound/pci/emu10k1/emumixer.c snd_ctl_new1(&snd_emu1010_adc_pads[i], emu)); emu 2137 sound/pci/emu10k1/emumixer.c snd_ctl_new1(&snd_emu1010_dac_pads[i], emu)); emu 2142 sound/pci/emu10k1/emumixer.c snd_ctl_new1(&snd_emu1010_internal_clock, emu)); emu 2146 sound/pci/emu10k1/emumixer.c snd_ctl_new1(&snd_emu1010_optical_out, emu)); emu 2150 sound/pci/emu10k1/emumixer.c snd_ctl_new1(&snd_emu1010_optical_in, emu)); emu 2154 sound/pci/emu10k1/emumixer.c } else if (emu->card_capabilities->emu_model) { emu 2161 sound/pci/emu10k1/emumixer.c emu)); emu 2168 sound/pci/emu10k1/emumixer.c emu)); emu 2174 sound/pci/emu10k1/emumixer.c snd_ctl_new1(&snd_emu1010_adc_pads[i], emu)); emu 2180 sound/pci/emu10k1/emumixer.c snd_ctl_new1(&snd_emu1010_dac_pads[i], emu)); emu 2185 sound/pci/emu10k1/emumixer.c snd_ctl_new1(&snd_emu1010_internal_clock, emu)); emu 2189 sound/pci/emu10k1/emumixer.c snd_ctl_new1(&snd_emu1010_optical_out, emu)); emu 2193 sound/pci/emu10k1/emumixer.c snd_ctl_new1(&snd_emu1010_optical_in, emu)); emu 2198 sound/pci/emu10k1/emumixer.c if ( emu->card_capabilities->i2c_adc) { emu 2201 sound/pci/emu10k1/emumixer.c err = snd_ctl_add(card, snd_ctl_new1(&snd_audigy_i2c_capture_source, emu)); emu 2206 sound/pci/emu10k1/emumixer.c err = snd_ctl_add(card, snd_ctl_new1(&snd_audigy_i2c_volume_ctls[i], emu)); emu 2212 sound/pci/emu10k1/emumixer.c if (emu->card_capabilities->ac97_chip && emu->audigy) { emu 2214 sound/pci/emu10k1/emumixer.c emu)); emu 15 sound/pci/emu10k1/emumpu401.c static inline unsigned char mpu401_read(struct snd_emu10k1 *emu, emu 18 sound/pci/emu10k1/emumpu401.c if (emu->audigy) emu 19 sound/pci/emu10k1/emumpu401.c return (unsigned char)snd_emu10k1_ptr_read(emu, mpu->port + idx, 0); emu 21 sound/pci/emu10k1/emumpu401.c return inb(emu->port + mpu->port + idx); emu 24 sound/pci/emu10k1/emumpu401.c static inline void mpu401_write(struct snd_emu10k1 *emu, emu 27 sound/pci/emu10k1/emumpu401.c if (emu->audigy) emu 28 sound/pci/emu10k1/emumpu401.c snd_emu10k1_ptr_write(emu, mpu->port + idx, 0, data); emu 30 sound/pci/emu10k1/emumpu401.c outb(data, emu->port + mpu->port + idx); emu 33 sound/pci/emu10k1/emumpu401.c #define mpu401_write_data(emu, mpu, data) mpu401_write(emu, mpu, data, 0) emu 34 sound/pci/emu10k1/emumpu401.c #define mpu401_write_cmd(emu, mpu, data) mpu401_write(emu, mpu, data, 1) emu 35 sound/pci/emu10k1/emumpu401.c #define mpu401_read_data(emu, mpu) mpu401_read(emu, mpu, 0) emu 36 sound/pci/emu10k1/emumpu401.c #define mpu401_read_stat(emu, mpu) mpu401_read(emu, mpu, 1) emu 38 sound/pci/emu10k1/emumpu401.c #define mpu401_input_avail(emu,mpu) (!(mpu401_read_stat(emu,mpu) & 0x80)) emu 39 sound/pci/emu10k1/emumpu401.c #define mpu401_output_ready(emu,mpu) (!(mpu401_read_stat(emu,mpu) & 0x40)) emu 45 sound/pci/emu10k1/emumpu401.c static void mpu401_clear_rx(struct snd_emu10k1 *emu, struct snd_emu10k1_midi *mpu) emu 48 sound/pci/emu10k1/emumpu401.c for (; timeout > 0 && mpu401_input_avail(emu, mpu); timeout--) emu 49 sound/pci/emu10k1/emumpu401.c mpu401_read_data(emu, mpu); emu 52 sound/pci/emu10k1/emumpu401.c dev_err(emu->card->dev, emu 54 sound/pci/emu10k1/emumpu401.c mpu401_read_stat(emu, mpu)); emu 62 sound/pci/emu10k1/emumpu401.c static void do_emu10k1_midi_interrupt(struct snd_emu10k1 *emu, struct snd_emu10k1_midi *midi, unsigned int status) emu 67 sound/pci/emu10k1/emumpu401.c snd_emu10k1_intr_disable(emu, midi->tx_enable | midi->rx_enable); emu 72 sound/pci/emu10k1/emumpu401.c if ((status & midi->ipr_rx) && mpu401_input_avail(emu, midi)) { emu 74 sound/pci/emu10k1/emumpu401.c mpu401_clear_rx(emu, midi); emu 76 sound/pci/emu10k1/emumpu401.c byte = mpu401_read_data(emu, midi); emu 84 sound/pci/emu10k1/emumpu401.c if ((status & midi->ipr_tx) && mpu401_output_ready(emu, midi)) { emu 87 sound/pci/emu10k1/emumpu401.c mpu401_write_data(emu, midi, byte); emu 89 sound/pci/emu10k1/emumpu401.c snd_emu10k1_intr_disable(emu, midi->tx_enable); emu 95 sound/pci/emu10k1/emumpu401.c static void snd_emu10k1_midi_interrupt(struct snd_emu10k1 *emu, unsigned int status) emu 97 sound/pci/emu10k1/emumpu401.c do_emu10k1_midi_interrupt(emu, &emu->midi, status); emu 100 sound/pci/emu10k1/emumpu401.c static void snd_emu10k1_midi_interrupt2(struct snd_emu10k1 *emu, unsigned int status) emu 102 sound/pci/emu10k1/emumpu401.c do_emu10k1_midi_interrupt(emu, &emu->midi2, status); emu 105 sound/pci/emu10k1/emumpu401.c static int snd_emu10k1_midi_cmd(struct snd_emu10k1 * emu, struct snd_emu10k1_midi *midi, unsigned char cmd, int ack) emu 111 sound/pci/emu10k1/emumpu401.c mpu401_write_data(emu, midi, 0x00); emu 114 sound/pci/emu10k1/emumpu401.c mpu401_write_cmd(emu, midi, cmd); emu 119 sound/pci/emu10k1/emumpu401.c if (mpu401_input_avail(emu, midi)) { emu 120 sound/pci/emu10k1/emumpu401.c if (mpu401_read_data(emu, midi) == MPU401_ACK) emu 124 sound/pci/emu10k1/emumpu401.c if (!ok && mpu401_read_data(emu, midi) == MPU401_ACK) emu 131 sound/pci/emu10k1/emumpu401.c dev_err(emu->card->dev, emu 133 sound/pci/emu10k1/emumpu401.c cmd, emu->port, emu 134 sound/pci/emu10k1/emumpu401.c mpu401_read_stat(emu, midi), emu 135 sound/pci/emu10k1/emumpu401.c mpu401_read_data(emu, midi)); emu 143 sound/pci/emu10k1/emumpu401.c struct snd_emu10k1 *emu; emu 147 sound/pci/emu10k1/emumpu401.c emu = midi->emu; emu 148 sound/pci/emu10k1/emumpu401.c if (snd_BUG_ON(!emu)) emu 155 sound/pci/emu10k1/emumpu401.c if (snd_emu10k1_midi_cmd(emu, midi, MPU401_RESET, 1)) emu 157 sound/pci/emu10k1/emumpu401.c if (snd_emu10k1_midi_cmd(emu, midi, MPU401_ENTER_UART, 1)) emu 170 sound/pci/emu10k1/emumpu401.c struct snd_emu10k1 *emu; emu 174 sound/pci/emu10k1/emumpu401.c emu = midi->emu; emu 175 sound/pci/emu10k1/emumpu401.c if (snd_BUG_ON(!emu)) emu 182 sound/pci/emu10k1/emumpu401.c if (snd_emu10k1_midi_cmd(emu, midi, MPU401_RESET, 1)) emu 184 sound/pci/emu10k1/emumpu401.c if (snd_emu10k1_midi_cmd(emu, midi, MPU401_ENTER_UART, 1)) emu 197 sound/pci/emu10k1/emumpu401.c struct snd_emu10k1 *emu; emu 202 sound/pci/emu10k1/emumpu401.c emu = midi->emu; emu 203 sound/pci/emu10k1/emumpu401.c if (snd_BUG_ON(!emu)) emu 206 sound/pci/emu10k1/emumpu401.c snd_emu10k1_intr_disable(emu, midi->rx_enable); emu 211 sound/pci/emu10k1/emumpu401.c err = snd_emu10k1_midi_cmd(emu, midi, MPU401_RESET, 0); emu 220 sound/pci/emu10k1/emumpu401.c struct snd_emu10k1 *emu; emu 225 sound/pci/emu10k1/emumpu401.c emu = midi->emu; emu 226 sound/pci/emu10k1/emumpu401.c if (snd_BUG_ON(!emu)) emu 229 sound/pci/emu10k1/emumpu401.c snd_emu10k1_intr_disable(emu, midi->tx_enable); emu 234 sound/pci/emu10k1/emumpu401.c err = snd_emu10k1_midi_cmd(emu, midi, MPU401_RESET, 0); emu 243 sound/pci/emu10k1/emumpu401.c struct snd_emu10k1 *emu; emu 245 sound/pci/emu10k1/emumpu401.c emu = midi->emu; emu 246 sound/pci/emu10k1/emumpu401.c if (snd_BUG_ON(!emu)) emu 250 sound/pci/emu10k1/emumpu401.c snd_emu10k1_intr_enable(emu, midi->rx_enable); emu 252 sound/pci/emu10k1/emumpu401.c snd_emu10k1_intr_disable(emu, midi->rx_enable); emu 257 sound/pci/emu10k1/emumpu401.c struct snd_emu10k1 *emu; emu 261 sound/pci/emu10k1/emumpu401.c emu = midi->emu; emu 262 sound/pci/emu10k1/emumpu401.c if (snd_BUG_ON(!emu)) emu 272 sound/pci/emu10k1/emumpu401.c if (mpu401_output_ready(emu, midi)) { emu 279 sound/pci/emu10k1/emumpu401.c mpu401_write_data(emu, midi, byte); emu 286 sound/pci/emu10k1/emumpu401.c snd_emu10k1_intr_enable(emu, midi->tx_enable); emu 288 sound/pci/emu10k1/emumpu401.c snd_emu10k1_intr_disable(emu, midi->tx_enable); emu 317 sound/pci/emu10k1/emumpu401.c static int emu10k1_midi_init(struct snd_emu10k1 *emu, struct snd_emu10k1_midi *midi, int device, char *name) emu 322 sound/pci/emu10k1/emumpu401.c if ((err = snd_rawmidi_new(emu->card, name, device, 1, 1, &rmidi)) < 0) emu 324 sound/pci/emu10k1/emumpu401.c midi->emu = emu; emu 340 sound/pci/emu10k1/emumpu401.c int snd_emu10k1_midi(struct snd_emu10k1 *emu) emu 342 sound/pci/emu10k1/emumpu401.c struct snd_emu10k1_midi *midi = &emu->midi; emu 345 sound/pci/emu10k1/emumpu401.c if ((err = emu10k1_midi_init(emu, midi, 0, "EMU10K1 MPU-401 (UART)")) < 0) emu 357 sound/pci/emu10k1/emumpu401.c int snd_emu10k1_audigy_midi(struct snd_emu10k1 *emu) emu 362 sound/pci/emu10k1/emumpu401.c midi = &emu->midi; emu 363 sound/pci/emu10k1/emumpu401.c if ((err = emu10k1_midi_init(emu, midi, 0, "Audigy MPU-401 (UART)")) < 0) emu 373 sound/pci/emu10k1/emumpu401.c midi = &emu->midi2; emu 374 sound/pci/emu10k1/emumpu401.c if ((err = emu10k1_midi_init(emu, midi, 1, "Audigy MPU-401 #2")) < 0) emu 23 sound/pci/emu10k1/emupcm.c static void snd_emu10k1_pcm_interrupt(struct snd_emu10k1 *emu, emu 33 sound/pci/emu10k1/emupcm.c dev_dbg(emu->card->dev, emu 35 sound/pci/emu10k1/emupcm.c epcm->substream->runtime->hw->pointer(emu, epcm->substream), emu 42 sound/pci/emu10k1/emupcm.c static void snd_emu10k1_pcm_ac97adc_interrupt(struct snd_emu10k1 *emu, emu 47 sound/pci/emu10k1/emupcm.c if (emu->pcm_capture_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) emu 51 sound/pci/emu10k1/emupcm.c snd_pcm_period_elapsed(emu->pcm_capture_substream); emu 54 sound/pci/emu10k1/emupcm.c static void snd_emu10k1_pcm_ac97mic_interrupt(struct snd_emu10k1 *emu, emu 59 sound/pci/emu10k1/emupcm.c if (emu->pcm_capture_mic_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) emu 63 sound/pci/emu10k1/emupcm.c snd_pcm_period_elapsed(emu->pcm_capture_mic_substream); emu 66 sound/pci/emu10k1/emupcm.c static void snd_emu10k1_pcm_efx_interrupt(struct snd_emu10k1 *emu, emu 71 sound/pci/emu10k1/emupcm.c if (emu->pcm_capture_efx_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) emu 75 sound/pci/emu10k1/emupcm.c snd_pcm_period_elapsed(emu->pcm_capture_efx_substream); emu 80 sound/pci/emu10k1/emupcm.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 87 sound/pci/emu10k1/emupcm.c ptr = snd_emu10k1_ptr_read(emu, CCCA, epcm->voices[0]->number) & 0x00ffffff; emu 100 sound/pci/emu10k1/emupcm.c snd_emu10k1_voice_free(epcm->emu, epcm->voices[1]); emu 112 sound/pci/emu10k1/emupcm.c snd_emu10k1_voice_free(epcm->emu, epcm->voices[i]); emu 116 sound/pci/emu10k1/emupcm.c err = snd_emu10k1_voice_alloc(epcm->emu, emu 126 sound/pci/emu10k1/emupcm.c epcm->voices[i] = &epcm->emu->voices[epcm->voices[0]->number + i]; emu 131 sound/pci/emu10k1/emupcm.c err = snd_emu10k1_voice_alloc(epcm->emu, emu 142 sound/pci/emu10k1/emupcm.c snd_emu10k1_voice_free(epcm->emu, epcm->voices[i]); emu 268 sound/pci/emu10k1/emupcm.c static void snd_emu10k1_pcm_init_voice(struct snd_emu10k1 *emu, emu 298 sound/pci/emu10k1/emupcm.c spin_lock_irqsave(&emu->reg_lock, flags); emu 321 sound/pci/emu10k1/emupcm.c end_addr += ccis + emu->delay_pcm_irq; emu 324 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, CPF, voice, CPF_STEREO_MASK); emu 325 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, CPF, (voice + 1), CPF_STEREO_MASK); emu 327 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, CPF, voice, 0); emu 332 sound/pci/emu10k1/emupcm.c if (emu->audigy) { emu 333 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, A_FXRT1, voice, emu 335 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, A_FXRT2, voice, emu 337 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, A_SENDAMOUNTS, voice, emu 343 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, FXRT, voice, emu 347 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, PTRX, voice, (send_amount[0] << 8) | send_amount[1]); emu 348 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, DSL, voice, end_addr | (send_amount[3] << 24)); emu 349 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, PSST, voice, emu 350 sound/pci/emu10k1/emupcm.c (start_addr + (extra ? emu->delay_pcm_irq : 0)) | emu 352 sound/pci/emu10k1/emupcm.c if (emu->card_capabilities->emu_model) emu 357 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, CCCA, voice, start_addr | emu 361 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, CCCA, voice, (start_addr + ccis) | emu 365 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, Z1, voice, 0); emu 366 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, Z2, voice, 0); emu 368 sound/pci/emu10k1/emupcm.c silent_page = ((unsigned int)emu->silent_page.addr << emu->address_mode) | (emu->address_mode ? MAP_PTI_MASK1 : MAP_PTI_MASK0); emu 369 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, MAPA, voice, silent_page); emu 370 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, MAPB, voice, silent_page); emu 372 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, CVCF, voice, 0xffff); emu 373 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, VTFT, voice, 0xffff); emu 374 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, ATKHLDM, voice, 0); emu 375 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, DCYSUSM, voice, 0x007f); emu 376 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, LFOVAL1, voice, 0x8000); emu 377 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, LFOVAL2, voice, 0x8000); emu 378 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, FMMOD, voice, 0); emu 379 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, TREMFRQ, voice, 0); emu 380 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, FM2FRQ2, voice, 0); emu 381 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, ENVVAL, voice, 0x8000); emu 383 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, ATKHLDV, voice, 0x7f7f); emu 384 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, ENVVOL, voice, 0x0000); emu 386 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, PEFE_FILTERAMOUNT, voice, 0x7f); emu 388 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, PEFE_PITCHAMOUNT, voice, 0); emu 390 sound/pci/emu10k1/emupcm.c spin_unlock_irqrestore(&emu->reg_lock, flags); emu 396 sound/pci/emu10k1/emupcm.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 406 sound/pci/emu10k1/emupcm.c if (emu->iommu_workaround) emu 411 sound/pci/emu10k1/emupcm.c if (emu->iommu_workaround && runtime->dma_bytes >= EMUPAGESIZE) emu 416 sound/pci/emu10k1/emupcm.c snd_emu10k1_free_pages(emu, epcm->memblk); emu 417 sound/pci/emu10k1/emupcm.c epcm->memblk = snd_emu10k1_alloc_pages(emu, substream); emu 431 sound/pci/emu10k1/emupcm.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 439 sound/pci/emu10k1/emupcm.c snd_emu10k1_voice_free(epcm->emu, epcm->extra); emu 443 sound/pci/emu10k1/emupcm.c snd_emu10k1_voice_free(epcm->emu, epcm->voices[1]); emu 447 sound/pci/emu10k1/emupcm.c snd_emu10k1_voice_free(epcm->emu, epcm->voices[0]); emu 451 sound/pci/emu10k1/emupcm.c snd_emu10k1_free_pages(emu, epcm->memblk); emu 461 sound/pci/emu10k1/emupcm.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 470 sound/pci/emu10k1/emupcm.c snd_emu10k1_voice_free(epcm->emu, epcm->extra); emu 475 sound/pci/emu10k1/emupcm.c snd_emu10k1_voice_free(epcm->emu, epcm->voices[i]); emu 480 sound/pci/emu10k1/emupcm.c snd_emu10k1_free_pages(emu, epcm->memblk); emu 490 sound/pci/emu10k1/emupcm.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 502 sound/pci/emu10k1/emupcm.c snd_emu10k1_pcm_init_voice(emu, 1, 1, epcm->extra, emu 506 sound/pci/emu10k1/emupcm.c snd_emu10k1_pcm_init_voice(emu, 1, 0, epcm->voices[0], emu 508 sound/pci/emu10k1/emupcm.c &emu->pcm_mixer[substream->number]); emu 510 sound/pci/emu10k1/emupcm.c snd_emu10k1_pcm_init_voice(emu, 0, 0, epcm->voices[1], emu 512 sound/pci/emu10k1/emupcm.c &emu->pcm_mixer[substream->number]); emu 518 sound/pci/emu10k1/emupcm.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 533 sound/pci/emu10k1/emupcm.c snd_emu10k1_pcm_init_voice(emu, 1, 1, epcm->extra, emu 537 sound/pci/emu10k1/emupcm.c snd_emu10k1_pcm_init_voice(emu, 1, 0, epcm->voices[0], emu 539 sound/pci/emu10k1/emupcm.c &emu->efx_pcm_mixer[0]); emu 543 sound/pci/emu10k1/emupcm.c snd_emu10k1_pcm_init_voice(emu, 0, 0, epcm->voices[i], emu 545 sound/pci/emu10k1/emupcm.c &emu->efx_pcm_mixer[i]); emu 585 sound/pci/emu10k1/emupcm.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 591 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, epcm->capture_bs_reg, 0, 0); emu 594 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, ADCCR, 0, 0); emu 597 sound/pci/emu10k1/emupcm.c if (emu->audigy) { emu 598 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, A_FXWC1, 0, 0); emu 599 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, A_FXWC2, 0, 0); emu 601 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, FXWC, 0, 0); emu 606 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, epcm->capture_ba_reg, 0, runtime->dma_addr); emu 620 sound/pci/emu10k1/emupcm.c epcm->capture_cr_val = emu->audigy ? A_ADCCR_LCHANENABLE : ADCCR_LCHANENABLE; emu 622 sound/pci/emu10k1/emupcm.c epcm->capture_cr_val |= emu->audigy ? A_ADCCR_RCHANENABLE : ADCCR_RCHANENABLE; emu 623 sound/pci/emu10k1/emupcm.c epcm->capture_cr_val |= emu->audigy ? emu 630 sound/pci/emu10k1/emupcm.c static void snd_emu10k1_playback_invalidate_cache(struct snd_emu10k1 *emu, int extra, struct snd_emu10k1_voice *evoice) emu 646 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, CD0 + i, voice, sample); emu 648 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, CD0 + i, voice + 1, sample); emu 652 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, CCR_CACHEINVALIDSIZE, voice, 0); emu 653 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, CCR_READADDRESS, voice, cra); emu 655 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, CCR_CACHEINVALIDSIZE, voice + 1, 0); emu 656 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, CCR_READADDRESS, voice + 1, cra); emu 659 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, CCR_CACHEINVALIDSIZE, voice, ccis); emu 661 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, CCR_CACHEINVALIDSIZE, voice+1, ccis); emu 665 sound/pci/emu10k1/emupcm.c static void snd_emu10k1_playback_prepare_voice(struct snd_emu10k1 *emu, struct snd_emu10k1_voice *evoice, emu 683 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, IFATN, voice, attn); emu 684 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, VTFT, voice, vattn | 0xffff); emu 685 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, CVCF, voice, vattn | 0xffff); emu 686 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, DCYSUSV, voice, 0x7f7f); emu 687 sound/pci/emu10k1/emupcm.c snd_emu10k1_voice_clear_loop_stop(emu, voice); emu 690 sound/pci/emu10k1/emupcm.c static void snd_emu10k1_playback_trigger_voice(struct snd_emu10k1 *emu, struct snd_emu10k1_voice *evoice, int master, int extra) emu 703 sound/pci/emu10k1/emupcm.c if (emu->card_capabilities->emu_model) emu 707 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, PTRX_PITCHTARGET, voice, pitch_target); emu 709 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, CPF_CURRENTPITCH, voice, pitch_target); emu 710 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, IP, voice, pitch); emu 712 sound/pci/emu10k1/emupcm.c snd_emu10k1_voice_intr_enable(emu, voice); emu 715 sound/pci/emu10k1/emupcm.c static void snd_emu10k1_playback_stop_voice(struct snd_emu10k1 *emu, struct snd_emu10k1_voice *evoice) emu 722 sound/pci/emu10k1/emupcm.c snd_emu10k1_voice_intr_disable(emu, voice); emu 723 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, PTRX_PITCHTARGET, voice, 0); emu 724 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, CPF_CURRENTPITCH, voice, 0); emu 725 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, IFATN, voice, 0xffff); emu 726 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, VTFT, voice, 0xffff); emu 727 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, CVCF, voice, 0xffff); emu 728 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, IP, voice, 0); emu 731 sound/pci/emu10k1/emupcm.c static inline void snd_emu10k1_playback_mangle_extra(struct snd_emu10k1 *emu, emu 742 sound/pci/emu10k1/emupcm.c ptr = snd_emu10k1_ptr_read(emu, CCCA, epcm->extra->number); emu 745 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, CCCA, epcm->extra->number, ptr); emu 751 sound/pci/emu10k1/emupcm.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 762 sound/pci/emu10k1/emupcm.c spin_lock(&emu->reg_lock); emu 765 sound/pci/emu10k1/emupcm.c snd_emu10k1_playback_invalidate_cache(emu, 1, epcm->extra); /* do we need this? */ emu 766 sound/pci/emu10k1/emupcm.c snd_emu10k1_playback_invalidate_cache(emu, 0, epcm->voices[0]); emu 771 sound/pci/emu10k1/emupcm.c snd_emu10k1_playback_mangle_extra(emu, epcm, substream, runtime); emu 772 sound/pci/emu10k1/emupcm.c mix = &emu->pcm_mixer[substream->number]; emu 773 sound/pci/emu10k1/emupcm.c snd_emu10k1_playback_prepare_voice(emu, epcm->voices[0], 1, 0, mix); emu 774 sound/pci/emu10k1/emupcm.c snd_emu10k1_playback_prepare_voice(emu, epcm->voices[1], 0, 0, mix); emu 775 sound/pci/emu10k1/emupcm.c snd_emu10k1_playback_prepare_voice(emu, epcm->extra, 1, 1, NULL); emu 776 sound/pci/emu10k1/emupcm.c snd_emu10k1_playback_trigger_voice(emu, epcm->voices[0], 1, 0); emu 777 sound/pci/emu10k1/emupcm.c snd_emu10k1_playback_trigger_voice(emu, epcm->voices[1], 0, 0); emu 778 sound/pci/emu10k1/emupcm.c snd_emu10k1_playback_trigger_voice(emu, epcm->extra, 1, 1); emu 785 sound/pci/emu10k1/emupcm.c snd_emu10k1_playback_stop_voice(emu, epcm->voices[0]); emu 786 sound/pci/emu10k1/emupcm.c snd_emu10k1_playback_stop_voice(emu, epcm->voices[1]); emu 787 sound/pci/emu10k1/emupcm.c snd_emu10k1_playback_stop_voice(emu, epcm->extra); emu 793 sound/pci/emu10k1/emupcm.c spin_unlock(&emu->reg_lock); emu 800 sound/pci/emu10k1/emupcm.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 805 sound/pci/emu10k1/emupcm.c spin_lock(&emu->reg_lock); emu 810 sound/pci/emu10k1/emupcm.c outl(epcm->capture_ipr, emu->port + IPR); emu 811 sound/pci/emu10k1/emupcm.c snd_emu10k1_intr_enable(emu, epcm->capture_inte); emu 818 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, ADCCR, 0, epcm->capture_cr_val); emu 821 sound/pci/emu10k1/emupcm.c if (emu->audigy) { emu 822 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, A_FXWC1, 0, epcm->capture_cr_val); emu 823 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, A_FXWC2, 0, epcm->capture_cr_val2); emu 824 sound/pci/emu10k1/emupcm.c dev_dbg(emu->card->dev, emu 829 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, FXWC, 0, epcm->capture_cr_val); emu 834 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, epcm->capture_bs_reg, 0, epcm->capture_bs_val); emu 841 sound/pci/emu10k1/emupcm.c snd_emu10k1_intr_disable(emu, epcm->capture_inte); emu 842 sound/pci/emu10k1/emupcm.c outl(epcm->capture_ipr, emu->port + IPR); emu 843 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, epcm->capture_bs_reg, 0, 0); emu 846 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, ADCCR, 0, 0); emu 849 sound/pci/emu10k1/emupcm.c if (emu->audigy) { emu 850 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, A_FXWC1, 0, 0); emu 851 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, A_FXWC2, 0, 0); emu 853 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, FXWC, 0, 0); emu 862 sound/pci/emu10k1/emupcm.c spin_unlock(&emu->reg_lock); emu 868 sound/pci/emu10k1/emupcm.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 875 sound/pci/emu10k1/emupcm.c ptr = snd_emu10k1_ptr_read(emu, CCCA, epcm->voices[0]->number) & 0x00ffffff; emu 902 sound/pci/emu10k1/emupcm.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 908 sound/pci/emu10k1/emupcm.c spin_lock(&emu->reg_lock); emu 913 sound/pci/emu10k1/emupcm.c snd_emu10k1_playback_invalidate_cache(emu, 0, epcm->voices[i]); emu 915 sound/pci/emu10k1/emupcm.c snd_emu10k1_playback_invalidate_cache(emu, 1, epcm->extra); emu 920 sound/pci/emu10k1/emupcm.c snd_emu10k1_playback_prepare_voice(emu, epcm->extra, 1, 1, NULL); emu 921 sound/pci/emu10k1/emupcm.c snd_emu10k1_playback_prepare_voice(emu, epcm->voices[0], 0, 0, emu 922 sound/pci/emu10k1/emupcm.c &emu->efx_pcm_mixer[0]); emu 924 sound/pci/emu10k1/emupcm.c snd_emu10k1_playback_prepare_voice(emu, epcm->voices[i], 0, 0, emu 925 sound/pci/emu10k1/emupcm.c &emu->efx_pcm_mixer[i]); emu 926 sound/pci/emu10k1/emupcm.c snd_emu10k1_playback_trigger_voice(emu, epcm->voices[0], 0, 0); emu 927 sound/pci/emu10k1/emupcm.c snd_emu10k1_playback_trigger_voice(emu, epcm->extra, 1, 1); emu 929 sound/pci/emu10k1/emupcm.c snd_emu10k1_playback_trigger_voice(emu, epcm->voices[i], 0, 0); emu 937 sound/pci/emu10k1/emupcm.c snd_emu10k1_playback_stop_voice(emu, epcm->voices[i]); emu 939 sound/pci/emu10k1/emupcm.c snd_emu10k1_playback_stop_voice(emu, epcm->extra); emu 945 sound/pci/emu10k1/emupcm.c spin_unlock(&emu->reg_lock); emu 952 sound/pci/emu10k1/emupcm.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 963 sound/pci/emu10k1/emupcm.c ptr = snd_emu10k1_ptr_read(emu, epcm->capture_idx_reg, 0) & 0x0000ffff; emu 1041 sound/pci/emu10k1/emupcm.c static void snd_emu10k1_pcm_mixer_notify1(struct snd_emu10k1 *emu, struct snd_kcontrol *kctl, int idx, int activate) emu 1051 sound/pci/emu10k1/emupcm.c snd_ctl_notify(emu->card, SNDRV_CTL_EVENT_MASK_VALUE | emu 1056 sound/pci/emu10k1/emupcm.c static void snd_emu10k1_pcm_mixer_notify(struct snd_emu10k1 *emu, int idx, int activate) emu 1058 sound/pci/emu10k1/emupcm.c snd_emu10k1_pcm_mixer_notify1(emu, emu->ctl_send_routing, idx, activate); emu 1059 sound/pci/emu10k1/emupcm.c snd_emu10k1_pcm_mixer_notify1(emu, emu->ctl_send_volume, idx, activate); emu 1060 sound/pci/emu10k1/emupcm.c snd_emu10k1_pcm_mixer_notify1(emu, emu->ctl_attn, idx, activate); emu 1063 sound/pci/emu10k1/emupcm.c static void snd_emu10k1_pcm_efx_mixer_notify(struct snd_emu10k1 *emu, int idx, int activate) emu 1065 sound/pci/emu10k1/emupcm.c snd_emu10k1_pcm_mixer_notify1(emu, emu->ctl_efx_send_routing, idx, activate); emu 1066 sound/pci/emu10k1/emupcm.c snd_emu10k1_pcm_mixer_notify1(emu, emu->ctl_efx_send_volume, idx, activate); emu 1067 sound/pci/emu10k1/emupcm.c snd_emu10k1_pcm_mixer_notify1(emu, emu->ctl_efx_attn, idx, activate); emu 1077 sound/pci/emu10k1/emupcm.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 1082 sound/pci/emu10k1/emupcm.c mix = &emu->efx_pcm_mixer[i]; emu 1084 sound/pci/emu10k1/emupcm.c snd_emu10k1_pcm_efx_mixer_notify(emu, i, 0); emu 1091 sound/pci/emu10k1/emupcm.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 1100 sound/pci/emu10k1/emupcm.c epcm->emu = emu; emu 1104 sound/pci/emu10k1/emupcm.c emu->pcm_playback_efx_substream = substream; emu 1111 sound/pci/emu10k1/emupcm.c mix = &emu->efx_pcm_mixer[i]; emu 1117 sound/pci/emu10k1/emupcm.c snd_emu10k1_pcm_efx_mixer_notify(emu, i, 1); emu 1124 sound/pci/emu10k1/emupcm.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 1133 sound/pci/emu10k1/emupcm.c epcm->emu = emu; emu 1147 sound/pci/emu10k1/emupcm.c if (emu->card_capabilities->emu_model && emu->emu1010.internal_clock == 0) emu 1156 sound/pci/emu10k1/emupcm.c mix = &emu->pcm_mixer[substream->number]; emu 1164 sound/pci/emu10k1/emupcm.c snd_emu10k1_pcm_mixer_notify(emu, substream->number, 1); emu 1170 sound/pci/emu10k1/emupcm.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 1171 sound/pci/emu10k1/emupcm.c struct snd_emu10k1_pcm_mixer *mix = &emu->pcm_mixer[substream->number]; emu 1174 sound/pci/emu10k1/emupcm.c snd_emu10k1_pcm_mixer_notify(emu, substream->number, 0); emu 1180 sound/pci/emu10k1/emupcm.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 1187 sound/pci/emu10k1/emupcm.c epcm->emu = emu; emu 1194 sound/pci/emu10k1/emupcm.c epcm->capture_idx_reg = emu->audigy ? A_ADCIDX : ADCIDX; emu 1198 sound/pci/emu10k1/emupcm.c emu->capture_interrupt = snd_emu10k1_pcm_ac97adc_interrupt; emu 1199 sound/pci/emu10k1/emupcm.c emu->pcm_capture_substream = substream; emu 1207 sound/pci/emu10k1/emupcm.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 1209 sound/pci/emu10k1/emupcm.c emu->capture_interrupt = NULL; emu 1210 sound/pci/emu10k1/emupcm.c emu->pcm_capture_substream = NULL; emu 1216 sound/pci/emu10k1/emupcm.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 1223 sound/pci/emu10k1/emupcm.c epcm->emu = emu; emu 1230 sound/pci/emu10k1/emupcm.c epcm->capture_idx_reg = emu->audigy ? A_MICIDX : MICIDX; emu 1237 sound/pci/emu10k1/emupcm.c emu->capture_mic_interrupt = snd_emu10k1_pcm_ac97mic_interrupt; emu 1238 sound/pci/emu10k1/emupcm.c emu->pcm_capture_mic_substream = substream; emu 1245 sound/pci/emu10k1/emupcm.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 1247 sound/pci/emu10k1/emupcm.c emu->capture_interrupt = NULL; emu 1248 sound/pci/emu10k1/emupcm.c emu->pcm_capture_mic_substream = NULL; emu 1254 sound/pci/emu10k1/emupcm.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 1257 sound/pci/emu10k1/emupcm.c int nefx = emu->audigy ? 64 : 32; emu 1263 sound/pci/emu10k1/emupcm.c epcm->emu = emu; emu 1276 sound/pci/emu10k1/emupcm.c spin_lock_irq(&emu->reg_lock); emu 1277 sound/pci/emu10k1/emupcm.c if (emu->card_capabilities->emu_model) { emu 1300 sound/pci/emu10k1/emupcm.c switch (emu->emu1010.internal_clock) { emu 1336 sound/pci/emu10k1/emupcm.c if (emu->efx_voices_mask[idx/32] & (1 << (idx%32))) { emu 1342 sound/pci/emu10k1/emupcm.c epcm->capture_cr_val = emu->efx_voices_mask[0]; emu 1343 sound/pci/emu10k1/emupcm.c epcm->capture_cr_val2 = emu->efx_voices_mask[1]; emu 1344 sound/pci/emu10k1/emupcm.c spin_unlock_irq(&emu->reg_lock); emu 1345 sound/pci/emu10k1/emupcm.c emu->capture_efx_interrupt = snd_emu10k1_pcm_efx_interrupt; emu 1346 sound/pci/emu10k1/emupcm.c emu->pcm_capture_efx_substream = substream; emu 1353 sound/pci/emu10k1/emupcm.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 1355 sound/pci/emu10k1/emupcm.c emu->capture_interrupt = NULL; emu 1356 sound/pci/emu10k1/emupcm.c emu->pcm_capture_efx_substream = NULL; emu 1396 sound/pci/emu10k1/emupcm.c int snd_emu10k1_pcm(struct snd_emu10k1 *emu, int device) emu 1402 sound/pci/emu10k1/emupcm.c if ((err = snd_pcm_new(emu->card, "emu10k1", device, 32, 1, &pcm)) < 0) emu 1405 sound/pci/emu10k1/emupcm.c pcm->private_data = emu; emu 1413 sound/pci/emu10k1/emupcm.c emu->pcm = pcm; emu 1417 sound/pci/emu10k1/emupcm.c snd_dma_pci_data(emu->pci), emu 1422 sound/pci/emu10k1/emupcm.c snd_dma_pci_data(emu->pci), emu 1428 sound/pci/emu10k1/emupcm.c int snd_emu10k1_pcm_multi(struct snd_emu10k1 *emu, int device) emu 1434 sound/pci/emu10k1/emupcm.c if ((err = snd_pcm_new(emu->card, "emu10k1", device, 1, 0, &pcm)) < 0) emu 1437 sound/pci/emu10k1/emupcm.c pcm->private_data = emu; emu 1444 sound/pci/emu10k1/emupcm.c emu->pcm_multi = pcm; emu 1448 sound/pci/emu10k1/emupcm.c snd_dma_pci_data(emu->pci), emu 1466 sound/pci/emu10k1/emupcm.c int snd_emu10k1_pcm_mic(struct snd_emu10k1 *emu, int device) emu 1471 sound/pci/emu10k1/emupcm.c if ((err = snd_pcm_new(emu->card, "emu10k1 mic", device, 0, 1, &pcm)) < 0) emu 1474 sound/pci/emu10k1/emupcm.c pcm->private_data = emu; emu 1480 sound/pci/emu10k1/emupcm.c emu->pcm_mic = pcm; emu 1483 sound/pci/emu10k1/emupcm.c snd_dma_pci_data(emu->pci), emu 1491 sound/pci/emu10k1/emupcm.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 1492 sound/pci/emu10k1/emupcm.c int nefx = emu->audigy ? 64 : 32; emu 1502 sound/pci/emu10k1/emupcm.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 1503 sound/pci/emu10k1/emupcm.c int nefx = emu->audigy ? 64 : 32; emu 1506 sound/pci/emu10k1/emupcm.c spin_lock_irq(&emu->reg_lock); emu 1508 sound/pci/emu10k1/emupcm.c ucontrol->value.integer.value[idx] = (emu->efx_voices_mask[idx / 32] & (1 << (idx % 32))) ? 1 : 0; emu 1509 sound/pci/emu10k1/emupcm.c spin_unlock_irq(&emu->reg_lock); emu 1515 sound/pci/emu10k1/emupcm.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 1517 sound/pci/emu10k1/emupcm.c int nefx = emu->audigy ? 64 : 32; emu 1518 sound/pci/emu10k1/emupcm.c int nefxb = emu->audigy ? 7 : 6; emu 1535 sound/pci/emu10k1/emupcm.c spin_lock_irq(&emu->reg_lock); emu 1536 sound/pci/emu10k1/emupcm.c change = (nval[0] != emu->efx_voices_mask[0]) || emu 1537 sound/pci/emu10k1/emupcm.c (nval[1] != emu->efx_voices_mask[1]); emu 1538 sound/pci/emu10k1/emupcm.c emu->efx_voices_mask[0] = nval[0]; emu 1539 sound/pci/emu10k1/emupcm.c emu->efx_voices_mask[1] = nval[1]; emu 1540 sound/pci/emu10k1/emupcm.c spin_unlock_irq(&emu->reg_lock); emu 1569 sound/pci/emu10k1/emupcm.c static void snd_emu10k1_fx8010_playback_irq(struct snd_emu10k1 *emu, void *private_data) emu 1603 sound/pci/emu10k1/emupcm.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 1604 sound/pci/emu10k1/emupcm.c struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number]; emu 1613 sound/pci/emu10k1/emupcm.c snd_emu10k1_fx8010_playback_tram_poke1((unsigned short *)emu->fx8010.etram_pages.area + tram_pos, emu 1614 sound/pci/emu10k1/emupcm.c (unsigned short *)emu->fx8010.etram_pages.area + tram_pos + tram_size / 2, emu 1621 sound/pci/emu10k1/emupcm.c snd_emu10k1_fx8010_playback_tram_poke1((unsigned short *)emu->fx8010.etram_pages.area + tram_pos, emu 1622 sound/pci/emu10k1/emupcm.c (unsigned short *)emu->fx8010.etram_pages.area + tram_pos + tram_size / 2, emu 1631 sound/pci/emu10k1/emupcm.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 1632 sound/pci/emu10k1/emupcm.c struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number]; emu 1646 sound/pci/emu10k1/emupcm.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 1647 sound/pci/emu10k1/emupcm.c struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number]; emu 1651 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, TANKMEMADDRREGBASE + 0x80 + pcm->etram[i], 0, 0); emu 1658 sound/pci/emu10k1/emupcm.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 1660 sound/pci/emu10k1/emupcm.c struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number]; emu 1674 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, emu->gpr_base + pcm->gpr_running, 0, 0); /* reset */ emu 1675 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, emu->gpr_base + pcm->gpr_trigger, 0, 0); /* reset */ emu 1676 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, emu->gpr_base + pcm->gpr_size, 0, runtime->buffer_size); emu 1677 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, emu->gpr_base + pcm->gpr_ptr, 0, 0); /* reset ptr number */ emu 1678 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, emu->gpr_base + pcm->gpr_count, 0, runtime->period_size); emu 1679 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, emu->gpr_base + pcm->gpr_tmpcount, 0, runtime->period_size); emu 1681 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, TANKMEMADDRREGBASE + 0x80 + pcm->etram[i], 0, (TANKMEMADDRREG_READ|TANKMEMADDRREG_ALIGN) + i * (runtime->buffer_size / pcm->channels)); emu 1687 sound/pci/emu10k1/emupcm.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 1688 sound/pci/emu10k1/emupcm.c struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number]; emu 1691 sound/pci/emu10k1/emupcm.c spin_lock(&emu->reg_lock); emu 1705 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, SPCS0 + i, 0, bits); emu 1709 sound/pci/emu10k1/emupcm.c result = snd_emu10k1_fx8010_register_irq_handler(emu, snd_emu10k1_fx8010_playback_irq, pcm->gpr_running, substream, &pcm->irq); emu 1713 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, emu->gpr_base + pcm->gpr_trigger, 0, 1); emu 1718 sound/pci/emu10k1/emupcm.c snd_emu10k1_fx8010_unregister_irq_handler(emu, &pcm->irq); emu 1719 sound/pci/emu10k1/emupcm.c snd_emu10k1_ptr_write(emu, emu->gpr_base + pcm->gpr_trigger, 0, 0); emu 1728 sound/pci/emu10k1/emupcm.c spin_unlock(&emu->reg_lock); emu 1734 sound/pci/emu10k1/emupcm.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 1735 sound/pci/emu10k1/emupcm.c struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number]; emu 1738 sound/pci/emu10k1/emupcm.c if (!snd_emu10k1_ptr_read(emu, emu->gpr_base + pcm->gpr_trigger, 0)) emu 1740 sound/pci/emu10k1/emupcm.c ptr = snd_emu10k1_ptr_read(emu, emu->gpr_base + pcm->gpr_ptr, 0) << 2; emu 1766 sound/pci/emu10k1/emupcm.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 1768 sound/pci/emu10k1/emupcm.c struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number]; emu 1773 sound/pci/emu10k1/emupcm.c spin_lock_irq(&emu->reg_lock); emu 1775 sound/pci/emu10k1/emupcm.c spin_unlock_irq(&emu->reg_lock); emu 1779 sound/pci/emu10k1/emupcm.c spin_unlock_irq(&emu->reg_lock); emu 1785 sound/pci/emu10k1/emupcm.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 1786 sound/pci/emu10k1/emupcm.c struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number]; emu 1788 sound/pci/emu10k1/emupcm.c spin_lock_irq(&emu->reg_lock); emu 1790 sound/pci/emu10k1/emupcm.c spin_unlock_irq(&emu->reg_lock); emu 1806 sound/pci/emu10k1/emupcm.c int snd_emu10k1_pcm_efx(struct snd_emu10k1 *emu, int device) emu 1812 sound/pci/emu10k1/emupcm.c if ((err = snd_pcm_new(emu->card, "emu10k1 efx", device, 8, 1, &pcm)) < 0) emu 1815 sound/pci/emu10k1/emupcm.c pcm->private_data = emu; emu 1822 sound/pci/emu10k1/emupcm.c emu->pcm_efx = pcm; emu 1829 sound/pci/emu10k1/emupcm.c if (emu->audigy) { emu 1830 sound/pci/emu10k1/emupcm.c emu->efx_voices_mask[0] = 0; emu 1831 sound/pci/emu10k1/emupcm.c if (emu->card_capabilities->emu_model) emu 1836 sound/pci/emu10k1/emupcm.c emu->efx_voices_mask[1] = 0xffffffff; emu 1838 sound/pci/emu10k1/emupcm.c emu->efx_voices_mask[1] = 0xffff; emu 1840 sound/pci/emu10k1/emupcm.c emu->efx_voices_mask[0] = 0xffff0000; emu 1841 sound/pci/emu10k1/emupcm.c emu->efx_voices_mask[1] = 0; emu 1849 sound/pci/emu10k1/emupcm.c kctl = snd_ctl_new1(&snd_emu10k1_pcm_efx_voices_mask, emu); emu 1853 sound/pci/emu10k1/emupcm.c err = snd_ctl_add(emu->card, kctl); emu 1858 sound/pci/emu10k1/emupcm.c snd_dma_pci_data(emu->pci), emu 23 sound/pci/emu10k1/emuproc.c static void snd_emu10k1_proc_spdif_status(struct snd_emu10k1 * emu, emu 35 sound/pci/emu10k1/emuproc.c status = snd_emu10k1_ptr_read(emu, status_reg, 0); emu 53 sound/pci/emu10k1/emuproc.c rate = snd_emu10k1_ptr_read(emu, rate_reg, 0); emu 172 sound/pci/emu10k1/emuproc.c struct snd_emu10k1 *emu = entry->private_data; emu 174 sound/pci/emu10k1/emuproc.c int nefx = emu->audigy ? 64 : 32; emu 175 sound/pci/emu10k1/emuproc.c char **outputs = emu->audigy ? audigy_outs : creative_outs; emu 180 sound/pci/emu10k1/emuproc.c emu->audigy ? "Audigy" : (emu->card_capabilities->ecard ? "EMU APS" : "Creative")); emu 181 sound/pci/emu10k1/emuproc.c snd_iprintf(buffer, "Internal TRAM (words) : 0x%x\n", emu->fx8010.itram_size); emu 182 sound/pci/emu10k1/emuproc.c snd_iprintf(buffer, "External TRAM (words) : 0x%x\n", (int)emu->fx8010.etram_pages.bytes / 2); emu 186 sound/pci/emu10k1/emuproc.c val = emu->audigy ? emu 187 sound/pci/emu10k1/emuproc.c snd_emu10k1_ptr_read(emu, A_FXRT1, idx) : emu 188 sound/pci/emu10k1/emuproc.c snd_emu10k1_ptr_read(emu, FXRT, idx); emu 189 sound/pci/emu10k1/emuproc.c val1 = emu->audigy ? emu 190 sound/pci/emu10k1/emuproc.c snd_emu10k1_ptr_read(emu, A_FXRT2, idx) : emu 192 sound/pci/emu10k1/emuproc.c if (emu->audigy) { emu 215 sound/pci/emu10k1/emuproc.c if (emu->efx_voices_mask[idx/32] & (1 << (idx%32))) emu 219 sound/pci/emu10k1/emuproc.c for (idx = 0; idx < (emu->audigy ? 64 : 32); idx++) emu 226 sound/pci/emu10k1/emuproc.c struct snd_emu10k1 *emu = entry->private_data; emu 231 sound/pci/emu10k1/emuproc.c if (emu->card_capabilities->emu_model) { emu 232 sound/pci/emu10k1/emuproc.c snd_emu1010_fpga_read(emu, 0x38, &value); emu 234 sound/pci/emu10k1/emuproc.c snd_emu1010_fpga_read(emu, 0x2a, &value); emu 235 sound/pci/emu10k1/emuproc.c snd_emu1010_fpga_read(emu, 0x2b, &value2); emu 241 sound/pci/emu10k1/emuproc.c snd_emu1010_fpga_read(emu, 0x20, &value); emu 243 sound/pci/emu10k1/emuproc.c snd_emu1010_fpga_read(emu, 0x28, &value); emu 244 sound/pci/emu10k1/emuproc.c snd_emu1010_fpga_read(emu, 0x29, &value2); emu 251 sound/pci/emu10k1/emuproc.c snd_emu10k1_proc_spdif_status(emu, buffer, "CD-ROM S/PDIF In", CDCS, CDSRCS); emu 252 sound/pci/emu10k1/emuproc.c snd_emu10k1_proc_spdif_status(emu, buffer, "Optical or Coax S/PDIF In", GPSCS, GPSRCS); emu 255 sound/pci/emu10k1/emuproc.c val = snd_emu10k1_ptr_read(emu, ZVSRCS, 0); emu 266 sound/pci/emu10k1/emuproc.c struct snd_emu10k1 *emu = entry->private_data; emu 268 sound/pci/emu10k1/emuproc.c val = snd_emu10k1_ptr20_read(emu, CAPTURE_RATE_STATUS, 0); emu 280 sound/pci/emu10k1/emuproc.c struct snd_emu10k1 *emu = entry->private_data; emu 282 sound/pci/emu10k1/emuproc.c snd_iprintf(buffer, "FX8010 Instruction List '%s'\n", emu->fx8010.name); emu 284 sound/pci/emu10k1/emuproc.c for (pc = 0; pc < (emu->audigy ? 1024 : 512); pc++) { emu 287 sound/pci/emu10k1/emuproc.c low = snd_emu10k1_efx_read(emu, pc * 2); emu 288 sound/pci/emu10k1/emuproc.c high = snd_emu10k1_efx_read(emu, pc * 2 + 1); emu 289 sound/pci/emu10k1/emuproc.c if (emu->audigy) emu 324 sound/pci/emu10k1/emuproc.c struct snd_emu10k1 *emu = entry->private_data; emu 337 sound/pci/emu10k1/emuproc.c offset = emu->audigy ? A_MICROCODEBASE : MICROCODEBASE; emu 339 sound/pci/emu10k1/emuproc.c offset = emu->audigy ? A_FXGPREGBASE : FXGPREGBASE; emu 347 sound/pci/emu10k1/emuproc.c val = snd_emu10k1_ptr_read(emu, offset + idx + (pos >> 2), 0); emu 348 sound/pci/emu10k1/emuproc.c if (tram_addr && emu->audigy) { emu 350 sound/pci/emu10k1/emuproc.c val |= snd_emu10k1_ptr_read(emu, 0x100 + idx + (pos >> 2), 0) << 20; emu 365 sound/pci/emu10k1/emuproc.c struct snd_emu10k1 *emu = entry->private_data; emu 371 sound/pci/emu10k1/emuproc.c voice = &emu->voices[idx]; emu 386 sound/pci/emu10k1/emuproc.c struct snd_emu10k1 *emu = entry->private_data; emu 392 sound/pci/emu10k1/emuproc.c snd_emu1010_fpga_read(emu, i, &value); emu 400 sound/pci/emu10k1/emuproc.c struct snd_emu10k1 *emu = entry->private_data; emu 406 sound/pci/emu10k1/emuproc.c spin_lock_irqsave(&emu->emu_lock, flags); emu 407 sound/pci/emu10k1/emuproc.c value = inl(emu->port + i); emu 408 sound/pci/emu10k1/emuproc.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 416 sound/pci/emu10k1/emuproc.c struct snd_emu10k1 *emu = entry->private_data; emu 424 sound/pci/emu10k1/emuproc.c spin_lock_irqsave(&emu->emu_lock, flags); emu 425 sound/pci/emu10k1/emuproc.c outl(val, emu->port + (reg & 0xfffffffc)); emu 426 sound/pci/emu10k1/emuproc.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 431 sound/pci/emu10k1/emuproc.c static unsigned int snd_ptr_read(struct snd_emu10k1 * emu, emu 441 sound/pci/emu10k1/emuproc.c spin_lock_irqsave(&emu->emu_lock, flags); emu 442 sound/pci/emu10k1/emuproc.c outl(regptr, emu->port + iobase + PTR); emu 443 sound/pci/emu10k1/emuproc.c val = inl(emu->port + iobase + DATA); emu 444 sound/pci/emu10k1/emuproc.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 448 sound/pci/emu10k1/emuproc.c static void snd_ptr_write(struct snd_emu10k1 *emu, emu 459 sound/pci/emu10k1/emuproc.c spin_lock_irqsave(&emu->emu_lock, flags); emu 460 sound/pci/emu10k1/emuproc.c outl(regptr, emu->port + iobase + PTR); emu 461 sound/pci/emu10k1/emuproc.c outl(data, emu->port + iobase + DATA); emu 462 sound/pci/emu10k1/emuproc.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 469 sound/pci/emu10k1/emuproc.c struct snd_emu10k1 *emu = entry->private_data; emu 481 sound/pci/emu10k1/emuproc.c value = snd_ptr_read(emu, 0, i, j); emu 483 sound/pci/emu10k1/emuproc.c value = snd_ptr_read(emu, 0x20, i, j); emu 493 sound/pci/emu10k1/emuproc.c struct snd_emu10k1 *emu = entry->private_data; emu 500 sound/pci/emu10k1/emuproc.c snd_ptr_write(emu, iobase, reg, channel_id, val); emu 552 sound/pci/emu10k1/emuproc.c int snd_emu10k1_proc_init(struct snd_emu10k1 *emu) emu 556 sound/pci/emu10k1/emuproc.c if (emu->card_capabilities->emu_model) { emu 557 sound/pci/emu10k1/emuproc.c snd_card_ro_proc_new(emu->card, "emu1010_regs", emu 558 sound/pci/emu10k1/emuproc.c emu, snd_emu_proc_emu1010_reg_read); emu 560 sound/pci/emu10k1/emuproc.c snd_card_rw_proc_new(emu->card, "io_regs", emu, emu 563 sound/pci/emu10k1/emuproc.c snd_card_rw_proc_new(emu->card, "ptr_regs00a", emu, emu 566 sound/pci/emu10k1/emuproc.c snd_card_rw_proc_new(emu->card, "ptr_regs00b", emu, emu 569 sound/pci/emu10k1/emuproc.c snd_card_rw_proc_new(emu->card, "ptr_regs20a", emu, emu 572 sound/pci/emu10k1/emuproc.c snd_card_rw_proc_new(emu->card, "ptr_regs20b", emu, emu 575 sound/pci/emu10k1/emuproc.c snd_card_rw_proc_new(emu->card, "ptr_regs20c", emu, emu 580 sound/pci/emu10k1/emuproc.c snd_card_ro_proc_new(emu->card, "emu10k1", emu, snd_emu10k1_proc_read); emu 582 sound/pci/emu10k1/emuproc.c if (emu->card_capabilities->emu10k2_chip) emu 583 sound/pci/emu10k1/emuproc.c snd_card_ro_proc_new(emu->card, "spdif-in", emu, emu 585 sound/pci/emu10k1/emuproc.c if (emu->card_capabilities->ca0151_chip) emu 586 sound/pci/emu10k1/emuproc.c snd_card_ro_proc_new(emu->card, "capture-rates", emu, emu 589 sound/pci/emu10k1/emuproc.c snd_card_ro_proc_new(emu->card, "voices", emu, emu 592 sound/pci/emu10k1/emuproc.c if (! snd_card_proc_new(emu->card, "fx8010_gpr", &entry)) { emu 594 sound/pci/emu10k1/emuproc.c entry->private_data = emu; emu 596 sound/pci/emu10k1/emuproc.c entry->size = emu->audigy ? A_TOTAL_SIZE_GPR : TOTAL_SIZE_GPR; emu 599 sound/pci/emu10k1/emuproc.c if (! snd_card_proc_new(emu->card, "fx8010_tram_data", &entry)) { emu 601 sound/pci/emu10k1/emuproc.c entry->private_data = emu; emu 603 sound/pci/emu10k1/emuproc.c entry->size = emu->audigy ? A_TOTAL_SIZE_TANKMEM_DATA : TOTAL_SIZE_TANKMEM_DATA ; emu 606 sound/pci/emu10k1/emuproc.c if (! snd_card_proc_new(emu->card, "fx8010_tram_addr", &entry)) { emu 608 sound/pci/emu10k1/emuproc.c entry->private_data = emu; emu 610 sound/pci/emu10k1/emuproc.c entry->size = emu->audigy ? A_TOTAL_SIZE_TANKMEM_ADDR : TOTAL_SIZE_TANKMEM_ADDR ; emu 613 sound/pci/emu10k1/emuproc.c if (! snd_card_proc_new(emu->card, "fx8010_code", &entry)) { emu 615 sound/pci/emu10k1/emuproc.c entry->private_data = emu; emu 617 sound/pci/emu10k1/emuproc.c entry->size = emu->audigy ? A_TOTAL_SIZE_CODE : TOTAL_SIZE_CODE; emu 620 sound/pci/emu10k1/emuproc.c snd_card_ro_proc_new(emu->card, "fx8010_acode", emu, emu 21 sound/pci/emu10k1/io.c unsigned int snd_emu10k1_ptr_read(struct snd_emu10k1 * emu, unsigned int reg, unsigned int chn) emu 27 sound/pci/emu10k1/io.c mask = emu->audigy ? A_PTR_ADDRESS_MASK : PTR_ADDRESS_MASK; emu 37 sound/pci/emu10k1/io.c spin_lock_irqsave(&emu->emu_lock, flags); emu 38 sound/pci/emu10k1/io.c outl(regptr, emu->port + PTR); emu 39 sound/pci/emu10k1/io.c val = inl(emu->port + DATA); emu 40 sound/pci/emu10k1/io.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 44 sound/pci/emu10k1/io.c spin_lock_irqsave(&emu->emu_lock, flags); emu 45 sound/pci/emu10k1/io.c outl(regptr, emu->port + PTR); emu 46 sound/pci/emu10k1/io.c val = inl(emu->port + DATA); emu 47 sound/pci/emu10k1/io.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 54 sound/pci/emu10k1/io.c void snd_emu10k1_ptr_write(struct snd_emu10k1 *emu, unsigned int reg, unsigned int chn, unsigned int data) emu 60 sound/pci/emu10k1/io.c if (snd_BUG_ON(!emu)) emu 62 sound/pci/emu10k1/io.c mask = emu->audigy ? A_PTR_ADDRESS_MASK : PTR_ADDRESS_MASK; emu 73 sound/pci/emu10k1/io.c spin_lock_irqsave(&emu->emu_lock, flags); emu 74 sound/pci/emu10k1/io.c outl(regptr, emu->port + PTR); emu 75 sound/pci/emu10k1/io.c data |= inl(emu->port + DATA) & ~mask; emu 76 sound/pci/emu10k1/io.c outl(data, emu->port + DATA); emu 77 sound/pci/emu10k1/io.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 79 sound/pci/emu10k1/io.c spin_lock_irqsave(&emu->emu_lock, flags); emu 80 sound/pci/emu10k1/io.c outl(regptr, emu->port + PTR); emu 81 sound/pci/emu10k1/io.c outl(data, emu->port + DATA); emu 82 sound/pci/emu10k1/io.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 88 sound/pci/emu10k1/io.c unsigned int snd_emu10k1_ptr20_read(struct snd_emu10k1 * emu, emu 97 sound/pci/emu10k1/io.c spin_lock_irqsave(&emu->emu_lock, flags); emu 98 sound/pci/emu10k1/io.c outl(regptr, emu->port + 0x20 + PTR); emu 99 sound/pci/emu10k1/io.c val = inl(emu->port + 0x20 + DATA); emu 100 sound/pci/emu10k1/io.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 104 sound/pci/emu10k1/io.c void snd_emu10k1_ptr20_write(struct snd_emu10k1 *emu, emu 114 sound/pci/emu10k1/io.c spin_lock_irqsave(&emu->emu_lock, flags); emu 115 sound/pci/emu10k1/io.c outl(regptr, emu->port + 0x20 + PTR); emu 116 sound/pci/emu10k1/io.c outl(data, emu->port + 0x20 + DATA); emu 117 sound/pci/emu10k1/io.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 120 sound/pci/emu10k1/io.c int snd_emu10k1_spi_write(struct snd_emu10k1 * emu, emu 129 sound/pci/emu10k1/io.c spin_lock(&emu->spi_lock); emu 130 sound/pci/emu10k1/io.c if (emu->card_capabilities->ca0108_chip) emu 144 sound/pci/emu10k1/io.c tmp = snd_emu10k1_ptr20_read(emu, reg, 0); emu 147 sound/pci/emu10k1/io.c snd_emu10k1_ptr20_write(emu, reg, 0, reset | data); emu 148 sound/pci/emu10k1/io.c tmp = snd_emu10k1_ptr20_read(emu, reg, 0); /* write post */ emu 149 sound/pci/emu10k1/io.c snd_emu10k1_ptr20_write(emu, reg, 0, set | data); emu 154 sound/pci/emu10k1/io.c tmp = snd_emu10k1_ptr20_read(emu, reg, 0); emu 165 sound/pci/emu10k1/io.c snd_emu10k1_ptr20_write(emu, reg, 0, reset | data); emu 166 sound/pci/emu10k1/io.c tmp = snd_emu10k1_ptr20_read(emu, reg, 0); /* Write post */ emu 169 sound/pci/emu10k1/io.c spin_unlock(&emu->spi_lock); emu 174 sound/pci/emu10k1/io.c int snd_emu10k1_i2c_write(struct snd_emu10k1 *emu, emu 185 sound/pci/emu10k1/io.c dev_err(emu->card->dev, "i2c_write: invalid values.\n"); emu 190 sound/pci/emu10k1/io.c spin_lock(&emu->i2c_lock); emu 195 sound/pci/emu10k1/io.c snd_emu10k1_ptr20_write(emu, P17V_I2C_1, 0, tmp); emu 196 sound/pci/emu10k1/io.c tmp = snd_emu10k1_ptr20_read(emu, P17V_I2C_1, 0); /* write post */ emu 202 sound/pci/emu10k1/io.c snd_emu10k1_ptr20_write(emu, P17V_I2C_ADDR, 0, tmp); emu 207 sound/pci/emu10k1/io.c status = snd_emu10k1_ptr20_read(emu, P17V_I2C_ADDR, 0); emu 213 sound/pci/emu10k1/io.c dev_warn(emu->card->dev, emu 225 sound/pci/emu10k1/io.c dev_err(emu->card->dev, "Writing to ADC failed!\n"); emu 226 sound/pci/emu10k1/io.c dev_err(emu->card->dev, "status=0x%x, reg=%d, value=%d\n", emu 232 sound/pci/emu10k1/io.c spin_unlock(&emu->i2c_lock); emu 236 sound/pci/emu10k1/io.c int snd_emu1010_fpga_write(struct snd_emu10k1 * emu, u32 reg, u32 value) emu 245 sound/pci/emu10k1/io.c spin_lock_irqsave(&emu->emu_lock, flags); emu 246 sound/pci/emu10k1/io.c outl(reg, emu->port + A_IOCFG); emu 248 sound/pci/emu10k1/io.c outl(reg | 0x80, emu->port + A_IOCFG); /* High bit clocks the value into the fpga. */ emu 250 sound/pci/emu10k1/io.c outl(value, emu->port + A_IOCFG); emu 252 sound/pci/emu10k1/io.c outl(value | 0x80 , emu->port + A_IOCFG); /* High bit clocks the value into the fpga. */ emu 253 sound/pci/emu10k1/io.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 258 sound/pci/emu10k1/io.c int snd_emu1010_fpga_read(struct snd_emu10k1 * emu, u32 reg, u32 *value) emu 264 sound/pci/emu10k1/io.c spin_lock_irqsave(&emu->emu_lock, flags); emu 265 sound/pci/emu10k1/io.c outl(reg, emu->port + A_IOCFG); emu 267 sound/pci/emu10k1/io.c outl(reg | 0x80, emu->port + A_IOCFG); /* High bit clocks the value into the fpga. */ emu 269 sound/pci/emu10k1/io.c *value = ((inl(emu->port + A_IOCFG) >> 8) & 0x7f); emu 270 sound/pci/emu10k1/io.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 278 sound/pci/emu10k1/io.c int snd_emu1010_fpga_link_dst_src_write(struct snd_emu10k1 * emu, u32 dst, u32 src) emu 280 sound/pci/emu10k1/io.c snd_emu1010_fpga_write(emu, 0x00, ((dst >> 8) & 0x3f) ); emu 281 sound/pci/emu10k1/io.c snd_emu1010_fpga_write(emu, 0x01, (dst & 0x3f) ); emu 282 sound/pci/emu10k1/io.c snd_emu1010_fpga_write(emu, 0x02, ((src >> 8) & 0x3f) ); emu 283 sound/pci/emu10k1/io.c snd_emu1010_fpga_write(emu, 0x03, (src & 0x3f) ); emu 288 sound/pci/emu10k1/io.c void snd_emu10k1_intr_enable(struct snd_emu10k1 *emu, unsigned int intrenb) emu 293 sound/pci/emu10k1/io.c spin_lock_irqsave(&emu->emu_lock, flags); emu 294 sound/pci/emu10k1/io.c enable = inl(emu->port + INTE) | intrenb; emu 295 sound/pci/emu10k1/io.c outl(enable, emu->port + INTE); emu 296 sound/pci/emu10k1/io.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 299 sound/pci/emu10k1/io.c void snd_emu10k1_intr_disable(struct snd_emu10k1 *emu, unsigned int intrenb) emu 304 sound/pci/emu10k1/io.c spin_lock_irqsave(&emu->emu_lock, flags); emu 305 sound/pci/emu10k1/io.c enable = inl(emu->port + INTE) & ~intrenb; emu 306 sound/pci/emu10k1/io.c outl(enable, emu->port + INTE); emu 307 sound/pci/emu10k1/io.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 310 sound/pci/emu10k1/io.c void snd_emu10k1_voice_intr_enable(struct snd_emu10k1 *emu, unsigned int voicenum) emu 315 sound/pci/emu10k1/io.c spin_lock_irqsave(&emu->emu_lock, flags); emu 318 sound/pci/emu10k1/io.c outl(CLIEH << 16, emu->port + PTR); emu 319 sound/pci/emu10k1/io.c val = inl(emu->port + DATA); emu 322 sound/pci/emu10k1/io.c outl(CLIEL << 16, emu->port + PTR); emu 323 sound/pci/emu10k1/io.c val = inl(emu->port + DATA); emu 326 sound/pci/emu10k1/io.c outl(val, emu->port + DATA); emu 327 sound/pci/emu10k1/io.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 330 sound/pci/emu10k1/io.c void snd_emu10k1_voice_intr_disable(struct snd_emu10k1 *emu, unsigned int voicenum) emu 335 sound/pci/emu10k1/io.c spin_lock_irqsave(&emu->emu_lock, flags); emu 338 sound/pci/emu10k1/io.c outl(CLIEH << 16, emu->port + PTR); emu 339 sound/pci/emu10k1/io.c val = inl(emu->port + DATA); emu 342 sound/pci/emu10k1/io.c outl(CLIEL << 16, emu->port + PTR); emu 343 sound/pci/emu10k1/io.c val = inl(emu->port + DATA); emu 346 sound/pci/emu10k1/io.c outl(val, emu->port + DATA); emu 347 sound/pci/emu10k1/io.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 350 sound/pci/emu10k1/io.c void snd_emu10k1_voice_intr_ack(struct snd_emu10k1 *emu, unsigned int voicenum) emu 354 sound/pci/emu10k1/io.c spin_lock_irqsave(&emu->emu_lock, flags); emu 357 sound/pci/emu10k1/io.c outl(CLIPH << 16, emu->port + PTR); emu 360 sound/pci/emu10k1/io.c outl(CLIPL << 16, emu->port + PTR); emu 363 sound/pci/emu10k1/io.c outl(voicenum, emu->port + DATA); emu 364 sound/pci/emu10k1/io.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 367 sound/pci/emu10k1/io.c void snd_emu10k1_voice_half_loop_intr_enable(struct snd_emu10k1 *emu, unsigned int voicenum) emu 372 sound/pci/emu10k1/io.c spin_lock_irqsave(&emu->emu_lock, flags); emu 375 sound/pci/emu10k1/io.c outl(HLIEH << 16, emu->port + PTR); emu 376 sound/pci/emu10k1/io.c val = inl(emu->port + DATA); emu 379 sound/pci/emu10k1/io.c outl(HLIEL << 16, emu->port + PTR); emu 380 sound/pci/emu10k1/io.c val = inl(emu->port + DATA); emu 383 sound/pci/emu10k1/io.c outl(val, emu->port + DATA); emu 384 sound/pci/emu10k1/io.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 387 sound/pci/emu10k1/io.c void snd_emu10k1_voice_half_loop_intr_disable(struct snd_emu10k1 *emu, unsigned int voicenum) emu 392 sound/pci/emu10k1/io.c spin_lock_irqsave(&emu->emu_lock, flags); emu 395 sound/pci/emu10k1/io.c outl(HLIEH << 16, emu->port + PTR); emu 396 sound/pci/emu10k1/io.c val = inl(emu->port + DATA); emu 399 sound/pci/emu10k1/io.c outl(HLIEL << 16, emu->port + PTR); emu 400 sound/pci/emu10k1/io.c val = inl(emu->port + DATA); emu 403 sound/pci/emu10k1/io.c outl(val, emu->port + DATA); emu 404 sound/pci/emu10k1/io.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 407 sound/pci/emu10k1/io.c void snd_emu10k1_voice_half_loop_intr_ack(struct snd_emu10k1 *emu, unsigned int voicenum) emu 411 sound/pci/emu10k1/io.c spin_lock_irqsave(&emu->emu_lock, flags); emu 414 sound/pci/emu10k1/io.c outl(HLIPH << 16, emu->port + PTR); emu 417 sound/pci/emu10k1/io.c outl(HLIPL << 16, emu->port + PTR); emu 420 sound/pci/emu10k1/io.c outl(voicenum, emu->port + DATA); emu 421 sound/pci/emu10k1/io.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 424 sound/pci/emu10k1/io.c void snd_emu10k1_voice_set_loop_stop(struct snd_emu10k1 *emu, unsigned int voicenum) emu 429 sound/pci/emu10k1/io.c spin_lock_irqsave(&emu->emu_lock, flags); emu 432 sound/pci/emu10k1/io.c outl(SOLEH << 16, emu->port + PTR); emu 433 sound/pci/emu10k1/io.c sol = inl(emu->port + DATA); emu 436 sound/pci/emu10k1/io.c outl(SOLEL << 16, emu->port + PTR); emu 437 sound/pci/emu10k1/io.c sol = inl(emu->port + DATA); emu 440 sound/pci/emu10k1/io.c outl(sol, emu->port + DATA); emu 441 sound/pci/emu10k1/io.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 444 sound/pci/emu10k1/io.c void snd_emu10k1_voice_clear_loop_stop(struct snd_emu10k1 *emu, unsigned int voicenum) emu 449 sound/pci/emu10k1/io.c spin_lock_irqsave(&emu->emu_lock, flags); emu 452 sound/pci/emu10k1/io.c outl(SOLEH << 16, emu->port + PTR); emu 453 sound/pci/emu10k1/io.c sol = inl(emu->port + DATA); emu 456 sound/pci/emu10k1/io.c outl(SOLEL << 16, emu->port + PTR); emu 457 sound/pci/emu10k1/io.c sol = inl(emu->port + DATA); emu 460 sound/pci/emu10k1/io.c outl(sol, emu->port + DATA); emu 461 sound/pci/emu10k1/io.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 464 sound/pci/emu10k1/io.c void snd_emu10k1_wait(struct snd_emu10k1 *emu, unsigned int wait) emu 469 sound/pci/emu10k1/io.c curtime = inl(emu->port + WC) >> 6; emu 473 sound/pci/emu10k1/io.c newtime = inl(emu->port + WC) >> 6; emu 485 sound/pci/emu10k1/io.c struct snd_emu10k1 *emu = ac97->private_data; emu 489 sound/pci/emu10k1/io.c spin_lock_irqsave(&emu->emu_lock, flags); emu 490 sound/pci/emu10k1/io.c outb(reg, emu->port + AC97ADDRESS); emu 491 sound/pci/emu10k1/io.c val = inw(emu->port + AC97DATA); emu 492 sound/pci/emu10k1/io.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 498 sound/pci/emu10k1/io.c struct snd_emu10k1 *emu = ac97->private_data; emu 501 sound/pci/emu10k1/io.c spin_lock_irqsave(&emu->emu_lock, flags); emu 502 sound/pci/emu10k1/io.c outb(reg, emu->port + AC97ADDRESS); emu 503 sound/pci/emu10k1/io.c outw(data, emu->port + AC97DATA); emu 504 sound/pci/emu10k1/io.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 20 sound/pci/emu10k1/irq.c struct snd_emu10k1 *emu = dev_id; emu 25 sound/pci/emu10k1/irq.c while (((status = inl(emu->port + IPR)) != 0) && (timeout < 1000)) { emu 30 sound/pci/emu10k1/irq.c dev_info(emu->card->dev, emu 35 sound/pci/emu10k1/irq.c dev_err(emu->card->dev, "interrupt: PCI error\n"); emu 36 sound/pci/emu10k1/irq.c snd_emu10k1_intr_disable(emu, INTE_PCIERRORENABLE); emu 40 sound/pci/emu10k1/irq.c if (emu->hwvol_interrupt) emu 41 sound/pci/emu10k1/irq.c emu->hwvol_interrupt(emu, status); emu 43 sound/pci/emu10k1/irq.c snd_emu10k1_intr_disable(emu, INTE_VOLINCRENABLE|INTE_VOLDECRENABLE|INTE_MUTEENABLE); emu 50 sound/pci/emu10k1/irq.c struct snd_emu10k1_voice *pvoice = emu->voices; emu 52 sound/pci/emu10k1/irq.c val = snd_emu10k1_ptr_read(emu, CLIPL, 0); emu 55 sound/pci/emu10k1/irq.c val = snd_emu10k1_ptr_read(emu, CLIPH, 0); emu 58 sound/pci/emu10k1/irq.c pvoice->interrupt(emu, pvoice); emu 59 sound/pci/emu10k1/irq.c snd_emu10k1_voice_intr_ack(emu, voice); emu 61 sound/pci/emu10k1/irq.c snd_emu10k1_voice_intr_disable(emu, voice); emu 67 sound/pci/emu10k1/irq.c val = snd_emu10k1_ptr_read(emu, HLIPL, 0); emu 70 sound/pci/emu10k1/irq.c val = snd_emu10k1_ptr_read(emu, HLIPH, 0); emu 73 sound/pci/emu10k1/irq.c pvoice->interrupt(emu, pvoice); emu 74 sound/pci/emu10k1/irq.c snd_emu10k1_voice_half_loop_intr_ack(emu, voice); emu 76 sound/pci/emu10k1/irq.c snd_emu10k1_voice_half_loop_intr_disable(emu, voice); emu 86 sound/pci/emu10k1/irq.c if (emu->capture_interrupt) emu 87 sound/pci/emu10k1/irq.c emu->capture_interrupt(emu, status); emu 89 sound/pci/emu10k1/irq.c snd_emu10k1_intr_disable(emu, INTE_ADCBUFENABLE); emu 93 sound/pci/emu10k1/irq.c if (emu->capture_mic_interrupt) emu 94 sound/pci/emu10k1/irq.c emu->capture_mic_interrupt(emu, status); emu 96 sound/pci/emu10k1/irq.c snd_emu10k1_intr_disable(emu, INTE_MICBUFENABLE); emu 100 sound/pci/emu10k1/irq.c if (emu->capture_efx_interrupt) emu 101 sound/pci/emu10k1/irq.c emu->capture_efx_interrupt(emu, status); emu 103 sound/pci/emu10k1/irq.c snd_emu10k1_intr_disable(emu, INTE_EFXBUFENABLE); emu 107 sound/pci/emu10k1/irq.c if (emu->midi.interrupt) emu 108 sound/pci/emu10k1/irq.c emu->midi.interrupt(emu, status); emu 110 sound/pci/emu10k1/irq.c snd_emu10k1_intr_disable(emu, INTE_MIDITXENABLE|INTE_MIDIRXENABLE); emu 114 sound/pci/emu10k1/irq.c if (emu->midi2.interrupt) emu 115 sound/pci/emu10k1/irq.c emu->midi2.interrupt(emu, status); emu 117 sound/pci/emu10k1/irq.c snd_emu10k1_intr_disable(emu, INTE_A_MIDITXENABLE2|INTE_A_MIDIRXENABLE2); emu 121 sound/pci/emu10k1/irq.c if (emu->timer) emu 122 sound/pci/emu10k1/irq.c snd_timer_interrupt(emu->timer, emu->timer->sticks); emu 124 sound/pci/emu10k1/irq.c snd_emu10k1_intr_disable(emu, INTE_INTERVALTIMERENB); emu 128 sound/pci/emu10k1/irq.c if (emu->spdif_interrupt) emu 129 sound/pci/emu10k1/irq.c emu->spdif_interrupt(emu, status); emu 131 sound/pci/emu10k1/irq.c snd_emu10k1_intr_disable(emu, INTE_GPSPDIFENABLE|INTE_CDSPDIFENABLE); emu 135 sound/pci/emu10k1/irq.c if (emu->dsp_interrupt) emu 136 sound/pci/emu10k1/irq.c emu->dsp_interrupt(emu); emu 138 sound/pci/emu10k1/irq.c snd_emu10k1_intr_disable(emu, INTE_FXDSPENABLE); emu 142 sound/pci/emu10k1/irq.c while ((status2 = inl(emu->port + IPR2)) != 0) { emu 144 sound/pci/emu10k1/irq.c struct snd_emu10k1_voice *pvoice = &(emu->p16v_voices[0]); emu 145 sound/pci/emu10k1/irq.c struct snd_emu10k1_voice *cvoice = &(emu->p16v_capture_voice); emu 153 sound/pci/emu10k1/irq.c dev_err(emu->card->dev, emu 166 sound/pci/emu10k1/irq.c outl(orig_status2, emu->port + IPR2); /* ack all */ emu 173 sound/pci/emu10k1/irq.c dev_err(emu->card->dev, emu 189 sound/pci/emu10k1/irq.c if (emu->audigy) emu 191 sound/pci/emu10k1/irq.c snd_emu10k1_intr_disable(emu, bits); emu 193 sound/pci/emu10k1/irq.c outl(orig_status, emu->port + IPR); /* ack all */ emu 196 sound/pci/emu10k1/irq.c dev_info(emu->card->dev, "emu10k1 irq routine failure\n"); emu 21 sound/pci/emu10k1/memory.c #define __set_ptb_entry(emu,page,addr) \ emu 22 sound/pci/emu10k1/memory.c (((__le32 *)(emu)->ptb_pages.area)[page] = \ emu 23 sound/pci/emu10k1/memory.c cpu_to_le32(((addr) << (emu->address_mode)) | (page))) emu 24 sound/pci/emu10k1/memory.c #define __get_ptb_entry(emu, page) \ emu 25 sound/pci/emu10k1/memory.c (le32_to_cpu(((__le32 *)(emu)->ptb_pages.area)[page])) emu 37 sound/pci/emu10k1/memory.c #define set_ptb_entry(emu,page,addr) __set_ptb_entry(emu,page,addr) emu 39 sound/pci/emu10k1/memory.c #define set_silent_ptb(emu,page) __set_ptb_entry(emu,page,emu->silent_page.addr) emu 42 sound/pci/emu10k1/memory.c static inline void set_ptb_entry(struct snd_emu10k1 *emu, int page, dma_addr_t addr) emu 47 sound/pci/emu10k1/memory.c __set_ptb_entry(emu, page, addr); emu 48 sound/pci/emu10k1/memory.c dev_dbg(emu->card->dev, "mapped page %d to entry %.8x\n", page, emu 49 sound/pci/emu10k1/memory.c (unsigned int)__get_ptb_entry(emu, page)); emu 53 sound/pci/emu10k1/memory.c static inline void set_silent_ptb(struct snd_emu10k1 *emu, int page) emu 59 sound/pci/emu10k1/memory.c __set_ptb_entry(emu, page, emu->silent_page.addr); emu 60 sound/pci/emu10k1/memory.c dev_dbg(emu->card->dev, "mapped silent page %d to entry %.8x\n", emu 61 sound/pci/emu10k1/memory.c page, (unsigned int)__get_ptb_entry(emu, page)); emu 95 sound/pci/emu10k1/memory.c static int search_empty_map_area(struct snd_emu10k1 *emu, int npages, struct list_head **nextp) emu 100 sound/pci/emu10k1/memory.c struct list_head *candidate = &emu->mapped_link_head; emu 103 sound/pci/emu10k1/memory.c list_for_each (pos, &emu->mapped_link_head) { emu 120 sound/pci/emu10k1/memory.c size = (emu->address_mode ? MAX_ALIGN_PAGES1 : MAX_ALIGN_PAGES0) - page; emu 134 sound/pci/emu10k1/memory.c static int map_memblk(struct snd_emu10k1 *emu, struct snd_emu10k1_memblk *blk) emu 139 sound/pci/emu10k1/memory.c page = search_empty_map_area(emu, blk->pages, &next); emu 143 sound/pci/emu10k1/memory.c dev_err(emu->card->dev, "trying to map zero (reserved) page\n"); emu 149 sound/pci/emu10k1/memory.c list_add_tail(&blk->mapped_order_link, &emu->mapped_order_link_head); emu 153 sound/pci/emu10k1/memory.c set_ptb_entry(emu, page, emu->page_addr_table[pg]); emu 165 sound/pci/emu10k1/memory.c static int unmap_memblk(struct snd_emu10k1 *emu, struct snd_emu10k1_memblk *blk) emu 172 sound/pci/emu10k1/memory.c if ((p = blk->mapped_link.prev) != &emu->mapped_link_head) { emu 177 sound/pci/emu10k1/memory.c if ((p = blk->mapped_link.next) != &emu->mapped_link_head) { emu 181 sound/pci/emu10k1/memory.c end_page = (emu->address_mode ? MAX_ALIGN_PAGES1 : MAX_ALIGN_PAGES0); emu 189 sound/pci/emu10k1/memory.c set_silent_ptb(emu, mpage); emu 202 sound/pci/emu10k1/memory.c search_empty(struct snd_emu10k1 *emu, int size) emu 210 sound/pci/emu10k1/memory.c list_for_each(p, &emu->memhdr->block) { emu 216 sound/pci/emu10k1/memory.c if (page + psize > emu->max_cache_pages) emu 221 sound/pci/emu10k1/memory.c blk = (struct snd_emu10k1_memblk *)__snd_util_memblk_new(emu->memhdr, psize << PAGE_SHIFT, p->prev); emu 233 sound/pci/emu10k1/memory.c static int is_valid_page(struct snd_emu10k1 *emu, dma_addr_t addr) emu 235 sound/pci/emu10k1/memory.c if (addr & ~emu->dma_mask) { emu 236 sound/pci/emu10k1/memory.c dev_err_ratelimited(emu->card->dev, emu 238 sound/pci/emu10k1/memory.c emu->dma_mask, (unsigned long)addr); emu 242 sound/pci/emu10k1/memory.c dev_err_ratelimited(emu->card->dev, "page is not aligned\n"); emu 254 sound/pci/emu10k1/memory.c int snd_emu10k1_memblk_map(struct snd_emu10k1 *emu, struct snd_emu10k1_memblk *blk) emu 262 sound/pci/emu10k1/memory.c spin_lock_irqsave(&emu->memblk_lock, flags); emu 266 sound/pci/emu10k1/memory.c &emu->mapped_order_link_head); emu 267 sound/pci/emu10k1/memory.c spin_unlock_irqrestore(&emu->memblk_lock, flags); emu 270 sound/pci/emu10k1/memory.c if ((err = map_memblk(emu, blk)) < 0) { emu 273 sound/pci/emu10k1/memory.c p = emu->mapped_order_link_head.next; emu 274 sound/pci/emu10k1/memory.c for (; p != &emu->mapped_order_link_head; p = nextp) { emu 279 sound/pci/emu10k1/memory.c size = unmap_memblk(emu, deleted); emu 282 sound/pci/emu10k1/memory.c err = map_memblk(emu, blk); emu 287 sound/pci/emu10k1/memory.c spin_unlock_irqrestore(&emu->memblk_lock, flags); emu 297 sound/pci/emu10k1/memory.c snd_emu10k1_alloc_pages(struct snd_emu10k1 *emu, struct snd_pcm_substream *substream) emu 304 sound/pci/emu10k1/memory.c if (snd_BUG_ON(!emu)) emu 307 sound/pci/emu10k1/memory.c runtime->dma_bytes >= (emu->address_mode ? MAXPAGES1 : MAXPAGES0) * EMUPAGESIZE)) emu 309 sound/pci/emu10k1/memory.c hdr = emu->memhdr; emu 314 sound/pci/emu10k1/memory.c (emu->delay_pcm_irq * 2) : 0; emu 316 sound/pci/emu10k1/memory.c blk = search_empty(emu, runtime->dma_bytes + idx); emu 329 sound/pci/emu10k1/memory.c addr = emu->silent_page.addr; emu 332 sound/pci/emu10k1/memory.c if (! is_valid_page(emu, addr)) { emu 333 sound/pci/emu10k1/memory.c dev_err_ratelimited(emu->card->dev, emu 338 sound/pci/emu10k1/memory.c emu->page_addr_table[page] = addr; emu 339 sound/pci/emu10k1/memory.c emu->page_ptr_table[page] = NULL; emu 344 sound/pci/emu10k1/memory.c err = snd_emu10k1_memblk_map(emu, blk); emu 358 sound/pci/emu10k1/memory.c int snd_emu10k1_free_pages(struct snd_emu10k1 *emu, struct snd_util_memblk *blk) emu 360 sound/pci/emu10k1/memory.c if (snd_BUG_ON(!emu || !blk)) emu 362 sound/pci/emu10k1/memory.c return snd_emu10k1_synth_free(emu, blk); emu 374 sound/pci/emu10k1/memory.c int snd_emu10k1_alloc_pages_maybe_wider(struct snd_emu10k1 *emu, size_t size, emu 377 sound/pci/emu10k1/memory.c if (emu->iommu_workaround) { emu 390 sound/pci/emu10k1/memory.c snd_dma_pci_data(emu->pci), size, dmab); emu 429 sound/pci/emu10k1/memory.c snd_emu10k1_synth_free(struct snd_emu10k1 *emu, struct snd_util_memblk *memblk) emu 431 sound/pci/emu10k1/memory.c struct snd_util_memhdr *hdr = emu->memhdr; emu 436 sound/pci/emu10k1/memory.c spin_lock_irqsave(&emu->memblk_lock, flags); emu 438 sound/pci/emu10k1/memory.c unmap_memblk(emu, blk); emu 439 sound/pci/emu10k1/memory.c spin_unlock_irqrestore(&emu->memblk_lock, flags); emu 440 sound/pci/emu10k1/memory.c synth_free_pages(emu, blk); emu 473 sound/pci/emu10k1/memory.c static void __synth_free_pages(struct snd_emu10k1 *emu, int first_page, emu 480 sound/pci/emu10k1/memory.c dmab.dev.dev = snd_dma_pci_data(emu->pci); emu 483 sound/pci/emu10k1/memory.c if (emu->page_ptr_table[page] == NULL) emu 485 sound/pci/emu10k1/memory.c dmab.area = emu->page_ptr_table[page]; emu 486 sound/pci/emu10k1/memory.c dmab.addr = emu->page_addr_table[page]; emu 493 sound/pci/emu10k1/memory.c if (emu->iommu_workaround) emu 497 sound/pci/emu10k1/memory.c emu->page_addr_table[page] = 0; emu 498 sound/pci/emu10k1/memory.c emu->page_ptr_table[page] = NULL; emu 505 sound/pci/emu10k1/memory.c static int synth_alloc_pages(struct snd_emu10k1 *emu, struct snd_emu10k1_memblk *blk) emu 511 sound/pci/emu10k1/memory.c get_single_page_range(emu->memhdr, blk, &first_page, &last_page); emu 514 sound/pci/emu10k1/memory.c if (snd_emu10k1_alloc_pages_maybe_wider(emu, PAGE_SIZE, emu 517 sound/pci/emu10k1/memory.c if (!is_valid_page(emu, dmab.addr)) { emu 521 sound/pci/emu10k1/memory.c emu->page_addr_table[page] = dmab.addr; emu 522 sound/pci/emu10k1/memory.c emu->page_ptr_table[page] = dmab.area; emu 529 sound/pci/emu10k1/memory.c __synth_free_pages(emu, first_page, last_page); emu 537 sound/pci/emu10k1/memory.c static int synth_free_pages(struct snd_emu10k1 *emu, struct snd_emu10k1_memblk *blk) emu 541 sound/pci/emu10k1/memory.c get_single_page_range(emu->memhdr, blk, &first_page, &last_page); emu 542 sound/pci/emu10k1/memory.c __synth_free_pages(emu, first_page, last_page); emu 547 sound/pci/emu10k1/memory.c static inline void *offset_ptr(struct snd_emu10k1 *emu, int page, int offset) emu 550 sound/pci/emu10k1/memory.c if (snd_BUG_ON(page < 0 || page >= emu->max_cache_pages)) emu 552 sound/pci/emu10k1/memory.c ptr = emu->page_ptr_table[page]; emu 554 sound/pci/emu10k1/memory.c dev_err(emu->card->dev, emu 565 sound/pci/emu10k1/memory.c int snd_emu10k1_synth_bzero(struct snd_emu10k1 *emu, struct snd_util_memblk *blk, emu 581 sound/pci/emu10k1/memory.c ptr = offset_ptr(emu, page + p->first_page, offset); emu 595 sound/pci/emu10k1/memory.c int snd_emu10k1_synth_copy_from_user(struct snd_emu10k1 *emu, struct snd_util_memblk *blk, emu 611 sound/pci/emu10k1/memory.c ptr = offset_ptr(emu, page + p->first_page, offset); emu 162 sound/pci/emu10k1/p16v.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 163 sound/pci/emu10k1/p16v.c struct snd_emu10k1_voice *channel = &(emu->p16v_voices[channel_id]); emu 173 sound/pci/emu10k1/p16v.c epcm->emu = emu; emu 184 sound/pci/emu10k1/p16v.c channel->emu = emu; emu 189 sound/pci/emu10k1/p16v.c dev_dbg(emu->card->dev, emu 192 sound/pci/emu10k1/p16v.c dev_dbg(emu->card->dev, "open:channel_id=%d, chip=%p, channel=%p\n", emu 210 sound/pci/emu10k1/p16v.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 211 sound/pci/emu10k1/p16v.c struct snd_emu10k1_voice *channel = &(emu->p16v_capture_voice); emu 221 sound/pci/emu10k1/p16v.c epcm->emu = emu; emu 232 sound/pci/emu10k1/p16v.c channel->emu = emu; emu 237 sound/pci/emu10k1/p16v.c dev_dbg(emu->card->dev, emu 240 sound/pci/emu10k1/p16v.c dev_dbg(emu->card->dev, "open:channel_id=%d, chip=%p, channel=%p\n", emu 255 sound/pci/emu10k1/p16v.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 258 sound/pci/emu10k1/p16v.c emu->p16v_voices[substream->pcm->device - emu->p16v_device_offset].use = 0; emu 266 sound/pci/emu10k1/p16v.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 269 sound/pci/emu10k1/p16v.c emu->p16v_capture_voice.use = 0; emu 318 sound/pci/emu10k1/p16v.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 320 sound/pci/emu10k1/p16v.c int channel = substream->pcm->device - emu->p16v_device_offset; emu 321 sound/pci/emu10k1/p16v.c u32 *table_base = (u32 *)(emu->p16v_buffer.area+(8*16*channel)); emu 327 sound/pci/emu10k1/p16v.c dev_dbg(emu->card->dev, emu 334 sound/pci/emu10k1/p16v.c dev_dbg(emu->card->dev, emu 337 sound/pci/emu10k1/p16v.c dev_dbg(emu->card->dev, emu 339 sound/pci/emu10k1/p16v.c emu->p16v_buffer.addr, emu->p16v_buffer.area, emu 340 sound/pci/emu10k1/p16v.c emu->p16v_buffer.bytes); emu 342 sound/pci/emu10k1/p16v.c tmp = snd_emu10k1_ptr_read(emu, A_SPDIF_SAMPLERATE, channel); emu 345 sound/pci/emu10k1/p16v.c snd_emu10k1_ptr_write(emu, A_SPDIF_SAMPLERATE, channel, (tmp & ~0xe0e0) | 0x8080); emu 348 sound/pci/emu10k1/p16v.c snd_emu10k1_ptr_write(emu, A_SPDIF_SAMPLERATE, channel, (tmp & ~0xe0e0) | 0x4040); emu 351 sound/pci/emu10k1/p16v.c snd_emu10k1_ptr_write(emu, A_SPDIF_SAMPLERATE, channel, (tmp & ~0xe0e0) | 0x2020); emu 355 sound/pci/emu10k1/p16v.c snd_emu10k1_ptr_write(emu, A_SPDIF_SAMPLERATE, channel, (tmp & ~0xe0e0) | 0x0000); emu 364 sound/pci/emu10k1/p16v.c snd_emu10k1_ptr20_write(emu, PLAYBACK_LIST_ADDR, channel, emu->p16v_buffer.addr+(8*16*channel)); emu 365 sound/pci/emu10k1/p16v.c snd_emu10k1_ptr20_write(emu, PLAYBACK_LIST_SIZE, channel, (runtime->periods - 1) << 19); emu 366 sound/pci/emu10k1/p16v.c snd_emu10k1_ptr20_write(emu, PLAYBACK_LIST_PTR, channel, 0); emu 367 sound/pci/emu10k1/p16v.c snd_emu10k1_ptr20_write(emu, PLAYBACK_DMA_ADDR, channel, runtime->dma_addr); emu 369 sound/pci/emu10k1/p16v.c snd_emu10k1_ptr20_write(emu, PLAYBACK_PERIOD_SIZE, channel, 0); // buffer size in bytes emu 370 sound/pci/emu10k1/p16v.c snd_emu10k1_ptr20_write(emu, PLAYBACK_POINTER, channel, 0); emu 371 sound/pci/emu10k1/p16v.c snd_emu10k1_ptr20_write(emu, 0x07, channel, 0x0); emu 372 sound/pci/emu10k1/p16v.c snd_emu10k1_ptr20_write(emu, 0x08, channel, 0); emu 380 sound/pci/emu10k1/p16v.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 382 sound/pci/emu10k1/p16v.c int channel = substream->pcm->device - emu->p16v_device_offset; emu 393 sound/pci/emu10k1/p16v.c tmp = snd_emu10k1_ptr_read(emu, A_SPDIF_SAMPLERATE, channel); emu 396 sound/pci/emu10k1/p16v.c snd_emu10k1_ptr_write(emu, A_SPDIF_SAMPLERATE, channel, (tmp & ~0x0e00) | 0x0800); emu 399 sound/pci/emu10k1/p16v.c snd_emu10k1_ptr_write(emu, A_SPDIF_SAMPLERATE, channel, (tmp & ~0x0e00) | 0x0400); emu 402 sound/pci/emu10k1/p16v.c snd_emu10k1_ptr_write(emu, A_SPDIF_SAMPLERATE, channel, (tmp & ~0x0e00) | 0x0200); emu 406 sound/pci/emu10k1/p16v.c snd_emu10k1_ptr_write(emu, A_SPDIF_SAMPLERATE, channel, (tmp & ~0x0e00) | 0x0000); emu 410 sound/pci/emu10k1/p16v.c snd_emu10k1_ptr20_write(emu, 0x13, channel, 0); emu 411 sound/pci/emu10k1/p16v.c snd_emu10k1_ptr20_write(emu, CAPTURE_DMA_ADDR, channel, runtime->dma_addr); emu 412 sound/pci/emu10k1/p16v.c snd_emu10k1_ptr20_write(emu, CAPTURE_BUFFER_SIZE, channel, frames_to_bytes(runtime, runtime->buffer_size) << 16); // buffer size in bytes emu 413 sound/pci/emu10k1/p16v.c snd_emu10k1_ptr20_write(emu, CAPTURE_POINTER, channel, 0); emu 420 sound/pci/emu10k1/p16v.c static void snd_p16v_intr_enable(struct snd_emu10k1 *emu, unsigned int intrenb) emu 425 sound/pci/emu10k1/p16v.c spin_lock_irqsave(&emu->emu_lock, flags); emu 426 sound/pci/emu10k1/p16v.c enable = inl(emu->port + INTE2) | intrenb; emu 427 sound/pci/emu10k1/p16v.c outl(enable, emu->port + INTE2); emu 428 sound/pci/emu10k1/p16v.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 431 sound/pci/emu10k1/p16v.c static void snd_p16v_intr_disable(struct snd_emu10k1 *emu, unsigned int intrenb) emu 436 sound/pci/emu10k1/p16v.c spin_lock_irqsave(&emu->emu_lock, flags); emu 437 sound/pci/emu10k1/p16v.c disable = inl(emu->port + INTE2) & (~intrenb); emu 438 sound/pci/emu10k1/p16v.c outl(disable, emu->port + INTE2); emu 439 sound/pci/emu10k1/p16v.c spin_unlock_irqrestore(&emu->emu_lock, flags); emu 446 sound/pci/emu10k1/p16v.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 466 sound/pci/emu10k1/p16v.c if (snd_pcm_substream_chip(s) != emu || emu 471 sound/pci/emu10k1/p16v.c channel = substream->pcm->device-emu->p16v_device_offset; emu 482 sound/pci/emu10k1/p16v.c snd_p16v_intr_enable(emu, inte); emu 483 sound/pci/emu10k1/p16v.c snd_emu10k1_ptr20_write(emu, BASIC_INTERRUPT, 0, snd_emu10k1_ptr20_read(emu, BASIC_INTERRUPT, 0)| (basic)); emu 486 sound/pci/emu10k1/p16v.c snd_emu10k1_ptr20_write(emu, BASIC_INTERRUPT, 0, snd_emu10k1_ptr20_read(emu, BASIC_INTERRUPT, 0) & ~(basic)); emu 487 sound/pci/emu10k1/p16v.c snd_p16v_intr_disable(emu, inte); emu 500 sound/pci/emu10k1/p16v.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 509 sound/pci/emu10k1/p16v.c snd_p16v_intr_enable(emu, inte); emu 510 sound/pci/emu10k1/p16v.c snd_emu10k1_ptr20_write(emu, BASIC_INTERRUPT, 0, snd_emu10k1_ptr20_read(emu, BASIC_INTERRUPT, 0)|(0x100<<channel)); emu 514 sound/pci/emu10k1/p16v.c snd_emu10k1_ptr20_write(emu, BASIC_INTERRUPT, 0, snd_emu10k1_ptr20_read(emu, BASIC_INTERRUPT, 0) & ~(0x100<<channel)); emu 515 sound/pci/emu10k1/p16v.c snd_p16v_intr_disable(emu, inte); emu 530 sound/pci/emu10k1/p16v.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 534 sound/pci/emu10k1/p16v.c int channel = substream->pcm->device - emu->p16v_device_offset; emu 538 sound/pci/emu10k1/p16v.c ptr3 = snd_emu10k1_ptr20_read(emu, PLAYBACK_LIST_PTR, channel); emu 539 sound/pci/emu10k1/p16v.c ptr1 = snd_emu10k1_ptr20_read(emu, PLAYBACK_POINTER, channel); emu 540 sound/pci/emu10k1/p16v.c ptr4 = snd_emu10k1_ptr20_read(emu, PLAYBACK_LIST_PTR, channel); emu 541 sound/pci/emu10k1/p16v.c if (ptr3 != ptr4) ptr1 = snd_emu10k1_ptr20_read(emu, PLAYBACK_POINTER, channel); emu 555 sound/pci/emu10k1/p16v.c struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); emu 564 sound/pci/emu10k1/p16v.c ptr1 = snd_emu10k1_ptr20_read(emu, CAPTURE_POINTER, channel); emu 569 sound/pci/emu10k1/p16v.c dev_warn(emu->card->dev, "buffer capture limited!\n"); emu 618 sound/pci/emu10k1/p16v.c int snd_p16v_pcm(struct snd_emu10k1 *emu, int device) emu 626 sound/pci/emu10k1/p16v.c emu->p16v_device_offset = device; emu 628 sound/pci/emu10k1/p16v.c if ((err = snd_pcm_new(emu->card, "p16v", device, 1, capture, &pcm)) < 0) emu 631 sound/pci/emu10k1/p16v.c pcm->private_data = emu; emu 640 sound/pci/emu10k1/p16v.c emu->pcm_p16v = pcm; emu 646 sound/pci/emu10k1/p16v.c snd_dma_pci_data(emu->pci), emu 659 sound/pci/emu10k1/p16v.c snd_dma_pci_data(emu->pci), emu 683 sound/pci/emu10k1/p16v.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 688 sound/pci/emu10k1/p16v.c value = snd_emu10k1_ptr20_read(emu, reg, high_low); emu 702 sound/pci/emu10k1/p16v.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 707 sound/pci/emu10k1/p16v.c oval = value = snd_emu10k1_ptr20_read(emu, reg, 0); emu 718 sound/pci/emu10k1/p16v.c snd_emu10k1_ptr20_write(emu, reg, 0, value); emu 738 sound/pci/emu10k1/p16v.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 740 sound/pci/emu10k1/p16v.c ucontrol->value.enumerated.item[0] = emu->p16v_capture_source; emu 747 sound/pci/emu10k1/p16v.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 756 sound/pci/emu10k1/p16v.c change = (emu->p16v_capture_source != val); emu 758 sound/pci/emu10k1/p16v.c emu->p16v_capture_source = val; emu 760 sound/pci/emu10k1/p16v.c mask = snd_emu10k1_ptr20_read(emu, BASIC_INTERRUPT, 0) & 0xffff; emu 761 sound/pci/emu10k1/p16v.c snd_emu10k1_ptr20_write(emu, BASIC_INTERRUPT, 0, source | mask); emu 777 sound/pci/emu10k1/p16v.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 779 sound/pci/emu10k1/p16v.c ucontrol->value.enumerated.item[0] = emu->p16v_capture_channel; emu 786 sound/pci/emu10k1/p16v.c struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); emu 794 sound/pci/emu10k1/p16v.c change = (emu->p16v_capture_channel != val); emu 796 sound/pci/emu10k1/p16v.c emu->p16v_capture_channel = val; emu 797 sound/pci/emu10k1/p16v.c tmp = snd_emu10k1_ptr20_read(emu, CAPTURE_P16V_SOURCE, 0) & 0xfffc; emu 798 sound/pci/emu10k1/p16v.c snd_emu10k1_ptr20_write(emu, CAPTURE_P16V_SOURCE, 0, tmp | val); emu 841 sound/pci/emu10k1/p16v.c int snd_p16v_mixer(struct snd_emu10k1 *emu) emu 844 sound/pci/emu10k1/p16v.c struct snd_card *card = emu->card; emu 848 sound/pci/emu10k1/p16v.c emu))) < 0) emu 858 sound/pci/emu10k1/p16v.c int snd_p16v_alloc_pm_buffer(struct snd_emu10k1 *emu) emu 860 sound/pci/emu10k1/p16v.c emu->p16v_saved = vmalloc(array_size(NUM_CHS * 4, 0x80)); emu 861 sound/pci/emu10k1/p16v.c if (! emu->p16v_saved) emu 866 sound/pci/emu10k1/p16v.c void snd_p16v_free_pm_buffer(struct snd_emu10k1 *emu) emu 868 sound/pci/emu10k1/p16v.c vfree(emu->p16v_saved); emu 871 sound/pci/emu10k1/p16v.c void snd_p16v_suspend(struct snd_emu10k1 *emu) emu 876 sound/pci/emu10k1/p16v.c val = emu->p16v_saved; emu 879 sound/pci/emu10k1/p16v.c *val = snd_emu10k1_ptr20_read(emu, i, ch); emu 882 sound/pci/emu10k1/p16v.c void snd_p16v_resume(struct snd_emu10k1 *emu) emu 887 sound/pci/emu10k1/p16v.c val = emu->p16v_saved; emu 890 sound/pci/emu10k1/p16v.c snd_emu10k1_ptr20_write(emu, i, ch, *val); emu 20 sound/pci/emu10k1/timer.c struct snd_emu10k1 *emu; emu 24 sound/pci/emu10k1/timer.c emu = snd_timer_chip(timer); emu 28 sound/pci/emu10k1/timer.c spin_lock_irqsave(&emu->reg_lock, flags); emu 29 sound/pci/emu10k1/timer.c snd_emu10k1_intr_enable(emu, INTE_INTERVALTIMERENB); emu 30 sound/pci/emu10k1/timer.c outw(delay & TIMER_RATE_MASK, emu->port + TIMER); emu 31 sound/pci/emu10k1/timer.c spin_unlock_irqrestore(&emu->reg_lock, flags); emu 37 sound/pci/emu10k1/timer.c struct snd_emu10k1 *emu; emu 40 sound/pci/emu10k1/timer.c emu = snd_timer_chip(timer); emu 41 sound/pci/emu10k1/timer.c spin_lock_irqsave(&emu->reg_lock, flags); emu 42 sound/pci/emu10k1/timer.c snd_emu10k1_intr_disable(emu, INTE_INTERVALTIMERENB); emu 43 sound/pci/emu10k1/timer.c spin_unlock_irqrestore(&emu->reg_lock, flags); emu 64 sound/pci/emu10k1/timer.c int snd_emu10k1_timer(struct snd_emu10k1 *emu, int device) emu 72 sound/pci/emu10k1/timer.c tid.card = emu->card->number; emu 75 sound/pci/emu10k1/timer.c if ((err = snd_timer_new(emu->card, "EMU10K1", &tid, &timer)) >= 0) { emu 77 sound/pci/emu10k1/timer.c timer->private_data = emu; emu 80 sound/pci/emu10k1/timer.c emu->timer = timer; emu 34 sound/pci/emu10k1/voice.c static int voice_alloc(struct snd_emu10k1 *emu, int type, int number, emu 42 sound/pci/emu10k1/voice.c for (i = emu->next_free_voice, j = 0; j < NUM_G ; i += number, j += number) { emu 57 sound/pci/emu10k1/voice.c voice = &emu->voices[(i+k) % NUM_G]; emu 67 sound/pci/emu10k1/voice.c emu->next_free_voice = last_voice; emu 76 sound/pci/emu10k1/voice.c voice = &emu->voices[(first_voice + i) % NUM_G]; emu 97 sound/pci/emu10k1/voice.c *rvoice = &emu->voices[first_voice]; emu 101 sound/pci/emu10k1/voice.c int snd_emu10k1_voice_alloc(struct snd_emu10k1 *emu, int type, int number, emu 112 sound/pci/emu10k1/voice.c spin_lock_irqsave(&emu->voice_lock, flags); emu 114 sound/pci/emu10k1/voice.c result = voice_alloc(emu, type, number, rvoice); emu 119 sound/pci/emu10k1/voice.c if (emu->get_synth_voice) { emu 120 sound/pci/emu10k1/voice.c result = emu->get_synth_voice(emu); emu 122 sound/pci/emu10k1/voice.c struct snd_emu10k1_voice *pvoice = &emu->voices[result]; emu 131 sound/pci/emu10k1/voice.c spin_unlock_irqrestore(&emu->voice_lock, flags); emu 138 sound/pci/emu10k1/voice.c int snd_emu10k1_voice_free(struct snd_emu10k1 *emu, emu 145 sound/pci/emu10k1/voice.c spin_lock_irqsave(&emu->voice_lock, flags); emu 149 sound/pci/emu10k1/voice.c snd_emu10k1_voice_init(emu, pvoice->number); emu 150 sound/pci/emu10k1/voice.c spin_unlock_irqrestore(&emu->voice_lock, flags); emu 26 sound/synth/emux/emux.c struct snd_emux *emu; emu 29 sound/synth/emux/emux.c emu = kzalloc(sizeof(*emu), GFP_KERNEL); emu 30 sound/synth/emux/emux.c if (emu == NULL) emu 33 sound/synth/emux/emux.c spin_lock_init(&emu->voice_lock); emu 34 sound/synth/emux/emux.c mutex_init(&emu->register_mutex); emu 36 sound/synth/emux/emux.c emu->client = -1; emu 38 sound/synth/emux/emux.c emu->oss_synth = NULL; emu 40 sound/synth/emux/emux.c emu->max_voices = 0; emu 41 sound/synth/emux/emux.c emu->use_time = 0; emu 43 sound/synth/emux/emux.c timer_setup(&emu->tlist, snd_emux_timer_callback, 0); emu 44 sound/synth/emux/emux.c emu->timer_active = 0; emu 46 sound/synth/emux/emux.c *remu = emu; emu 58 sound/synth/emux/emux.c struct snd_emux *emu = private_data; emu 59 sound/synth/emux/emux.c return emu->ops.sample_new(emu, sp, hdr, buf, count); emu 66 sound/synth/emux/emux.c struct snd_emux *emu = private_data; emu 67 sound/synth/emux/emux.c return emu->ops.sample_free(emu, sp, hdr); emu 73 sound/synth/emux/emux.c struct snd_emux *emu = private_data; emu 74 sound/synth/emux/emux.c emu->ops.sample_reset(emu); emu 77 sound/synth/emux/emux.c int snd_emux_register(struct snd_emux *emu, struct snd_card *card, int index, char *name) emu 82 sound/synth/emux/emux.c if (snd_BUG_ON(!emu->hw || emu->max_voices <= 0)) emu 87 sound/synth/emux/emux.c emu->card = card; emu 88 sound/synth/emux/emux.c emu->name = kstrdup(name, GFP_KERNEL); emu 89 sound/synth/emux/emux.c emu->voices = kcalloc(emu->max_voices, sizeof(struct snd_emux_voice), emu 91 sound/synth/emux/emux.c if (emu->voices == NULL) emu 96 sound/synth/emux/emux.c sf_cb.private_data = emu; emu 97 sound/synth/emux/emux.c if (emu->ops.sample_new) emu 99 sound/synth/emux/emux.c if (emu->ops.sample_free) emu 101 sound/synth/emux/emux.c if (emu->ops.sample_reset) emu 103 sound/synth/emux/emux.c emu->sflist = snd_sf_new(&sf_cb, emu->memhdr); emu 104 sound/synth/emux/emux.c if (emu->sflist == NULL) emu 107 sound/synth/emux/emux.c if ((err = snd_emux_init_hwdep(emu)) < 0) emu 110 sound/synth/emux/emux.c snd_emux_init_voices(emu); emu 112 sound/synth/emux/emux.c snd_emux_init_seq(emu, card, index); emu 114 sound/synth/emux/emux.c snd_emux_init_seq_oss(emu); emu 116 sound/synth/emux/emux.c snd_emux_init_virmidi(emu, card); emu 118 sound/synth/emux/emux.c snd_emux_proc_init(emu, card, index); emu 126 sound/synth/emux/emux.c int snd_emux_free(struct snd_emux *emu) emu 130 sound/synth/emux/emux.c if (! emu) emu 133 sound/synth/emux/emux.c spin_lock_irqsave(&emu->voice_lock, flags); emu 134 sound/synth/emux/emux.c if (emu->timer_active) emu 135 sound/synth/emux/emux.c del_timer(&emu->tlist); emu 136 sound/synth/emux/emux.c spin_unlock_irqrestore(&emu->voice_lock, flags); emu 138 sound/synth/emux/emux.c snd_emux_proc_free(emu); emu 139 sound/synth/emux/emux.c snd_emux_delete_virmidi(emu); emu 141 sound/synth/emux/emux.c snd_emux_detach_seq_oss(emu); emu 143 sound/synth/emux/emux.c snd_emux_detach_seq(emu); emu 144 sound/synth/emux/emux.c snd_emux_delete_hwdep(emu); emu 145 sound/synth/emux/emux.c snd_sf_free(emu->sflist); emu 146 sound/synth/emux/emux.c kfree(emu->voices); emu 147 sound/synth/emux/emux.c kfree(emu->name); emu 148 sound/synth/emux/emux.c kfree(emu); emu 169 sound/synth/emux/emux_effect.c struct snd_emux *emu; emu 173 sound/synth/emux/emux_effect.c emu = port->emu; emu 175 sound/synth/emux/emux_effect.c if (emu == NULL || fx == NULL) emu 195 sound/synth/emux/emux_effect.c spin_lock_irqsave(&emu->voice_lock, flags); emu 196 sound/synth/emux/emux_effect.c for (i = 0; i < emu->max_voices; i++) { emu 197 sound/synth/emux/emux_effect.c struct snd_emux_voice *vp = &emu->voices[i]; emu 210 sound/synth/emux/emux_effect.c spin_unlock_irqrestore(&emu->voice_lock, flags); emu 20 sound/synth/emux/emux_hwdep.c snd_emux_hwdep_load_patch(struct snd_emux *emu, void __user *arg) emu 29 sound/synth/emux/emux_hwdep.c return snd_soundfont_load_guspatch(emu->sflist, arg, emu 35 sound/synth/emux/emux_hwdep.c err = snd_soundfont_load(emu->sflist, arg, patch.len + sizeof(patch), TMP_CLIENT_ID); emu 39 sound/synth/emux/emux_hwdep.c if (emu->ops.load_fx) emu 40 sound/synth/emux/emux_hwdep.c return emu->ops.load_fx(emu, patch.type, patch.optarg, arg, patch.len + sizeof(patch)); emu 51 sound/synth/emux/emux_hwdep.c snd_emux_hwdep_misc_mode(struct snd_emux *emu, void __user *arg) emu 63 sound/synth/emux/emux_hwdep.c for (i = 0; i < emu->num_ports; i++) emu 64 sound/synth/emux/emux_hwdep.c emu->portptrs[i]->ctrls[info.mode] = info.value; emu 66 sound/synth/emux/emux_hwdep.c if (info.port < emu->num_ports) { emu 67 sound/synth/emux/emux_hwdep.c info.port = array_index_nospec(info.port, emu->num_ports); emu 68 sound/synth/emux/emux_hwdep.c emu->portptrs[info.port]->ctrls[info.mode] = info.value; emu 82 sound/synth/emux/emux_hwdep.c struct snd_emux *emu = hw->private_data; emu 88 sound/synth/emux/emux_hwdep.c return snd_emux_hwdep_load_patch(emu, (void __user *)arg); emu 90 sound/synth/emux/emux_hwdep.c snd_soundfont_remove_samples(emu->sflist); emu 93 sound/synth/emux/emux_hwdep.c snd_soundfont_remove_unlocked(emu->sflist); emu 96 sound/synth/emux/emux_hwdep.c if (emu->memhdr) { emu 97 sound/synth/emux/emux_hwdep.c int size = snd_util_mem_avail(emu->memhdr); emu 102 sound/synth/emux/emux_hwdep.c return snd_emux_hwdep_misc_mode(emu, (void __user *)arg); emu 114 sound/synth/emux/emux_hwdep.c snd_emux_init_hwdep(struct snd_emux *emu) emu 119 sound/synth/emux/emux_hwdep.c if ((err = snd_hwdep_new(emu->card, SNDRV_EMUX_HWDEP_NAME, emu->hwdep_idx, &hw)) < 0) emu 121 sound/synth/emux/emux_hwdep.c emu->hwdep = hw; emu 129 sound/synth/emux/emux_hwdep.c hw->private_data = emu; emu 130 sound/synth/emux/emux_hwdep.c if ((err = snd_card_register(emu->card)) < 0) emu 141 sound/synth/emux/emux_hwdep.c snd_emux_delete_hwdep(struct snd_emux *emu) emu 143 sound/synth/emux/emux_hwdep.c if (emu->hwdep) { emu 144 sound/synth/emux/emux_hwdep.c snd_device_free(emu->card, emu->hwdep); emu 145 sound/synth/emux/emux_hwdep.c emu->hwdep = NULL; emu 366 sound/synth/emux/emux_nrpn.c struct snd_emux *emu; emu 371 sound/synth/emux/emux_nrpn.c emu = port->emu; emu 378 sound/synth/emux/emux_nrpn.c if (emu->ops.sysex) emu 379 sound/synth/emux/emux_nrpn.c emu->ops.sysex(emu, buf, len, parsed, chset); emu 29 sound/synth/emux/emux_oss.c static void emuspec_control(struct snd_emux *emu, struct snd_emux_port *port, emu 31 sound/synth/emux/emux_oss.c static void gusspec_control(struct snd_emux *emu, struct snd_emux_port *port, emu 33 sound/synth/emux/emux_oss.c static void fake_event(struct snd_emux *emu, struct snd_emux_port *port, emu 52 sound/synth/emux/emux_oss.c snd_emux_init_seq_oss(struct snd_emux *emu) emu 58 sound/synth/emux/emux_oss.c if (snd_seq_device_new(emu->card, 1, SNDRV_SEQ_DEV_ID_OSS, emu 62 sound/synth/emux/emux_oss.c emu->oss_synth = dev; emu 63 sound/synth/emux/emux_oss.c strcpy(dev->name, emu->name); emu 67 sound/synth/emux/emux_oss.c arg->nvoices = emu->max_voices; emu 69 sound/synth/emux/emux_oss.c arg->private_data = emu; emu 72 sound/synth/emux/emux_oss.c snd_device_register(emu->card, dev); emu 80 sound/synth/emux/emux_oss.c snd_emux_detach_seq_oss(struct snd_emux *emu) emu 82 sound/synth/emux/emux_oss.c if (emu->oss_synth) { emu 83 sound/synth/emux/emux_oss.c snd_device_free(emu->card, emu->oss_synth); emu 84 sound/synth/emux/emux_oss.c emu->oss_synth = NULL; emu 98 sound/synth/emux/emux_oss.c struct snd_emux *emu; emu 103 sound/synth/emux/emux_oss.c emu = closure; emu 104 sound/synth/emux/emux_oss.c if (snd_BUG_ON(!arg || !emu)) emu 107 sound/synth/emux/emux_oss.c if (!snd_emux_inc_count(emu)) emu 114 sound/synth/emux/emux_oss.c sprintf(tmpname, "%s OSS Port", emu->name); emu 115 sound/synth/emux/emux_oss.c p = snd_emux_create_port(emu, tmpname, 32, emu 119 sound/synth/emux/emux_oss.c snd_emux_dec_count(emu); emu 164 sound/synth/emux/emux_oss.c struct snd_emux *emu; emu 173 sound/synth/emux/emux_oss.c emu = p->emu; emu 174 sound/synth/emux/emux_oss.c if (snd_BUG_ON(!emu)) emu 178 sound/synth/emux/emux_oss.c snd_soundfont_close_check(emu->sflist, SF_CLIENT_NO(p->chset.port)); emu 180 sound/synth/emux/emux_oss.c snd_emux_dec_count(emu); emu 193 sound/synth/emux/emux_oss.c struct snd_emux *emu; emu 203 sound/synth/emux/emux_oss.c emu = p->emu; emu 204 sound/synth/emux/emux_oss.c if (snd_BUG_ON(!emu)) emu 208 sound/synth/emux/emux_oss.c rc = snd_soundfont_load_guspatch(emu->sflist, buf, count, emu 218 sound/synth/emux/emux_oss.c rc = snd_soundfont_load(emu->sflist, buf, count, SF_CLIENT_NO(p->chset.port)); emu 220 sound/synth/emux/emux_oss.c if (emu->ops.load_fx) emu 221 sound/synth/emux/emux_oss.c rc = emu->ops.load_fx(emu, patch.type, patch.optarg, buf, count); emu 238 sound/synth/emux/emux_oss.c struct snd_emux *emu; emu 246 sound/synth/emux/emux_oss.c emu = p->emu; emu 247 sound/synth/emux/emux_oss.c if (snd_BUG_ON(!emu)) emu 252 sound/synth/emux/emux_oss.c snd_soundfont_remove_samples(emu->sflist); emu 256 sound/synth/emux/emux_oss.c if (emu->memhdr) emu 257 sound/synth/emux/emux_oss.c return snd_util_mem_avail(emu->memhdr); emu 290 sound/synth/emux/emux_oss.c struct snd_emux *emu; emu 297 sound/synth/emux/emux_oss.c emu = p->emu; emu 298 sound/synth/emux/emux_oss.c if (snd_BUG_ON(!emu)) emu 309 sound/synth/emux/emux_oss.c emuspec_control(emu, p, cmd, data, atomic, hop); emu 311 sound/synth/emux/emux_oss.c gusspec_control(emu, p, cmd, data, atomic, hop); emu 320 sound/synth/emux/emux_oss.c emuspec_control(struct snd_emux *emu, struct snd_emux_port *port, int cmd, emu 341 sound/synth/emux/emux_oss.c snd_soundfont_remove_unlocked(emu->sflist); emu 350 sound/synth/emux/emux_oss.c snd_emux_terminate_all(emu); emu 361 sound/synth/emux/emux_oss.c fake_event(emu, port, voice, MIDI_CTL_ALL_NOTES_OFF, 0, atomic, hop); emu 364 sound/synth/emux/emux_oss.c fake_event(emu, port, voice, MIDI_CTL_ALL_SOUNDS_OFF, 0, atomic, hop); emu 402 sound/synth/emux/emux_oss.c if (emu->ops.oss_ioctl) emu 403 sound/synth/emux/emux_oss.c emu->ops.oss_ioctl(emu, cmd, p1, p2); emu 415 sound/synth/emux/emux_oss.c gusspec_control(struct snd_emux *emu, struct snd_emux_port *port, int cmd, emu 481 sound/synth/emux/emux_oss.c fake_event(struct snd_emux *emu, struct snd_emux_port *port, int ch, int param, int val, int atomic, int hop) emu 18 sound/synth/emux/emux_proc.c struct snd_emux *emu; emu 21 sound/synth/emux/emux_proc.c emu = entry->private_data; emu 22 sound/synth/emux/emux_proc.c mutex_lock(&emu->register_mutex); emu 23 sound/synth/emux/emux_proc.c if (emu->name) emu 24 sound/synth/emux/emux_proc.c snd_iprintf(buf, "Device: %s\n", emu->name); emu 25 sound/synth/emux/emux_proc.c snd_iprintf(buf, "Ports: %d\n", emu->num_ports); emu 27 sound/synth/emux/emux_proc.c for (i = 0; i < emu->num_ports; i++) emu 28 sound/synth/emux/emux_proc.c snd_iprintf(buf, " %d:%d", emu->client, emu->ports[i]); emu 30 sound/synth/emux/emux_proc.c snd_iprintf(buf, "Use Counter: %d\n", emu->used); emu 31 sound/synth/emux/emux_proc.c snd_iprintf(buf, "Max Voices: %d\n", emu->max_voices); emu 32 sound/synth/emux/emux_proc.c snd_iprintf(buf, "Allocated Voices: %d\n", emu->num_voices); emu 33 sound/synth/emux/emux_proc.c if (emu->memhdr) { emu 34 sound/synth/emux/emux_proc.c snd_iprintf(buf, "Memory Size: %d\n", emu->memhdr->size); emu 35 sound/synth/emux/emux_proc.c snd_iprintf(buf, "Memory Available: %d\n", snd_util_mem_avail(emu->memhdr)); emu 36 sound/synth/emux/emux_proc.c snd_iprintf(buf, "Allocated Blocks: %d\n", emu->memhdr->nblocks); emu 40 sound/synth/emux/emux_proc.c if (emu->sflist) { emu 41 sound/synth/emux/emux_proc.c mutex_lock(&emu->sflist->presets_mutex); emu 42 sound/synth/emux/emux_proc.c snd_iprintf(buf, "SoundFonts: %d\n", emu->sflist->fonts_size); emu 43 sound/synth/emux/emux_proc.c snd_iprintf(buf, "Instruments: %d\n", emu->sflist->zone_counter); emu 44 sound/synth/emux/emux_proc.c snd_iprintf(buf, "Samples: %d\n", emu->sflist->sample_counter); emu 45 sound/synth/emux/emux_proc.c snd_iprintf(buf, "Locked Instruments: %d\n", emu->sflist->zone_locked); emu 46 sound/synth/emux/emux_proc.c snd_iprintf(buf, "Locked Samples: %d\n", emu->sflist->sample_locked); emu 47 sound/synth/emux/emux_proc.c mutex_unlock(&emu->sflist->presets_mutex); emu 50 sound/synth/emux/emux_proc.c if (emu->voices[0].state != SNDRV_EMUX_ST_OFF && emu->voices[0].ch >= 0) { emu 51 sound/synth/emux/emux_proc.c struct snd_emux_voice *vp = &emu->voices[0]; emu 88 sound/synth/emux/emux_proc.c mutex_unlock(&emu->register_mutex); emu 92 sound/synth/emux/emux_proc.c void snd_emux_proc_init(struct snd_emux *emu, struct snd_card *card, int device) emu 103 sound/synth/emux/emux_proc.c entry->private_data = emu; emu 107 sound/synth/emux/emux_proc.c void snd_emux_proc_free(struct snd_emux *emu) emu 109 sound/synth/emux/emux_proc.c snd_info_free_entry(emu->proc); emu 110 sound/synth/emux/emux_proc.c emu->proc = NULL; emu 55 sound/synth/emux/emux_seq.c snd_emux_init_seq(struct snd_emux *emu, struct snd_card *card, int index) emu 61 sound/synth/emux/emux_seq.c emu->client = snd_seq_create_kernel_client(card, index, emu 62 sound/synth/emux/emux_seq.c "%s WaveTable", emu->name); emu 63 sound/synth/emux/emux_seq.c if (emu->client < 0) { emu 68 sound/synth/emux/emux_seq.c if (emu->num_ports < 0) { emu 70 sound/synth/emux/emux_seq.c emu->num_ports = 1; emu 71 sound/synth/emux/emux_seq.c } else if (emu->num_ports >= SNDRV_EMUX_MAX_PORTS) { emu 74 sound/synth/emux/emux_seq.c emu->num_ports = SNDRV_EMUX_MAX_PORTS; emu 83 sound/synth/emux/emux_seq.c for (i = 0; i < emu->num_ports; i++) { emu 86 sound/synth/emux/emux_seq.c sprintf(tmpname, "%s Port %d", emu->name, i); emu 87 sound/synth/emux/emux_seq.c p = snd_emux_create_port(emu, tmpname, MIDI_CHANNELS, emu 96 sound/synth/emux/emux_seq.c emu->ports[i] = p->chset.port; emu 97 sound/synth/emux/emux_seq.c emu->portptrs[i] = p; emu 109 sound/synth/emux/emux_seq.c snd_emux_detach_seq(struct snd_emux *emu) emu 111 sound/synth/emux/emux_seq.c if (emu->voices) emu 112 sound/synth/emux/emux_seq.c snd_emux_terminate_all(emu); emu 114 sound/synth/emux/emux_seq.c if (emu->client >= 0) { emu 115 sound/synth/emux/emux_seq.c snd_seq_delete_kernel_client(emu->client); emu 116 sound/synth/emux/emux_seq.c emu->client = -1; emu 126 sound/synth/emux/emux_seq.c snd_emux_create_port(struct snd_emux *emu, char *name, emu 148 sound/synth/emux/emux_seq.c p->emu = emu; emu 149 sound/synth/emux/emux_seq.c p->chset.client = emu->client; emu 164 sound/synth/emux/emux_seq.c p->chset.port = snd_seq_event_port_attach(emu->client, callback, emu 166 sound/synth/emux/emux_seq.c emu->max_voices, name); emu 258 sound/synth/emux/emux_seq.c __snd_emux_inc_count(struct snd_emux *emu) emu 260 sound/synth/emux/emux_seq.c emu->used++; emu 261 sound/synth/emux/emux_seq.c if (!try_module_get(emu->ops.owner)) emu 263 sound/synth/emux/emux_seq.c if (!try_module_get(emu->card->module)) { emu 264 sound/synth/emux/emux_seq.c module_put(emu->ops.owner); emu 266 sound/synth/emux/emux_seq.c emu->used--; emu 272 sound/synth/emux/emux_seq.c int snd_emux_inc_count(struct snd_emux *emu) emu 276 sound/synth/emux/emux_seq.c mutex_lock(&emu->register_mutex); emu 277 sound/synth/emux/emux_seq.c ret = __snd_emux_inc_count(emu); emu 278 sound/synth/emux/emux_seq.c mutex_unlock(&emu->register_mutex); emu 286 sound/synth/emux/emux_seq.c __snd_emux_dec_count(struct snd_emux *emu) emu 288 sound/synth/emux/emux_seq.c module_put(emu->card->module); emu 289 sound/synth/emux/emux_seq.c emu->used--; emu 290 sound/synth/emux/emux_seq.c if (emu->used <= 0) emu 291 sound/synth/emux/emux_seq.c snd_emux_terminate_all(emu); emu 292 sound/synth/emux/emux_seq.c module_put(emu->ops.owner); emu 295 sound/synth/emux/emux_seq.c void snd_emux_dec_count(struct snd_emux *emu) emu 297 sound/synth/emux/emux_seq.c mutex_lock(&emu->register_mutex); emu 298 sound/synth/emux/emux_seq.c __snd_emux_dec_count(emu); emu 299 sound/synth/emux/emux_seq.c mutex_unlock(&emu->register_mutex); emu 309 sound/synth/emux/emux_seq.c struct snd_emux *emu; emu 314 sound/synth/emux/emux_seq.c emu = p->emu; emu 315 sound/synth/emux/emux_seq.c if (snd_BUG_ON(!emu)) emu 318 sound/synth/emux/emux_seq.c mutex_lock(&emu->register_mutex); emu 320 sound/synth/emux/emux_seq.c __snd_emux_inc_count(emu); emu 321 sound/synth/emux/emux_seq.c mutex_unlock(&emu->register_mutex); emu 332 sound/synth/emux/emux_seq.c struct snd_emux *emu; emu 337 sound/synth/emux/emux_seq.c emu = p->emu; emu 338 sound/synth/emux/emux_seq.c if (snd_BUG_ON(!emu)) emu 341 sound/synth/emux/emux_seq.c mutex_lock(&emu->register_mutex); emu 343 sound/synth/emux/emux_seq.c __snd_emux_dec_count(emu); emu 344 sound/synth/emux/emux_seq.c mutex_unlock(&emu->register_mutex); emu 352 sound/synth/emux/emux_seq.c int snd_emux_init_virmidi(struct snd_emux *emu, struct snd_card *card) emu 356 sound/synth/emux/emux_seq.c emu->vmidi = NULL; emu 357 sound/synth/emux/emux_seq.c if (emu->midi_ports <= 0) emu 360 sound/synth/emux/emux_seq.c emu->vmidi = kcalloc(emu->midi_ports, sizeof(*emu->vmidi), GFP_KERNEL); emu 361 sound/synth/emux/emux_seq.c if (!emu->vmidi) emu 364 sound/synth/emux/emux_seq.c for (i = 0; i < emu->midi_ports; i++) { emu 367 sound/synth/emux/emux_seq.c if (snd_virmidi_new(card, emu->midi_devidx + i, &rmidi) < 0) emu 370 sound/synth/emux/emux_seq.c sprintf(rmidi->name, "%s Synth MIDI", emu->name); emu 372 sound/synth/emux/emux_seq.c rdev->client = emu->client; emu 373 sound/synth/emux/emux_seq.c rdev->port = emu->ports[i]; emu 378 sound/synth/emux/emux_seq.c emu->vmidi[i] = rmidi; emu 385 sound/synth/emux/emux_seq.c snd_emux_delete_virmidi(emu); emu 389 sound/synth/emux/emux_seq.c int snd_emux_delete_virmidi(struct snd_emux *emu) emu 393 sound/synth/emux/emux_seq.c if (!emu->vmidi) emu 396 sound/synth/emux/emux_seq.c for (i = 0; i < emu->midi_ports; i++) { emu 397 sound/synth/emux/emux_seq.c if (emu->vmidi[i]) emu 398 sound/synth/emux/emux_seq.c snd_device_free(emu->card, emu->vmidi[i]); emu 400 sound/synth/emux/emux_seq.c kfree(emu->vmidi); emu 401 sound/synth/emux/emux_seq.c emu->vmidi = NULL; emu 26 sound/synth/emux/emux_synth.c static int get_zone(struct snd_emux *emu, struct snd_emux_port *port, emu 30 sound/synth/emux/emux_synth.c static void terminate_note1(struct snd_emux *emu, int note, emu 32 sound/synth/emux/emux_synth.c static void exclusive_note_off(struct snd_emux *emu, struct snd_emux_port *port, emu 34 sound/synth/emux/emux_synth.c static void terminate_voice(struct snd_emux *emu, struct snd_emux_voice *vp, int free); emu 35 sound/synth/emux/emux_synth.c static void update_voice(struct snd_emux *emu, struct snd_emux_voice *vp, int update); emu 48 sound/synth/emux/emux_synth.c struct snd_emux *emu; emu 59 sound/synth/emux/emux_synth.c emu = port->emu; emu 60 sound/synth/emux/emux_synth.c if (snd_BUG_ON(!emu || !emu->ops.get_voice || !emu->ops.trigger)) emu 64 sound/synth/emux/emux_synth.c nvoices = get_zone(emu, port, ¬e, vel, chan, table); emu 72 sound/synth/emux/emux_synth.c exclusive_note_off(emu, port, zp->v.exclusiveClass); emu 77 sound/synth/emux/emux_synth.c terminate_note1(emu, key, chan, 0); emu 80 sound/synth/emux/emux_synth.c spin_lock_irqsave(&emu->voice_lock, flags); emu 89 sound/synth/emux/emux_synth.c vp = emu->ops.get_voice(emu, port); emu 93 sound/synth/emux/emux_synth.c emu->ops.terminate(vp); emu 95 sound/synth/emux/emux_synth.c vp->time = emu->use_time++; emu 110 sound/synth/emux/emux_synth.c if (emu->ops.prepare) { emu 112 sound/synth/emux/emux_synth.c if (emu->ops.prepare(vp) >= 0) emu 118 sound/synth/emux/emux_synth.c for (i = 0; i < emu->max_voices; i++) { emu 119 sound/synth/emux/emux_synth.c vp = &emu->voices[i]; emu 122 sound/synth/emux/emux_synth.c emu->ops.trigger(vp); emu 127 sound/synth/emux/emux_synth.c spin_unlock_irqrestore(&emu->voice_lock, flags); emu 148 sound/synth/emux/emux_synth.c struct snd_emux *emu; emu 157 sound/synth/emux/emux_synth.c emu = port->emu; emu 158 sound/synth/emux/emux_synth.c if (snd_BUG_ON(!emu || !emu->ops.release)) emu 161 sound/synth/emux/emux_synth.c spin_lock_irqsave(&emu->voice_lock, flags); emu 162 sound/synth/emux/emux_synth.c for (ch = 0; ch < emu->max_voices; ch++) { emu 163 sound/synth/emux/emux_synth.c vp = &emu->voices[ch]; emu 174 sound/synth/emux/emux_synth.c if (! emu->timer_active) { emu 175 sound/synth/emux/emux_synth.c mod_timer(&emu->tlist, jiffies + 1); emu 176 sound/synth/emux/emux_synth.c emu->timer_active = 1; emu 180 sound/synth/emux/emux_synth.c emu->ops.release(vp); emu 183 sound/synth/emux/emux_synth.c spin_unlock_irqrestore(&emu->voice_lock, flags); emu 193 sound/synth/emux/emux_synth.c struct snd_emux *emu = from_timer(emu, t, tlist); emu 198 sound/synth/emux/emux_synth.c spin_lock_irqsave(&emu->voice_lock, flags); emu 199 sound/synth/emux/emux_synth.c for (ch = 0; ch < emu->max_voices; ch++) { emu 200 sound/synth/emux/emux_synth.c vp = &emu->voices[ch]; emu 205 sound/synth/emux/emux_synth.c emu->ops.release(vp); emu 211 sound/synth/emux/emux_synth.c mod_timer(&emu->tlist, jiffies + 1); emu 212 sound/synth/emux/emux_synth.c emu->timer_active = 1; emu 214 sound/synth/emux/emux_synth.c emu->timer_active = 0; emu 215 sound/synth/emux/emux_synth.c spin_unlock_irqrestore(&emu->voice_lock, flags); emu 225 sound/synth/emux/emux_synth.c struct snd_emux *emu; emu 234 sound/synth/emux/emux_synth.c emu = port->emu; emu 235 sound/synth/emux/emux_synth.c if (snd_BUG_ON(!emu || !emu->ops.update)) emu 238 sound/synth/emux/emux_synth.c spin_lock_irqsave(&emu->voice_lock, flags); emu 239 sound/synth/emux/emux_synth.c for (ch = 0; ch < emu->max_voices; ch++) { emu 240 sound/synth/emux/emux_synth.c vp = &emu->voices[ch]; emu 244 sound/synth/emux/emux_synth.c update_voice(emu, vp, SNDRV_EMUX_UPDATE_VOLUME); emu 247 sound/synth/emux/emux_synth.c spin_unlock_irqrestore(&emu->voice_lock, flags); emu 257 sound/synth/emux/emux_synth.c struct snd_emux *emu; emu 265 sound/synth/emux/emux_synth.c emu = port->emu; emu 266 sound/synth/emux/emux_synth.c if (snd_BUG_ON(!emu || !emu->ops.update)) emu 269 sound/synth/emux/emux_synth.c spin_lock_irqsave(&emu->voice_lock, flags); emu 270 sound/synth/emux/emux_synth.c for (i = 0; i < emu->max_voices; i++) { emu 271 sound/synth/emux/emux_synth.c vp = &emu->voices[i]; emu 273 sound/synth/emux/emux_synth.c update_voice(emu, vp, update); emu 275 sound/synth/emux/emux_synth.c spin_unlock_irqrestore(&emu->voice_lock, flags); emu 284 sound/synth/emux/emux_synth.c struct snd_emux *emu; emu 292 sound/synth/emux/emux_synth.c emu = port->emu; emu 293 sound/synth/emux/emux_synth.c if (snd_BUG_ON(!emu || !emu->ops.update)) emu 296 sound/synth/emux/emux_synth.c spin_lock_irqsave(&emu->voice_lock, flags); emu 297 sound/synth/emux/emux_synth.c for (i = 0; i < emu->max_voices; i++) { emu 298 sound/synth/emux/emux_synth.c vp = &emu->voices[i]; emu 300 sound/synth/emux/emux_synth.c update_voice(emu, vp, update); emu 302 sound/synth/emux/emux_synth.c spin_unlock_irqrestore(&emu->voice_lock, flags); emu 364 sound/synth/emux/emux_synth.c terminate_note1(struct snd_emux *emu, int note, struct snd_midi_channel *chan, int free) emu 370 sound/synth/emux/emux_synth.c spin_lock_irqsave(&emu->voice_lock, flags); emu 371 sound/synth/emux/emux_synth.c for (i = 0; i < emu->max_voices; i++) { emu 372 sound/synth/emux/emux_synth.c vp = &emu->voices[i]; emu 375 sound/synth/emux/emux_synth.c terminate_voice(emu, vp, free); emu 377 sound/synth/emux/emux_synth.c spin_unlock_irqrestore(&emu->voice_lock, flags); emu 387 sound/synth/emux/emux_synth.c struct snd_emux *emu; emu 394 sound/synth/emux/emux_synth.c emu = port->emu; emu 395 sound/synth/emux/emux_synth.c if (snd_BUG_ON(!emu || !emu->ops.terminate)) emu 398 sound/synth/emux/emux_synth.c terminate_note1(emu, note, chan, 1); emu 406 sound/synth/emux/emux_synth.c snd_emux_terminate_all(struct snd_emux *emu) emu 412 sound/synth/emux/emux_synth.c spin_lock_irqsave(&emu->voice_lock, flags); emu 413 sound/synth/emux/emux_synth.c for (i = 0; i < emu->max_voices; i++) { emu 414 sound/synth/emux/emux_synth.c vp = &emu->voices[i]; emu 416 sound/synth/emux/emux_synth.c terminate_voice(emu, vp, 0); emu 418 sound/synth/emux/emux_synth.c if (emu->ops.free_voice) emu 419 sound/synth/emux/emux_synth.c emu->ops.free_voice(vp); emu 420 sound/synth/emux/emux_synth.c if (emu->ops.reset) emu 421 sound/synth/emux/emux_synth.c emu->ops.reset(emu, i); emu 426 sound/synth/emux/emux_synth.c emu->use_time = 0; emu 427 sound/synth/emux/emux_synth.c spin_unlock_irqrestore(&emu->voice_lock, flags); emu 439 sound/synth/emux/emux_synth.c struct snd_emux *emu; emu 445 sound/synth/emux/emux_synth.c emu = port->emu; emu 446 sound/synth/emux/emux_synth.c if (snd_BUG_ON(!emu || !emu->ops.terminate)) emu 449 sound/synth/emux/emux_synth.c spin_lock_irqsave(&emu->voice_lock, flags); emu 450 sound/synth/emux/emux_synth.c for (i = 0; i < emu->max_voices; i++) { emu 451 sound/synth/emux/emux_synth.c vp = &emu->voices[i]; emu 454 sound/synth/emux/emux_synth.c terminate_voice(emu, vp, 0); emu 456 sound/synth/emux/emux_synth.c if (emu->ops.free_voice) emu 457 sound/synth/emux/emux_synth.c emu->ops.free_voice(vp); emu 458 sound/synth/emux/emux_synth.c if (emu->ops.reset) emu 459 sound/synth/emux/emux_synth.c emu->ops.reset(emu, i); emu 462 sound/synth/emux/emux_synth.c spin_unlock_irqrestore(&emu->voice_lock, flags); emu 471 sound/synth/emux/emux_synth.c exclusive_note_off(struct snd_emux *emu, struct snd_emux_port *port, int exclass) emu 477 sound/synth/emux/emux_synth.c spin_lock_irqsave(&emu->voice_lock, flags); emu 478 sound/synth/emux/emux_synth.c for (i = 0; i < emu->max_voices; i++) { emu 479 sound/synth/emux/emux_synth.c vp = &emu->voices[i]; emu 482 sound/synth/emux/emux_synth.c terminate_voice(emu, vp, 0); emu 485 sound/synth/emux/emux_synth.c spin_unlock_irqrestore(&emu->voice_lock, flags); emu 493 sound/synth/emux/emux_synth.c terminate_voice(struct snd_emux *emu, struct snd_emux_voice *vp, int free) emu 495 sound/synth/emux/emux_synth.c emu->ops.terminate(vp); emu 496 sound/synth/emux/emux_synth.c vp->time = emu->use_time++; emu 502 sound/synth/emux/emux_synth.c if (free && emu->ops.free_voice) emu 503 sound/synth/emux/emux_synth.c emu->ops.free_voice(vp); emu 511 sound/synth/emux/emux_synth.c update_voice(struct snd_emux *emu, struct snd_emux_voice *vp, int update) emu 526 sound/synth/emux/emux_synth.c emu->ops.update(vp, update); emu 655 sound/synth/emux/emux_synth.c if (vp->emu->linear_panning) { emu 848 sound/synth/emux/emux_synth.c offset += vp->emu->pitch_shift; emu 889 sound/synth/emux/emux_synth.c get_zone(struct snd_emux *emu, struct snd_emux_port *port, emu 906 sound/synth/emux/emux_synth.c return snd_soundfont_search_zone(emu->sflist, notep, vel, preset, bank, emu 914 sound/synth/emux/emux_synth.c snd_emux_init_voices(struct snd_emux *emu) emu 920 sound/synth/emux/emux_synth.c spin_lock_irqsave(&emu->voice_lock, flags); emu 921 sound/synth/emux/emux_synth.c for (i = 0; i < emu->max_voices; i++) { emu 922 sound/synth/emux/emux_synth.c vp = &emu->voices[i]; emu 928 sound/synth/emux/emux_synth.c vp->emu = emu; emu 929 sound/synth/emux/emux_synth.c vp->hw = emu->hw; emu 931 sound/synth/emux/emux_synth.c spin_unlock_irqrestore(&emu->voice_lock, flags); emu 936 sound/synth/emux/emux_synth.c void snd_emux_lock_voice(struct snd_emux *emu, int voice) emu 940 sound/synth/emux/emux_synth.c spin_lock_irqsave(&emu->voice_lock, flags); emu 941 sound/synth/emux/emux_synth.c if (emu->voices[voice].state == SNDRV_EMUX_ST_OFF) emu 942 sound/synth/emux/emux_synth.c emu->voices[voice].state = SNDRV_EMUX_ST_LOCKED; emu 946 sound/synth/emux/emux_synth.c voice, emu->voices[voice].state); emu 947 sound/synth/emux/emux_synth.c spin_unlock_irqrestore(&emu->voice_lock, flags); emu 954 sound/synth/emux/emux_synth.c void snd_emux_unlock_voice(struct snd_emux *emu, int voice) emu 958 sound/synth/emux/emux_synth.c spin_lock_irqsave(&emu->voice_lock, flags); emu 959 sound/synth/emux/emux_synth.c if (emu->voices[voice].state == SNDRV_EMUX_ST_LOCKED) emu 960 sound/synth/emux/emux_synth.c emu->voices[voice].state = SNDRV_EMUX_ST_OFF; emu 964 sound/synth/emux/emux_synth.c voice, emu->voices[voice].state); emu 965 sound/synth/emux/emux_synth.c spin_unlock_irqrestore(&emu->voice_lock, flags); emu 18 sound/synth/emux/emux_voice.h int snd_emux_init_seq(struct snd_emux *emu, struct snd_card *card, int index); emu 19 sound/synth/emux/emux_voice.h void snd_emux_detach_seq(struct snd_emux *emu); emu 20 sound/synth/emux/emux_voice.h struct snd_emux_port *snd_emux_create_port(struct snd_emux *emu, char *name, emu 26 sound/synth/emux/emux_voice.h int snd_emux_inc_count(struct snd_emux *emu); emu 27 sound/synth/emux/emux_voice.h void snd_emux_dec_count(struct snd_emux *emu); emu 28 sound/synth/emux/emux_voice.h int snd_emux_init_virmidi(struct snd_emux *emu, struct snd_card *card); emu 29 sound/synth/emux/emux_voice.h int snd_emux_delete_virmidi(struct snd_emux *emu); emu 32 sound/synth/emux/emux_voice.h void snd_emux_init_voices(struct snd_emux *emu); emu 68 sound/synth/emux/emux_voice.h void snd_emux_init_seq_oss(struct snd_emux *emu); emu 69 sound/synth/emux/emux_voice.h void snd_emux_detach_seq_oss(struct snd_emux *emu); emu 73 sound/synth/emux/emux_voice.h void snd_emux_proc_init(struct snd_emux *emu, struct snd_card *card, int device); emu 74 sound/synth/emux/emux_voice.h void snd_emux_proc_free(struct snd_emux *emu); emu 76 sound/synth/emux/emux_voice.h static inline void snd_emux_proc_init(struct snd_emux *emu, emu 78 sound/synth/emux/emux_voice.h static inline void snd_emux_proc_free(struct snd_emux *emu) {} emu 84 sound/synth/emux/emux_voice.h int snd_emux_init_hwdep(struct snd_emux *emu); emu 85 sound/synth/emux/emux_voice.h void snd_emux_delete_hwdep(struct snd_emux *emu);