Fix multichannel input signals tracing on some CODECs like ALC260.

Reported and tested by:	Slawa Olhovchenkov <slw@zxy.spb.ru>
MFC after:	1 month
This commit is contained in:
Alexander Motin 2012-08-14 14:07:34 +00:00
parent 207eee57b1
commit 8684fef07d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=239254

View File

@ -3068,8 +3068,7 @@ hdaa_audio_trace_adc(struct hdaa_devinfo *devinfo, int as, int seq, nid_t nid,
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 *devinfo, int as, int seq, nid_t nid,
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;
}