From: Andrew Chant Subject: [PATCH v2 0/2] UAC2 jack detection and clock validity Date: Fri, 23 Mar 2018 18:55:47 -0700 Message-ID: <20180324015549.162765-1-achant@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-pl0-f65.google.com (mail-pl0-f65.google.com [209.85.160.65]) by alsa0.perex.cz (Postfix) with ESMTP id 638AC266B67 for ; Sat, 24 Mar 2018 02:56:49 +0100 (CET) Received: by mail-pl0-f65.google.com with SMTP id u11-v6so8518558plq.1 for ; Fri, 23 Mar 2018 18:56:49 -0700 (PDT) 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: Takashi Iwai Cc: alsa-devel@alsa-project.org, Andrew Chant , Ruslan Bilovol , Benson Leung List-Id: alsa-devel@alsa-project.org These patches implement UAC2 jack detection. This allows USB-to-3.5mm adapters and similar USB devices to report jack state via alsa control, using the reporting provided by the UAC2 connector control. The second patch updates the clock validity control so it doesn't show up in mixer UIs. I declined to mark the controls as VOLATILE since clients should always be notified of changes, since UAC devices are expected to generate interrupt messages when a control value changes. v2 changes: - use SNDRV_CTL_ELEM_IFACE_CARD instead of _MIXER - correct channel count to 1, cmask to 0. - add validity patch. Andrew Chant (2): ALSA: usb-audio: UAC2 jack detection ALSA: usb-audio: update clock valid control sound/usb/mixer.c | 117 ++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 109 insertions(+), 8 deletions(-) -- 2.17.0.rc0.231.g781580f067-goog