Lines Matching refs:num_ports

132 	int num_ports;		/* number of hw ports (1-8) */  member
169 else if (subdev < chip->num_ports) in translate_subdevice_to_hwport()
171 else if (subdev < chip->num_ports * 2) in translate_subdevice_to_hwport()
172 return subdev - chip->num_ports + 0x09; /* remote port */ in translate_subdevice_to_hwport()
173 else if (subdev == chip->num_ports * 2 + MTPAV_PIDX_COMPUTER) in translate_subdevice_to_hwport()
175 else if (subdev == chip->num_ports + MTPAV_PIDX_ADAT) in translate_subdevice_to_hwport()
184 return chip->num_ports + MTPAV_PIDX_BROADCAST; in translate_hwport_to_subdevice()
187 if (p >= chip->num_ports) in translate_hwport_to_subdevice()
191 p = hwport - 0x09 + chip->num_ports; in translate_hwport_to_subdevice()
192 if (p >= chip->num_ports * 2) in translate_hwport_to_subdevice()
193 p = chip->num_ports; in translate_hwport_to_subdevice()
196 return chip->num_ports + MTPAV_PIDX_COMPUTER; in translate_hwport_to_subdevice()
198 return chip->num_ports + MTPAV_PIDX_ADAT; in translate_hwport_to_subdevice()
402 for (p = 0; p <= chip->num_ports * 2 + MTPAV_PIDX_BROADCAST; p++) { in snd_mtpav_output_timer()
489 if ((int)mcrd->inmidiport > mcrd->num_ports * 2 + MTPAV_PIDX_BROADCAST) in snd_mtpav_inmidi_process()
609 if (substream->number >= 0 && substream->number < chip->num_ports) in snd_mtpav_set_name()
610 sprintf(substream->name, "MTP direct %d", (substream->number % chip->num_ports) + 1); in snd_mtpav_set_name()
611 else if (substream->number >= 8 && substream->number < chip->num_ports * 2) in snd_mtpav_set_name()
612 sprintf(substream->name, "MTP remote %d", (substream->number % chip->num_ports) + 1); in snd_mtpav_set_name()
613 else if (substream->number == chip->num_ports * 2) in snd_mtpav_set_name()
615 else if (substream->number == chip->num_ports * 2 + 1) in snd_mtpav_set_name()
632 mcard->num_ports = hwports; in snd_mtpav_get_RAWMIDI()
635 mcard->num_ports * 2 + MTPAV_PIDX_BROADCAST + 1, in snd_mtpav_get_RAWMIDI()
636 mcard->num_ports * 2 + MTPAV_PIDX_BROADCAST + 1, in snd_mtpav_get_RAWMIDI()
700 mtp_card->inmidiport = mtp_card->num_ports + MTPAV_PIDX_BROADCAST; in snd_mtpav_probe()