Add onboard CMI8738 to the ASUS CUV4X-LS

This commit is contained in:
RichardG867
2022-02-25 20:26:21 -03:00
parent dab4efdd99
commit 6f6bf999fa
4 changed files with 33 additions and 2 deletions

View File

@@ -767,8 +767,8 @@ cmi8x38_init(const device_t *info)
memset(dev, 0, sizeof(cmi8x38_t));
/* Set the chip type. */
cmi8x38_log("CMI8x38: init(%03X)\n", info->local);
dev->type = info->local;
cmi8x38_log("CMI8x38: init(%02X)\n", dev->type);
/* Initialize Sound Blaster 16. */
dev->sb = device_add_inst(&sb_16_compat_device, 1);
@@ -827,6 +827,19 @@ const device_t cmi8338_device =
NULL
};
const device_t cmi8338_onboard_device =
{
"C-Media CMI8338 (On-Board)",
"cmi8338_onboard",
DEVICE_PCI,
CMEDIA_CMI8338 | 0x100,
cmi8x38_init, cmi8x38_close, cmi8x38_reset,
{ NULL },
cmi8x38_speed_changed,
NULL,
NULL
};
const device_t cmi8738_device =
{
"C-Media CMI8738",
@@ -839,3 +852,16 @@ const device_t cmi8738_device =
NULL,
NULL
};
const device_t cmi8738_onboard_device =
{
"C-Media CMI8738 (On-Board)",
"cmi8738_onboard",
DEVICE_PCI,
CMEDIA_CMI8738 | 0x100,
cmi8x38_init, cmi8x38_close, cmi8x38_reset,
{ NULL },
cmi8x38_speed_changed,
NULL,
NULL
};