From: Takashi Iwai Subject: Re: Separate input and output jacks for one UCM device? Date: Thu, 19 Mar 2015 15:51:06 +0100 Message-ID: References: <5509D4D4.6030000@linux.intel.com> <1426756559.7258.22.camel@loki> <20150319144240.GV2869@sirena.org.uk> 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 E20B62605F0 for ; Thu, 19 Mar 2015 15:51:07 +0100 (CET) In-Reply-To: <20150319144240.GV2869@sirena.org.uk> 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: Mark Brown Cc: Tanu Kaskinen , "alsa-devel@alsa-project.org" , Liam Girdwood , Arun Raghavan , "Lu, Han" List-Id: alsa-devel@alsa-project.org At Thu, 19 Mar 2015 14:42:40 +0000, Mark Brown wrote: > > On Thu, Mar 19, 2015 at 03:37:12PM +0100, Takashi Iwai wrote: > > > The uniqueness of item name is also needed for input jack. There is > > no check as of now, and input drivers allow multiple items with the > > very same name string, but user-space can't distinguish them. > > The theory is that this is handled by the fact that the userspace ABI > includes a reference to the struct device and therefore a chain showing > where the thing is attached; anything registering two different jacks > with the same name attached to the same device probably qualifies as > broken. So this implicitly assumes the name uniqueness. For HD-audio, this was a problem because we need to generate jack names dynamically; for example, there are laptops with two headphones, and we assigned indices in such a case. Takashi