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