From cd936ea2167f87385ee24cdc01cd33a74232e9d4 Mon Sep 17 00:00:00 2001 From: Silvano Seva Date: Sun, 27 Aug 2023 13:55:46 +0200 Subject: [PATCH] Audio devices table for linux and GDx targets --- platform/drivers/audio/audio_GDx.c | 13 +++++++++++++ platform/drivers/audio/audio_linux.c | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/platform/drivers/audio/audio_GDx.c b/platform/drivers/audio/audio_GDx.c index 40857c82..ee3e31c1 100644 --- a/platform/drivers/audio/audio_GDx.c +++ b/platform/drivers/audio/audio_GDx.c @@ -37,6 +37,19 @@ static const uint8_t pathCompatibilityMatrix[9][9] = { 1 , 1 , 0 , 1 , 1 , 0 , 0 , 0 , 0 } // MCU-MCU }; +const struct audioDevice outputDevices[] = +{ + {NULL, 0, 0, SINK_MCU}, + {NULL, 0, 0, SINK_RTX}, + {NULL, 0, 0, SINK_SPK}, +}; + +const struct audioDevice inputDevices[] = +{ + {NULL, 0, 0, SINK_MCU}, + {NULL, 0, 0, SINK_RTX}, + {NULL, 0, 0, SINK_SPK}, +}; void audio_init() { diff --git a/platform/drivers/audio/audio_linux.c b/platform/drivers/audio/audio_linux.c index 2f24895e..b8b41bd3 100644 --- a/platform/drivers/audio/audio_linux.c +++ b/platform/drivers/audio/audio_linux.c @@ -37,6 +37,19 @@ static const uint8_t pathCompatibilityMatrix[9][9] = { 1 , 1 , 0 , 1 , 1 , 0 , 0 , 0 , 0 } // MCU-MCU }; +const struct audioDevice outputDevices[] = +{ + {NULL, 0, 0, SINK_MCU}, + {NULL, 0, 0, SINK_RTX}, + {NULL, 0, 0, SINK_SPK}, +}; + +const struct audioDevice inputDevices[] = +{ + {NULL, 0, 0, SINK_MCU}, + {NULL, 0, 0, SINK_RTX}, + {NULL, 0, 0, SINK_SPK}, +}; void audio_init() {