Lines Matching refs:rmidi
166 if (mpu->rmidi) in snd_mpu401_uart_timer()
273 mpu = substream->rmidi->private_data; in snd_mpu401_uart_input_open()
298 mpu = substream->rmidi->private_data; in snd_mpu401_uart_output_open()
323 mpu = substream->rmidi->private_data; in snd_mpu401_uart_input_close()
340 mpu = substream->rmidi->private_data; in snd_mpu401_uart_output_close()
362 mpu = substream->rmidi->private_data; in snd_mpu401_uart_input_trigger()
448 mpu = substream->rmidi->private_data; in snd_mpu401_uart_output_trigger()
488 static void snd_mpu401_uart_free(struct snd_rawmidi *rmidi) in snd_mpu401_uart_free() argument
490 struct snd_mpu401 *mpu = rmidi->private_data; in snd_mpu401_uart_free()
523 struct snd_rawmidi *rmidi; in snd_mpu401_uart_new() local
534 out_enable, in_enable, &rmidi); in snd_mpu401_uart_new()
542 rmidi->private_data = mpu; in snd_mpu401_uart_new()
543 rmidi->private_free = snd_mpu401_uart_free; in snd_mpu401_uart_new()
586 snprintf(rmidi->name, sizeof(rmidi->name), "%s MIDI", in snd_mpu401_uart_new()
589 sprintf(rmidi->name, "MPU-401 MIDI %d-%d",card->number, device); in snd_mpu401_uart_new()
591 snd_rawmidi_set_ops(rmidi, SNDRV_RAWMIDI_STREAM_OUTPUT, in snd_mpu401_uart_new()
593 rmidi->info_flags |= SNDRV_RAWMIDI_INFO_OUTPUT; in snd_mpu401_uart_new()
596 snd_rawmidi_set_ops(rmidi, SNDRV_RAWMIDI_STREAM_INPUT, in snd_mpu401_uart_new()
598 rmidi->info_flags |= SNDRV_RAWMIDI_INFO_INPUT; in snd_mpu401_uart_new()
600 rmidi->info_flags |= SNDRV_RAWMIDI_INFO_DUPLEX; in snd_mpu401_uart_new()
602 mpu->rmidi = rmidi; in snd_mpu401_uart_new()
604 *rrawmidi = rmidi; in snd_mpu401_uart_new()
607 snd_device_free(card, rmidi); in snd_mpu401_uart_new()