Lines Matching +full:0 +full:xb0000

95 			snd_msnd_DAPQ(chip, 0);  in snd_msnd_eval_dsp_msg()
100 chip->playDMAPos = 0; in snd_msnd_eval_dsp_msg()
111 chip->captureDMAPos = 0; in snd_msnd_eval_dsp_msg()
139 ": DSP message %d 0x%02x\n", in snd_msnd_eval_dsp_msg()
151 dev_dbg(chip->card->dev, LOGNAME ": HIMT message %d 0x%02x\n", in snd_msnd_eval_dsp_msg()
175 head = 0; in snd_msnd_interrupt()
198 while (timeout-- > 0) { in snd_msnd_reset_dsp()
200 return 0; in snd_msnd_reset_dsp()
223 if (snd_msnd_reset_dsp(chip, &info) < 0) { in snd_msnd_probe()
232 "I/O 0x%lx-0x%lx, IRQ %d, memory mapped to 0x%lX-0x%lX\n", in snd_msnd_probe()
236 chip->base, chip->base + 0x7fff); in snd_msnd_probe()
239 case 0xf: in snd_msnd_probe()
242 case 0x1: in snd_msnd_probe()
245 case 0x2: in snd_msnd_probe()
248 case 0x3: in snd_msnd_probe()
256 switch (info & 0x7) { in snd_msnd_probe()
257 case 0x0: in snd_msnd_probe()
261 case 0x1: in snd_msnd_probe()
265 case 0x2: in snd_msnd_probe()
269 case 0x3: in snd_msnd_probe()
273 case 0x4: in snd_msnd_probe()
277 case 0x5: in snd_msnd_probe()
281 case 0x6: in snd_msnd_probe()
285 case 0x7: in snd_msnd_probe()
292 "I/O 0x%lx-0x%lx, IRQ %d, memory mapped to 0x%lX-0x%lX\n", in snd_msnd_probe()
297 chip->base, chip->base + 0x7fff); in snd_msnd_probe()
301 return 0; in snd_msnd_probe()
321 mastVolLeft = mastVolRight = 0; in snd_msnd_init_sma()
322 memset_io(chip->mappedbase, 0, 0x8000); in snd_msnd_init_sma()
327 memset_io(chip->mappedbase, 0, 0x8000); in snd_msnd_init_sma()
362 writel(0x00010000, chip->SMA + SMA_dwCurrPlayPitch); in snd_msnd_init_sma()
363 writel(0x00000001, chip->SMA + SMA_dwCurrPlayRate); in snd_msnd_init_sma()
365 writew(0x303, chip->SMA + SMA_wCurrInputTagBits); in snd_msnd_init_sma()
369 return 0; in snd_msnd_init_sma()
382 if (err < 0) { in upload_dsp_code()
387 if (err < 0) { in upload_dsp_code()
393 if (snd_msnd_upload_host(chip, init_fw->data, init_fw->size) < 0) { in upload_dsp_code()
399 err = 0; in upload_dsp_code()
430 if (err < 0) { in snd_msnd_initialize()
436 if (err < 0) in snd_msnd_initialize()
440 if (err < 0) { in snd_msnd_initialize()
456 return 0; in snd_msnd_initialize()
465 return 0; in snd_msnd_dsp_full_reset()
473 snd_msndmix_force_recsrc(chip, 0); in snd_msnd_dsp_full_reset()
481 if (snd_msnd_send_dsp_cmd(chip, cmd) == 0) in snd_msnd_send_dsp_cmd_chk()
482 return 0; in snd_msnd_send_dsp_cmd_chk()
491 if (chip->calibrate_signal == 0) in snd_msnd_calibrate_adc()
493 | 0x0001, chip->SMA + SMA_wCurrHostStatusFlags); in snd_msnd_calibrate_adc()
496 & ~0x0001, chip->SMA + SMA_wCurrHostStatusFlags); in snd_msnd_calibrate_adc()
497 if (snd_msnd_send_word(chip, 0, 0, HDEXAR_CAL_A_TO_D) == 0 && in snd_msnd_calibrate_adc()
498 snd_msnd_send_dsp_cmd_chk(chip, HDEX_AUX_REQ) == 0) { in snd_msnd_calibrate_adc()
500 return 0; in snd_msnd_calibrate_adc()
513 return 0; in snd_msnd_mpu401_open()
530 err = devm_request_irq(card->dev, chip->irq, snd_msnd_interrupt, 0, in snd_msnd_attach()
532 if (err < 0) { in snd_msnd_attach()
544 ": unable to grab memory region 0x%lx-0x%lx\n", in snd_msnd_attach()
548 chip->mappedbase = devm_ioremap(card->dev, chip->base, 0x8000); in snd_msnd_attach()
551 ": unable to map memory region 0x%lx-0x%lx\n", in snd_msnd_attach()
557 if (err < 0) in snd_msnd_attach()
560 err = snd_msnd_pcm(card, 0); in snd_msnd_attach()
561 if (err < 0) { in snd_msnd_attach()
567 if (err < 0) { in snd_msnd_attach()
573 if (mpu_io[0] != SNDRV_AUTO_PORT) { in snd_msnd_attach()
576 err = snd_mpu401_uart_new(card, 0, MPU401_HW_MPU401, in snd_msnd_attach()
577 mpu_io[0], in snd_msnd_attach()
580 mpu_irq[0], in snd_msnd_attach()
582 if (err < 0) { in snd_msnd_attach()
596 snd_msndmix_force_recsrc(chip, 0); in snd_msnd_attach()
599 if (err < 0) in snd_msnd_attach()
602 return 0; in snd_msnd_attach()
618 return 0; in snd_msnd_write_cfg()
629 return 0; in snd_msnd_write_cfg_io0()
640 return 0; in snd_msnd_write_cfg_io1()
651 return 0; in snd_msnd_write_cfg_irq()
659 wmem = (u16)(mem & 0xfff); in snd_msnd_write_cfg_mem()
669 return 0; in snd_msnd_write_cfg_mem()
678 return 0; in snd_msnd_activate_logical()
697 return 0; in snd_msnd_write_cfg_logical()
706 for (i = 0; i < 4; ++i) in snd_msnd_pinnacle_cfg_reset()
707 if (snd_msnd_write_cfg_logical(chip, cfg, i, 0, 0, 0, 0)) in snd_msnd_pinnacle_cfg_reset()
710 return 0; in snd_msnd_pinnacle_cfg_reset()
714 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */
742 static int write_ndelay[SNDRV_CARDS] = { [0 ... (SNDRV_CARDS-1)] = 1 };
752 #define has_isapnp(x) 0
783 return 0; in snd_msnd_isa_match()
787 return 0; in snd_msnd_isa_match()
791 if (!(io[i] == 0x290 || in snd_msnd_isa_match()
792 io[i] == 0x260 || in snd_msnd_isa_match()
793 io[i] == 0x250 || in snd_msnd_isa_match()
794 io[i] == 0x240 || in snd_msnd_isa_match()
795 io[i] == 0x230 || in snd_msnd_isa_match()
796 io[i] == 0x220 || in snd_msnd_isa_match()
797 io[i] == 0x210 || in snd_msnd_isa_match()
798 io[i] == 0x3e0)) { in snd_msnd_isa_match()
800 " to 0x210, 0x220, 0x230, 0x240, 0x250, 0x260, 0x290, " in snd_msnd_isa_match()
801 "or 0x3E0\n"); in snd_msnd_isa_match()
802 return 0; in snd_msnd_isa_match()
805 if (io[i] < 0x100 || io[i] > 0x3e0 || (io[i] % 0x10) != 0) { in snd_msnd_isa_match()
807 ": \"io\" - DSP I/O base must within the range 0x100 " in snd_msnd_isa_match()
808 "to 0x3E0 and must be evenly divisible by 0x10\n"); in snd_msnd_isa_match()
809 return 0; in snd_msnd_isa_match()
821 return 0; in snd_msnd_isa_match()
824 if (!(mem[i] == 0xb0000 || in snd_msnd_isa_match()
825 mem[i] == 0xc8000 || in snd_msnd_isa_match()
826 mem[i] == 0xd0000 || in snd_msnd_isa_match()
827 mem[i] == 0xd8000 || in snd_msnd_isa_match()
828 mem[i] == 0xe0000 || in snd_msnd_isa_match()
829 mem[i] == 0xe8000)) { in snd_msnd_isa_match()
831 "0xb0000, 0xc8000, 0xd0000, 0xd8000, 0xe0000 or " in snd_msnd_isa_match()
832 "0xe8000\n"); in snd_msnd_isa_match()
833 return 0; in snd_msnd_isa_match()
839 } else if (cfg[i] != 0x250 && cfg[i] != 0x260 && cfg[i] != 0x270) { in snd_msnd_isa_match()
841 ": Config port must be 0x250, 0x260 or 0x270 " in snd_msnd_isa_match()
843 return 0; in snd_msnd_isa_match()
867 if (err < 0) in snd_msnd_isa_probe()
890 case 0xb0000: in snd_msnd_isa_probe()
892 case 0xc8000: in snd_msnd_isa_probe()
894 case 0xd0000: in snd_msnd_isa_probe()
896 case 0xd8000: in snd_msnd_isa_probe()
898 case 0xe0000: in snd_msnd_isa_probe()
900 case 0xe8000: in snd_msnd_isa_probe()
904 dev_info(pdev, LOGNAME ": Non-PnP mode: configuring at port 0x%lx\n", in snd_msnd_isa_probe()
909 dev_err(pdev, LOGNAME ": Config port 0x%lx conflict\n", in snd_msnd_isa_probe()
918 err = snd_msnd_write_cfg_logical(chip, cfg[idx], 0, in snd_msnd_isa_probe()
919 io[idx], 0, in snd_msnd_isa_probe()
931 ": Configuring MPU to I/O 0x%lx IRQ %d\n", in snd_msnd_isa_probe()
934 mpu_io[idx], 0, in snd_msnd_isa_probe()
935 mpu_irq[idx], 0); in snd_msnd_isa_probe()
946 ": Configuring IDE to I/O 0x%lx, 0x%lx IRQ %d\n", in snd_msnd_isa_probe()
950 ide_irq[idx], 0); in snd_msnd_isa_probe()
959 ": Configuring joystick to I/O 0x%lx\n", in snd_msnd_isa_probe()
962 joystick_io[idx], 0, in snd_msnd_isa_probe()
963 0, 0); in snd_msnd_isa_probe()
981 chip->calibrate_signal = calibrate_signal ? 1 : 0; in snd_msnd_isa_probe()
982 chip->recsrc = 0; in snd_msnd_isa_probe()
995 if (err < 0) { in snd_msnd_isa_probe()
1001 if (err < 0) { in snd_msnd_isa_probe()
1007 return 0; in snd_msnd_isa_probe()
1040 pnp_dev = pnp_request_card_device(pcard, pid->devs[0].id, NULL); in snd_msnd_pnp_detect()
1048 if (!pnp_is_active(pnp_dev) && pnp_activate_dev(pnp_dev) < 0) { in snd_msnd_pnp_detect()
1053 if (!pnp_is_active(mpu_dev) && pnp_activate_dev(mpu_dev) < 0) { in snd_msnd_pnp_detect()
1065 if (ret < 0) in snd_msnd_pnp_detect()
1074 io[idx] = pnp_port_start(pnp_dev, 0); in snd_msnd_pnp_detect()
1075 irq[idx] = pnp_irq(pnp_dev, 0); in snd_msnd_pnp_detect()
1076 mem[idx] = pnp_mem_start(pnp_dev, 0); in snd_msnd_pnp_detect()
1077 mpu_io[idx] = pnp_port_start(mpu_dev, 0); in snd_msnd_pnp_detect()
1078 mpu_irq[idx] = pnp_irq(mpu_dev, 0); in snd_msnd_pnp_detect()
1090 chip->calibrate_signal = calibrate_signal ? 1 : 0; in snd_msnd_pnp_detect()
1091 chip->recsrc = 0; in snd_msnd_pnp_detect()
1104 if (ret < 0) { in snd_msnd_pnp_detect()
1110 if (ret < 0) { in snd_msnd_pnp_detect()
1117 return 0; in snd_msnd_pnp_detect()
1153 err = 0; in snd_msnd_init()