Lines Matching defs:hwport
115 u8 hwport;
180 static int translate_hwport_to_subdevice(struct mtpav *chip, int hwport)
183 if (hwport <= 0x00) /* all ports */
185 else if (hwport <= 0x08) { /* single port */
186 p = hwport - 1;
190 } else if (hwport <= 0x10) { /* remote port */
191 p = hwport - 0x09 + chip->num_ports;
195 } else if (hwport == 0x11) /* computer port */
283 if (portp->hwport != mtp_card->outmidihwport) {
284 mtp_card->outmidihwport = portp->hwport;
287 snd_mtpav_send_byte(mtp_card, portp->hwport);
290 (unsigned int) portp->hwport);
652 mcard->ports[substream->number].hwport = translate_subdevice_to_hwport(mcard, substream->number);