Lines Matching defs:hwport
116 u8 hwport;
181 static int translate_hwport_to_subdevice(struct mtpav *chip, int hwport)
184 if (hwport <= 0x00) /* all ports */
186 else if (hwport <= 0x08) { /* single port */
187 p = hwport - 1;
191 } else if (hwport <= 0x10) { /* remote port */
192 p = hwport - 0x09 + chip->num_ports;
196 } else if (hwport == 0x11) /* computer port */
284 if (portp->hwport != mtp_card->outmidihwport) {
285 mtp_card->outmidihwport = portp->hwport;
288 snd_mtpav_send_byte(mtp_card, portp->hwport);
647 mcard->ports[substream->number].hwport = translate_subdevice_to_hwport(mcard, substream->number);