svn commit: r239254 - head/sys/dev/sound/pci/hda
Alexander Motin
mav at FreeBSD.org
Tue Aug 14 14:07:34 UTC 2012
Author: mav
Date: Tue Aug 14 14:07:34 2012
New Revision: 239254
URL: http://svn.freebsd.org/changeset/base/239254
Log:
Fix multichannel input signals tracing on some CODECs like ALC260.
Reported and tested by: Slawa Olhovchenkov <slw at zxy.spb.ru>
MFC after: 1 month
Modified:
head/sys/dev/sound/pci/hda/hdaa.c
Modified: head/sys/dev/sound/pci/hda/hdaa.c
==============================================================================
--- head/sys/dev/sound/pci/hda/hdaa.c Tue Aug 14 13:28:30 2012 (r239253)
+++ head/sys/dev/sound/pci/hda/hdaa.c Tue Aug 14 14:07:34 2012 (r239254)
@@ -3068,8 +3068,7 @@ hdaa_audio_trace_adc(struct hdaa_devinfo
if ((only == 0 || only == w->nid) && (w->nid >= min) &&
(onlylength == 0 || onlylength == depth)) {
m = w->nid;
- if (length != NULL)
- *length = depth;
+ *length = depth;
}
break;
case HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_PIN_COMPLEX:
@@ -3092,12 +3091,12 @@ hdaa_audio_trace_adc(struct hdaa_devinfo
j, mixed, min, only, depth + 1,
length, onlylength)) != 0) {
if (m == 0 || ret < m ||
- (ret == m && length != NULL &&
- *length < lm)) {
+ (ret == m && *length < lm)) {
m = ret;
im = i;
lm = *length;
- }
+ } else
+ *length = lm;
if (only)
break;
}
More information about the svn-src-all
mailing list