From: Takashi Iwai Subject: Re: No jack sense on Intel 82801I / IDT 92HD71B7X in a HP dv4 Date: Fri, 05 Jun 2009 21:40:10 +0200 Message-ID: References: <1239977111.3337.18.camel@nick-beta.sagui> <1239985116.6105.2.camel@nick-beta.sagui> <1239990142.3580.8.camel@nick-beta.sagui> <1240101395.3333.9.camel@nick-beta.sagui> <1240945884.3559.2.camel@nick-beta.sagui> <1243962611.3296.11.camel@hamlet.sagui> <1244224121.3128.9.camel@hamlet.sagui> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 73BEA243B8 for ; Fri, 5 Jun 2009 21:40:11 +0200 (CEST) In-Reply-To: <1244224121.3128.9.camel@hamlet.sagui> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Gustavo Maciel Dias Vieira Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Fri, 05 Jun 2009 14:48:41 -0300, Gustavo Maciel Dias Vieira wrote: > = > Em Ter, 2009-06-02 =E0s 14:10 -0300, Gustavo Maciel Dias Vieira escreveu: > > Em Qua, 2009-04-29 =E0s 08:37 +0200, Takashi Iwai escreveu: > > > > > > OK, it means that the unsolicited event isn't processed properly > > > at jack plugging. But still strange why alsa-info.sh can trigger it. > > > = > > > Could you put some debug print to the unsol even handler to see > > > whether you get any even when you plug the jack? > > > = > > = > > The stac92xx_unsol_event() isn't called when the jack is plugged. It is > > called twice at kernel boot (HP_EVENT and then INSERT_EVENT), and it is > > called three times when running alsa-info (all HP_EVENT, regardless if > > the HP is plugged or not). > > = > > These results may not be entirely accurate as the current snapshot > > isn't working correctly. It just plays the first second of audio and > > keeps looping, locking the application (with and without pulseaudio). > > = > > If it would help you, I could try to debug stac92xx_unsol_event() in the > > current Fedora kernel (2.6.29.4), as the sound works with it and the > > jack sensing don't. > = > I repeated the experiment with the Fedora kernel 2.6.29.4. The results > are exactly the same. stac92xx_unsol_event() isn't called when the jack > is plugged or unplugged, and alsa-info triggers a number of HP_EVENTs. > = > However, this time I made an interesting observation. alsa-info does not > generate spurious events. It generates exactly the number of events that > should be generated before the execution of alsa-info. For example: if I > plug and unplug the HP and run alsa-info, two HP_EVENTs are generated. > This explains the three events I observed earlier (plug, unplug, plug, > alsa-info). > = > It seems the events are getting "stuck" somewhere and alsa-info > "releases" them. Check /proc/interrupts whether you get an interrupt when you plug / unplug the jack. I guess you don't get an interrupt there. If so, then it's a problem of ACPI or BIOS. If you get a proper interrupt but still no unsol event is passed, something wrong in the sound driver side. BTW, I guess the similar effect could be achieved instead of alsa-info but by just changing the mixer volume once. The unsol verbs were delivered, but they aren't fed until any sync operation is done. Takashi