From 9826d71be0fdd3b6631499e918ce244020072dc3 Mon Sep 17 00:00:00 2001 From: orion Date: Thu, 21 Aug 2003 15:44:55 +0000 Subject: [PATCH] Add patch for AD198x. Submitted by: Oleg Sharoiko, Rudolf Cejka. --- sys/dev/sound/pcm/ac97_patch.c | 6 ++++++ sys/dev/sound/pcm/ac97_patch.h | 1 + 2 files changed, 7 insertions(+) diff --git a/sys/dev/sound/pcm/ac97_patch.c b/sys/dev/sound/pcm/ac97_patch.c index e598566eb1e5..e5e728f8b314 100644 --- a/sys/dev/sound/pcm/ac97_patch.c +++ b/sys/dev/sound/pcm/ac97_patch.c @@ -40,3 +40,9 @@ void ad1886_patch(struct ac97_info* codec) */ ac97_wrcd(codec, AC97_AD_JACK_SPDIF, 0x0010); } + +void ad198x_patch(struct ac97_info* codec) +{ + ac97_wrcd(codec, 0x76, ac97_rdcd(codec, 0x76) | 0x0420); +} + diff --git a/sys/dev/sound/pcm/ac97_patch.h b/sys/dev/sound/pcm/ac97_patch.h index 311b01f3c608..740031d2ed3a 100644 --- a/sys/dev/sound/pcm/ac97_patch.h +++ b/sys/dev/sound/pcm/ac97_patch.h @@ -28,3 +28,4 @@ typedef void (*ac97_patch)(struct ac97_info*); void ad1886_patch(struct ac97_info*); +void ad198x_patch(struct ac97_info*);