Lines Matching +full:0 +full:x3e0
94 snd_msnd_DAPQ(chip, 0); in snd_msnd_eval_dsp_msg()
99 chip->playDMAPos = 0; in snd_msnd_eval_dsp_msg()
110 chip->captureDMAPos = 0; in snd_msnd_eval_dsp_msg()
137 ": DSP message %d 0x%02x\n", in snd_msnd_eval_dsp_msg()
149 snd_printd(KERN_WARNING LOGNAME ": HIMT message %d 0x%02x\n", in snd_msnd_eval_dsp_msg()
173 head = 0; in snd_msnd_interrupt()
195 while (timeout-- > 0) { in snd_msnd_reset_dsp()
197 return 0; in snd_msnd_reset_dsp()
220 if (snd_msnd_reset_dsp(chip->io, &info) < 0) { in snd_msnd_probe()
229 "I/O 0x%lx-0x%lx, IRQ %d, memory mapped to 0x%lX-0x%lX\n", in snd_msnd_probe()
233 chip->base, chip->base + 0x7fff); in snd_msnd_probe()
236 case 0xf: in snd_msnd_probe()
239 case 0x1: in snd_msnd_probe()
242 case 0x2: in snd_msnd_probe()
245 case 0x3: in snd_msnd_probe()
253 switch (info & 0x7) { in snd_msnd_probe()
254 case 0x0: in snd_msnd_probe()
258 case 0x1: in snd_msnd_probe()
262 case 0x2: in snd_msnd_probe()
266 case 0x3: in snd_msnd_probe()
270 case 0x4: in snd_msnd_probe()
274 case 0x5: in snd_msnd_probe()
278 case 0x6: in snd_msnd_probe()
282 case 0x7: in snd_msnd_probe()
289 "I/O 0x%lx-0x%lx, IRQ %d, memory mapped to 0x%lX-0x%lX\n", in snd_msnd_probe()
294 chip->base, chip->base + 0x7fff); in snd_msnd_probe()
298 return 0; in snd_msnd_probe()
318 mastVolLeft = mastVolRight = 0; in snd_msnd_init_sma()
319 memset_io(chip->mappedbase, 0, 0x8000); in snd_msnd_init_sma()
324 memset_io(chip->mappedbase, 0, 0x8000); in snd_msnd_init_sma()
359 writel(0x00010000, chip->SMA + SMA_dwCurrPlayPitch); in snd_msnd_init_sma()
360 writel(0x00000001, chip->SMA + SMA_dwCurrPlayRate); in snd_msnd_init_sma()
362 writew(0x303, chip->SMA + SMA_wCurrInputTagBits); in snd_msnd_init_sma()
366 return 0; in snd_msnd_init_sma()
379 if (err < 0) { in upload_dsp_code()
384 if (err < 0) { in upload_dsp_code()
390 if (snd_msnd_upload_host(chip, init_fw->data, init_fw->size) < 0) { in upload_dsp_code()
396 err = 0; in upload_dsp_code()
427 if (err < 0) { in snd_msnd_initialize()
433 if (err < 0) in snd_msnd_initialize()
437 if (err < 0) { in snd_msnd_initialize()
453 return 0; in snd_msnd_initialize()
462 return 0; in snd_msnd_dsp_full_reset()
470 snd_msndmix_force_recsrc(chip, 0); in snd_msnd_dsp_full_reset()
478 if (snd_msnd_send_dsp_cmd(chip, cmd) == 0) in snd_msnd_send_dsp_cmd_chk()
479 return 0; in snd_msnd_send_dsp_cmd_chk()
488 if (chip->calibrate_signal == 0) in snd_msnd_calibrate_adc()
490 | 0x0001, chip->SMA + SMA_wCurrHostStatusFlags); in snd_msnd_calibrate_adc()
493 & ~0x0001, chip->SMA + SMA_wCurrHostStatusFlags); in snd_msnd_calibrate_adc()
494 if (snd_msnd_send_word(chip, 0, 0, HDEXAR_CAL_A_TO_D) == 0 && in snd_msnd_calibrate_adc()
495 snd_msnd_send_dsp_cmd_chk(chip, HDEX_AUX_REQ) == 0) { in snd_msnd_calibrate_adc()
497 return 0; in snd_msnd_calibrate_adc()
510 return 0; in snd_msnd_mpu401_open()
527 err = devm_request_irq(card->dev, chip->irq, snd_msnd_interrupt, 0, in snd_msnd_attach()
529 if (err < 0) { in snd_msnd_attach()
541 ": unable to grab memory region 0x%lx-0x%lx\n", in snd_msnd_attach()
545 chip->mappedbase = devm_ioremap(card->dev, chip->base, 0x8000); in snd_msnd_attach()
548 ": unable to map memory region 0x%lx-0x%lx\n", in snd_msnd_attach()
554 if (err < 0) in snd_msnd_attach()
557 err = snd_msnd_pcm(card, 0); in snd_msnd_attach()
558 if (err < 0) { in snd_msnd_attach()
564 if (err < 0) { in snd_msnd_attach()
570 if (mpu_io[0] != SNDRV_AUTO_PORT) { in snd_msnd_attach()
573 err = snd_mpu401_uart_new(card, 0, MPU401_HW_MPU401, in snd_msnd_attach()
574 mpu_io[0], in snd_msnd_attach()
577 mpu_irq[0], in snd_msnd_attach()
579 if (err < 0) { in snd_msnd_attach()
593 snd_msndmix_force_recsrc(chip, 0); in snd_msnd_attach()
596 if (err < 0) in snd_msnd_attach()
599 return 0; in snd_msnd_attach()
615 return 0; in snd_msnd_write_cfg()
626 return 0; in snd_msnd_write_cfg_io0()
637 return 0; in snd_msnd_write_cfg_io1()
648 return 0; in snd_msnd_write_cfg_irq()
656 wmem = (u16)(mem & 0xfff); in snd_msnd_write_cfg_mem()
666 return 0; in snd_msnd_write_cfg_mem()
675 return 0; in snd_msnd_activate_logical()
693 return 0; in snd_msnd_write_cfg_logical()
702 for (i = 0; i < 4; ++i) in snd_msnd_pinnacle_cfg_reset()
703 if (snd_msnd_write_cfg_logical(cfg, i, 0, 0, 0, 0)) in snd_msnd_pinnacle_cfg_reset()
706 return 0; in snd_msnd_pinnacle_cfg_reset()
710 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */
738 static int write_ndelay[SNDRV_CARDS] = { [0 ... (SNDRV_CARDS-1)] = 1 };
748 #define has_isapnp(x) 0
779 return 0; in snd_msnd_isa_match()
783 return 0; in snd_msnd_isa_match()
787 if (!(io[i] == 0x290 || in snd_msnd_isa_match()
788 io[i] == 0x260 || in snd_msnd_isa_match()
789 io[i] == 0x250 || in snd_msnd_isa_match()
790 io[i] == 0x240 || in snd_msnd_isa_match()
791 io[i] == 0x230 || in snd_msnd_isa_match()
792 io[i] == 0x220 || in snd_msnd_isa_match()
793 io[i] == 0x210 || in snd_msnd_isa_match()
794 io[i] == 0x3e0)) { in snd_msnd_isa_match()
796 " to 0x210, 0x220, 0x230, 0x240, 0x250, 0x260, 0x290, " in snd_msnd_isa_match()
797 "or 0x3E0\n"); in snd_msnd_isa_match()
798 return 0; in snd_msnd_isa_match()
801 if (io[i] < 0x100 || io[i] > 0x3e0 || (io[i] % 0x10) != 0) { in snd_msnd_isa_match()
803 ": \"io\" - DSP I/O base must within the range 0x100 " in snd_msnd_isa_match()
804 "to 0x3E0 and must be evenly divisible by 0x10\n"); in snd_msnd_isa_match()
805 return 0; in snd_msnd_isa_match()
817 return 0; in snd_msnd_isa_match()
820 if (!(mem[i] == 0xb0000 || in snd_msnd_isa_match()
821 mem[i] == 0xc8000 || in snd_msnd_isa_match()
822 mem[i] == 0xd0000 || in snd_msnd_isa_match()
823 mem[i] == 0xd8000 || in snd_msnd_isa_match()
824 mem[i] == 0xe0000 || in snd_msnd_isa_match()
825 mem[i] == 0xe8000)) { in snd_msnd_isa_match()
827 "0xb0000, 0xc8000, 0xd0000, 0xd8000, 0xe0000 or " in snd_msnd_isa_match()
828 "0xe8000\n"); in snd_msnd_isa_match()
829 return 0; in snd_msnd_isa_match()
835 } else if (cfg[i] != 0x250 && cfg[i] != 0x260 && cfg[i] != 0x270) { in snd_msnd_isa_match()
837 ": Config port must be 0x250, 0x260 or 0x270 " in snd_msnd_isa_match()
839 return 0; in snd_msnd_isa_match()
863 if (err < 0) in snd_msnd_isa_probe()
886 case 0xb0000: in snd_msnd_isa_probe()
888 case 0xc8000: in snd_msnd_isa_probe()
890 case 0xd0000: in snd_msnd_isa_probe()
892 case 0xd8000: in snd_msnd_isa_probe()
894 case 0xe0000: in snd_msnd_isa_probe()
896 case 0xe8000: in snd_msnd_isa_probe()
900 printk(KERN_INFO LOGNAME ": Non-PnP mode: configuring at port 0x%lx\n", in snd_msnd_isa_probe()
905 printk(KERN_ERR LOGNAME ": Config port 0x%lx conflict\n", in snd_msnd_isa_probe()
914 err = snd_msnd_write_cfg_logical(cfg[idx], 0, in snd_msnd_isa_probe()
915 io[idx], 0, in snd_msnd_isa_probe()
927 ": Configuring MPU to I/O 0x%lx IRQ %d\n", in snd_msnd_isa_probe()
930 mpu_io[idx], 0, in snd_msnd_isa_probe()
931 mpu_irq[idx], 0); in snd_msnd_isa_probe()
942 ": Configuring IDE to I/O 0x%lx, 0x%lx IRQ %d\n", in snd_msnd_isa_probe()
946 ide_irq[idx], 0); in snd_msnd_isa_probe()
955 ": Configuring joystick to I/O 0x%lx\n", in snd_msnd_isa_probe()
958 joystick_io[idx], 0, in snd_msnd_isa_probe()
959 0, 0); in snd_msnd_isa_probe()
977 chip->calibrate_signal = calibrate_signal ? 1 : 0; in snd_msnd_isa_probe()
978 chip->recsrc = 0; in snd_msnd_isa_probe()
991 if (err < 0) { in snd_msnd_isa_probe()
997 if (err < 0) { in snd_msnd_isa_probe()
1003 return 0; in snd_msnd_isa_probe()
1036 pnp_dev = pnp_request_card_device(pcard, pid->devs[0].id, NULL); in snd_msnd_pnp_detect()
1044 if (!pnp_is_active(pnp_dev) && pnp_activate_dev(pnp_dev) < 0) { in snd_msnd_pnp_detect()
1049 if (!pnp_is_active(mpu_dev) && pnp_activate_dev(mpu_dev) < 0) { in snd_msnd_pnp_detect()
1061 if (ret < 0) in snd_msnd_pnp_detect()
1070 io[idx] = pnp_port_start(pnp_dev, 0); in snd_msnd_pnp_detect()
1071 irq[idx] = pnp_irq(pnp_dev, 0); in snd_msnd_pnp_detect()
1072 mem[idx] = pnp_mem_start(pnp_dev, 0); in snd_msnd_pnp_detect()
1073 mpu_io[idx] = pnp_port_start(mpu_dev, 0); in snd_msnd_pnp_detect()
1074 mpu_irq[idx] = pnp_irq(mpu_dev, 0); in snd_msnd_pnp_detect()
1086 chip->calibrate_signal = calibrate_signal ? 1 : 0; in snd_msnd_pnp_detect()
1087 chip->recsrc = 0; in snd_msnd_pnp_detect()
1100 if (ret < 0) { in snd_msnd_pnp_detect()
1106 if (ret < 0) { in snd_msnd_pnp_detect()
1113 return 0; in snd_msnd_pnp_detect()
1149 err = 0; in snd_msnd_init()