svn commit: r236756 - stable/8/sys/dev/sound/pci/hda
Alexander Motin
mav at FreeBSD.org
Fri Jun 8 13:27:30 UTC 2012
Author: mav
Date: Fri Jun 8 13:27:30 2012
New Revision: 236756
URL: http://svn.freebsd.org/changeset/base/236756
Log:
MFC r233692:
Reenable unsolicited responses on CODEC if hdaa_sense_init() called again.
This fixes jack connection events handling after suspend/resume.
Modified:
stable/8/sys/dev/sound/pci/hda/hdaa.c
Directory Properties:
stable/8/sys/ (props changed)
Modified: stable/8/sys/dev/sound/pci/hda/hdaa.c
==============================================================================
--- stable/8/sys/dev/sound/pci/hda/hdaa.c Fri Jun 8 13:25:46 2012 (r236755)
+++ stable/8/sys/dev/sound/pci/hda/hdaa.c Fri Jun 8 13:27:30 2012 (r236756)
@@ -612,10 +612,11 @@ hdaa_sense_init(struct hdaa_devinfo *dev
if (w == NULL || w->enable == 0 || w->type !=
HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_PIN_COMPLEX)
continue;
- if (HDA_PARAM_AUDIO_WIDGET_CAP_UNSOL_CAP(w->param.widget_cap) &&
- w->unsol < 0) {
- w->unsol = HDAC_UNSOL_ALLOC(
- device_get_parent(devinfo->dev), devinfo->dev, w->nid);
+ if (HDA_PARAM_AUDIO_WIDGET_CAP_UNSOL_CAP(w->param.widget_cap)) {
+ if (w->unsol < 0)
+ w->unsol = HDAC_UNSOL_ALLOC(
+ device_get_parent(devinfo->dev),
+ devinfo->dev, w->nid);
hda_command(devinfo->dev,
HDA_CMD_SET_UNSOLICITED_RESPONSE(0, w->nid,
HDA_CMD_SET_UNSOLICITED_RESPONSE_ENABLE | w->unsol));
More information about the svn-src-all
mailing list