linux/sound/pci/ca0106/ca_midi.c

// SPDX-License-Identifier: GPL-2.0-or-later
/* 
 *  Copyright 10/16/2005 Tilman Kranz <[email protected]>
 *  Creative Audio MIDI, for the CA0106 Driver
 *  Version: 0.0.1
 *
 *  Changelog:
 *    Implementation is based on mpu401 and emu10k1x and
 *    tested with ca0106.
 *    mpu401: Copyright (c) by Jaroslav Kysela <[email protected]>
 *    emu10k1x: Copyright (c) by Francisco Moraes <[email protected]>
 */

#include <linux/spinlock.h>
#include <sound/core.h>
#include <sound/rawmidi.h>

#include "ca_midi.h"

#define ca_midi_write_data(midi, data)
#define ca_midi_write_cmd(midi, data)
#define ca_midi_read_data(midi)
#define ca_midi_read_stat(midi)
#define ca_midi_input_avail(midi)
#define ca_midi_output_ready(midi)

static void ca_midi_clear_rx(struct snd_ca_midi *midi)
{}

static void ca_midi_interrupt(struct snd_ca_midi *midi, unsigned int status)
{}

static void ca_midi_cmd(struct snd_ca_midi *midi, unsigned char cmd, int ack)
{}

static int ca_midi_input_open(struct snd_rawmidi_substream *substream)
{}

static int ca_midi_output_open(struct snd_rawmidi_substream *substream)
{}

static int ca_midi_input_close(struct snd_rawmidi_substream *substream)
{}

static int ca_midi_output_close(struct snd_rawmidi_substream *substream)
{}

static void ca_midi_input_trigger(struct snd_rawmidi_substream *substream, int up)
{}

static void ca_midi_output_trigger(struct snd_rawmidi_substream *substream, int up)
{}

static const struct snd_rawmidi_ops ca_midi_output =;

static const struct snd_rawmidi_ops ca_midi_input =;

static void ca_midi_free(struct snd_ca_midi *midi)
{}

static void ca_rmidi_free(struct snd_rawmidi *rmidi)
{}

int ca_midi_init(void *dev_id, struct snd_ca_midi *midi, int device, char *name)
{}