From: Takashi Iwai Subject: Re: HDA pin sense and presence detect capability Date: Wed, 25 Jan 2006 16:43:57 +0100 Message-ID: References: Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from mx1.suse.de (mx1.suse.de [195.135.220.2]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id E548C18F for ; Wed, 25 Jan 2006 16:36:24 +0100 (MET) In-Reply-To: Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Arnaud Patard Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Wed, 25 Jan 2006 16:34:22 +0100, Arnaud Patard wrote: > > Hi, > > > On some laptops with HDA codecs, there are different nids for the > Headphones and for the built-in speakers. This results in having sound > on speakers and on headphones at the same time. imho, the expected > behaviour is to have sound only on headphones (without having to play > with the mixer). > > This can be achieve with the presence detect capability (0x709,0xf09): When > plug/unplugging the headphones, one gets an unsollicited responsed and > the driver mute the channels. > > Is there something to do that in the code or should I go and code it ? > Any opinion/comments about that ? You can find an example of such unsolicited event in patch_sigmatel.c. Takashi ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642