Lines Matching refs:sscape

515 	struct soundscape *sscape = get_card_soundscape(card);  in sscape_upload_bootblock()  local
526 ret = upload_dma_data(sscape, init_fw->data, init_fw->size); in sscape_upload_bootblock()
530 spin_lock_irqsave(&sscape->lock, flags); in sscape_upload_bootblock()
532 data = host_read_ctrl_unsafe(sscape->io_base, 100); in sscape_upload_bootblock()
535 sscape_write_unsafe(sscape->io_base, GA_SMCFGA_REG, 0x2f); in sscape_upload_bootblock()
537 spin_unlock_irqrestore(&sscape->lock, flags); in sscape_upload_bootblock()
554 struct soundscape *sscape = get_card_soundscape(card); in sscape_upload_microcode() local
567 err = upload_dma_data(sscape, init_fw->data, init_fw->size); in sscape_upload_microcode()
799 struct soundscape *sscape = get_card_soundscape(card); in create_mpu401() local
809 mpu->private_data = sscape; in create_mpu401()
827 register struct soundscape *sscape = get_card_soundscape(card); in create_ad1845() local
832 switch (sscape->type) { in create_ad1845()
841 if (sscape->ic_type != IC_OPUS) in create_ad1845()
857 if (sscape->type != SSCAPE_VIVO) { in create_ad1845()
893 if (sscape->type != SSCAPE_VIVO) { in create_ad1845()
903 sscape->chip = chip; in create_ad1845()
917 struct soundscape *sscape = get_card_soundscape(card); in create_sscape() local
939 if (sscape->type == SSCAPE_VIVO) { in create_sscape()
958 spin_lock_init(&sscape->lock); in create_sscape()
959 sscape->io_res = io_res; in create_sscape()
960 sscape->wss_res = wss_res; in create_sscape()
961 sscape->io_base = port[dev]; in create_sscape()
963 if (!detect_sscape(sscape, wss_port[dev])) { in create_sscape()
965 sscape->io_base); in create_sscape()
969 switch (sscape->type) { in create_sscape()
988 name, sscape->io_base, irq[dev], dma[dev]); in create_sscape()
993 irq_cfg = get_irq_config(sscape->type, irq[dev]); in create_sscape()
999 mpu_irq_cfg = get_irq_config(sscape->type, mpu_irq[dev]); in create_sscape()
1009 spin_lock_irqsave(&sscape->lock, flags); in create_sscape()
1011 sscape_write_unsafe(sscape->io_base, GA_SMCFGA_REG, 0x2e); in create_sscape()
1012 sscape_write_unsafe(sscape->io_base, GA_SMCFGB_REG, 0x00); in create_sscape()
1017 sscape_write_unsafe(sscape->io_base, GA_DMACFG_REG, 0x50); in create_sscape()
1018 dma_cfg = (sscape->ic_type == IC_OPUS ? 0x40 : 0x70); in create_sscape()
1019 sscape_write_unsafe(sscape->io_base, GA_DMAA_REG, dma_cfg); in create_sscape()
1020 sscape_write_unsafe(sscape->io_base, GA_DMAB_REG, 0x20); in create_sscape()
1023 val = sscape_read_unsafe(sscape->io_base, GA_HMCTL_REG) & 0xF7; in create_sscape()
1026 sscape_write_unsafe(sscape->io_base, GA_HMCTL_REG, val | 0x10); in create_sscape()
1027 sscape_write_unsafe(sscape->io_base, GA_INTCFG_REG, 0xf0 | mpu_irq_cfg); in create_sscape()
1028 sscape_write_unsafe(sscape->io_base, in create_sscape()
1034 sscape_write_unsafe(sscape->io_base, GA_INTENA_REG, 0x80); in create_sscape()
1036 spin_unlock_irqrestore(&sscape->lock, flags); in create_sscape()
1054 name, sscape->chip->port, sscape->chip->irq, in create_sscape()
1055 sscape->chip->dma1, sscape->chip->dma2); in create_sscape()
1058 if (sscape->type != SSCAPE_VIVO) { in create_sscape()
1076 spin_lock_irqsave(&sscape->lock, flags); in create_sscape()
1077 sscape->midi_vol = 0; in create_sscape()
1078 host_write_ctrl_unsafe(sscape->io_base, in create_sscape()
1080 host_write_ctrl_unsafe(sscape->io_base, in create_sscape()
1081 sscape->midi_vol, 100); in create_sscape()
1082 host_write_ctrl_unsafe(sscape->io_base, in create_sscape()
1084 host_write_ctrl_unsafe(sscape->io_base, in create_sscape()
1085 sscape->midi_vol, 100); in create_sscape()
1086 host_write_ctrl_unsafe(sscape->io_base, in create_sscape()
1088 host_write_ctrl_unsafe(sscape->io_base, in create_sscape()
1090 host_write_ctrl_unsafe(sscape->io_base, CMD_ACK, 100); in create_sscape()
1092 set_midi_mode_unsafe(sscape->io_base); in create_sscape()
1093 spin_unlock_irqrestore(&sscape->lock, flags); in create_sscape()
1123 struct soundscape *sscape; in snd_sscape_probe() local
1131 sscape = get_card_soundscape(card); in snd_sscape_probe()
1132 sscape->dev = pdev; in snd_sscape_probe()
1133 sscape->type = SSCAPE; in snd_sscape_probe()
1176 struct soundscape *sscape; in sscape_pnp_detect() local
1211 sscape = get_card_soundscape(card); in sscape_pnp_detect()
1212 sscape->dev = card->dev; in sscape_pnp_detect()
1218 sscape->type = SSCAPE_VIVO; in sscape_pnp_detect()
1220 sscape->type = SSCAPE_PNP; in sscape_pnp_detect()
1229 if (sscape->type == SSCAPE_PNP) { in sscape_pnp_detect()