Received: by 10.223.164.202 with SMTP id h10csp422059wrb; Tue, 7 Nov 2017 08:25:36 -0800 (PST) X-Google-Smtp-Source: ABhQp+T+bRTqlIgqsQla6u1x1jbt8et8Zmb+QqCPzEomO+tfXssxj/dUPfJkiCSUdQnkR8CtLHiI X-Received: by 10.101.75.78 with SMTP id k14mr19069210pgt.272.1510071936606; Tue, 07 Nov 2017 08:25:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510071936; cv=none; d=google.com; s=arc-20160816; b=bJw1mybSHEOiwut/h0ETmR36ZeJoAwFjHNW+Ps7EgzShoRqOPqb7Njs0RhUTFEMKN2 Ym1o5NmO4sNLPAIuNYlUAjtlRvZ3U9vjSqd51dt2/D0CHMiCDiNuRjuQ1anNdvgNDf42 PsBmuIhE6qcmVI1ib+0J2Olcl70zjgWDi3BiL8LcTSkQb0trU4DMZ8d2VK2UnXtc4TbW tpxvRd7BPW7DkxI0aSHXGrmXso/ScqT4iCpDehMJd9LeUkgZ0YBhouEaDagUapnh3p27 ybHqrTNiCcD41WzISidAYOTfdUFrR0FndcV+tm4q7SqecxDrNujDbm5FJjpY9j65cQdQ f3Pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=A9Aosl9XwmW5HuB4K3qepIIQ1EhNZC3by1tIq944050=; b=a+h/9HGT/PPsY/ZaS86S7gi607xEetdChMzyHFjYG4pIZi583SWVZYrZc9zp7EJR4q 5xrw8f2HeD84tj34M4+eYYONUANGhzxET17ASr0fpYIdcJTeAy4ptBJeuOAIJT4jSKNm MjEvTxlPpZODvy4m7dBQ5Zj2aJ0uM4EtDGbJYPvXiZZyjBlV1sALGJRhY9vP7LAK6Z7I VDK2QTpCiaY71k5W1wWcg1BfUw9J5gp70iMITgEtAgLK3hDoyEW43KJuqBEV8kcBKzrn fml9XSNQio6qRmD82Oz5bKLB9YkQjnRQ5uo2ad1Gwj3waqQFT5iP929SOkf0YllNQpfV cLvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Q7UlI7/3; 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=NONE 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 k8si1500741pgo.453.2017.11.07.08.25.23; Tue, 07 Nov 2017 08:25:36 -0800 (PST) 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=Q7UlI7/3; 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=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756188AbdKGCBZ (ORCPT + 92 others); Mon, 6 Nov 2017 21:01:25 -0500 Received: from mail-lf0-f67.google.com ([209.85.215.67]:54863 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751907AbdKGCBX (ORCPT ); Mon, 6 Nov 2017 21:01:23 -0500 Received: by mail-lf0-f67.google.com with SMTP id a2so12652378lfh.11 for ; Mon, 06 Nov 2017 18:01:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=A9Aosl9XwmW5HuB4K3qepIIQ1EhNZC3by1tIq944050=; b=Q7UlI7/3Ta0ANiH9I5q6gkhlUHcbZ3bzDntoiQGtwbkseJ1tSFDxA6vIdenLDIgNab pPWsI6ld8uvyF7/upOray6AIa9iQJDISa096a2UZ2YOgqPlhLqHsdg+xqzu+B2O9mird G4ii+2sz1BBhDRdCBBnxHKJBIrnU6Uu815c31LFt+Ph1moI05KYR7e9pbH08AQLYUaiz jG4wn11DLZl7B9lSY4H49daaD0QHQ7rW2ES9EPN/alq8rkt3NiQEqUUiJeOCyFkd/tWC sU7jBjlK/EpMsK92cVb6XA3AwAGO0YkibE3AXrtKyQzygh3x5Co/MXr89/iTNWHfMyc/ T1tQ== 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; bh=A9Aosl9XwmW5HuB4K3qepIIQ1EhNZC3by1tIq944050=; b=pJukI06IZVh4npoflZZWkG/qkLUclfN9OEir00gUy1Fvk0rAxXWfkJbQjHjgmUHEkZ z0CYmnyTPlw1/ZM0c7tV4rMRHDrD1721jM0CsIcdrphUKDARDvLaxeUboSJKb8NF5MzQ 3yjfUCjOiTwyj3WqgXiIl7aQ2olVEGpsb3r4xGcJ7sEdK51rIE+YlAf6mQSenG0hX3uJ VN210NT6rpMbDTmtfGU9wXmK2JPM3L8Ve8AbesgrH6NX4F4FhFJ+sOqWOMafCs7iKL54 XjgiL09G4GmzpSBlSgjNk37WYcR35kFJOY7n20Nh1Jvz5T2emlqFY9fIcZVMl0rrNFmZ 5cGQ== X-Gm-Message-State: AJaThX7x64sy/QrVMlI/fIxtxSyeNzbU3iAPf6H8UU/gqgzbrh1W8jJW ISHI0MukSGf3pfK39WjQZdQ= X-Received: by 10.25.203.80 with SMTP id b77mr6508478lfg.27.1510020082150; Mon, 06 Nov 2017 18:01:22 -0800 (PST) Received: from localhost ([62.216.59.211]) by smtp.gmail.com with ESMTPSA id h63sm19560lji.35.2017.11.06.18.01.21 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Mon, 06 Nov 2017 18:01:21 -0800 (PST) From: Ruslan Bilovol To: Takashi Iwai Cc: Greg Kroah-Hartman , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/1] USB Audio Device Class 3.0 support Date: Tue, 7 Nov 2017 04:01:19 +0200 Message-Id: <1510020080-15849-1-git-send-email-ruslan.bilovol@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Takashi, This patch adds initial USB Audio Device Class 3.0 [1] support to the ALSA that we discussed at ELCE. The patch was tested with UAC3 gadget [2] that I posted to USB mailing list before. It is good for working with BADD device which implements such topologies like BAIF (Basic Audio Input Functions), BAOF (Basic Audio Output Functions) or compbination of both. UAC3 spec has changed descriptors laout and many other codes comparing to UAC2 spec, thus making reuse of existing sources impossible or quite complex. There are still many areas of improvement, as this patch doesn't have UAC3 Mixer Unit support nor some new features like Power Management I tested this with BeagleBone Black as UAC3 gadget device. [1] http://www.usb.org/developers/docs/devclass_docs/USB_Audio_v3.0.zip [2] http://www.spinics.net/lists/linux-usb/msg162482.html Ruslan Bilovol (1): ALSA: usb: initial USB Audio Device Class 3.0 support include/linux/usb/audio-v2.h | 4 +- include/linux/usb/audio-v3.h | 343 +++++++++++++++++++++++++++++++++++++++++ include/uapi/linux/usb/audio.h | 1 + sound/usb/card.c | 7 +- sound/usb/card.h | 2 +- sound/usb/clock.c | 228 ++++++++++++++++++++++++--- sound/usb/clock.h | 4 +- sound/usb/format.c | 87 +++++++++-- sound/usb/format.h | 6 +- sound/usb/mixer.c | 332 ++++++++++++++++++++++++++------------- sound/usb/stream.c | 296 ++++++++++++++++++++++++++++++----- 11 files changed, 1117 insertions(+), 193 deletions(-) create mode 100644 include/linux/usb/audio-v3.h -- 1.9.1 From 1583679586245052496@xxx Fri Nov 10 11:49:06 +0000 2017 X-GM-THRID: 1583679586245052496 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread