Lines Matching defs:hwport
132 u8 hwport;
197 static int translate_hwport_to_subdevice(struct mtpav *chip, int hwport)
200 if (hwport <= 0x00) /* all ports */
202 else if (hwport <= 0x08) { /* single port */
203 p = hwport - 1;
207 } else if (hwport <= 0x10) { /* remote port */
208 p = hwport - 0x09 + chip->num_ports;
212 } else if (hwport == 0x11) /* computer port */
300 if (portp->hwport != mtp_card->outmidihwport) {
301 mtp_card->outmidihwport = portp->hwport;
304 snd_mtpav_send_byte(mtp_card, portp->hwport);
307 (unsigned int) portp->hwport);
667 mcard->ports[substream->number].hwport = translate_subdevice_to_hwport(mcard, substream->number);