Lines Matching refs:num_ports
149 int num_ports; /* number of hw ports (1-8) */ member
186 else if (subdev < chip->num_ports) in translate_subdevice_to_hwport()
188 else if (subdev < chip->num_ports * 2) in translate_subdevice_to_hwport()
189 return subdev - chip->num_ports + 0x09; /* remote port */ in translate_subdevice_to_hwport()
190 else if (subdev == chip->num_ports * 2 + MTPAV_PIDX_COMPUTER) in translate_subdevice_to_hwport()
192 else if (subdev == chip->num_ports + MTPAV_PIDX_ADAT) in translate_subdevice_to_hwport()
201 return chip->num_ports + MTPAV_PIDX_BROADCAST; in translate_hwport_to_subdevice()
204 if (p >= chip->num_ports) in translate_hwport_to_subdevice()
208 p = hwport - 0x09 + chip->num_ports; in translate_hwport_to_subdevice()
209 if (p >= chip->num_ports * 2) in translate_hwport_to_subdevice()
210 p = chip->num_ports; in translate_hwport_to_subdevice()
213 return chip->num_ports + MTPAV_PIDX_COMPUTER; in translate_hwport_to_subdevice()
215 return chip->num_ports + MTPAV_PIDX_ADAT; in translate_hwport_to_subdevice()
419 for (p = 0; p <= chip->num_ports * 2 + MTPAV_PIDX_BROADCAST; p++) { in snd_mtpav_output_timer()
506 if ((int)mcrd->inmidiport > mcrd->num_ports * 2 + MTPAV_PIDX_BROADCAST) in snd_mtpav_inmidi_process()
623 if (substream->number >= 0 && substream->number < chip->num_ports) in snd_mtpav_set_name()
624 sprintf(substream->name, "MTP direct %d", (substream->number % chip->num_ports) + 1); in snd_mtpav_set_name()
625 else if (substream->number >= 8 && substream->number < chip->num_ports * 2) in snd_mtpav_set_name()
626 sprintf(substream->name, "MTP remote %d", (substream->number % chip->num_ports) + 1); in snd_mtpav_set_name()
627 else if (substream->number == chip->num_ports * 2) in snd_mtpav_set_name()
629 else if (substream->number == chip->num_ports * 2 + 1) in snd_mtpav_set_name()
646 mcard->num_ports = hwports; in snd_mtpav_get_RAWMIDI()
649 mcard->num_ports * 2 + MTPAV_PIDX_BROADCAST + 1, in snd_mtpav_get_RAWMIDI()
650 mcard->num_ports * 2 + MTPAV_PIDX_BROADCAST + 1, in snd_mtpav_get_RAWMIDI()
719 mtp_card->inmidiport = mtp_card->num_ports + MTPAV_PIDX_BROADCAST; in snd_mtpav_probe()