mirror of
https://github.com/86Box/86Box.git
synced 2026-02-21 17:15:32 -07:00
AC97 Codec: Devbranch some non-working stuff
This commit is contained in:
@@ -186,6 +186,7 @@ cmake_dependent_option(WACOM "Wacom Input Devices"
|
||||
cmake_dependent_option(XL24 "ATI VGA Wonder XL24 (ATI-28800-6)" ON "DEV_BRANCH" OFF)
|
||||
cmake_dependent_option(NETSWITCH "Network Switch Support" ON "DEV_BRANCH" OFF)
|
||||
cmake_dependent_option(VFIO "Virtual Function I/O" ON "DEV_BRANCH" OFF)
|
||||
cmake_dependent_option(SOFTMODEM "AC'97 Softmodem" ON "DEV_BRANCH" OFF)
|
||||
|
||||
# Ditto but for Qt
|
||||
if(QT)
|
||||
|
||||
@@ -166,7 +166,9 @@ extern const device_t stac9721_device;
|
||||
extern const device_t tr28023_device;
|
||||
extern const device_t w83971d_device;
|
||||
extern const device_t wm9701a_device;
|
||||
#ifdef USE_SOFTMODEM
|
||||
extern const device_t si3036_device;
|
||||
#endif
|
||||
|
||||
extern const device_t ac97_via_device;
|
||||
#endif
|
||||
|
||||
@@ -192,6 +192,10 @@ if(OPL4ML)
|
||||
target_compile_definitions(snd PRIVATE USE_OPL4ML)
|
||||
target_sources(snd PRIVATE midi_opl4.c midi_opl4_yrw801.c)
|
||||
endif()
|
||||
|
||||
if(SOFTMODEM)
|
||||
target_compile_definitions(snd PRIVATE USE_SOFTMODEM)
|
||||
endif()
|
||||
|
||||
find_package(PkgConfig)
|
||||
pkg_check_modules(SERIALPORT libserialport)
|
||||
|
||||
@@ -114,6 +114,7 @@ static const struct {
|
||||
.reset_flags = AC97_DAC_18B | AC97_ADC_18B,
|
||||
.pcsr_mask = 0x3f
|
||||
},
|
||||
#ifdef USE_SOFTMODEM
|
||||
{
|
||||
.device = &si3036_device,
|
||||
.misc_flags = AC97_MODEM | AC97_GAIN_3B,
|
||||
@@ -124,6 +125,7 @@ static const struct {
|
||||
.gpo_mask = 0xfc3f,
|
||||
.vendor_regs = (const ac97_vendor_reg_t[]) {{0, 0x5a, 0x0142, 0x0000}, {0, 0x5c, 0xf010, 0xfefd}, {0, 0x5e, 0x004c, 0x0000}, {0, 0x62, 0x0000, 0x01f8}, {0, 0x64, 0x0080, 0x0000}, {0}}
|
||||
}
|
||||
#endif
|
||||
// clang-format on
|
||||
};
|
||||
|
||||
@@ -958,6 +960,7 @@ const device_t wm9701a_device = {
|
||||
.config = NULL
|
||||
};
|
||||
|
||||
#ifdef USE_SOFTMODEM
|
||||
const device_t si3036_device = {
|
||||
.name = "Silicon Laboratories Si3036 Modem",
|
||||
.internal_name = "si3036",
|
||||
@@ -971,3 +974,4 @@ const device_t si3036_device = {
|
||||
.force_redraw = NULL,
|
||||
.config = NULL
|
||||
};
|
||||
#endif
|
||||
|
||||
@@ -187,7 +187,9 @@ static const SOUND_CARD sound_cards[] = {
|
||||
/* AC97 */
|
||||
{ &ad1881_device },
|
||||
{ &cs4297a_device },
|
||||
#ifdef USE_SOFTMODEM
|
||||
{ &si3036_device },
|
||||
#endif
|
||||
{ NULL }
|
||||
// clang-format on
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user