// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) by Jaroslav Kysela <[email protected]> * Routines for control of MPU-401 in UART mode * * Modified for the Aureal Vortex based Soundcards * by Manuel Jander ([email protected]). */ #include <linux/time.h> #include <linux/init.h> #include <sound/core.h> #include <sound/mpu401.h> #include "au88x0.h" /* Check for mpu401 mmio support. */ /* MPU401 legacy support is only provided as a emergency fallback * * for older versions of ALSA. Its usage is strongly discouraged. */ #ifndef MPU401_HW_AUREAL #define VORTEX_MPU401_LEGACY #endif /* Vortex MPU401 defines. */ #define MIDI_CLOCK_DIV … /* Standart MPU401 defines. */ #define MPU401_RESET … #define MPU401_ENTER_UART … #define MPU401_ACK … static int snd_vortex_midi(vortex_t *vortex) { … }