From patchwork Mon Mar 7 19:47:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anton Yakovlev X-Patchwork-Id: 548892 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 61B11C433FE for ; Mon, 7 Mar 2022 19:48:56 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id F201E174F; Mon, 7 Mar 2022 20:48:03 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz F201E174F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1646682534; bh=8okE+Q6K/W8wsvu5pO4GARMCWw8koKY+P9+H4M0XCMI=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=qKipaUd5PsTYd/yaMHHnXbftY5ZTHh5jSaWeWYoe7K/ef4AQCssQ6VbGZdgHc1HL3 CioaaJrWr5WGplS3xNME2qyb8/aEiq4bkc1opAtq5GGszmgJ9U4bPG+meLBoTldQHF rlJi6BQzFow8LnNbgiOUg5DMVLFgQGqCPabopjZ0= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 59A00F80124; Mon, 7 Mar 2022 20:48:03 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id E469DF800E9; Mon, 7 Mar 2022 20:48:01 +0100 (CET) Received: from repost01.tmes.trendmicro.eu (repost01.tmes.trendmicro.eu [18.185.115.1]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 7D550F800E9 for ; Mon, 7 Mar 2022 20:47:55 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 7D550F800E9 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=opensynergy.com header.i=@opensynergy.com header.b="Xr9xf5+6" Received: from 104.47.1.56_.trendmicro.com (unknown [172.21.201.50]) by repost01.tmes.trendmicro.eu (Postfix) with SMTP id B76D91000008C; Mon, 7 Mar 2022 19:47:53 +0000 (UTC) X-TM-MAIL-RECEIVED-TIME: 1646682472.178000 X-TM-MAIL-UUID: c1e9ce45-c89d-4ba7-a23c-a578b9c5da7c Received: from EUR01-VE1-obe.outbound.protection.outlook.com (unknown [104.47.1.56]) by repre01.tmes.trendmicro.eu (Trend Micro Email Security) with ESMTPS id 2BC6210000E5E; Mon, 7 Mar 2022 19:47:52 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IjR6BgDDy5BbZRfckv0kcyTDxk+nHa/zJYR8IMgw2A2lea0i/+7d1/fd1v9p/T0vpPtId+/nvVkWRlO8EGU0Z/sNo8h6LPLaQMh85737nWUNK0OPq4kkBwORk6TyR+34LYimbrK2bTQ4pLO/1o/J4c+d351EdeHE9e6qq4EojC3TWY5PU5g45OUPuvWtJZid7n9kbR8nfS7dAcToksn5us4iIGcRpojX0qbkR/yzJ41paZRv3oqtuwPGc/Wvyb4DjICHeN+CjwnqJ1uVpQuTKzUwQeIhD65n1I6EUgdbxMFYkVCX8ZI1nXf7rBwBgXnrB2n9DrPsru3+aTfD99rtOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=IjUPToFh/OWDiTxKWHg9wYdliPJQ9jNn4VhimQzSkQE=; b=oBQZWnCwvhRBD+9oJA5/ygo6BnReMFwjUA/z997ToFFrCt6IiyzvB4Nuz75Px4D2n91syP0Aer5+o1OhH1nFWJLVB8sF+yVZTFZRd2bZ5FuacGKJp7gf+PxcvIcnBaDtiXo9fIbvpLv3V7SZXFpWQIq0xZppG4crNufM7HDN1g36KD4a+B7H0nb+g/sOeXL81s6tEduMX56J3H4J5LIRAq/y/iyiV28VlmIrgxpMo3DjVuOLSq6fPgMRJH1IQEzQPKtt8hGbNKDtwKCpHq3O3LEQ5HLz2aamCEzfc3/huSs8psRnXMZeT2WHOypocI+QyLRBBvzQKXGuS281lUKgSQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=opensynergy.com; dmarc=pass action=none header.from=opensynergy.com; dkim=pass header.d=opensynergy.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=opensynergy.com; From: Anton Yakovlev To: virtualization@lists.linux-foundation.org, alsa-devel@alsa-project.org, virtio-dev@lists.oasis-open.org Subject: [PATCH 0/1] ALSA: virtio: add support for audio controls Date: Mon, 7 Mar 2022 20:47:14 +0100 Message-Id: <20220307194716.1517565-1-anton.yakovlev@opensynergy.com> X-Mailer: git-send-email 2.35.1 X-ClientProxiedBy: AM5PR1001CA0040.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:206:15::17) To AM0PR04MB5891.eurprd04.prod.outlook.com (2603:10a6:208:12e::28) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c3a9c1d6-ea46-43ba-30bb-08da00735c15 X-MS-TrafficTypeDiagnostic: HE1PR04MB3210:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zo8YluaHGR4gKRjAaFNVkS/oFYDH/EEM1HpyXMOTUxgDvpJRJVrRbNt/toNldolfCF6d1TXCce/T8Gb+lP0/m6QcTbMHeP4PcRBUIxW0IgjFs/mzFC2lewtYFABsRdiFNDwgB1yWjqM1lpo151KRhUWJgAa4o/e4FBd7yy6ALiFboyrEdIpYfCxrEW+UmekHsEleas0S5508ILwh2x+epGMFE+Ff+HaxfFaqx3OcPaIj7F/9xZZMromUhI1ldW/KOq8Vu6Q5nKlYK+ri0SsdQ4U9rihjTaHL/PZslhqEing7hxWmxj9zZbAcT79M0nYcYQONr349+Ld5hE6ktuhvu+kyGCpckxl7jsqHa+Q2IMgWj/uk1PhAQ1KhtWj7cwJ3DwzqSjXXXDUSCRsWpgO8/6hvnFKiIKe1LfXg5gS2L/Iby9kkYW+rQwDPv5z8fnePaPwzSwZEVIY8coSL1rTm2MCWpEnQenjcR7PE3+7XKHHOC792egK7dbPXZvslvc5RpM7zkSyUgAiQS446YJ2tqFCNpe0EPWF9E1oPtKWumIAnpt/gxg5UEnkQeDblRMvnC9L5qVS/BsijlqRYifG4clALF+ZarSadb3OjF1SHD3Q+l6o1lvvBIL998OFoKHT2jRYlk6NmGMKRq5dDC+injwU9cs+LGrmsfO+nTb4CTbB3l4ac9sJhILQj3RIBx8WXbs+gQcGBhWB8Ua3fzMrjScZ1PXaznDN4hOGUla73+8aewjIfvFr7BxrgEjQARMQxVQrj/1fS6H6bUVciwDyeNFTnNrj0xkmvHzWDzJQyL6I= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR04MB5891.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(36756003)(966005)(8936002)(8676002)(4326008)(66946007)(66476007)(66556008)(2906002)(52116002)(86362001)(38100700002)(316002)(42186006)(38350700002)(26005)(1076003)(186003)(508600001)(5660300002)(44832011)(4744005)(2616005)(54906003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?ui6+cDPXQW6Oc7dmbZk2wrfyOu3o?= =?utf-8?q?yOhxFqhWAjT3V9sbzywbGDbX8JQgAxLCQRP/9bvqNiSNQRWVWUMKd8cUnpk3tuTvi?= =?utf-8?q?A4bhgI2gqmMtIDLlxIVXA8rfPMOkAWHRKCXjX0uWZ4uxZDEFBzn0LGkw2vocEzvga?= =?utf-8?q?Mp+B0ZqkrDWVlrCqthpSp750lS5Kvnirjb91No3ZiC5HaZNgVsb2pKB+IzjtqAqfZ?= =?utf-8?q?+4Q/77TIjmEOB6nCmCktDS4bw4vF+pF99xxOIkv6XxecSZPHRpSTIQinfJ+GCRG5H?= =?utf-8?q?uWYsA2JYRmzJaa9my25wBIeI5IJ8KW4eQtfisuOf2ypoYY0MFTueI5z2q9hVTt1wy?= =?utf-8?q?QpKETKIxcgL+N9sGsUMFzPz7Go7RMtJsxR9b9vGVjwvz4tfkf2aqf2j4Ku7SXsEND?= =?utf-8?q?o57JK6lMu5s4L6g2VHlPAo9TKzQuTZVdDd3UEwcF9g3+yrcijDuQqkF42Uxi7LgAy?= =?utf-8?q?pJZ1hI2c//M5Mf3VkFmfQXRJ1SxeGwtkZO7Jn3jvP/CRuY+/dVHiz27+/vVj3kSlF?= =?utf-8?q?ZBtlvA305vRGobUscdoWFA7Iyj+yGjjmIgBYfApHTvEKZDZoANOLDIVWSu0aCfgHI?= =?utf-8?q?3NjyzI1nIIYtlKZcxbFz9j+063VsCne3WVOzDsW4Ml90mwyfVAl9QnwaaOI3CD9ua?= =?utf-8?q?3EIFyivJRVbaYLAGlxZuPIBZVaUxulD4EuSejh4274LoBVsYR98+Y7nmtfIo0k4uC?= =?utf-8?q?v4TGFch3oUChnDO4PuLPsTfZlf/zN/AYw4is2UiCdotkL4U+dWVTh9blqCM/L41fN?= =?utf-8?q?xuYHzR2+r3uYbmyAFp7RcohP5SRRK9efic6nM3dox9/gG+dgTeA0+iDGfrFQmYUxL?= =?utf-8?q?Vs8VIMhNQ5YsJCFxmzN1q+cfRrFOgl/YhY/jRmUd47XyC8PllfV6WAYdevhdxrIU6?= =?utf-8?q?J/sVJg5G0Jdhh4cRYefw6oStltHOo1wsBMMzU9ajSLC0iW/+J5D5glByZB/wGY1Lc?= =?utf-8?q?L5P+fRw8PifaHmdsQPNjxXLVEGmLJxjDSsmYEoZbdzeP9MqpTkm2T3ymQBHxlOvGn?= =?utf-8?q?l5hLemr/Df0O7fcm5wYUZH5BkW2374FjF28Ryvx513FkIXPCTj8fx1O7H6ja+XO5b?= =?utf-8?q?wmTYQaLCRVp9FdX9fraqs4rttLg8nM1fQ9A+hom5VDaO7YdBZe5MnWDN0LZZeUJH4?= =?utf-8?q?ZmSAx7OquhDsQzNx4lop0IWEeNGFJBlnNqJpNpGtfxkFP8iClY29EjmDxT90ySU3d?= =?utf-8?q?zSW4pdke1mYpwmy/lFCHl7AJUpLaW7AGlL4PTJaeVV9FAspO/LGtRZCqpuB3pwXXU?= =?utf-8?q?XtMLNb+1yynDcVASf6hfB/XA8hP5waikzGAlOhs4Pe1lzdwwDJ7iiDihW1rhyiikg?= =?utf-8?q?OevSzYuRW+RRxqxDlL8RXFqxVqFzcm44fY+llEcLaoJak47xpFqdqsWfo05oc0CHB?= =?utf-8?q?1gyiXyoCRDfAapsEgaD4szNEBk5sCM8G9A9gxfdYSosIvD3twsfqCl18K+3vhIXNn?= =?utf-8?q?Xyb7QIarCTEp5l/mEkCGTmuFsffBzr66BkoQ0zBkAr8FLp6BXwvWphvzvbcqcs88S?= =?utf-8?q?I87A2j6AElDxtPlb6rkPSG+DK68Yebp/3SSe9+ct5YfbPa3owo+4t60=3D?= X-OriginatorOrg: opensynergy.com X-MS-Exchange-CrossTenant-Network-Message-Id: c3a9c1d6-ea46-43ba-30bb-08da00735c15 X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB5891.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Mar 2022 19:47:49.6384 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 800fae25-9b1b-4edc-993d-c939c4e84a64 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Zv9RFFmTUgrF4RLeFn+Sf7GQ6v3DobXJgo6nyMcwV9AADR9o62EaO6GXQxwF/lV+WExHMNef4naOcTv+fYJKkA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR04MB3210 X-TM-AS-ERS: 104.47.1.56-0.0.0.0 X-TMASE-Version: StarCloud-1.3-8.8.1001-26758.002 X-TMASE-Result: 10--2.784700-4.000000 X-TMASE-MatchedRID: 54gb2yeIOXQJjCNolxOpSRFbgtHjUWLyj0jXY9STMgFMotU/QFIFGxdQ uJNGYGeyepwUk+Mcqyzw9R28AIPLSN/K1ikJIsLOnVTWWiNp+v8UifIaLms/Arll+XI+GnGsz6Q Q8NT1Ir7gr0WZ6u+ypaEfeQTpODV8Wjws5pdLmBZ+yskgwrfsC30tCKdnhB581kTfEkyaZdz6C0 ePs7A07R/88i/oAaosL4UK21n4bZNGPXbj2YgVSIYcCinNIrsbfq+djo4+I88= X-TMASE-XGENCLOUD: 019a98ef-3284-45a8-8ac7-44879e005d8e-0-0-200-0 X-TM-Deliver-Signature: 7926671C3F134244D7B3EC49FB0C59CE DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=opensynergy.com; s=TM-DKIM-20210503141657; t=1646682473; bh=8okE+Q6K/W8wsvu5pO4GARMCWw8koKY+P9+H4M0XCMI=; l=1037; h=From:To:Date; b=Xr9xf5+6rjFcZ9mKXl6ltOIF7ur1l215X4n3eUBACyKmifXRur5CMqV9cdU+RZ2aM +t9XnWBnW4m0pGNtotsg74DGbcuSUSNHC3ciIhMA/V5LVc1v9wdP2tsg8FVHmS6NYX ab1iUaJMHRhpkRxZYTYASnuKKuNVtk6Hv4wuVJ6woPo+gmYrm2gNwtqRsuiKcJoqxA UiavIGn7dhM6scggyaFOLGxf5Q6u47IVLJyTd+oK3CVltlkIt8VrW9B75pkDEASh5w zL+JSdOyLUt9PzDvSjsQaeD4gY+VWHd4DmrNZS4RD8u8dLg0FfBYLineZIIOWk8PiO MYSGgRMJBBeqw== Cc: "Michael S. Tsirkin" , Jason Wang , linux-kernel@vger.kernel.org, Takashi Iwai , Anton Yakovlev X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Implementation of support for audio controls in accordance with the proposed extension of the virtio sound device specification [1]. Design of virtual audio controls is based on and derived from ALSA audio controls. It allows the driver to perform all standard operations, such as reading and writing audio control value, as well as working with metadata (represented in the TLV form). The driver part was tested on top of the Linux 5.10 kernel. As a device part was used OpenSynergy proprietary implementation. [1] https://lists.oasis-open.org/archives/virtio-comment/202104/msg00013.html Anton Yakovlev (1): ALSA: virtio: add support for audio controls include/uapi/linux/virtio_snd.h | 154 +++++++++++ sound/virtio/Makefile | 1 + sound/virtio/virtio_card.c | 21 ++ sound/virtio/virtio_card.h | 22 ++ sound/virtio/virtio_kctl.c | 464 ++++++++++++++++++++++++++++++++ 5 files changed, 662 insertions(+) create mode 100644 sound/virtio/virtio_kctl.c