• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/sound/isa/

Lines Matching refs:sscape

176 			snd_printk(KERN_ERR "sscape: Failed to allocate %lu bytes for DMA\n", size);
343 register struct soundscape *sscape = get_card_soundscape(c);
344 release_and_free_resource(sscape->io_res);
345 free_dma(sscape->chip->dma1);
497 snd_printk(KERN_ERR "sscape: DMA upload has timed out\n");
518 snd_printk(KERN_ERR "sscape: No response from on-board processor after upload\n");
521 snd_printk(KERN_ERR "sscape: SoundScape failed to initialise\n");
544 static int sscape_upload_bootblock(struct soundscape *sscape, struct sscape_bootblock __user *bb)
550 ret = upload_dma_data(sscape, bb->code, sizeof(bb->code));
552 spin_lock_irqsave(&sscape->lock, flags);
554 data = host_read_ctrl_unsafe(sscape->io_base, 100);
556 set_midi_mode_unsafe(sscape->io_base);
557 spin_unlock_irqrestore(&sscape->lock, flags);
561 snd_printk(KERN_ERR "sscape: timeout reading firmware version\n");
579 static int sscape_upload_microcode(struct soundscape *sscape,
598 if ((err = upload_dma_data(sscape, code, SSCAPE_MICROCODE_SIZE)) == 0) {
599 snd_printk(KERN_INFO "sscape: MIDI firmware loaded\n");
602 spin_lock_irqsave(&sscape->lock, flags);
603 set_midi_mode_unsafe(sscape->io_base);
604 spin_unlock_irqrestore(&sscape->lock, flags);
606 initialise_mpu401(sscape->mpu);
621 register struct soundscape *sscape = get_hwdep_soundscape(hw);
625 spin_lock_irqsave(&sscape->fwlock, flags);
627 if ((sscape->midi_usage != 0) || sscape->hw_in_use) {
630 sscape->hw_in_use = 1;
634 spin_unlock_irqrestore(&sscape->fwlock, flags);
640 register struct soundscape *sscape = get_hwdep_soundscape(hw);
643 spin_lock_irqsave(&sscape->fwlock, flags);
644 sscape->hw_in_use = 0;
645 spin_unlock_irqrestore(&sscape->fwlock, flags);
652 struct soundscape *sscape = get_hwdep_soundscape(hw);
674 err = sscape_upload_bootblock(sscape, bb);
682 err = sscape_upload_microcode(sscape, mc);
860 snd_printk(KERN_ERR "sscape: MIDI disabled, please load firmware\n");
863 register struct soundscape *sscape = get_mpu401_soundscape(mpu);
866 spin_lock_irqsave(&sscape->fwlock, flags);
868 if (sscape->hw_in_use || (sscape->midi_usage == ULONG_MAX)) {
871 ++(sscape->midi_usage);
875 spin_unlock_irqrestore(&sscape->fwlock, flags);
883 register struct soundscape *sscape = get_mpu401_soundscape(mpu);
886 spin_lock_irqsave(&sscape->fwlock, flags);
887 --(sscape->midi_usage);
888 spin_unlock_irqrestore(&sscape->fwlock, flags);
896 struct soundscape *sscape = get_card_soundscape(card);
910 mpu->private_data = sscape;
911 sscape->mpu = mpu;
1000 register struct soundscape *sscape = get_card_soundscape(card);
1056 snd_printk(KERN_ERR "sscape: No PCM device for AD1845 chip\n");
1061 snd_printk(KERN_ERR "sscape: No mixer device for AD1845 chip\n");
1066 snd_printk(KERN_ERR "sscape: Could not create MIDI mixer control\n");
1077 sscape->chip = chip;
1092 register struct soundscape *sscape;
1106 snd_printk(KERN_ERR "sscape: Invalid IRQ %d\n", irq[dev]);
1112 printk(KERN_ERR "sscape: Invalid IRQ %d\n", mpu_irq[dev]);
1122 snd_printk(KERN_ERR "sscape: can't grab port 0x%x\n", xport);
1130 snd_printk(KERN_ERR "sscape: can't grab DMA %d\n", dma[dev]);
1144 sscape = get_card_soundscape(card);
1145 spin_lock_init(&sscape->lock);
1146 spin_lock_init(&sscape->fwlock);
1147 sscape->io_res = io_res;
1148 sscape->io_base = xport;
1150 if (!detect_sscape(sscape)) {
1151 printk(KERN_ERR "sscape: hardware not detected at 0x%x\n", sscape->io_base);
1156 printk(KERN_INFO "sscape: hardware detected at 0x%x, using IRQ %d, DMA %d\n",
1157 sscape->io_base, irq[dev], dma[dev]);
1165 if ((err = snd_hwdep_new(card, "MC68EC000", 0, &(sscape->hw))) < 0) {
1166 printk(KERN_ERR "sscape: Failed to create firmware device\n");
1169 strlcpy(sscape->hw->name, "SoundScape M68K", sizeof(sscape->hw->name));
1170 sscape->hw->name[sizeof(sscape->hw->name) - 1] = '\0';
1171 sscape->hw->iface = SNDRV_HWDEP_IFACE_SSCAPE;
1172 sscape->hw->ops.open = sscape_hw_open;
1173 sscape->hw->ops.release = sscape_hw_release;
1174 sscape->hw->ops.ioctl = sscape_hw_ioctl;
1175 sscape->hw->private_data = sscape;
1181 spin_lock_irqsave(&sscape->lock, flags);
1183 activate_ad1845_unsafe(sscape->io_base);
1185 sscape_write_unsafe(sscape->io_base, GA_INTENA_REG, 0x00); /* disable */
1186 sscape_write_unsafe(sscape->io_base, GA_SMCFGA_REG, 0x2e);
1187 sscape_write_unsafe(sscape->io_base, GA_SMCFGB_REG, 0x00);
1192 sscape_write_unsafe(sscape->io_base, GA_DMACFG_REG, 0x50);
1193 dma_cfg = (sscape->ic_type == IC_ODIE ? 0x70 : 0x40);
1194 sscape_write_unsafe(sscape->io_base, GA_DMAA_REG, dma_cfg);
1195 sscape_write_unsafe(sscape->io_base, GA_DMAB_REG, 0x20);
1197 sscape_write_unsafe(sscape->io_base,
1199 sscape_write_unsafe(sscape->io_base,
1202 spin_unlock_irqrestore(&sscape->lock, flags);
1209 printk(KERN_ERR "sscape: No AD1845 device at 0x%x, IRQ %d\n",
1215 printk(KERN_ERR "sscape: Failed to create MPU-401 device at 0x%x\n",
1223 sscape_write(sscape, GA_INTENA_REG, 0x80);
1228 sscape->midi_vol = 0;
1229 host_write_ctrl_unsafe(sscape->io_base, CMD_SET_MIDI_VOL, 100);
1230 host_write_ctrl_unsafe(sscape->io_base, 0, 100);
1231 host_write_ctrl_unsafe(sscape->io_base, CMD_XXX_MIDI_VOL, 100);
1269 "sscape: insufficient parameters, need IO, IRQ, MPU-IRQ and DMA\n");
1287 printk(KERN_ERR "sscape: Failed to register sound card\n");
1301 #define DEV_NAME "sscape"
1351 // printk(KERN_INFO "sscape: %s\n", card->name);
1362 printk(KERN_INFO "sscape: device is inactive\n");
1380 printk(KERN_ERR "sscape: Failed to register sound card\n");
1399 .name = "sscape",