/* for rawmidi inputs, you can call this function from the event handler of a remote port which is attached to the virmidi via SNDRV_VIRMIDI_SEQ_ATTACH. event handler of virmidi port  */
static int snd_virmidi_event_input(struct snd_seq_event *ev, int direct, void *private_data, int atomic, int hop)
/* for rawmidi inputs, you can call this function from the event handler of a remote port which is attached to the virmidi via SNDRV_VIRMIDI_SEQ_ATTACH. event handler of virmidi port  */
static int snd_virmidi_event_input(struct snd_seq_event *ev, int direct, void *private_data, int atomic, int hop)
{
	struct snd_virmidi_dev *rdev;
	rdev = private_data;
	if (!(rdev->flags & SNDRV_VIRMIDI_USE))
		return 0;
	return snd_virmidi_dev_receive_event(rdev, ev);
}