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