Author: mav
Date: Fri Mar 30 08:33:08 2012
New Revision: 233692
URL: http://svn.freebsd.org/changeset/base/233692

Log:
  Reenable unsolicited responses on CODEC if hdaa_sense_init() called again.
  This fixes jack connection events handling after suspend/resume.
  
  PR:           kern/166382
  MFC after:    1 week

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   Fri Mar 30 05:49:32 2012        
(r233691)
+++ head/sys/dev/sound/pci/hda/hdaa.c   Fri Mar 30 08:33:08 2012        
(r233692)
@@ -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));
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to