Lines Matching +full:0 +full:x000000aa
55 { 0, 64, 1.5 },
63 { 0, 0, 0 },
82 { 0, 0 },
90 return (0x000000ff); /* 8 channels single speed. */ in hdsp_adat_slot_map()
92 return (0x000000aa); /* 4 channels (1,3,5,7) double speed. */ in hdsp_adat_slot_map()
94 return (0x00000000); /* ADAT disabled at quad speed. */ in hdsp_adat_slot_map()
100 uint32_t slot_map = 0; in hdsp_port_slot_map()
105 slot_map |= (hdsp_adat_slot_map(speed) << 0); in hdsp_port_slot_map()
107 slot_map |= (0x03 << 8); /* 2 channels SPDIF. */ in hdsp_port_slot_map()
109 slot_map |= (0x03 << 10); /* 2 channels line. */ in hdsp_port_slot_map()
111 slot_map |= (0x0f << 12); /* 4 channels extension. */ in hdsp_port_slot_map()
115 slot_map |= (hdsp_adat_slot_map(speed) << 0); in hdsp_port_slot_map()
121 slot_map |= (0x03 << 24); /* 2 channels SPDIF. */ in hdsp_port_slot_map()
148 for (uint32_t slot = 1; slot != 0; slot <<= 1) { in hdsp_slot_first_n()
149 if ((slots & slot) && n > 0) in hdsp_slot_first_n()
224 offset = 0; in hdsp_hw_mixer()
228 return (0); in hdsp_hw_mixer()
244 return (0); in hdsp_hw_mixer()
261 return (0); in hdsp_hw_mixer()
275 while (port != 0) { in hdspchan_setgain()
286 while (slot != 0) { in hdspchan_setgain()
301 return (0); in hdspchan_setgain()
329 return (0); in hdspmixer_init()
342 #if 0 in hdspmixer_set()
347 for (i = 0; i < scp->chnum; i++) { in hdspmixer_set()
358 return (0); in hdspmixer_set()
390 while (slot != 0) { in hdspchan_enable()
410 running = 0; in hdsp_running()
413 devcount = 0; in hdsp_running()
415 if (device_get_children(sc->dev, &devlist, &devcount) != 0) in hdsp_running()
418 for (i = 0; running == 0 && i < devcount; i++) { in hdsp_running()
420 for (j = 0; j < scp->chnum; j++) { in hdsp_running()
429 #if 0 in hdsp_running()
465 for (slot = 0; slot < width; slot++) { in buffer_mux_write()
510 for (slot = 0; slot < width; slot++) { in buffer_demux_read()
601 remainder = 0; in buffer_copy()
610 while (row != 0) { in buffer_copy()
614 buffer_mux_port(sc->pbuf, ch->data, row, slots, 0, in buffer_copy()
619 buffer_demux_port(sc->rbuf, ch->data, row, slots, 0, in buffer_copy()
649 while (slot != 0) { in clean()
658 ch->position = 0; in clean()
660 return (0); in clean()
675 #if 0 in hdspchan_free()
690 return (0); in hdspchan_free()
715 ch->run = 0; in hdspchan_init()
716 ch->lvol = 0; in hdspchan_init()
717 ch->rvol = 0; in hdspchan_init()
720 ch->cap_fmts[0] = in hdspchan_init()
721 SND_FORMAT(AFMT_S32_LE, hdsp_port_slot_count(ch->ports, 48000), 0); in hdspchan_init()
723 SND_FORMAT(AFMT_S32_LE, hdsp_port_slot_count(ch->ports, 96000), 0); in hdspchan_init()
725 SND_FORMAT(AFMT_S32_LE, hdsp_port_slot_count(ch->ports, 192000), 0); in hdspchan_init()
726 ch->cap_fmts[3] = 0; in hdspchan_init()
729 *(ch->caps) = (struct pcmchan_caps) {32000, 192000, ch->cap_fmts, 0}; in hdspchan_init()
733 ch->cap_fmts[2] = SND_FORMAT(AFMT_S32_LE, 2, 0); in hdspchan_init()
740 ch->position = 0; in hdspchan_init()
750 if (sndbuf_setup(ch->buffer, ch->data, ch->size) != 0) { in hdspchan_init()
773 #if 0 in hdspchan_trigger()
783 #if 0 in hdspchan_trigger()
787 hdspchan_enable(ch, 0); in hdspchan_trigger()
800 return (0); in hdspchan_trigger()
833 #if 0 in hdspchan_setformat()
840 return (0); in hdspchan_setformat()
858 #if 0 in hdspchan_setspeed()
869 if (sc->force_speed > 0) in hdspchan_setspeed()
873 for (i = 0; rate_map[i].speed != 0; i++) { in hdspchan_setspeed()
880 for (i = 0; rate_map[i].speed != 0; i++) { in hdspchan_setspeed()
882 threshold = hr->speed + ((rate_map[i + 1].speed != 0) ? in hdspchan_setspeed()
883 ((rate_map[i + 1].speed - hr->speed) >> 1) : 0); in hdspchan_setspeed()
920 #if 0 in hdspchan_setblocksize()
934 if (sc->force_period > 0) in hdspchan_setblocksize()
938 for (i = 0; latency_map[i].period != 0; i++) { in hdspchan_setblocksize()
945 for (i = 0; latency_map[i].period != 0; i++) { in hdspchan_setblocksize()
947 threshold = hl->period + ((latency_map[i + 1].period != 0) ? in hdspchan_setblocksize()
948 ((latency_map[i + 1].period - hl->period) >> 1) : 0); in hdspchan_setblocksize()
961 #if 0 in hdspchan_setblocksize()
969 hdsp_write_4(sc, HDSP_RESET_POINTER, 0); in hdspchan_setblocksize()
978 SND_FORMAT(AFMT_S32_LE, 2, 0),
979 0
983 static struct pcmchan_caps hdsp_bkp_caps = {32000, 96000, hdsp_bkp_fmt, 0};
992 #if 0 in hdspchan_getcaps()
1019 #if 0 in hdsp_pcm_probe()
1023 return (0); in hdsp_pcm_probe()
1035 for (i = 0; i < scp->chnum; i++) { in hdsp_pcm_intr()
1042 return (0); in hdsp_pcm_intr()
1078 play = (hdsp_channel_play_ports(scp->hc)) ? 1 : 0; in hdsp_pcm_attach()
1079 rec = (hdsp_channel_rec_ports(scp->hc)) ? 1 : 0; in hdsp_pcm_attach()
1081 scp->chnum = 0; in hdsp_pcm_attach()
1092 snprintf(status, SND_STATUSLEN, "port 0x%jx irq %jd on %s", in hdsp_pcm_attach()
1104 return (0); in hdsp_pcm_attach()
1118 return (0); in hdsp_pcm_detach()
1125 { 0, 0 }
1134 DRIVER_MODULE(snd_hdsp_pcm, hdsp, hdsp_pcm_driver, 0, 0);