From: Takashi Iwai Subject: RFC: Jack-detection control elements on HD-audio Date: Fri, 19 Jun 2009 10:04:47 +0200 Message-ID: Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 9D25F103890 for ; Fri, 19 Jun 2009 10:04:47 +0200 (CEST) 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: alsa-devel@alsa-project.org Cc: Lennart Poettering List-Id: alsa-devel@alsa-project.org Hi, yet another thing I've worked recently on is a bit more generalized framework for jack-sense reporting for HD-audio. This supersedes the existing jack-sense reporting via the input layer. In addition, it gives the corresponding control elements. For example, you'll have "Jack HP-Out" (or a bit more verbose like "Jack HP-Out at Ext Rear") control via control API as well as other mixer controls. This can notify when a jack is plugged/unplugged. But, another big win is that you can read the current pin sense just by reading this element. I think this is a sort of feature Lennart wanted for PA. Lennart, does it make sense? The test codes are already in topic/hda-jack branch on sound-unstable GIT tree: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-unstable-2.6.git topic/hda-jack Any comments appreciated. This is also intended for 2.6.32, not for 2.6.31 merge, of course :) thanks, Takashi