Lines Matching refs:sscape
164 snd_printk(KERN_ERR "sscape: Failed to allocate "
335 struct soundscape *sscape = get_card_soundscape(c);
336 release_and_free_resource(sscape->io_res);
337 release_and_free_resource(sscape->wss_res);
338 free_dma(sscape->chip->dma1);
478 "sscape: DMA upload has timed out\n");
501 snd_printk(KERN_ERR "sscape: No response "
506 "sscape: SoundScape failed to initialise\n");
527 struct soundscape *sscape = get_card_soundscape(card);
535 snd_printk(KERN_ERR "sscape: Error loading scope.cod");
538 ret = upload_dma_data(sscape, init_fw->data, init_fw->size);
542 spin_lock_irqsave(&sscape->lock, flags);
544 data = host_read_ctrl_unsafe(sscape->io_base, 100);
547 sscape_write_unsafe(sscape->io_base, GA_SMCFGA_REG, 0x2f);
549 spin_unlock_irqrestore(&sscape->lock, flags);
554 "sscape: timeout reading firmware version\n");
566 struct soundscape *sscape = get_card_soundscape(card);
575 snd_printk(KERN_ERR "sscape: Error loading sndscape.co%d",
579 err = upload_dma_data(sscape, init_fw->data, init_fw->size);
581 snd_printk(KERN_INFO "sscape: MIDI firmware loaded %zu KBs\n",
797 snd_printk(KERN_ERR "sscape: MIDI disabled, "
811 struct soundscape *sscape = get_card_soundscape(card);
821 mpu->private_data = sscape;
839 register struct soundscape *sscape = get_card_soundscape(card);
844 switch (sscape->type) {
853 if (sscape->ic_type != IC_OPUS)
869 if (sscape->type != SSCAPE_VIVO) {
885 snd_printk(KERN_ERR "sscape: No PCM device "
892 snd_printk(KERN_ERR "sscape: No mixer device "
899 snd_printk(KERN_ERR "sscape: No timer device "
905 if (sscape->type != SSCAPE_VIVO) {
909 snd_printk(KERN_ERR "sscape: Could not create "
915 sscape->chip = chip;
929 struct soundscape *sscape = get_card_soundscape(card);
947 "sscape: can't grab port 0x%lx\n", port[dev]);
951 if (sscape->type == SSCAPE_VIVO) {
954 snd_printk(KERN_ERR "sscape: can't grab port 0x%lx\n",
966 snd_printk(KERN_ERR "sscape: can't grab DMA %d\n", dma[dev]);
970 spin_lock_init(&sscape->lock);
971 sscape->io_res = io_res;
972 sscape->wss_res = wss_res;
973 sscape->io_base = port[dev];
975 if (!detect_sscape(sscape, wss_port[dev])) {
976 printk(KERN_ERR "sscape: hardware not detected at 0x%x\n",
977 sscape->io_base);
982 switch (sscape->type) {
1000 printk(KERN_INFO "sscape: %s card detected at 0x%x, using IRQ %d, DMA %d\n",
1001 name, sscape->io_base, irq[dev], dma[dev]);
1006 irq_cfg = get_irq_config(sscape->type, irq[dev]);
1008 snd_printk(KERN_ERR "sscape: Invalid IRQ %d\n", irq[dev]);
1013 mpu_irq_cfg = get_irq_config(sscape->type, mpu_irq[dev]);
1015 snd_printk(KERN_ERR "sscape: Invalid IRQ %d\n", mpu_irq[dev]);
1024 spin_lock_irqsave(&sscape->lock, flags);
1026 sscape_write_unsafe(sscape->io_base, GA_SMCFGA_REG, 0x2e);
1027 sscape_write_unsafe(sscape->io_base, GA_SMCFGB_REG, 0x00);
1032 sscape_write_unsafe(sscape->io_base, GA_DMACFG_REG, 0x50);
1033 dma_cfg = (sscape->ic_type == IC_OPUS ? 0x40 : 0x70);
1034 sscape_write_unsafe(sscape->io_base, GA_DMAA_REG, dma_cfg);
1035 sscape_write_unsafe(sscape->io_base, GA_DMAB_REG, 0x20);
1038 val = sscape_read_unsafe(sscape->io_base, GA_HMCTL_REG) & 0xF7;
1041 sscape_write_unsafe(sscape->io_base, GA_HMCTL_REG, val | 0x10);
1042 sscape_write_unsafe(sscape->io_base, GA_INTCFG_REG, 0xf0 | mpu_irq_cfg);
1043 sscape_write_unsafe(sscape->io_base,
1049 sscape_write_unsafe(sscape->io_base, GA_INTENA_REG, 0x80);
1051 spin_unlock_irqrestore(&sscape->lock, flags);
1061 "sscape: No AD1845 device at 0x%lx, IRQ %d\n",
1069 name, sscape->chip->port, sscape->chip->irq,
1070 sscape->chip->dma1, sscape->chip->dma2);
1073 if (sscape->type != SSCAPE_VIVO) {
1082 snd_printk(KERN_ERR "sscape: Failed to create "
1091 spin_lock_irqsave(&sscape->lock, flags);
1092 sscape->midi_vol = 0;
1093 host_write_ctrl_unsafe(sscape->io_base,
1095 host_write_ctrl_unsafe(sscape->io_base,
1096 sscape->midi_vol, 100);
1097 host_write_ctrl_unsafe(sscape->io_base,
1099 host_write_ctrl_unsafe(sscape->io_base,
1100 sscape->midi_vol, 100);
1101 host_write_ctrl_unsafe(sscape->io_base,
1103 host_write_ctrl_unsafe(sscape->io_base,
1105 host_write_ctrl_unsafe(sscape->io_base, CMD_ACK, 100);
1107 set_midi_mode_unsafe(sscape->io_base);
1108 spin_unlock_irqrestore(&sscape->lock, flags);
1145 "sscape: insufficient parameters, "
1156 struct soundscape *sscape;
1164 sscape = get_card_soundscape(card);
1165 sscape->type = SSCAPE;
1175 snd_printk(KERN_ERR "sscape: Failed to register sound card\n");
1192 #define DEV_NAME "sscape"
1219 struct soundscape *sscape;
1239 snd_printk(KERN_INFO "sscape: device is inactive\n");
1254 sscape = get_card_soundscape(card);
1260 sscape->type = SSCAPE_VIVO;
1262 sscape->type = SSCAPE_PNP;
1271 if (sscape->type == SSCAPE_PNP) {
1285 snd_printk(KERN_ERR "sscape: Failed to register sound card\n");
1306 .name = "sscape",