From: Takashi Iwai Subject: Re: [PATCH 2/2] ALSA: usb-audio: UAC2 jack detection Date: Sat, 24 Mar 2018 09:56:05 +0100 Message-ID: References: <20180322213956.217933-1-achant@google.com> <20180322213956.217933-3-achant@google.com> 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 (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 2A1E0266E07 for ; Sat, 24 Mar 2018 09:56:05 +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: Andrew Chant Cc: alsa-devel@alsa-project.org, Ruslan Bilovol , Benson Leung List-Id: alsa-devel@alsa-project.org On Fri, 23 Mar 2018 23:24:55 +0100, Andrew Chant wrote: > > Two new questions: > #1 - I'd like to report the impedance of the load connected to the jack > (generally as an integer). Is a read-only control element the right way to > do this? Yes, it would be suitable. > #2 - In our particular case there's a single jack which can detect presence of > a microphone and playback separately. USB descriptors provide a mechanism to > show that the input and output terminals are linked in this way > (terminal type 4xx along with bAssocTerminal). > > Is there a better way of having this reported than two separate mono jack > controls? This has been discussed in the past. The current two bool kctls are the mapping of the former input devices. One suggestion was to use an enum for the jack control. But practically seen this would break user-space apps, so likely no-go. I guess we need to live as is -- two bools to represent one full-duplex jack. thanks, Takashi