Lines Matching full:ports
98 hdsp_port_slot_map(uint32_t ports, uint32_t speed) in hdsp_port_slot_map() argument
102 if (ports & HDSP_CHAN_9632_ALL) { in hdsp_port_slot_map()
103 /* Map HDSP 9632 ports to slot bitmap. */ in hdsp_port_slot_map()
104 if (ports & HDSP_CHAN_9632_ADAT) in hdsp_port_slot_map()
106 if (ports & HDSP_CHAN_9632_SPDIF) in hdsp_port_slot_map()
108 if (ports & HDSP_CHAN_9632_LINE) in hdsp_port_slot_map()
110 if (ports & HDSP_CHAN_9632_EXT) in hdsp_port_slot_map()
112 } else if ((ports & HDSP_CHAN_9652_ALL) && (speed <= 96000)) { in hdsp_port_slot_map()
113 /* Map HDSP 9652 ports to slot bitmap, no quad speed. */ in hdsp_port_slot_map()
114 if (ports & HDSP_CHAN_9652_ADAT1) in hdsp_port_slot_map()
116 if (ports & HDSP_CHAN_9652_ADAT2) in hdsp_port_slot_map()
118 if (ports & HDSP_CHAN_9652_ADAT3) in hdsp_port_slot_map()
120 if (ports & HDSP_CHAN_9652_SPDIF) in hdsp_port_slot_map()
183 hdsp_port_first(uint32_t ports) in hdsp_port_first() argument
185 return (ports & (~(ports - 1))); /* Extract first bit set. */ in hdsp_port_first()
189 hdsp_port_slot_count(uint32_t ports, uint32_t speed) in hdsp_port_slot_count() argument
191 return (hdsp_slot_count(hdsp_port_slot_map(ports, speed))); in hdsp_port_slot_count()
195 hdsp_port_slot_count_max(uint32_t ports) in hdsp_port_slot_count_max() argument
197 return (hdsp_slot_count(hdsp_port_slot_map(ports, 48000))); in hdsp_port_slot_count_max()
203 return (hc->ports & (HDSP_CHAN_9632_ALL | HDSP_CHAN_9652_ALL)); in hdsp_channel_play_ports()
209 return (hc->ports & (HDSP_CHAN_9632_ALL | HDSP_CHAN_9652_ALL)); in hdsp_channel_rec_ports()
267 uint32_t port, ports; in hdspchan_setgain() local
272 /* Iterate through all physical ports of the channel. */ in hdspchan_setgain()
273 ports = ch->ports; in hdspchan_setgain()
274 port = hdsp_port_first(ports); in hdspchan_setgain()
297 ports &= ~port; in hdspchan_setgain()
298 port = hdsp_port_first(ports); in hdspchan_setgain()
387 /* Iterate through all slots of the channel's physical ports. */ in hdspchan_enable()
388 slots = hdsp_port_slot_map(ch->ports, sc->speed); in hdspchan_enable()
606 slots = hdsp_port_slot_map(ch->ports, sc->speed); in buffer_copy()
647 slots = hdsp_port_slot_map(ch->ports, sc->speed); in clean()
711 ch->ports = hdsp_channel_play_ports(scp->hc); in hdspchan_init()
713 ch->ports = hdsp_channel_rec_ports(scp->hc); 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()
738 ch->size = HDSP_CHANBUF_SIZE * hdsp_port_slot_count_max(ch->ports); in hdspchan_init()
1058 if (scp->hc->ports & HDSP_CHAN_9632_ALL) in hdsp_pcm_attach()
1060 else if (scp->hc->ports & HDSP_CHAN_9652_ALL) in hdsp_pcm_attach()
1071 if (hdsp_port_slot_count_max(scp->hc->ports) > HDSP_MATRIX_MAX) in hdsp_pcm_attach()