diff --git a/src/include/86box/snd_ac97.h b/src/include/86box/snd_ac97.h index 99601e2e7..08f5747f6 100644 --- a/src/include/86box/snd_ac97.h +++ b/src/include/86box/snd_ac97.h @@ -44,6 +44,7 @@ extern ac97_codec_t **ac97_codec, **ac97_modem_codec; extern int ac97_codec_count, ac97_modem_codec_count, ac97_codec_id, ac97_modem_codec_id; +extern const device_t ad1881_device; extern const device_t alc100_device; extern const device_t cs4297_device; extern const device_t cs4297a_device; diff --git a/src/sound/snd_ac97_codec.c b/src/sound/snd_ac97_codec.c index 9cd47ad90..d9dd75d76 100644 --- a/src/sound/snd_ac97_codec.c +++ b/src/sound/snd_ac97_codec.c @@ -29,6 +29,7 @@ enum { + AC97_CODEC_AD1881 = AC97_VENDOR_ID('A', 'D', 'S', 0x40), AC97_CODEC_ALC100 = AC97_VENDOR_ID('A', 'L', 'C', 0x20), AC97_CODEC_CS4297 = AC97_VENDOR_ID('C', 'R', 'Y', 0x03), AC97_CODEC_CS4297A = AC97_VENDOR_ID('C', 'R', 'Y', 0x13), @@ -332,6 +333,18 @@ ac97_codec_close(void *priv) } +const device_t ad1881_device = +{ + "Analog Devices AD1881", + DEVICE_AC97, + AC97_CODEC_AD1881, + ac97_codec_init, ac97_codec_close, ac97_codec_reset, + { NULL }, + NULL, + NULL, + NULL +}; + const device_t alc100_device = { "Avance Logic ALC100",