linux/sound/isa/msnd/msnd_midi.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 *  Copyright (c) by Jaroslav Kysela <[email protected]>
 *  Copyright (c) 2009 by Krzysztof Helt
 *  Routines for control of MPU-401 in UART mode
 *
 *  MPU-401 supports UART mode which is not capable generate transmit
 *  interrupts thus output is done via polling. Also, if irq < 0, then
 *  input is done also via polling. Do not expect good performance.
 */

#include <linux/io.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/ioport.h>
#include <linux/errno.h>
#include <linux/export.h>
#include <sound/core.h>
#include <sound/rawmidi.h>

#include "msnd.h"

#define MSNDMIDI_MODE_BIT_INPUT
#define MSNDMIDI_MODE_BIT_OUTPUT
#define MSNDMIDI_MODE_BIT_INPUT_TRIGGER
#define MSNDMIDI_MODE_BIT_OUTPUT_TRIGGER

struct snd_msndmidi {};

/*
 * input/output open/close - protected by open_mutex in rawmidi.c
 */
static int snd_msndmidi_input_open(struct snd_rawmidi_substream *substream)
{}

static int snd_msndmidi_input_close(struct snd_rawmidi_substream *substream)
{}

static void snd_msndmidi_input_drop(struct snd_msndmidi *mpu)
{}

/*
 * trigger input
 */
static void snd_msndmidi_input_trigger(struct snd_rawmidi_substream *substream,
					int up)
{}

void snd_msndmidi_input_read(void *mpuv)
{}
EXPORT_SYMBOL();

static const struct snd_rawmidi_ops snd_msndmidi_input =;

static void snd_msndmidi_free(struct snd_rawmidi *rmidi)
{}

int snd_msndmidi_new(struct snd_card *card, int device)
{}