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