From 252067de41189654eaac9b5224eac9425a03f3a4 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Thu, 10 Mar 2022 16:55:36 -0300 Subject: [PATCH] AudioPCI: Add MIDI input option to on-board ES1371 --- src/sound/snd_audiopci.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/sound/snd_audiopci.c b/src/sound/snd_audiopci.c index 23f1fa40c..03e882db8 100644 --- a/src/sound/snd_audiopci.c +++ b/src/sound/snd_audiopci.c @@ -2087,6 +2087,17 @@ static const device_config_t es1371_config[] = { // clang-format on }; +static const device_config_t es1371_onboard_config[] = { +// clang-format off + { + "receive_input", "Receive input (MIDI)", CONFIG_BINARY, "", 1 + }, + { + "", "", -1 + } +// clang-format on +}; + const device_t es1371_device = { "Ensoniq AudioPCI (ES1371)", "es1371", @@ -2112,5 +2123,5 @@ const device_t es1371_onboard_device = { { NULL }, es1371_speed_changed, NULL, - NULL + es1371_onboard_config };