diff options
author | mav <mav@FreeBSD.org> | 2010-02-26 09:31:50 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2010-02-26 09:31:50 +0000 |
commit | d90e3329466e3deb12cb3e10da1c30383f52d1b9 (patch) | |
tree | f9dc8f583bad566e942b43bba342bdea49280545 | |
parent | ccc480a05b5fef0d7abbd4461fb7b86c13f3d1e4 (diff) | |
download | FreeBSD-src-d90e3329466e3deb12cb3e10da1c30383f52d1b9.zip FreeBSD-src-d90e3329466e3deb12cb3e10da1c30383f52d1b9.tar.gz |
Fix bug in headphones audio redirection using separate DAC. It was exposed
by removing channel duplication during multichannel audio implementation.
-rw-r--r-- | sys/dev/sound/pci/hda/hdac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sound/pci/hda/hdac.c b/sys/dev/sound/pci/hda/hdac.c index 84fc322..0681568 100644 --- a/sys/dev/sound/pci/hda/hdac.c +++ b/sys/dev/sound/pci/hda/hdac.c @@ -86,7 +86,7 @@ #include "mixer_if.h" -#define HDA_DRV_TEST_REV "20100122_0141" +#define HDA_DRV_TEST_REV "20100226_0142" SND_DECLARE_FILE("$FreeBSD$"); @@ -3503,7 +3503,7 @@ hdac_stream_setup(struct hdac_chan *ch) /* If HP redirection is enabled, but failed to use same DAC, make last DAC to duplicate first one. */ - if (as->hpredir >= 0 && i == as->pincnt) { + if (as->fakeredir && i == (as->pincnt - 1)) { c = (ch->sid << 4); } else { if (map >= 0) /* Map known speaker setups. */ |