From: Takashi Iwai Subject: Re: ALC883 codec and jack sense issue Date: Mon, 13 Nov 2006 15:25:32 +0100 Message-ID: References: <1163423050.8358.44.camel@leeloo.asplinux.ru> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1163423050.8358.44.camel@leeloo.asplinux.ru> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@lists.sourceforge.net Errors-To: alsa-devel-bounces@lists.sourceforge.net To: "Andrew L. Neporada" Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Mon, 13 Nov 2006 16:04:10 +0300, Andrew L. Neporada wrote: > > Hi! > > It seems that snd_hda_intel driver fails to detect hp/mic/line jack > presense with ALC883 codec. > > According to Realtek's specs (and practice) ALC883 doesn't generate > unsolicited events in this case, Really? AFAIK, all port pins can generate unsolicited events, according to the datasheet version 1.2 (see section 8.21). > so the only way to detect jack is to > periodically poll appropriate pin complex with AC_VERB_GET_PIN_SENSE. > AFAIK, there is currently no way to do such thing. > > The idea is to add a new function to hda_codec_ops: > void (*poll)(struct hda_codec *codec) > and run it as a separate thread after codec init phase is done. I don't think we need a common callback for this particular codec. Each codec routine can create a workqueue if needed. Takashi ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642