Received: by 10.192.165.156 with SMTP id m28csp1205630imm; Fri, 13 Apr 2018 15:28:40 -0700 (PDT) X-Google-Smtp-Source: AIpwx48xPcCyPkz5Lqj+2OifXfR2Ojfz1J2rGZlJiGQ5E9mgE9EINdivacw0onnfOKR8k6kTs5ut X-Received: by 2002:a17:902:6b04:: with SMTP id o4-v6mr6751739plk.332.1523658520025; Fri, 13 Apr 2018 15:28:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523658519; cv=none; d=google.com; s=arc-20160816; b=CIld60VYeoSt6eJRKOUHYcx3iUZvIuMoNrtzqdR0I7lRorgkRnsqdUGlJL75NF7YaW /BjqNvHzySjWo/tE0PyM7wh/diA+pgaqQV5y9bTOES0qOdwiTg2EpdUiNB9tMIW98MZu YBoz1bfuelZJ9tcwB5GjZR2hTVh37w9qd5KxWBdBbz3KI+ORWhPbqdztQ2Qysbz8yem0 rVTCYR03b+u2JAM0l3ERtIt/YmgI2tvsCFBIbjRoMfUqM1z7+d7dG4JVdlxthqNkQHur BnB3a/cKq0bNoumTI1msT8dKtHRaU7b1OxYEhyEplmDGneA7UFfJIOlkmoFmB0lhjTnK Bk4A== 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:dkim-signature:arc-authentication-results; bh=uMtwz6KZeVeu/sRPAAhu7jGuHvvZczbRw4yeXDSlWGc=; b=EM1KgCf8uBmZTj2jLFBRkjF8PtnLnxqdOOKrBBq0W/ncfZqqL88P23iMEZX/6vnuLz SGtQ9dL59R1l/skbkBR0ZbSRS0P1ExMj7kuUi2bqOHjvQdc3YvU5pVdokecR1Q9MC51e uXXXAHm2krq9ESvuRo9BwrrlAfrdOYmK/mYbXxGkBzck9ipQIVvBaDynY5CO1Hycmi7T DIq3GS1vIRhcZCmUGQzERcmGpRJtvyr0mwJsqECPXwTQ8H7m8ZQBns2PvbWqq/HEx6q4 nMCArKCOl39576C0L8+H14Fb/M/XcbZpVXfwUjLdLRGXWhKhtHvMNTyKtH6+ZuUZYjqU kJVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PBeWgduK; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i90si5473938pfj.203.2018.04.13.15.28.26; Fri, 13 Apr 2018 15:28:39 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PBeWgduK; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752906AbeDMWZZ (ORCPT + 99 others); Fri, 13 Apr 2018 18:25:25 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:34007 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752648AbeDMWYo (ORCPT ); Fri, 13 Apr 2018 18:24:44 -0400 Received: by mail-lf0-f66.google.com with SMTP id r7-v6so7493735lfr.1 for ; Fri, 13 Apr 2018 15:24:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=uMtwz6KZeVeu/sRPAAhu7jGuHvvZczbRw4yeXDSlWGc=; b=PBeWgduKkJ3Gi7ghkV7V8WKYZ1mBzRf4Kpunnnr66bz6+C2iLfYGkvYNIUKalgh7WK /0k2e3vQVy9cYfuvTXon2hCiz7s3265rPb6x/17/wqpO6YOgiuJwYPDlt6Km77wUXQ85 O8muop58sHEFVioTSoEOEIpiZ5WhPta5//8UQ88AwVqxCQagJp31EgwiNO4tX7s2hg/D wmCDNn5JSE3pzngYCLtoeSCTiNXAqdZ03uKwJx/tVIWsayhP/BkmuNgo8LQmHbLQb7XP 3PrDxFhTNOf5GRDTNWC4FcHKN3IVzvzyP/L7uBPWpe6IZqmXsccTBA7iO6bBRS69Ayh0 hmGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=uMtwz6KZeVeu/sRPAAhu7jGuHvvZczbRw4yeXDSlWGc=; b=l6LgEkHDFLS7A1xx3m43v/tmXdrAw564xEIdN/nhwzRMxV4NUQhifS99Nu91owXM/t X+UntCHPDGqM+WiI7f8GFJHc+jNFalOOtOgxngNv+Q1sCamcmR7Mo8DPqjAhXsKy9b6K npmDz0bkGjUUfWEmReO44Ixn2nLPdZ6+fMzTAM4vzX1HDeAFymaZSqUzEA/w+az2IeK2 t+zTJ3bBrI+K7o9WlrHP/+1ROP/C9wtTYh/a8/FJCQjCp8drMZl5uU1KMdoA6K9yGyUp V1q2XTe/ls9NHworO9utEVunLG9Cq462Q0uPPiCOyRaxpNmD3trpauJRvMpZuQwSALA0 KObA== X-Gm-Message-State: ALQs6tCSGk5QQQahrFDHlNTOkpGzVG8rqSWLpb9R2UAHDjGrooIzTFFk EVzzFWLGeuTuxfJkx30A5LD8YPtv X-Received: by 10.46.32.91 with SMTP id g88mr435855ljg.105.1523658283118; Fri, 13 Apr 2018 15:24:43 -0700 (PDT) Received: from localhost ([62.216.62.149]) by smtp.gmail.com with ESMTPSA id 66-v6sm1439152lfp.1.2018.04.13.15.24.42 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 13 Apr 2018 15:24:42 -0700 (PDT) From: Ruslan Bilovol To: Takashi Iwai Cc: Jorge , Greg Kroah-Hartman , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] include: usb: audio-v3: add BADD-specific values Date: Sat, 14 Apr 2018 01:24:24 +0300 Message-Id: <1523658266-2259-3-git-send-email-ruslan.bilovol@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1523658266-2259-1-git-send-email-ruslan.bilovol@gmail.com> References: <1523658266-2259-1-git-send-email-ruslan.bilovol@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add BADD-specific predefined values to audio-v3 so usb-audio in ALSA and UAC3 gadget can use them Signed-off-by: Ruslan Bilovol --- include/linux/usb/audio-v3.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/include/linux/usb/audio-v3.h b/include/linux/usb/audio-v3.h index a8959aa..38add1d 100644 --- a/include/linux/usb/audio-v3.h +++ b/include/linux/usb/audio-v3.h @@ -392,4 +392,30 @@ struct uac3_interrupt_data_msg { #define UAC3_AC_ACTIVE_INTERFACE_CONTROL 0x01 #define UAC3_AC_POWER_DOMAIN_CONTROL 0x02 +/* BADD predefined Unit/Terminal values */ +#define UAC3_BADD_IT_ID1 1 /* Input Terminal ID1: bTerminalID = 1 */ +#define UAC3_BADD_FU_ID2 2 /* Feature Unit ID2: bUnitID = 2 */ +#define UAC3_BADD_OT_ID3 3 /* Output Terminal ID3: bTerminalID = 3 */ +#define UAC3_BADD_IT_ID4 4 /* Input Terminal ID4: bTerminalID = 4 */ +#define UAC3_BADD_FU_ID5 5 /* Feature Unit ID5: bUnitID = 5 */ +#define UAC3_BADD_OT_ID6 6 /* Output Terminal ID6: bTerminalID = 6 */ +#define UAC3_BADD_FU_ID7 7 /* Feature Unit ID7: bUnitID = 7 */ +#define UAC3_BADD_MU_ID8 8 /* Mixer Unit ID8: bUnitID = 8 */ +#define UAC3_BADD_CS_ID9 9 /* Clock Source Entity ID9: bClockID = 9 */ +#define UAC3_BADD_PD_ID10 10 /* Power Domain ID10: bPowerDomainID = 10 */ +#define UAC3_BADD_PD_ID11 11 /* Power Domain ID11: bPowerDomainID = 11 */ + +/* BADD wMaxPacketSize of AS endpoints */ +#define UAC3_BADD_EP_MAXPSIZE_SYNC_MONO_16 0x0060 +#define UAC3_BADD_EP_MAXPSIZE_ASYNC_MONO_16 0x0062 +#define UAC3_BADD_EP_MAXPSIZE_SYNC_MONO_24 0x0090 +#define UAC3_BADD_EP_MAXPSIZE_ASYNC_MONO_24 0x0093 +#define UAC3_BADD_EP_MAXPSIZE_SYNC_STEREO_16 0x00C0 +#define UAC3_BADD_EP_MAXPSIZE_ASYNC_STEREO_16 0x00C4 +#define UAC3_BADD_EP_MAXPSIZE_SYNC_STEREO_24 0x0120 +#define UAC3_BADD_EP_MAXPSIZE_ASYNC_STEREO_24 0x0126 + +/* BADD sample rate is always fixed to 48kHz */ +#define UAC3_BADD_SAMPLING_RATE 48000 + #endif /* __LINUX_USB_AUDIO_V3_H */ -- 1.9.1