hda: enable unsolicited responses
PATCH 1/2 hda: enable unsolicited responses
Patch enables unsolicited responses on the HDA controller. Without the UREN bit set, the controller will not place unsolicited responses in a RIRB.
Index: alsa-kernel/pci/hda/hda_intel.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/hda/hda_intel.c,v retrieving revision 1.12
pci/hda/hda_intel.c +6 -0
@@ -178,6 +178,9 @@#define ICH6_INT_CTRL_EN 0x40000000/* controller interrupt enable bit */ #define ICH6_INT_GLOBAL_EN 0x80000000/* global interrupt enable bit */ +/* GCTL unsolicited response enable bit */ +#define ICH6_GCTL_UREN (1<<8) +/* GCTL reset bit */ #define ICH6_GCTL_RESET (1<<0)
@@ -562,6 +565,9 @@return -EBUSY ; } +/* Accept unsolicited responses */ +azx_writel (chip,GCTL ,azx_readl (chip,GCTL ) |ICH6_GCTL_UREN ); +/* detect codecs */ if (! chip->codec_mask) { chip->codec_mask =azx_readw (chip,STATESTS );
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
PATCH 2/2 hda: add sigmatel hp detect support
Adds support for detecting hp insertion/removal and enable/disable of lineouts based on unsolicited events.
Index: alsa-kernel/pci/hda/hda_codec.h
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/hda/hda_codec.h,v retrieving revision 1.9
pci/hda/hda_codec.h +3 -0
@@ -262,6 +262,9 @@#define AC_PINCTL_OUT_EN (1<<6)#define AC_PINCTL_HP_EN (1<<7) +/* Unsolicited response - 8bit */ +#define AC_USRSP_EN (1<<7) +/* configuration default - 32bit */ #define AC_DEFCFG_SEQUENCE (0xf<<0)#define AC_DEFCFG_DEF_ASSOC (0xf<<4)
Index: alsa-kernel/pci/hda/patch_sigmatel.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/hda/patch_sigmatel.c,v retrieving revision 1.5
pci/hda/patch_sigmatel.c +60 -2
96 lines not on this page · raw message
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
Re: [PATCH][2/2] hda: add sigmatel hp detect support
At Fri, 1 Jul 2005 08:55:31 -0700,
Quoted 5 lines · Matt
Adds support for detecting hp insertion/removal and enable/disable of lineouts based on unsolicited events.
Signed-off-by Matt <[email protected]>
Thanks! Both are applied to CVS now.
Takashi
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click