CMI8x38: Improve CMI8738 variant selection

This commit is contained in:
RichardG867
2022-03-07 10:45:10 -03:00
parent 6ab26aa567
commit 57aeaa4413
2 changed files with 14 additions and 1 deletions

View File

@@ -146,6 +146,7 @@ extern const device_t cmi8338_device;
extern const device_t cmi8338_onboard_device;
extern const device_t cmi8738_device;
extern const device_t cmi8738_onboard_device;
extern const device_t cmi8738_6ch_onboard_device;
#endif
#endif /*EMU_SOUND_H*/

View File

@@ -1376,7 +1376,7 @@ static const device_config_t cmi8x38_config[] = {
};
static const device_config_t cmi8738_config[] = {
{ "six_channel", "MX variant (6-channel)", CONFIG_BINARY, "", 1 },
{ "six_channel", "6CH variant (6-channel)", CONFIG_BINARY, "", 1 },
{ "receive_input", "Receive input (MPU-401)", CONFIG_BINARY, "", 1 },
{ "", "", -1 }
};
@@ -1428,3 +1428,15 @@ const device_t cmi8738_onboard_device = {
NULL,
cmi8x38_config
};
const device_t cmi8738_6ch_onboard_device = {
"C-Media CMI8738-6CH (On-Board)",
"cmi8738_6ch_onboard",
DEVICE_PCI,
CMEDIA_CMI8738_6CH | (1 << 13),
cmi8x38_init, cmi8x38_close, cmi8x38_reset,
{ NULL },
cmi8x38_speed_changed,
NULL,
cmi8x38_config
};