From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Porter Subject: Re: HDA pin sense and presence detect capability Date: Wed, 25 Jan 2006 09:08:25 -0700 Message-ID: <20060125090825.B29602@cox.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from fed1rmmtao02.cox.net (fed1rmmtao02.cox.net [68.230.241.37]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id 85C0D18F for ; Wed, 25 Jan 2006 17:08:28 +0100 (MET) Content-Disposition: inline In-Reply-To: ; from apatard@mandriva.com on Wed, Jan 25, 2006 at 04:50:40PM +0100 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: Takashi Iwai , alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Wed, Jan 25, 2006 at 04:50:40PM +0100, Arnaud Patard wrote: > Takashi Iwai writes: > > > At Wed, 25 Jan 2006 16:34:22 +0100, > > Arnaud Patard wrote: > >> 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. > > okay. Thanks. > > About what's done in patch_sigmatel.c : what's the point of disabling > the output ? imho, you only need to mute the nid. It seemed easier to disable the actual pin nid outputs for all line outs (thing surround) than walk back to the associated DAC nids (which can vary on sigmatel codecs) and mute those. It accomplishes the same thing as muting...except there's no change in mixer state. > Also, if there are several users of similar functions and on others chips than > sigmatel, shouldn't it be better to put something in hda_codec.c ? I think so, but this was somewhat of an experimental first attempt at this support. I just haven't had time to do much more with it yet. -Matt ------------------------------------------------------- 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