H A D | sscape.c | 177 snd_printk(KERN_ERR "sscape: Failed to allocate " get_dmabuf() 348 struct soundscape *sscape = get_card_soundscape(c); soundscape_free() local 349 release_and_free_resource(sscape->io_res); soundscape_free() 350 release_and_free_resource(sscape->wss_res); soundscape_free() 351 free_dma(sscape->chip->dma1); soundscape_free() 491 "sscape: DMA upload has timed out\n"); upload_dma_data() 514 snd_printk(KERN_ERR "sscape: No response " upload_dma_data() 519 "sscape: SoundScape failed to initialise\n"); upload_dma_data() 540 struct soundscape *sscape = get_card_soundscape(card); sscape_upload_bootblock() local 548 snd_printk(KERN_ERR "sscape: Error loading scope.cod"); sscape_upload_bootblock() 551 ret = upload_dma_data(sscape, init_fw->data, init_fw->size); sscape_upload_bootblock() 555 spin_lock_irqsave(&sscape->lock, flags); sscape_upload_bootblock() 557 data = host_read_ctrl_unsafe(sscape->io_base, 100); sscape_upload_bootblock() 560 sscape_write_unsafe(sscape->io_base, GA_SMCFGA_REG, 0x2f); sscape_upload_bootblock() 562 spin_unlock_irqrestore(&sscape->lock, flags); sscape_upload_bootblock() 567 "sscape: timeout reading firmware version\n"); sscape_upload_bootblock() 579 struct soundscape *sscape = get_card_soundscape(card); sscape_upload_microcode() local 588 snd_printk(KERN_ERR "sscape: Error loading sndscape.co%d", sscape_upload_microcode() 592 err = upload_dma_data(sscape, init_fw->data, init_fw->size); sscape_upload_microcode() 594 snd_printk(KERN_INFO "sscape: MIDI firmware loaded %d KBs\n", sscape_upload_microcode() 810 snd_printk(KERN_ERR "sscape: MIDI disabled, " mpu401_open() 824 struct soundscape *sscape = get_card_soundscape(card); create_mpu401() local 834 mpu->private_data = sscape; create_mpu401() 852 register struct soundscape *sscape = get_card_soundscape(card); create_ad1845() local 857 switch (sscape->type) { create_ad1845() 866 if (sscape->ic_type != IC_OPUS) create_ad1845() 882 if (sscape->type != SSCAPE_VIVO) { create_ad1845() 898 snd_printk(KERN_ERR "sscape: No PCM device " create_ad1845() 905 snd_printk(KERN_ERR "sscape: No mixer device " create_ad1845() 912 snd_printk(KERN_ERR "sscape: No timer device " create_ad1845() 918 if (sscape->type != SSCAPE_VIVO) { create_ad1845() 922 snd_printk(KERN_ERR "sscape: Could not create " create_ad1845() 928 sscape->chip = chip; create_ad1845() 942 struct soundscape *sscape = get_card_soundscape(card); create_sscape() local 960 "sscape: can't grab port 0x%lx\n", port[dev]); create_sscape() 964 if (sscape->type == SSCAPE_VIVO) { create_sscape() 967 snd_printk(KERN_ERR "sscape: can't grab port 0x%lx\n", create_sscape() 979 snd_printk(KERN_ERR "sscape: can't grab DMA %d\n", dma[dev]); create_sscape() 983 spin_lock_init(&sscape->lock); create_sscape() 984 sscape->io_res = io_res; create_sscape() 985 sscape->wss_res = wss_res; create_sscape() 986 sscape->io_base = port[dev]; create_sscape() 988 if (!detect_sscape(sscape, wss_port[dev])) { create_sscape() 989 printk(KERN_ERR "sscape: hardware not detected at 0x%x\n", create_sscape() 990 sscape->io_base); create_sscape() 995 switch (sscape->type) { create_sscape() 1013 printk(KERN_INFO "sscape: %s card detected at 0x%x, using IRQ %d, DMA %d\n", create_sscape() 1014 name, sscape->io_base, irq[dev], dma[dev]); create_sscape() 1019 irq_cfg = get_irq_config(sscape->type, irq[dev]); create_sscape() 1021 snd_printk(KERN_ERR "sscape: Invalid IRQ %d\n", irq[dev]); create_sscape() 1026 mpu_irq_cfg = get_irq_config(sscape->type, mpu_irq[dev]); create_sscape() 1028 snd_printk(KERN_ERR "sscape: Invalid IRQ %d\n", mpu_irq[dev]); create_sscape() 1037 spin_lock_irqsave(&sscape->lock, flags); create_sscape() 1039 sscape_write_unsafe(sscape->io_base, GA_SMCFGA_REG, 0x2e); create_sscape() 1040 sscape_write_unsafe(sscape->io_base, GA_SMCFGB_REG, 0x00); create_sscape() 1045 sscape_write_unsafe(sscape->io_base, GA_DMACFG_REG, 0x50); create_sscape() 1046 dma_cfg = (sscape->ic_type == IC_OPUS ? 0x40 : 0x70); create_sscape() 1047 sscape_write_unsafe(sscape->io_base, GA_DMAA_REG, dma_cfg); create_sscape() 1048 sscape_write_unsafe(sscape->io_base, GA_DMAB_REG, 0x20); create_sscape() 1051 val = sscape_read_unsafe(sscape->io_base, GA_HMCTL_REG) & 0xF7; create_sscape() 1054 sscape_write_unsafe(sscape->io_base, GA_HMCTL_REG, val | 0x10); create_sscape() 1055 sscape_write_unsafe(sscape->io_base, GA_INTCFG_REG, 0xf0 | mpu_irq_cfg); create_sscape() 1056 sscape_write_unsafe(sscape->io_base, create_sscape() 1062 sscape_write_unsafe(sscape->io_base, GA_INTENA_REG, 0x80); create_sscape() 1064 spin_unlock_irqrestore(&sscape->lock, flags); create_sscape() 1074 "sscape: No AD1845 device at 0x%lx, IRQ %d\n", create_sscape() 1082 name, sscape->chip->port, sscape->chip->irq, create_sscape() 1083 sscape->chip->dma1, sscape->chip->dma2); create_sscape() 1086 if (sscape->type != SSCAPE_VIVO) { create_sscape() 1095 snd_printk(KERN_ERR "sscape: Failed to create " create_sscape() 1104 spin_lock_irqsave(&sscape->lock, flags); create_sscape() 1105 sscape->midi_vol = 0; create_sscape() 1106 host_write_ctrl_unsafe(sscape->io_base, create_sscape() 1108 host_write_ctrl_unsafe(sscape->io_base, create_sscape() 1109 sscape->midi_vol, 100); create_sscape() 1110 host_write_ctrl_unsafe(sscape->io_base, create_sscape() 1112 host_write_ctrl_unsafe(sscape->io_base, create_sscape() 1113 sscape->midi_vol, 100); create_sscape() 1114 host_write_ctrl_unsafe(sscape->io_base, create_sscape() 1116 host_write_ctrl_unsafe(sscape->io_base, create_sscape() 1118 host_write_ctrl_unsafe(sscape->io_base, CMD_ACK, 100); create_sscape() 1120 set_midi_mode_unsafe(sscape->io_base); create_sscape() 1121 spin_unlock_irqrestore(&sscape->lock, flags); create_sscape() 1158 "sscape: insufficient parameters, " snd_sscape_match() 1169 struct soundscape *sscape; snd_sscape_probe() local 1177 sscape = get_card_soundscape(card); snd_sscape_probe() 1178 sscape->type = SSCAPE; snd_sscape_probe() 1188 snd_printk(KERN_ERR "sscape: Failed to register sound card\n"); snd_sscape_probe() 1205 #define DEV_NAME "sscape" 1232 struct soundscape *sscape; sscape_pnp_detect() local 1252 snd_printk(KERN_INFO "sscape: device is inactive\n"); sscape_pnp_detect() 1267 sscape = get_card_soundscape(card); sscape_pnp_detect() 1273 sscape->type = SSCAPE_VIVO; sscape_pnp_detect() 1275 sscape->type = SSCAPE_PNP; sscape_pnp_detect() 1284 if (sscape->type == SSCAPE_PNP) { sscape_pnp_detect() 1298 snd_printk(KERN_ERR "sscape: Failed to register sound card\n"); sscape_pnp_detect() 1319 .name = "sscape",
|