Lines Matching defs:sscape
176 snd_printk(KERN_ERR "sscape: Failed to allocate "
347 struct soundscape *sscape = get_card_soundscape(c);
348 release_and_free_resource(sscape->io_res);
349 release_and_free_resource(sscape->wss_res);
350 free_dma(sscape->chip->dma1);
490 "sscape: DMA upload has timed out\n");
513 snd_printk(KERN_ERR "sscape: No response "
518 "sscape: SoundScape failed to initialise\n");
539 struct soundscape *sscape = get_card_soundscape(card);
547 snd_printk(KERN_ERR "sscape: Error loading scope.cod");
550 ret = upload_dma_data(sscape, init_fw->data, init_fw->size);
554 spin_lock_irqsave(&sscape->lock, flags);
556 data = host_read_ctrl_unsafe(sscape->io_base, 100);
559 sscape_write_unsafe(sscape->io_base, GA_SMCFGA_REG, 0x2f);
561 spin_unlock_irqrestore(&sscape->lock, flags);
566 "sscape: timeout reading firmware version\n");
578 struct soundscape *sscape = get_card_soundscape(card);
587 snd_printk(KERN_ERR "sscape: Error loading sndscape.co%d",
591 err = upload_dma_data(sscape, init_fw->data, init_fw->size);
593 snd_printk(KERN_INFO "sscape: MIDI firmware loaded %d KBs\n",
809 snd_printk(KERN_ERR "sscape: MIDI disabled, "
823 struct soundscape *sscape = get_card_soundscape(card);
834 mpu->private_data = sscape;
852 register struct soundscape *sscape = get_card_soundscape(card);
857 switch (sscape->type) {
866 if (sscape->ic_type != IC_OPUS)
883 if (sscape->type != SSCAPE_VIVO) {
899 snd_printk(KERN_ERR "sscape: No PCM device "
906 snd_printk(KERN_ERR "sscape: No mixer device "
913 snd_printk(KERN_ERR "sscape: No timer device "
919 if (sscape->type != SSCAPE_VIVO) {
923 snd_printk(KERN_ERR "sscape: Could not create "
929 sscape->chip = chip;
943 struct soundscape *sscape = get_card_soundscape(card);
961 "sscape: can't grab port 0x%lx\n", port[dev]);
965 if (sscape->type == SSCAPE_VIVO) {
968 snd_printk(KERN_ERR "sscape: can't grab port 0x%lx\n",
980 snd_printk(KERN_ERR "sscape: can't grab DMA %d\n", dma[dev]);
984 spin_lock_init(&sscape->lock);
985 sscape->io_res = io_res;
986 sscape->wss_res = wss_res;
987 sscape->io_base = port[dev];
989 if (!detect_sscape(sscape, wss_port[dev])) {
990 printk(KERN_ERR "sscape: hardware not detected at 0x%x\n",
991 sscape->io_base);
996 switch (sscape->type) {
1014 printk(KERN_INFO "sscape: %s card detected at 0x%x, using IRQ %d, DMA %d\n",
1015 name, sscape->io_base, irq[dev], dma[dev]);
1020 irq_cfg = get_irq_config(sscape->type, irq[dev]);
1022 snd_printk(KERN_ERR "sscape: Invalid IRQ %d\n", irq[dev]);
1026 mpu_irq_cfg = get_irq_config(sscape->type, mpu_irq[dev]);
1028 snd_printk(KERN_ERR "sscape: Invalid IRQ %d\n", mpu_irq[dev]);
1036 spin_lock_irqsave(&sscape->lock, flags);
1038 sscape_write_unsafe(sscape->io_base, GA_SMCFGA_REG, 0x2e);
1039 sscape_write_unsafe(sscape->io_base, GA_SMCFGB_REG, 0x00);
1044 sscape_write_unsafe(sscape->io_base, GA_DMACFG_REG, 0x50);
1045 dma_cfg = (sscape->ic_type == IC_OPUS ? 0x40 : 0x70);
1046 sscape_write_unsafe(sscape->io_base, GA_DMAA_REG, dma_cfg);
1047 sscape_write_unsafe(sscape->io_base, GA_DMAB_REG, 0x20);
1050 val = sscape_read_unsafe(sscape->io_base, GA_HMCTL_REG) & 0xF7;
1053 sscape_write_unsafe(sscape->io_base, GA_HMCTL_REG, val | 0x10);
1054 sscape_write_unsafe(sscape->io_base, GA_INTCFG_REG, 0xf0 | mpu_irq_cfg);
1055 sscape_write_unsafe(sscape->io_base,
1061 sscape_write_unsafe(sscape->io_base, GA_INTENA_REG, 0x80);
1063 spin_unlock_irqrestore(&sscape->lock, flags);
1073 "sscape: No AD1845 device at 0x%lx, IRQ %d\n",
1081 name, sscape->chip->port, sscape->chip->irq,
1082 sscape->chip->dma1, sscape->chip->dma2);
1085 if (sscape->type != SSCAPE_VIVO) {
1094 snd_printk(KERN_ERR "sscape: Failed to create "
1103 spin_lock_irqsave(&sscape->lock, flags);
1104 sscape->midi_vol = 0;
1105 host_write_ctrl_unsafe(sscape->io_base,
1107 host_write_ctrl_unsafe(sscape->io_base,
1108 sscape->midi_vol, 100);
1109 host_write_ctrl_unsafe(sscape->io_base,
1111 host_write_ctrl_unsafe(sscape->io_base,
1112 sscape->midi_vol, 100);
1113 host_write_ctrl_unsafe(sscape->io_base,
1115 host_write_ctrl_unsafe(sscape->io_base,
1117 host_write_ctrl_unsafe(sscape->io_base, CMD_ACK, 100);
1119 set_midi_mode_unsafe(sscape->io_base);
1120 spin_unlock_irqrestore(&sscape->lock, flags);
1157 "sscape: insufficient parameters, "
1168 struct soundscape *sscape;
1176 sscape = get_card_soundscape(card);
1177 sscape->type = SSCAPE;
1188 snd_printk(KERN_ERR "sscape: Failed to register sound card\n");
1206 #define DEV_NAME "sscape"
1232 struct soundscape *sscape;
1252 snd_printk(KERN_INFO "sscape: device is inactive\n");
1266 sscape = get_card_soundscape(card);
1272 sscape->type = SSCAPE_VIVO;
1274 sscape->type = SSCAPE_PNP;
1283 if (sscape->type == SSCAPE_PNP) {
1298 snd_printk(KERN_ERR "sscape: Failed to register sound card\n");
1319 .name = "sscape",