svn commit: r240559 - stable/9/sys/dev/sound/pci/hda
Alexander Motin
mav at FreeBSD.org
Sun Sep 16 12:06:46 UTC 2012
Author: mav
Date: Sun Sep 16 12:06:45 2012
New Revision: 240559
URL: http://svn.freebsd.org/changeset/base/240559
Log:
MFC r239326:
Fix "speaker" volume control, broken at r230451.
Modified:
stable/9/sys/dev/sound/pci/hda/hdaa.c
Directory Properties:
stable/9/sys/ (props changed)
stable/9/sys/dev/ (props changed)
Modified: stable/9/sys/dev/sound/pci/hda/hdaa.c
==============================================================================
--- stable/9/sys/dev/sound/pci/hda/hdaa.c Sun Sep 16 11:02:22 2012 (r240558)
+++ stable/9/sys/dev/sound/pci/hda/hdaa.c Sun Sep 16 12:06:45 2012 (r240559)
@@ -2127,11 +2127,14 @@ hdaa_audio_ctl_dev_volume(struct hdaa_pc
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 svn-src-stable
mailing list