Lines Matching refs:num_ports
133 int num_ports; /* number of hw ports (1-8) */ member
170 else if (subdev < chip->num_ports) in translate_subdevice_to_hwport()
172 else if (subdev < chip->num_ports * 2) in translate_subdevice_to_hwport()
173 return subdev - chip->num_ports + 0x09; /* remote port */ in translate_subdevice_to_hwport()
174 else if (subdev == chip->num_ports * 2 + MTPAV_PIDX_COMPUTER) in translate_subdevice_to_hwport()
176 else if (subdev == chip->num_ports + MTPAV_PIDX_ADAT) in translate_subdevice_to_hwport()
185 return chip->num_ports + MTPAV_PIDX_BROADCAST; in translate_hwport_to_subdevice()
188 if (p >= chip->num_ports) in translate_hwport_to_subdevice()
192 p = hwport - 0x09 + chip->num_ports; in translate_hwport_to_subdevice()
193 if (p >= chip->num_ports * 2) in translate_hwport_to_subdevice()
194 p = chip->num_ports; in translate_hwport_to_subdevice()
197 return chip->num_ports + MTPAV_PIDX_COMPUTER; in translate_hwport_to_subdevice()
199 return chip->num_ports + MTPAV_PIDX_ADAT; in translate_hwport_to_subdevice()
403 for (p = 0; p <= chip->num_ports * 2 + MTPAV_PIDX_BROADCAST; p++) { in snd_mtpav_output_timer()
490 if ((int)mcrd->inmidiport > mcrd->num_ports * 2 + MTPAV_PIDX_BROADCAST) in snd_mtpav_inmidi_process()
607 if (substream->number >= 0 && substream->number < chip->num_ports) in snd_mtpav_set_name()
608 sprintf(substream->name, "MTP direct %d", (substream->number % chip->num_ports) + 1); in snd_mtpav_set_name()
609 else if (substream->number >= 8 && substream->number < chip->num_ports * 2) in snd_mtpav_set_name()
610 sprintf(substream->name, "MTP remote %d", (substream->number % chip->num_ports) + 1); in snd_mtpav_set_name()
611 else if (substream->number == chip->num_ports * 2) in snd_mtpav_set_name()
613 else if (substream->number == chip->num_ports * 2 + 1) in snd_mtpav_set_name()
630 mcard->num_ports = hwports; in snd_mtpav_get_RAWMIDI()
633 mcard->num_ports * 2 + MTPAV_PIDX_BROADCAST + 1, in snd_mtpav_get_RAWMIDI()
634 mcard->num_ports * 2 + MTPAV_PIDX_BROADCAST + 1, in snd_mtpav_get_RAWMIDI()
702 mtp_card->inmidiport = mtp_card->num_ports + MTPAV_PIDX_BROADCAST; in snd_mtpav_probe()