svn commit: r204351 - head/sys/dev/sound/pci/hda
Alexander Motin
mav at FreeBSD.org
Fri Feb 26 09:31:51 UTC 2010
Author: mav
Date: Fri Feb 26 09:31:50 2010
New Revision: 204351
URL: http://svn.freebsd.org/changeset/base/204351
Log:
Fix bug in headphones audio redirection using separate DAC. It was exposed
by removing channel duplication during multichannel audio implementation.
Modified:
head/sys/dev/sound/pci/hda/hdac.c
Modified: head/sys/dev/sound/pci/hda/hdac.c
==============================================================================
--- head/sys/dev/sound/pci/hda/hdac.c Fri Feb 26 07:22:07 2010 (r204350)
+++ head/sys/dev/sound/pci/hda/hdac.c Fri Feb 26 09:31:50 2010 (r204351)
@@ -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. */
More information about the svn-src-all
mailing list