[Midnightbsd-cvs] src [8067] trunk/sys/dev/sound/pci/hda/hdaa.c: fix speaker volumen control

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Thu Sep 15 17:52:33 EDT 2016


Revision: 8067
          http://svnweb.midnightbsd.org/src/?rev=8067
Author:   laffer1
Date:     2016-09-15 17:52:33 -0400 (Thu, 15 Sep 2016)
Log Message:
-----------
fix speaker volumen control

Modified Paths:
--------------
    trunk/sys/dev/sound/pci/hda/hdaa.c

Modified: trunk/sys/dev/sound/pci/hda/hdaa.c
===================================================================
--- trunk/sys/dev/sound/pci/hda/hdaa.c	2016-09-15 21:52:00 UTC (rev 8066)
+++ trunk/sys/dev/sound/pci/hda/hdaa.c	2016-09-15 21:52:33 UTC (rev 8067)
@@ -2127,11 +2127,14 @@
 		w = hdaa_widget_get(devinfo, i);
 		if (w == NULL || w->enable == 0)
 			continue;
-		if (w->bindas < 0 && pdevinfo->index != 0)
-			continue;
-		if (w->bindas != pdevinfo->playas &&
-		    w->bindas != pdevinfo->recas)
-			continue;
+		if (w->bindas < 0) {
+			if (pdevinfo->index != 0)
+				continue;
+		} else {
+			if (w->bindas != pdevinfo->playas &&
+			    w->bindas != pdevinfo->recas)
+				continue;
+		}
 		if (dev == SOUND_MIXER_RECLEV &&
 		    w->type == HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_AUDIO_INPUT) {
 			hdaa_audio_ctl_dest_volume(pdevinfo, dev,



More information about the Midnightbsd-cvs mailing list