From 00fe6cef697a96d2f848877baf9444f78dd14fb9 Mon Sep 17 00:00:00 2001 From: mav Date: Mon, 26 Jan 2009 15:55:15 +0000 Subject: [PATCH] Specify analog beep pin widget for several AD codecs. It gives working speaker control for that systems. --- sys/dev/sound/pci/hda/hdac.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sys/dev/sound/pci/hda/hdac.c b/sys/dev/sound/pci/hda/hdac.c index a439f4874df6..d9564c88e13f 100644 --- a/sys/dev/sound/pci/hda/hdac.c +++ b/sys/dev/sound/pci/hda/hdac.c @@ -83,7 +83,7 @@ #include "mixer_if.h" -#define HDA_DRV_TEST_REV "20090113_0125" +#define HDA_DRV_TEST_REV "20090126_0126" SND_DECLARE_FILE("$FreeBSD$"); @@ -2585,8 +2585,15 @@ hdac_widget_getcaps(struct hdac_widget *w, int *waspin) Change beeper pin node type to beeper to help parser. */ *waspin = 0; switch (id) { + case HDA_CODEC_AD1882: + case HDA_CODEC_AD1883: + case HDA_CODEC_AD1984: + case HDA_CODEC_AD1984A: + case HDA_CODEC_AD1984B: + case HDA_CODEC_AD1987: case HDA_CODEC_AD1988: case HDA_CODEC_AD1988B: + case HDA_CODEC_AD1989B: beeper = 26; break; case HDA_CODEC_ALC260: