^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0-or-later */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #ifndef __EMU10K1_SYNTH_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define __EMU10K1_SYNTH_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * Defines for the Emu10k1 WaveTable synth
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) * Copyright (C) 2000 Takashi Iwai <tiwai@suse.de>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #include <sound/emu10k1.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #include <sound/emux_synth.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) /* sequencer device id */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #define SNDRV_SEQ_DEV_ID_EMU10K1_SYNTH "emu10k1-synth"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) /* argument for snd_seq_device_new */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) struct snd_emu10k1_synth_arg {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) struct snd_emu10k1 *hwptr; /* chip */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) int index; /* sequencer client index */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) int seq_ports; /* number of sequencer ports to be created */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) int max_voices; /* maximum number of voices for wavetable */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) #define EMU10K1_MAX_MEMSIZE (32 * 1024 * 1024) /* 32MB */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) #endif