From patchwork Mon Aug 5 00:33:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13752818 Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazon11010042.outbound.protection.outlook.com [52.101.228.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C68D51859 for ; Mon, 5 Aug 2024 00:33:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.228.42 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722818027; cv=fail; b=SLo1/jozjJDZHly3mTqdwFUOxTAub31dhHKPQgbZjlIeXGVuwF/B1UClnNtL+/pvh33d6/wsqi3GumcBacNwKUO8zBCe9M9sSAYey5vrA7W8DiA+VWoLQScBmI3netcBrQdmT3ev+ipGY2fZPG97G3X2rSsQ2Mp+5a1oC/Uoh5U= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722818027; c=relaxed/simple; bh=miJE6KXiPvDKsReZa9e2bwFRnbuIWKrVr2OpcbuTOPk=; h=Message-ID:From:To:Cc:Subject:Content-Type:Date:MIME-Version; b=qKvQv4i66Sd85b1yvhswb2o2ZvhHOiwY3aWQEAR7Uh3GRHqbx1zuFTbrmmy3Sc+62cFYKhYC3Wfu11dA3RE0NBD0osxZ/IyAwx5xYjbxT4gNc0GiBX/u25gUt1CuaWsLVPP1QRN8isHo8y2h91oSlmrV0fT7yu0iKAc4V2DYHJU= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b=oL41U6pY; arc=fail smtp.client-ip=52.101.228.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="oL41U6pY" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=zHqWol2f854QbrVhM5ugl71bJ03k9QHWmMd2z/ctTJkSZLBi1sW62BRHTdStCRTOsOL5uqc3gY+rpLv9Cze185bvg87Enhbb/bQhGFKbSklaRPeODBXkqQFuCdPngBB3PIMfDMvWIRetC2grrgaddfvqRlkmZLHtGus+kTaQK3fNx/4owTSN5CNzcSzNi1Gl4rZaWXEOTygNBOPQB3GcVLu902oraN0Babh8PZFHlRkkHOxILTVcIynXj7oj7RT+gdE1c8MNvKNnIPlc7ipH/v6khO91rRBFYBcCl401ZFfbqm1qTtogpvedYQfCjvAWd0IYWJuc8FrEzw8W2kS0cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=0NRar3CVHTGKsz6makIqskDFjvA00olfs7YWD9Y7fJI=; b=XXkDh7f/ad8j1J+eR923c7D9hQDvdByLGaGqIe6MG08hxbb714jo31nk/Pi+Q8axyNCQAxO2NP1eDmv//b0uL6uNNepkwIkoBRg8xpAgWkB3SDFNnD9OfqQ15GjGSyHb5IehGiE6kzROpd6MxGANEyeu1RicOUGe5W9XzCCn1UAlriflYXrjlj9JULrkhZJYQIor9uZrR53UvkH8nN11GZ7JPN8g8CHRe4mlpdMJXYsZ5t4iAkKXeXCM1xFUvTijFsk9RL0GWEccglyv/EJY6W+g5cHRCwsg466+JApikGuarsXyiOCcLvCO6budvYGOGWhlOoue5bepG6CuYuHxTg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0NRar3CVHTGKsz6makIqskDFjvA00olfs7YWD9Y7fJI=; b=oL41U6pYeNWzk3zJh3zmayh13cGzFA4SiLGbawWXKpv05q00+frLbM5qfu4aoWU4+chCfZB+221UFJtvfKCUEQiiIP/I3fjSNSOVi6wgdbAezqR4eI6+ANfJD8SVK2Rk958JBTjoG+dAZ+CmuGLeQVYZ7pRzajlLMnnhjTAq7uE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) by OS3PR01MB7994.jpnprd01.prod.outlook.com (2603:1096:604:163::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.25; Mon, 5 Aug 2024 00:33:41 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%5]) with mapi id 15.20.7828.023; Mon, 5 Aug 2024 00:33:41 +0000 Message-ID: <874j7z3j1a.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Mark Brown Cc: Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-staging@lists.linux.dev, Linux-ALSA Subject: [PATCH 000/113] ALSA: add snd_pcm_is_playback/capture() macro User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 Date: Mon, 5 Aug 2024 00:33:38 +0000 X-ClientProxiedBy: TYBP286CA0011.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:ce::23) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OS3PR01MB7994:EE_ X-MS-Office365-Filtering-Correlation-Id: 8a65bff9-9710-4115-481f-08dcb4e63fb5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|376014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: yTWAtWKYahHOC5DRfHWjterJ3IL5dc1MIdrNBtWLvfkgPHxIzwcNy+ZJgsebwGcPWAs9+aLEWcGhhlDDLL85t5L0cR0LTIUFmYaHWudv43El6UfK4MTU5cDAHjvQgzjENFm48MULCv7XmqJb48TbtMEvdwexhddHE793xNj/hqXzx0qvdqPKhnamwFTAUDLeAYyYP3GNDffHFlDN8Jrt45zSBOhiYj6yMP3QzPl1J5mqUXZjDoRgS6MZBhRSYHpGakibRrWIQOOxq0uYf++KIfdHUU8lspzZQ1KTw83tkbpRdy3W5FWWHQ+R81OMJQYkgrnSdNi2bdEuP0neM+zvE2JhozRu1X6ttnWV6XKc6sRYHAH6bYthnjkOPOBL/jO6DTg81k50+K4u5O7LVC6ZnBfLcEcWDMRkc9qBrNRReO5t2wn7TzKX4nuPdBr6HBFvtd6771H3YIpgBZAy1eans+kQPgi1+8vrh+8/7q3d3a6/wXM9+ZdANMa1aywUAbRmNHHyP+nd5DIwkasWlDQgME8Kq95v3PokIU3SuvQr4hAjLULS5aN4mPUDgAvHkB3/X7Iu1VdE904aH3ZIf1qAh1IqeveJJ7awONoTT1MXiA99qflet8loe1CY8MONjQjojYSEYKGCKUFzNu5b4UwoogIzZ59QvaYF8dS9NQ18T6lkF95Wixrc7u1rNpBnA/MyJyAkbPN7QtzYj4bZJ49T55PnBu5Mz3bwFsisqYIHf1SAff4EEIVSobrMX2dxGhAC3VmQHYOkqWr2mVFJ6AEV3EfEzisjTAImwfbAhDCFx76IPXhrCWKozpuVLnfCHIgw5SKNinv6OgnWhOlg48Obm6HXUVpylVtx801czbZCj8sPlQ40lB8MEoYzuCxhCx4qACQFB8S4HCFd/pn4+EBSV8VeFNJDAtkJdemHXDuRYp33vMRyPN5J/YNzJymODQkjFGAXa1YHcqzo68qxElempJlKgRVqBjfjE8ollMjYFv9SKMS4TmOiagmXo8POzaP7DdquR2vNE0Enxt/+4HgthJ2VOMt7/1frrvvqxDTmnQg7Kbcx4NiQsmx2o2QEp27O3u13SQ0e6/Voh1zmQKrP8By0ad1TPEYKXompVS9F+8jNuTcemjn7GyZ/MMpKj0mt2T4/SHNiVpsoQIqeqGAVpjoCyDtAhm8bz3S/oGo/EXi1dTa2c1CB0Cv5eru2vTBdyLu4Pv/oZz83N5iltw1bjRWUqpHAzmF8b2HGqKEQf8bkmPHNTAn2iyD48V2BLY1p3NLIyV8kFzQ2cE5q83MY1rMjhHW1S+DJLUDzvX66EspBCex601EiX4wf1v6GWaTTprEFYpues/fvQ4ebcjCPtfpOQk24zbtS0fvpwOWBO2JOfpZelFRXPS77SYvWqgGud4v/kEAtewAm308jhq/e7g== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYCPR01MB10914.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(376014)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: BjfNadBTbTTvRl8hUDdkW5Xnx9oLdDlmKLXzHLGMiYkAhyaDPl9hohuQIg6FD/AMnLIJvwNQQ0CoWNCvLBa8OMAbSKoIvroVrnOhz3qvjVLxlKHRlfGNZqUkDK+5tqeIMM9xXKnb4UeXfXe4k4doa6f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Rnh+8zv6aVRWtHB+lcyimtpMmgIOhlwr+qPt3dPq8mMfM1kedB+XQUaveihhe8qZspYjRndfILmCnX5OAxH4LKDfEgy61dwqdwmuI+iA/o7t2XnmkkR7SI3khjRM18NFDhcJC+ZRiC0ljAJjLAWmCZHOyP44FresvLiGBdw7CGtKUddo01eLI0hFKUZ0DJsEMmamoWJhcIByZPm/6gtg+uKDE7sMm7UHovxgEDrX7My8JVfhp0ohVTHNelM8+l9hg85gTJfum4u/qCCd9ormhVbSKati/buqFJQpALcAuXhbyBRoWoxB3WafGCvS81GOWsIRqNy+7N/RtSI4gSZnKstlCEVYhYadEeK7hlfzLHvBMMMUMqptksdS7RbGKza7b8vg6sSfx0xbxB/djJ8W/bM= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8a65bff9-9710-4115-481f-08dcb4e63fb5 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Aug 2024 00:33:40.7292 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: yJuAUCPVXmUlQVG2k+UcgoHGSxzbdF0YuNmVuyEnXb0g81sFj0Mj9pKmKlWRW64HmXydYDdRdwvJdatXKDcvjH67zZakEN5DBPNPffCcvz+BUu59zsQgmXcy4jeJzWuq X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB7994 Hi ALSA-ML Cc Staging-ML, USB-ML Many drivers are using below code to know the Sound direction. if (direction == SNDRV_PCM_STREAM_PLAYBACK) This patch-set add snd_pcm_is_playback/capture() macro to handle it. Thank you for your help !! Best regards Acked-by: Mark Brown --- Kuninori Morimoto