Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5417886imm; Tue, 12 Jun 2018 07:34:34 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKStMprKTHyY4mXWM4qYpu4Kk1qxGc35M6Dr3SAWmsTnbo3PyTq4B/tfP4ipVt1aF5+QOi6 X-Received: by 2002:a17:902:5501:: with SMTP id f1-v6mr729360pli.108.1528814074080; Tue, 12 Jun 2018 07:34:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528814074; cv=none; d=google.com; s=arc-20160816; b=bYV9jQ7KXJt3MGqb0EK3WugCYlkhAA01sg0SYdKVpthHHs4wbqj+K4b5L2SzrXC5Ow cFzELpttlCKSA+eXie0IdatPOkmovIGW7jPuTB6jrTSpVePUHkrBX4TTiZwIyrjgNK/h Nn72qgT6B3pwDKF2N/6hqIZpKIMshtvH7wxbct0iZsl1XsIgM0ogPkKLPCbKmvDUXqoy b4D0hwfOy/JJ0xq3BKvqOkDB3gxrm22GkcK2qS/bahVwNAgA2GmBBXov4u1hY90an2jZ uLMgchRCNGWgRTBfPUcxdBLZ11SvpRDeRrlfHYvhr7M1YMhuVPN9hKVgn1PYmPMy5Ztk o/1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=2TALnPshwtDnb32cx/qwWCYi+ofn8biMU5u1P8idWGw=; b=SpNZDN/o4W96FNnXc0dk2O1jZskLb8Q7f2ANLy6lrHhe2ktBiEj3EWBhsUuOPcVJ6L FWWwQkzRM7AED/k3YOysMl4ayV00ochmzC0rXzwKyEcqQTr4WuochicHnYYRPPhBwexx xEQK+8maggJcCpQu/Fo+6uEZC8GJ1WSIm0DT7V+2Pa4d072X/+eBD/k5xaGxPHnqePPp 0bWoQ80kBL0WnmJUkjH6SDAK9GDtkxHoEMQnrNYvtorWn3hBeZSrt0f4XgMH0dFhne6p HtnLtkbQdM2d+yzGv0EZjVHkU6pqXC3DlDblfBROD8Ubw0GYpkVmXQqDfb5eskfv4U3d 6EBg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e90-v6si195323plb.437.2018.06.12.07.34.19; Tue, 12 Jun 2018 07:34:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754340AbeFLOcY (ORCPT + 99 others); Tue, 12 Jun 2018 10:32:24 -0400 Received: from imap1.codethink.co.uk ([176.9.8.82]:49582 "EHLO imap1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754209AbeFLOcW (ORCPT ); Tue, 12 Jun 2018 10:32:22 -0400 Received: from [148.252.241.226] (helo=ct-lt-1121.office.codethink.co.uk) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1fSkLK-0000OB-Qe; Tue, 12 Jun 2018 15:32:18 +0100 From: Jorge Sanjuan To: tiwai@suse.de Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, ruslan.bilovol@gmail.com Subject: [PATCH 1/2] ALSA: usb-audio: Add bi-directional terminal types. Date: Tue, 12 Jun 2018 15:32:00 +0100 Message-Id: <20180612143201.29988-2-jorge.sanjuan@codethink.co.uk> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180612143201.29988-1-jorge.sanjuan@codethink.co.uk> References: <20180612143201.29988-1-jorge.sanjuan@codethink.co.uk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Define the bi-directional USB terminal types for audio devices. Signed-off-by: Jorge Sanjuan --- include/uapi/linux/usb/audio.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/uapi/linux/usb/audio.h b/include/uapi/linux/usb/audio.h index 13d98e6e0db1..74e520fb944f 100644 --- a/include/uapi/linux/usb/audio.h +++ b/include/uapi/linux/usb/audio.h @@ -230,6 +230,14 @@ struct uac1_output_terminal_descriptor { #define UAC_OUTPUT_TERMINAL_COMMUNICATION_SPEAKER 0x306 #define UAC_OUTPUT_TERMINAL_LOW_FREQ_EFFECTS_SPEAKER 0x307 +/* Terminals - 2.4 Bi-directional Terminal Types */ +#define UAC_BIDIR_TERMINAL_UNDEFINED 0x400 +#define UAC_BIDIR_TERMINAL_HANDSET 0x401 +#define UAC_BIDIR_TERMINAL_HEADSET 0x402 +#define UAC_BIDIR_TERMINAL_SPEAKER_PHONE 0x403 +#define UAC_BIDIR_TERMINAL_ECHO_SUPPRESSING 0x404 +#define UAC_BIDIR_TERMINAL_ECHO_CANCELING 0x405 + /* Set bControlSize = 2 as default setting */ #define UAC_DT_FEATURE_UNIT_SIZE(ch) (7 + ((ch) + 1) * 2) -- 2.11.0