From: Takashi Iwai Subject: Re: [PATCH 4/5] ALSA: hda - Implement shared front mic/hp jack for HP Z220 Date: Wed, 05 Dec 2012 09:27:30 +0100 Message-ID: References: <1354202489-12769-1-git-send-email-tiwai@suse.de> <1354202489-12769-5-git-send-email-tiwai@suse.de> 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 CA2E9265080 for ; Wed, 5 Dec 2012 09:27:30 +0100 (CET) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Raymond Yau Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Wed, 5 Dec 2012 16:20:29 +0800, Raymond Yau wrote: > > > > > > > > HP Z220 with ALC221 codec has a front jack that should work as both > > > > the front mic and the secondary headphone. This patch adds a new > > > > mixer enum to change the jack behavior. > > > > > > > > In the headphone mode, the auto-mic switching is disabled and the > > > > input is fixed to the rear line-in. > > > > > > > > > > I expect when any input jack(line in or mic) is retasked as output e.g. > > > alc_set_multi_io() the corresponding jack detection kcontrol should > change > > > to false > > > > In the current implementation, this doesn't matter because the front > > panel has no capability of multi-io. The multi-io is enabled only > > when all jacks are located in the same place. On the front panel, > > there are only two. > > > > But it's a thing to be considered in future if we'll need to extend > > such retasking functionalities more generically. > > > > > > if mic_event change to hp_event in this case, does it mean that hp_event > should change to mic_event in Q1-ultra > > http://git.kernel.org/?p=linux/kernel/git/tiwai/sound.git;a=commitdiff;h=24de183ed0369d73af89e6752fcc1ecbde59053d;hp=82e14a4754599952f5504c1f696bbc77bdfd6009 The code handling shared mic/HP of Q1 is totally different from the generic multi-io handling. Takashi