From patchwork Tue Jul 30 02:05:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 816355 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 46E2BC3DA61 for ; Tue, 30 Jul 2024 02:05:50 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 92E04847; Tue, 30 Jul 2024 04:05:38 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 92E04847 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1722305148; bh=Uz0BLhD2GyMCwhQZtJ4aImlmOkDbIwa1uZX8ZrpvG6o=; h=From:Subject:To:Cc:In-Reply-To:References:Date:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=qLEoq7o7ZEpGndCmfJQPdzB7X2k9P2uEwsWCfsXQyoDri3Z7TyRkKMpTG9ivSlOCF pmLCahcj+c3G+kPigJ2mVtS6I2NdGUahpOsOT5HlJHTTiOrtjGUOupuvHk5BqPyCj3 Xs10vR5zimhRRCynep5pGF1EW1/peoloADDTLcd4= Received: by alsa1.perex.cz (Postfix, from userid 50401) id B52A0F805BF; Tue, 30 Jul 2024 04:05:14 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 81763F805E1; Tue, 30 Jul 2024 04:05:14 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id C8DA1F80579; Tue, 30 Jul 2024 04:05:09 +0200 (CEST) Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazlp170100001.outbound.protection.outlook.com [IPv6:2a01:111:f403:c406::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id EB31DF805BA for ; Tue, 30 Jul 2024 04:05:06 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz EB31DF805BA Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=renesas.com header.i=@renesas.com header.a=rsa-sha256 header.s=selector1 header.b=YZ7JOFXl ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=V6vW339l39k3T/SDAPEzNXmMDugaPN5SOEKcLt56MbNDZiSfHH2GO2QvHPOcLVjCwt6WUiDNzkqhj9QIFSoPF9IrUw8TAFW1gytZnH+g0acEecsHthRxsMbdusCb4tA2k28TiX++KeL3WLMzD4aFLIZfzJbZRMUO8F2ZW6wznww+mnqiaz6+mmGou/KjYakuw8PNiYjq1/OqhyL3+OOscYfpvehxm/nIHBMdLfmsnKgdLxUEV87d/LjBvzVwxwOxOmMY0LDRh4MfRxvHJmrLA82dfgYdDE9As57PyXb6VXC9BxfbqLzJRg/fjDHxBbewPmrx5aqUVHTpwSmgKcqmpQ== 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=BzdjireUc113LOsDnALOYOgQGRy78zRnNIDTrvhvIzQ=; b=Kc4SGhN0MDsvbqCV0nEfFGYN9UHc8o0z4La+nXftsGosZmjLZI1Q6yxn7A/IuQwQI++tggZvT2Bq4tDnXzZZtK3gmfl+WyiFozrI6ocVwO7dAf0bPUuMGtSbIzxtlFbVZgOmxFXfpifwF4gSUYiZ2TraYLpHcdySRMlw4nfsx8uQ4qL9jViMCkS8pDWP2g+aLZD1ty/Wxz/CUltUrG1UlosPHAeox1QDzV9qH3jSWrSmz24FsEHnj06ScJRCDu+znqrhv7zIgODOcvBvscdj/bBbMb2zJ5IAI6N5xT5W3Fanz0/NL3SbslNEpJHfMMi5YZQQhYPRZoPL5IBLixpzRw== 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=BzdjireUc113LOsDnALOYOgQGRy78zRnNIDTrvhvIzQ=; b=YZ7JOFXlay1p9shbmbanYFKwvYgYOUD61LR27ethu6AfbtpjxDTJSfmNNQrFlepwkZL3kcaxsSqTJYr/AsJTDS5hF1fhB3j6MCHHNlkn8Sbrf56jz1zgWg9pne5KpcpyT2vxzDMPniuaX9iak/uREquXxtvWwA/EfMR66+PXEOc= 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 OS3PR01MB9786.jpnprd01.prod.outlook.com (2603:1096:604:1ec::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.27; Tue, 30 Jul 2024 02:05:02 +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.7807.026; Tue, 30 Jul 2024 02:05:01 +0000 Message-ID: <87v80nk52q.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 01/12] ALSA: pci: pcxhr: use snd_pcm_direction_name() User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Mark Brown , Takashi Iwai Cc: Linux-ALSA In-Reply-To: <87wml3k539.wl-kuninori.morimoto.gx@renesas.com> References: <87wml3k539.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 30 Jul 2024 02:05:01 +0000 X-ClientProxiedBy: TYCP286CA0351.JPNP286.PROD.OUTLOOK.COM (2603:1096:405:7c::20) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OS3PR01MB9786:EE_ X-MS-Office365-Filtering-Correlation-Id: 60213ea7-34ed-41f6-bd91-08dcb03c0595 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: VmEKtiz86idefbiANLg1LviCmf1KQLnllVuEteepTBXVIMbL+cp+zWGbEe4hS9q8rn9JUhVdXqRSqjjNoD4S+/saB2Q4dILkX5e6hpqtkgobkEFPKTuxsL+cYXzbZLV3qQRIzCUo4B8a+vhozc2v3+Y5WClmQ4y77tKHTRma2/O3otkKPT9DM29ja3p2lz8bDXlMbl7p3JMmuliCL1L0FqOiJr8V2pnLoO3BK1bfN2x6sm2RT7R5YvTtMwjKbHxaz5rOqWzzz74/QrUzIuIFBa5QZfi1BzoxOvRG858sac9eUhMfCDVsFdPK7UfKtqSAahm8Qh+IYyInDwUg8Bat29QPGvRcGRw0D0yOdYmSpHpv559CNjXhL52tA1XLSiWQ5NC+2FxMN25ufz5v6KulCitvn2wDCCHOoz6nsFKuWCutxGtFYF0WtOpRgFqUY1FDB5HLypOynYwN1MGR2xsS0PP3a615A5BWj4C3TO6/DK8E6aITgJTlaWpWeBJmDz6QsE1ZRkanHtb422rb6bJ15Md01h1xoFOw4lTzfgMriKvbDM5rTmxNzYrDqiGZuSkt97ewcu+DIv7BAMJWVcy47HvGCuvVk543sMeEnS54AGhSMkLKeniUGMLselu8fC/hTo703L7f0f9Fhn04wnSqIAW2NB6YOv39bZ9eMEr8uPz5KjLaL2WYwD+q0MRdhBSfg3nwIsIClNVnNH+bAax2WRdz9rj723gczWeE5BJySq+6z9YSqcUAjz21CBKB3dLrjs2RAFxvTDatg2bGo6EZtK/1A3anebX81j31fA0u9+Tz7y/hcxPTVOCOGsM74uxWSTo4LPZ1C12tIrAbPZFIm2iSEbr0VYNme7ZOLKTbCBe06IdANC1qP0SQRzU0wChn6xQGxABcGkU58AmpLBiiSMlOFAZ2yjBRBmRB9VE+wMHeRZk65BcGnxHgEU8mAE46ZDhFrxum+PVPS4DQJT/Fl2gOwTQdl9Pm2oiCvXLc0+4N/AdSGg0PInrmyP87MfhCsWCEmPjp7QF5xCanQSreIRYBBb20T6jprda6z+ok2PWI8g/laasIhOyh79wiyGvhKvYZe6QfSTVMFN3jR2ougDcSkf9ct1MEQjb1jflw5qLRNExMCRh3R67LeruHNa5VehERcnrZMTLJKClYMKtGZiEKBpgpcBR9fOkUND0/qcG2t8upZXEwodbK7C+wkQffINjJHNaxuvqlX8mWTcV8XNLprCsAw8v3yTW2OokY7R4lexQHfcrB+0/24jRKBM3DB1zN2l4DTh4CST9r3p9q2eDhvxmWMIyvsvASTn4pSP2Ag6Nw/DdrPsHzw0mOIDphJvHCGrL4VtGF1/USonqu6Ehw4eCjf83bo2NT/jjT5eAJkHVIPhF3/q845VJjY5qbxruX2hqVgRHH0ghMCLOGYg== 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: rxXCVvxdlmNvR/OnoKRo5HMvd6fasa3qWDe7OE6FJCirGUyopt5/OjPO1AaqjE6JoU+EljuJRt/Uqy/t2WA7gR2nC0a8iwvH4MZCh1sPMZb7MsG0Mb8ZxhlolG8xtn/AuR+bceyOzImqozoXU49n9ugWwle0eu+h6MWeY6smPDfg4KSdy3R6ZU2at455pM90mOgdnlwliLSmYT7l7uRs/nK81MjpWhhuUVuYX38fS/vB6mxlg5/poV4zPD8i9/KufKJK+2/vMrI1MUaBa1d+KrorLetd9QuM3O5s8gxMmHR3KKKFhgvftxTVX3Mef+4CzfNysGDqEhxxHOhMeYU2p0+6ExOIrr4IKe2kIHSSA01s76GHIL1nmwL9gUc7xjpCe9ffkJuIbw7bHFKK1uSo/J+Ppey7+S2GCcuKB22xeHjw6v/u69D31hlUzqKV4cvFp1NYaucgQg31iXA10VmzUy+fC5F3GdnhcLCDDdcJzGS6PV00RJUyTZvFNu6yMa/o53zd4s1Efgt+8X9IhckG63f36TZSanF9TBDlMLRwS8iBhMTRlcl0J2XTmmMsyldm77N0zk746PUpr/oSL2BJLDrqZy5cjquug3T5+yYRXGLF4lLkvuI0BnZ7GwMKN3C5Arh49qJKnYj050hsW2eec0lBxO8DeO/Vro72mBn+HTJAvZ8hhU63RRv3mKWFPhBtum95LWN2kxgxJPehJBKBAZNcF2wzYgLiDBxdM7qjgtzCFLeuR7UoCzN7UBzQJSfW11jSClw+u3U4mpFy6XJUck/tprHMVWfkjVBKq0Rxq/SpexfOwsjTyAVZiv07Oqbaw9x8eSa943Iw4JmqZDJbfVY9FJXFPFcq3FpRiBhTte7JHKO8tVGdupvnqsuIHZvZ8Vsl0OK7kDK6/Xk1HaGuJJIq+dgjBBv9JHBFGLDpsfu9X+XYiC5Ircj7q3jGlamvHcAteMRJOPJalbcCE4i6eaCKv2+7vUzJO935uKDVCIGucqE6t8IY5p1Ep05GgHbGNo3iZW2xUBcI8xHpjRxDcF7zNhwlSWLNdA8TqUhSVoP9ar/rq6UtDCJOFcT/szGJSe8b/A6ITO2Ue8jPoodBEgVNmBt8LVAqz50xWKIhZ99V1VmKHm2DA5sZTn/eYwvNPNgYldZDawhmOHtB96Xwb5/9twFMqSU1i+rYtrVicmDJq9eYTggdwUmQLQsMNjeePPOXoVOCRAsPhzYRheqhYdMaZ8wqjnOrTu0Kr8iBe+byfriIXHWvSZrxhhPtAxhi7TO/WBHDbDG4mJhweKCAXIONNpLt9SlMsta9F7xggqq8ppWDp3vKR5FxlIqLXu4GOELKwZk7aKkLNbbvU8jZC2W1JnPf+2ye/ydl2iBdkssmd+90+Si/RHIaqBslf8IhV37fvrgYRHVtYWSaU47+enG9q1icA35Jg+Na7c/NST+eqzJh9ZyfMPlmnhn5Ksxk2SrCOEexjVaN+h8qzU4GqQsotlDpOY6k6KHA2vldBre5lAuhFFunCcl2dnCrfFL5d5obb71pCdZZnbgxCHLe0uJE8phBkyAOQkpYm4B/tOHtQu6qH9PXS8JVZQPIXPXHY16qrLBQ8MxYcbh+KpYuveX9iMNCIhVPmOKNpMI0NAo= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 60213ea7-34ed-41f6-bd91-08dcb03c0595 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2024 02:05:01.8952 (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: g7iNxP/db7hY6XNTHR1pTHRfTSSdvZUpOTxI5XuJ3RGicAoDrEqqTRDATxRb9RZhNggBj8jfA0Nn1P2a5dUa3UuJj35WiBQsTV0dPZMujC5aHgT7eh8sU0/UdYm9GCiP X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB9786 Message-ID-Hash: DGGX2WLIJVILW6TWGMVOYUEOE7XE5BIF X-Message-ID-Hash: DGGX2WLIJVILW6TWGMVOYUEOE7XE5BIF X-MailFrom: kuninori.morimoto.gx@renesas.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: We already have snd_pcm_direction_name(). Let's use it. Signed-off-by: Kuninori Morimoto --- sound/pci/pcxhr/pcxhr_mix22.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pci/pcxhr/pcxhr_mix22.c b/sound/pci/pcxhr/pcxhr_mix22.c index f340458fd2e11..e1435afc49074 100644 --- a/sound/pci/pcxhr/pcxhr_mix22.c +++ b/sound/pci/pcxhr/pcxhr_mix22.c @@ -535,7 +535,7 @@ int hr222_update_analog_audio_level(struct snd_pcxhr *chip, { dev_dbg(chip->card->dev, "hr222_update_analog_audio_level(%s chan=%d)\n", - is_capture ? "capture" : "playback", channel); + snd_pcm_direction_name(is_capture), channel); if (is_capture) { int level_l, level_r, level_mic; /* we have to update all levels */ From patchwork Tue Jul 30 02:05:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 815348 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 D6431C3DA61 for ; Tue, 30 Jul 2024 02:06:05 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 84C6EE76; Tue, 30 Jul 2024 04:05:53 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 84C6EE76 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1722305163; bh=zroIi9WDnQrQXsVVKWZJ7kB2cglSJ+rjmw35VjGMTXM=; h=From:Subject:To:Cc:In-Reply-To:References:Date:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=WlLs+HzugfvyH33WdBpwuBORFiItAeaZ6BZRjOR11CqvGyG6GtJoaRubayAyCRSAE T5FxNjjLMG0213Y0mQ0/maxSG0ZGCJwhqqFiMO/tZU/zfXVXQUSzgo8OOy1Zr1svZL D1CTFdUXlOpRMNdyBRxS/f34U29wfybX6dbX+Nzc= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 2937DF805E0; Tue, 30 Jul 2024 04:05:20 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 1767EF805F6; Tue, 30 Jul 2024 04:05:20 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 030E9F805E4; Tue, 30 Jul 2024 04:05:15 +0200 (CEST) Received: from TYVP286CU001.outbound.protection.outlook.com (mail-japaneastazlp170110002.outbound.protection.outlook.com [IPv6:2a01:111:f403:c405::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id C46E7F805BE for ; Tue, 30 Jul 2024 04:05:12 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz C46E7F805BE Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=renesas.com header.i=@renesas.com header.a=rsa-sha256 header.s=selector1 header.b=oC95Ha5c ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=xOIA8b5kPON5Ld5IiviTKJNXEIglwKpEZhlICy66pWKEwKiJfFIt++oaV8L+plx5Q3EAcQPpZQ3F+hk5uw/rdcSAZbsnDH+iameva3Hufc/hzsV9mX2+QSatEisw03C8g0KN+I1TwJbJJHJldb8YERy+GoKLLTR5zdcasgQGwRyT9nmCjfZUI3OKqMbjNz3nFAnhWalnVnn7YRgoqsNPWSZuEE8Qb13r6ELAq6zwJ96ifZx4Hy8Dcu5WqrMI66yCcJwYxYQ8RKKn8wG7VF9sS7d/GHElqqGJZC5MBDf2yHXoaoTuhhM7DHXgdNNwKyM1gUMimOt54fyh8MmxFxG20A== 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=KglfVaPo2GTTco7fsgIZuvSlK4I1ecGiOqskGOefaiQ=; b=jCqk3/TqQd5L9xZqTex+MnbV9YsxG3c0jOHvB3/ottP7QV12P/Q16kG++kALcwXkw+WwcMq2TLtKVRg6Qp5E8Ygdq6WN4LLEtFMnxD8R7SW/qfnHrzmAXYjE10Kq8a95rRyqyhQ3fZJ6parPUNt1ZfyaIazK+ztlgw2z9SKpdQtRCTHVko4+/2qpCEjqOMSX9eGRIQtckvQUfNBRWHBNNx/DILBJLkXptI4d5GYmoxU8/ZjDP+QzBsT1nkQZI1DoktvdXMG0ZL8frt2zl97K6oSx6RI8TjbiMxnQFKrzJtfGn10erHmIX5NHClnEt4C/qG2tsUh3CR+smecDo2HXRA== 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=KglfVaPo2GTTco7fsgIZuvSlK4I1ecGiOqskGOefaiQ=; b=oC95Ha5c94u5iZOJzke1QrvxckG5WHNmo021M7zW952BdqvFFvAkghR1ses/XLucVEUaD2HnRZAXDv7TVLBQTXY2xWwZIJ/CBN10BHZ8UWy7V8iwP+pcO9IjkfEhaOFhbLyTHvHQxwIirMu2Kx661F+TlQuHgT6N/cg1vg1q3ZY= 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 OS3PR01MB9786.jpnprd01.prod.outlook.com (2603:1096:604:1ec::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.27; Tue, 30 Jul 2024 02:05:07 +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.7807.026; Tue, 30 Jul 2024 02:05:07 +0000 Message-ID: <87ttg7k52k.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 02/12] ALSA: pci: rme9652: use snd_pcm_direction_name() User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Mark Brown , Takashi Iwai Cc: Linux-ALSA In-Reply-To: <87wml3k539.wl-kuninori.morimoto.gx@renesas.com> References: <87wml3k539.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 30 Jul 2024 02:05:07 +0000 X-ClientProxiedBy: TYCP286CA0073.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:31a::18) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OS3PR01MB9786:EE_ X-MS-Office365-Filtering-Correlation-Id: 60d437ac-431f-45a5-3af4-08dcb03c08fc 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: ZxbacbGv8zSt42tCABoyWnUwPi9vrKj7e6dHpaHipRYcHxwK2Y+0YUVqyqshaHO6PE6C3oPlvH4RUjFXRazlFL4klFoLg0fDeOLObl8ZiXb5spaujc6gT6ap2pPJatf63/s5vOL1FLJF+ndRKr+1MQMBFveCbxgU/cZT/axuVulHr2eAqRsUGYOTvb8w3t+HumUkbDXGJDP49/CORkWz+lOEXcwz3jbv/qb7LXxwSGnS1WnXQUPRzaeOPJMPnJIxY2T73bPep8x+JakDlZimRa6i+V6Qz3XItSpI3GX7hFmfPxJ5EzcseuVK2n7Pa1SGVwKKuf96bbkqcHCHBZyEr8pnusKD9QErRzAbIa9rvT0IOQQWOHKC00ooGcNX2dHlbpFo8f/7gHQVAp9ejPtxDeKHH2iAsloXKk16blW2oJ8m/FoXvTxXZdeEp/lTUqIHh713B4eXQB4laViiWpLVzZiu2zkAveclwLUNDsb5sNljywB6QPo6XGN5fhgrt7uETTEjriAeRPdVJq8epw6AKaZ+IpDIlDCKalpKQUDLvhjdHNW2HKB9ltv9mXMdSCBzVwoJvqbV6AqtWi05I35AuHeOkL/bmXHQV++289u4k1jNud7zM/3b8aZJhWDufs7vM5glP6521qveW7/XJ+VNnByk4a9VXYov34186OWDJHChcOJOCkuC8CW1oxHxlcVn0VxudJzMvFvfECmvse+LkRM/xTSMmQ1qVIij19Rwzdq0L+HB7UqHJltePj0KRZBScFmzBnbuRte2DJsHd/NFa6cgWqs35FR+moLht7s3zsZKEqds5RrFlAaWjAWj7UFv4hGJmvlYgkI+KWkoyBjpqp8lw/xU8/zQTAkznLa1fzN+goC52BrTyvTFIU7kmsx7kjHkOmAfgMwk2MhFKMuYRRmoDSNJ1QqWqr3bRc9yO08ymI65Gd2V0RmwAmmHBL2RPLbxqpIv/6vGoiXoQQorEsMpMtTlCYiItpS9fxW/Spb5wnKVO6ITHK9z4f7hzmAmrREbsVNJKsz1VXUuv/u519VnoL0U9IC0pa5kSbkN1p5RlGFEWJmiq18bHQVrRAqFLBEhmhflsmz1SItZfNKpIjp+B4jJOS/zUppLPK8pRoMSP5m5wODW92sDDI5WEU6yOqDV+QyvJmMuaw0wbxBsegi0cbrNpqtQ8sUZG+PYjNC/hcdEwiUwYO+6lzaeCmYIxCln+RxawwgkDpUiLeyC4gmZkn+PfMxymlNz2+0jMzflUDVTcl7y7GKpAlWDhHWhzP5pxUP9sqPmHVBQmNR7w8q9PD5u6hgGX5ONd9Kl1AJd6NLE0NmUMbP7Jel+j+CbHJA77IsvUWFBFNtFHtlWZUltqbdSP+97a5ZrgdFrBxhpCUe48q6lccnn8dMjmIYBR3HGZ5/s/TXMRpAO73XDgQ== 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: Zh3Lv0drLNkvlEq07pSATe51EUgVPNm+ftzap2uK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BvM/8OpxXkHt/cahub6U9Qi3Ec/6PrwZHciQiLCZLfknbynrNu0WyDV5+cxsDtSUU2yPmua7olbC4Uw/a+yfG01eChKrADiTIjdQzn+a8Xvc8E05JZHVBU7UiXQPWgIoK0+uwippwygNEQb8Ll4TKAWd3ynZ0dTQxVISR9E5rxk5GpRwjRu4V2Pc3GvkjuKDX9XWMcXmvRIRFd490LyXnCmkhHK4LE7+WL8RjpWN7aGqNidl6I1B6zWUJxiNp0W09jn+uPRIa6cKLIOMbgWYPoay8Am2pMBJjHyidynTou1beW9e56QdmQa4Tmn0qWRzLY1BxHBVgFkMvdBwzW2ezuQ5+t9plXUJQDPfYbSMhrB5uP+NDX9SeakTdIh42tjIKYXga8tJJYZYDp54NAXdhD0VbFkfbKhddwhP7BYTBgyJx0mgexSwOV9LkF36hLqjT2eamo19aahuL/fcvyEWPQv3xAe/GYxgil9PRaIfpMyJUN49NhLk6N6nz0qlu24rRFxEEleTLamK5StMvs= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 60d437ac-431f-45a5-3af4-08dcb03c08fc X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2024 02:05:07.6152 (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: sY5Pa/oDF3fvaeOb/816ZOeEWJMQyORXK+qpKaCYlOkQPlKR1yYQOYdpgCMlnG9tg3ygGLW6ihm+bgdwZDAm7T8K7I1oxaHWF7YoToY6s+J1bP4zpvCBd/G1Gw/Pn4ot X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB9786 Message-ID-Hash: B54J5ZRKBDUB7575X6KEF4KNYTKLYW5I X-Message-ID-Hash: B54J5ZRKBDUB7575X6KEF4KNYTKLYW5I X-MailFrom: kuninori.morimoto.gx@renesas.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: We already have snd_pcm_direction_name(). Let's use it. Signed-off-by: Kuninori Morimoto --- sound/pci/rme9652/hdspm.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sound/pci/rme9652/hdspm.c b/sound/pci/rme9652/hdspm.c index 267c7848974ae..56d335f0e1960 100644 --- a/sound/pci/rme9652/hdspm.c +++ b/sound/pci/rme9652/hdspm.c @@ -5610,15 +5610,13 @@ static int snd_hdspm_hw_params(struct snd_pcm_substream *substream, /* dev_dbg(hdspm->card->dev, "Allocated sample buffer for %s at 0x%08X\n", - substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? - "playback" : "capture", + snd_pcm_direction_name(substream->stream), snd_pcm_sgbuf_get_addr(substream, 0)); */ /* dev_dbg(hdspm->card->dev, "set_hwparams: %s %d Hz, %d channels, bs = %d\n", - substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? - "playback" : "capture", + snd_pcm_direction_name(substream->stream), params_rate(params), params_channels(params), params_buffer_size(params)); */ From patchwork Tue Jul 30 02:05:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 816354 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 67FDFC3DA4A for ; Tue, 30 Jul 2024 02:06:28 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id AFDF3E7F; Tue, 30 Jul 2024 04:06:16 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz AFDF3E7F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1722305186; bh=ItlrmaVSF8h+bK3t8+bNA5L9DzMHT07P07mxL0DJ/Zg=; h=From:Subject:To:Cc:In-Reply-To:References:Date:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=ZEjc0YeXXMyP1MmVgeLwXFHr87nieTEEJm+mAP0z7dTndvT46JxrasGYgA2hXGGG8 JE7+3Z4pPGUTLQ0+0z+hl80ONDkK8ySuLCLbYlMOZZusZ54LlkeQZPRXio/ha7rmow xOrniRiju1EUBV+ArUONnjs0DeiSFFViPcdhpvt0= Received: by alsa1.perex.cz (Postfix, from userid 50401) id BE29CF8060C; Tue, 30 Jul 2024 04:05:24 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 653EDF80600; Tue, 30 Jul 2024 04:05:24 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id B5226F805F5; Tue, 30 Jul 2024 04:05:20 +0200 (CEST) Received: from TYVP286CU001.outbound.protection.outlook.com (mail-japaneastazlp170110002.outbound.protection.outlook.com [IPv6:2a01:111:f403:c405::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id A1867F805E0 for ; Tue, 30 Jul 2024 04:05:15 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz A1867F805E0 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=renesas.com header.i=@renesas.com header.a=rsa-sha256 header.s=selector1 header.b=ZrJkmGLc ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=TgcLUefrIOSjKCXEGqTFoc2gkOBTy5IwiCin0Hl74igE01ND98C+jcmHVVKYWmC7JIepgDyqUeVvLemle8mZeuLvr3arwL9x30hS2vllWwgUS0SEQjmGwk7gaSECJkXj7azUm9Dv/MlRpD2qL72DUn9491j8TvkBjIMw15X1xVt1sT85gYKVzHs7uZ1H3Xsb7H6aYZUYuRVO4/SZ3lfWK74iwY+mDNZyGHPpLoy9lBHAMzQQukNwVhR/rtwSeS18akhwhuG7ROLW+usLsYqJrMiz/hpg0gZyh/fNZGh09vd5oOiS9PrU/PUotGQ2VOp2Ilj/vYdfAYxa3mLGVku60Q== 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=H6/2eaG+aAmbkmyPQdki408I/QkxeMaQstss7B6Nwkk=; b=OcIYT9COaisyfLb8LC0uPuKv81wfWylPv9sgovF3kCvrquCl70NHrt2LghzvrsRHdaoNaXx6tNpOp3N2WWOIXwRmLGB3MbIa9r4v95/nL2axAbOIekFx2DvCK1T/g1XvVcgzc2RtMeUqPyW8BBlP1vwzXESarf0NHfixbV0wZ1m102J7IrUQr3861R1f21kcVe7Pug8y7GM+SyoE0Dle1gvdPFG8mwFTPjakHQ0ZODGlt5tcu7wHR33qC0kAGQ0CukryaalrNQ8Zzk8Xx4eMmYx0iibhicr4DEdk3cy3KdD/2qYMwFYyjQ8jZ3qeCYoKp3PJpA4hqKpMd/g6jotdcw== 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=H6/2eaG+aAmbkmyPQdki408I/QkxeMaQstss7B6Nwkk=; b=ZrJkmGLc6e12FmgX96IQJL+6n/fAV/quesWUqBloSwFNQ+vA/H+oXnZq/gNapDhc/jYNWH5bbOE45glz0XX3hAQU3vqbKlZT+VO3MuGWPGVy6cGTNmAppzjpE2n+COna4eQEM4oLyal3DpfdUXsCt6HRRI91mEniIwEocypu+yE= 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 OS3PR01MB9786.jpnprd01.prod.outlook.com (2603:1096:604:1ec::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.27; Tue, 30 Jul 2024 02:05:13 +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.7807.026; Tue, 30 Jul 2024 02:05:13 +0000 Message-ID: <87sevrk52f.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 03/12] ALSA: trace: use snd_pcm_direction_name() User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Mark Brown , Takashi Iwai Cc: Linux-ALSA In-Reply-To: <87wml3k539.wl-kuninori.morimoto.gx@renesas.com> References: <87wml3k539.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 30 Jul 2024 02:05:12 +0000 X-ClientProxiedBy: TYAPR01CA0086.jpnprd01.prod.outlook.com (2603:1096:404:2c::26) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OS3PR01MB9786:EE_ X-MS-Office365-Filtering-Correlation-Id: 7aa7d64d-4f09-47d1-0dcf-08dcb03c0bef 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: WPTONLgQj27XtvuCMI9xUvtp4BBitcELhImnf5K5SjY3hXgQUWkFenbLQ8bGKmHcOWo0y0tGgwCh/nl4gDaVY/iLaUFJkuaDRHKRP/yQ+6NlSAF/0vy9HnIaJJgPrpXXiixG51+lc1m5e7REGzwvZ74ki/ENMq++5PwiXX17Q8nOd0fC+sQdUdOXOEfJlvKou2+gO6J+5CYS8/nURBWDqFnuy3dU+m1NbUlt59oK0Ej6QxlIUhK5zSTZjwjYVk6L+5ZEio1VgurYGRgygSzKpbbDY+ufkrO7Yn6V0BYm5ygBIgzbpQ33CvIY4g8sdCUEyZXhbwmuCg2ZnX+YOOXRUy3Fw5zshtajyXvFOri6pyDORvSKZT53tSYNtSyNboONBRFokhwRTOQXxIccz5k5+sqD5iC9a5vAcr3LpmqH4duPm+3mP9ECP6Et2/Y5isqSAE4YGjBOGZynagOoWs2FHWI5WW3k1wsvPEqy/4jMief85MiDgXoXg2bffPvX8Oe65MVZ6pAdcaKiUQ0tBt3zdG5OR5hh2A0PYPw94CK0aWECctRLp9boSWBbRv1kfNVBqSF9Qo7BzyQjh8gE4+okopyQdFtXmdCOMmKIh9qUonmPFbFwiM0sBAAk4JD33j4ySYEx/MngSqAYMuf5uNzHiABECvCtM3NNSut9f1MvWk7H2qBblaCorDbxIHbmOqkQlauGqvmtOmcrHTOo97nJrCPwVWh/RzjI0GHU5juqkq3Ca5KIUZqhICkJLWZuMoe8xufszKHTR4RgJWNUMRmqoUa7DJloGL78V1yAjHwZUo6SpH70ICAqO1l3kYtc25hc0vZnTwjlFrQL3Mqc1Mr8wV2mOtH60opVooW965MyeKs/UXfEqfIB+QsR+z2co4HbwwSkS3+43KVY/vWjBe+n/wDgBxpGnCYon5LLEm8F7siAZqw5Ghj1imu2r1Oz5ew0vSxDDJmpxCPURBHTCY3oHVbp1f/HY36oXZ54S6VtLFzfV6/1f53fQ7i6WbZlY7/WKcWOkFSryepW7Z4pd71jK2xKQ3AkMvyabemaWdx3iD4GZTFWk7pXFRMFGUHV1K4lVuCq0fqS1jMeJu9DShJoBpIiBZn1Qllr8nWeXRx7A+h8zl78EDxwW8PzGXT4n5G3FTQFKuTHXsqaluhYtEtGe8WQck5kW/dtmsLry7oN56k0wKTzpJZust18Mw8LmVc5Lw067k+bTGj8fAbL9wR88lvyal4vCV6lE47/cOAzvoCeJfN9c3E1IFRkPNtdqNuF48Klh/lPb/R94S7ejkkqWaLJJSZL8NB123IrewW2CrD0L9UCf9Ruz8251pTAI88gsIh9qpDXnkJj9+525M311EaB3/KvztCDtDRt/UArcnGy32rtu7jn5JbLcgEpcnVwyhPR8K5kFW0MXrGzSzad1w== 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: LDP398mZlEsFSCvF7tjpYZKj1xhzje3YqKxHRG6M4DtNog2Sjj1GBPxkGM01AfIgc9G90xDQbbaq3CqKIO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AQIaDWcUrN4zEe7rDgf9dr2XyK01m0enTzMn+GRksnv26SKTI6sUFCkWLlN39cwdSnJl16ITqSOwu5OW7XH7VZ3yopYziwktHlP96S12kDgmpCmbM/4+UDBi6/lJT8dMLKaYUHBMDjiZd5/ve6pGAkAQomRoWZug0o0+lNGuge7Kh+3vyYYTEcS5qI8W8WL/kUY4cHQjYUBbaGyAD/2DHbVNvrLd9m9fpGLQLJ25VyQ/sUl3PwBiFXnEwFj5C1SX37hdX6/qb6m+jyKPn+9xejgI3Q8/flUQPghwlhN59E4C/xQLt0f0VGYan43Iaoqt5YSeaBU0hBYEScpjMus1rUFkMaB/IF84+VD03wtFpmrqa2Mc+H9qVbmmj5iTVooXTQnsQy23lK++eOOSeRRGHPitY/3wgdoHCPn64bsNB88YNTnZLrctWrvS6P7lse2GWZzxSh+3AX+StVqB/LEuP3U6w2EgGkDAfl7fDSImw= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7aa7d64d-4f09-47d1-0dcf-08dcb03c0bef X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2024 02:05:12.8320 (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: fo5HPoyx7OWvx6JpqCTyFQHeHmaMAzItP05FKcF7VBw7Xq4L7S3Wilw7LN0FIkfTEdzlOIpEpc6Hg6JOvP5mn/nLJUkpNNMz/h0Ai1l+z30ahLfglT6bSkE/3QXEuB72 X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB9786 Message-ID-Hash: QXATFXHGQLK4J2JKBAPZH7KGRVFODJYD X-Message-ID-Hash: QXATFXHGQLK4J2JKBAPZH7KGRVFODJYD X-MailFrom: kuninori.morimoto.gx@renesas.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: We already have snd_pcm_direction_name(). Let's use it. Signed-off-by: Kuninori Morimoto --- include/trace/events/asoc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/trace/events/asoc.h b/include/trace/events/asoc.h index 202fc3680c366..6696dbcc2b96d 100644 --- a/include/trace/events/asoc.h +++ b/include/trace/events/asoc.h @@ -8,6 +8,7 @@ #include #include #include +#include #define DAPM_DIRECT "(direct)" #define DAPM_ARROW(dir) (((dir) == SND_SOC_DAPM_DIR_OUT) ? "->" : "<-") @@ -212,7 +213,7 @@ TRACE_EVENT(snd_soc_dapm_connected, ), TP_printk("%s: found %d paths", - __entry->stream ? "capture" : "playback", __entry->paths) + snd_pcm_direction_name(__entry->stream), __entry->paths) ); TRACE_EVENT(snd_soc_jack_irq, From patchwork Tue Jul 30 02:05:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 815347 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 A2B0AC3DA4A for ; Tue, 30 Jul 2024 02:06:43 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id DC368828; Tue, 30 Jul 2024 04:06:31 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz DC368828 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1722305201; bh=6do6S1o1rR/JVvhc50i1ZnGnhSntXzfeLjtgOocuVwY=; h=From:Subject:To:Cc:In-Reply-To:References:Date:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=Ag4nJBPWPC7rqCpkOK3GeT35NVGBxo/xjPl4C28sCd1mDu36nr1zmST57UXHAE0kF MOjiUdSyxxJ2eK13t/F6VfIPGUGXL3HjpVe7kjo39Dssmqm7OcqiG7eJ+VZjAFo8NY SpvMLa1uhv8jlGTXMBXOOQr9JbiAU2M35ryau278= Received: by alsa1.perex.cz (Postfix, from userid 50401) id B9601F80633; Tue, 30 Jul 2024 04:05:35 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 2D211F80637; Tue, 30 Jul 2024 04:05:35 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id EFC14F8058C; Tue, 30 Jul 2024 04:05:31 +0200 (CEST) Received: from TYVP286CU001.outbound.protection.outlook.com (mail-japaneastazlp170110002.outbound.protection.outlook.com [IPv6:2a01:111:f403:c405::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 0E8A7F8061C for ; Tue, 30 Jul 2024 04:05:29 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 0E8A7F8061C Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=renesas.com header.i=@renesas.com header.a=rsa-sha256 header.s=selector1 header.b=BubbG0DU ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=L0p28a3MOA80HC8mvrYO5RyS0Sk/K8t4ICr9PPYpSfMQkCW4IK6x/NiML08FuULxaS6JEDfdHtnSVJ4Ba3IrhSEGgtB5gVFYFkw7Fgr4nmBTP9X93BiyVFEn1m9x/nbKQsyjG4h/R6bNAWjTXSuo8dZ7/QRaUa0RWOg/j6cYKO+479Ob1hkMr2qb6M6NWDlGxOeUh1mzhTMmZ6qP3gjnCbm8CCnNLd3WhXcNHEo/PthnYopXbVVTnEU+8m5rfmNFakb5MLUrZT4xi+tvPV+T5g+Y9aJOGCyILCNnNL3hxYgIBnvp6h+XbI3QJol/Smcmrt5cya04JBdXrH8HMVU0dg== 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=nT/Imv8of4dqCWv5bsyovsBptZBcsLPOYj8SHpWS1cE=; b=MKz1UQN5JG/oaf+05LQAb/3k8O6sZgfLa9DQt2AEswWv8KXaxPKk48rqoxEyFERJTNtEyWhF/PH6LyuEsqvv4dTS20FBncd9gqZ2EAIWwinXWz3JNaitWFfScxx1uSiDDgW+P2xfJo4Pakkux7HrXKjzMjpgrCeWdrYG3tsXhhpRkqrHWu3Wdbv2oj9yT96y8SWYgC/g4n+8kLoBVXiK3U1GfvURhZlkM572Ab+hSimoqvBwGoAPjVFIJ+S04y+zUgDSTIcRTSl3BdcvjYApJRZJJH9ovgWfT8RpuXuaz0tIxuOT6WTYBjO0Txkrn1wNepwmMQY4A/Djf+/aXEyd4Q== 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=nT/Imv8of4dqCWv5bsyovsBptZBcsLPOYj8SHpWS1cE=; b=BubbG0DU7vrTOaxwwUUim7+HdajW3mffuxEXMV3f4pJ7bUbgFNCDIgl/BTor0uNrFf1sqEb8xMJ5tkRe74WEfcv7XcDaA9XjRkMQRa2VkVL9joikbmwrBFOBsq6HVJ8W72IK7GgZmWwRzH4Apcr9RBBoIWrbbldSdOtHU1qKOyQ= 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 TYAPR01MB6427.jpnprd01.prod.outlook.com (2603:1096:400:a1::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.28; Tue, 30 Jul 2024 02:05:25 +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.7807.026; Tue, 30 Jul 2024 02:05:24 +0000 Message-ID: <87r0bbk528.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 04/12] ALSA: aloop: use snd_pcm_direction_name() User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Mark Brown , Takashi Iwai Cc: Linux-ALSA In-Reply-To: <87wml3k539.wl-kuninori.morimoto.gx@renesas.com> References: <87wml3k539.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 30 Jul 2024 02:05:20 +0000 X-ClientProxiedBy: TYAPR01CA0166.jpnprd01.prod.outlook.com (2603:1096:404:7e::34) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYAPR01MB6427:EE_ X-MS-Office365-Filtering-Correlation-Id: bd9f9356-c915-441c-c3fe-08dcb03c10d8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|52116014|376014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: xzgR8V/k/3NgmKYEAQzrrHFL9gUKrlSuliHsl6D54NmlatsEOkCpvLfZ0tkw6Ifro6xPxLzGft8gH3r0rMIpanl/02l1e0tpFvT/1hQaJMJ93fUqtKDzwhGSzhBpXF0bIFDGY/7z5Xqc2VTb038Ldnz2jyFgEFXX4BwCVi3mMG1wP6bvBqWGwP085DfO+GhpQNVOcdrpQOnEpRwij2116CZZI/FKwjahkl43XTC/6iJ8LDZLXKfqo760aR5Dyr3+GaPvtof8sdIuM/Z8CO5EwGUi7oNj1AENwhehStvXBCNsSEXyaYQGvcVRFk4seHSNdy7d2rsenhxdG9HGnWWwfEDqW4yRdehpX3EGewk6RMFOw7V2UXSeRrT9lXfviRcG+4PNY6n4+ygTyBkh+1CBZiNd49fYQqCF9C/CetUzjYigCbXOSK38Z6M5azUo9De7BM9nnPIOtJcDhkx/Jn+cWWfGAoNu05aViZga1MPAFvbSxsObIg88yvm4/Np090ynTFlTmiu/IpHbX5KgKS7J3FdyUH3V+ZpFs9QpQz0p9T2Y5Sb8j04DIuYsACWkDR9FP5PilumPO3LOVtrr/3yPg53bPpwjVh2AJyyOgJTApMc5r+zCEFkt1cDh79wFsHZ6b40o1Ag4wztO/4MlqHwhDehDgFIjO/aFiWA3rQdJFOxBNUS/wD1EilIX7CWwvpjlC4J37AHOJlOCbvCBqzDWMylw5GH6CKflyMRykzcDBMSsMkZdutDt52AfC1N3V6uwp/5bsyBm52zmyxShp+Ve/wIIRVqtNPyKpSyt39eCmYzbA668m3jv1Ocah8+7VziWMeCCS2N+Ew75mOlcrFCHcgpgEK00xaAucwts5vhTK4rdlrlzjsNKKy99uK9TLbiTQDz3xsB1MwnrjKLLeYp+D3w/eIRFff1Cj3thh/4YU508tAY5ACnmHlwt1p++ifX6XnHvcm89kzDWuubjDUz842lj89B0dLfGmrxS/vhF0bbJM6tOq6Zdr9Zj+vZpPcVfbuhsMIz/GrLJIz9dVhvYELFMMnR90ovIlde0NAj0j4o1moo8NPrJq7orZf4Rh52dGkPfROLNTqbSFqDd+SUtssPPLrLTUbl3w0IMomylt3kWfFMmWxMVKIXO/e5upnVYL6uGXQSnXlkvL2LHEKMXwEFb9erjUPRUiAqFZAjRhLKIulN6TBUeBOjRdKhDHkEHq8ExbqF+wt+oh7hREGt/xXZOpLDYIe+Ohz3hwAWAqol9n3hu6rHd53DXosqN6E6fMlIqgawXr8gaxgZ0olfhDr7o0wjENpVSYvOz+DlsQZOgnuIVSZPjF2+m0/2Z6xssMWtyM23GRbPe/wXlwSI2cJodZQWLg++t08ZIpMRlW8bV38SvIDm8o3SAw0Kwn6KuUO/Z79ydq4jyTFf/5KPMmQ== 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)(52116014)(376014)(1800799024)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: z0v9NrZk/Fj8VdbMT04EJ2J6912lvDoTuUQIP8mxnMHV8JLrQAI/vEWV7YqKOVmdywWLDnvH1MsRvG8zpAtCUOp/QBIx8SZJxLgCtookUZIlOv2SLkh93+6A65QJINGrvOdJTPb71uALar2DQgE+rdCf9OcBVzZOw38hSfP0guEJAIbav9Q8Jh6PfyHVOG15YpMHpUKxjWlFRycoEdX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atYvXPTNRKnSRHinpC+fk/VeiMswTwMVHQqMdRz7rYmYViCRyE7GkMGH2k2w0AT6GOJb85FQQq+ye7xtomos41cB4l4HtCtf4vo5z/FRoK5uncoKOcMLyKLFtvv9EnPl0eaHaMGO6OsfhlU+g5xCF2P0qFEO8BMk1T51qnCl2DS3NoxHPl+0gQ5zdotca/WOp7ILeJ1LXSgs5+Cn+xsuW4w3lkU7QcL3Prh+XVhIxhUSKZ7zdUHTM+prw14a6ziswh32Je0Ov9A+2G6Kby8xHIoj8VGLAmn7lZoq+N+kzMHZUboEll46zsXgf65C2uUHCX7ov+NK42+On5qj7zZaopToeUMkaOiW1D21e7T/0M= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: bd9f9356-c915-441c-c3fe-08dcb03c10d8 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2024 02:05:22.7723 (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: tIBV9O2pfy3h6yi2F/OkcRNHarTwliwWcKdwerjig1gFxKRPBlF8D9xW36nZIIr0xGGGSfAOIPma+iEl8C1NoFnrf94s6YnS9ks67NFm2hW+OFNgm4gZAd4hNk61NgWO X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYAPR01MB6427 Message-ID-Hash: VI6UFPJANNLLHQVIJLRT4C36ZAD4HTDW X-Message-ID-Hash: VI6UFPJANNLLHQVIJLRT4C36ZAD4HTDW X-MailFrom: kuninori.morimoto.gx@renesas.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: We already have snd_pcm_direction_name(). Let's use it. Signed-off-by: Kuninori Morimoto --- sound/drivers/aloop.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/drivers/aloop.c b/sound/drivers/aloop.c index d6dd4b8c750ad..439d12ad87879 100644 --- a/sound/drivers/aloop.c +++ b/sound/drivers/aloop.c @@ -900,8 +900,7 @@ static void loopback_snd_timer_dpcm_info(struct loopback_pcm *dpcm, cable->snd_timer.id.device, cable->snd_timer.id.subdevice); snd_iprintf(buffer, " timer open:\t\t%s\n", - (cable->snd_timer.stream == SNDRV_PCM_STREAM_CAPTURE) ? - "capture" : "playback"); + snd_pcm_direction_name(cable->snd_timer.stream)); } static snd_pcm_uframes_t loopback_pointer(struct snd_pcm_substream *substream) From patchwork Tue Jul 30 02:05:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 816353 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 2A51DC3DA61 for ; Tue, 30 Jul 2024 02:07:00 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 93CC8EBE; Tue, 30 Jul 2024 04:06:48 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 93CC8EBE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1722305218; bh=jH2DpPFEyirgwDwReXjxwS4/jLwlIzeNkkNDwVZeKIc=; h=From:Subject:To:Cc:In-Reply-To:References:Date:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=E4fV0s9gR48onPgeh44MNmWwa+deAfNdXRfxuD2lFqGpEeiR/e1Eo6lts/FHyVvdC 63R0qPkAshdEnuRE19hgcv6HNVapciqahh9h3XB3tZzd/Zh0C+vDVubcaMYTFbYyvA n1+h7pP+LNdkQFlXVj+stduXeK1ZjgyMELX5+9qo= Received: by alsa1.perex.cz (Postfix, from userid 50401) id BC0A0F805D8; Tue, 30 Jul 2024 04:05:48 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 8C7A5F805C2; Tue, 30 Jul 2024 04:05:48 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 5EBADF80579; Tue, 30 Jul 2024 04:05:43 +0200 (CEST) Received: from TY3P286CU002.outbound.protection.outlook.com (mail-japaneastazlp170100001.outbound.protection.outlook.com [IPv6:2a01:111:f403:c405::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id B9B09F805AD for ; Tue, 30 Jul 2024 04:05:38 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz B9B09F805AD Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=renesas.com header.i=@renesas.com header.a=rsa-sha256 header.s=selector1 header.b=V6VR1Va4 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pWBfhTVZ5htNAtYm8EltwYCa511+f3mPlhDqNcy3XkdhjrzrmEolHMv0QxnnEX3jRfZjzhhvh9O/nggBt7d2Nd9YRwMBZLlgB8yVzWjQfNzi3vgH+LCwTziKktOp5qIjtl2BjxyPykKsJSpKHoj41TZOE9Yb7M3kJEV5Mc1E5fs5GRWUW1wTsgeUn+BegAn0HNLJaWe9AEnsOlW5lZe7l5iFJ6Nww03hHO2XRgLrP8bH28GOku8/oID9NZ3XUHmRiWXkhYrK0cc2M9kal4TgE/Q5f+N1Em8KfHQmEFdGhyq4N93A7yLUJ2C2uQe5Q+dN2hN6JPC36LsrLoP1P3Q06Q== 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=8Kcc6ms8WPnx5zuAcgQzYbF1g7HgSnPy91ZRHxhdeTc=; b=e9iO3IE3YqryjpSRm3zn2Amul2R6h104aZJaOHGOTR0iLeq3Y2lEFD1C9hECjz+H+zHGIU5+uupTezBoWq4ur/bjRkN5aOeackI1zM109U8aDn0CE7GXlO74SwM+XRg3cyzbvj9LVPUeYMRL1KGYlN5ExIVytX0g3ciRVLApRJb4rj93X2w+XLhtO9xgE5pdnHQRRMlYt6OwQrPRKZky0r45AY01biFWpJKT3AoQZE+P46sTce/t828XNRHBLxar37YDbZSqSPtvMoOrhryy3b0JggQ3bAOfIjwIx+fuRZrMK2mesrRyJ29Ih3CopKV0QwI7vL/WlKDuEwtJjklxdA== 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=8Kcc6ms8WPnx5zuAcgQzYbF1g7HgSnPy91ZRHxhdeTc=; b=V6VR1Va4Xeb6jbD+Q2ce/n6+OJaFbMJF6gOYaJZAzVcMaaG4DiuoQdCeWzV4HbwfxUluLH74xHXw4aNd/IuWblFoPklvIebAn2cwp6RrQ3JYM3BHZr7YpoHGyA18J/U0/4zuXFHdRWGUdwCEHyGK+t6Q1vLSGMjpC5oH9hQMFdA= 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 TYAPR01MB6427.jpnprd01.prod.outlook.com (2603:1096:400:a1::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.28; Tue, 30 Jul 2024 02:05:34 +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.7807.026; Tue, 30 Jul 2024 02:05:33 +0000 Message-ID: <87plqvk51y.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 05/12] ALSA: pcm_timer: use snd_pcm_direction_name() User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Mark Brown , Takashi Iwai Cc: Linux-ALSA In-Reply-To: <87wml3k539.wl-kuninori.morimoto.gx@renesas.com> References: <87wml3k539.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 30 Jul 2024 02:05:30 +0000 X-ClientProxiedBy: TYCP286CA0369.JPNP286.PROD.OUTLOOK.COM (2603:1096:405:79::13) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYAPR01MB6427:EE_ X-MS-Office365-Filtering-Correlation-Id: 659c6604-8380-45b1-3dd4-08dcb03c1715 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|52116014|376014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: pAuYv0sIyfIbsFr/TlhXnRKQ22+3JSDOLn+9KRB1cz01IDaHrA8WACi7WLkSHYokzpbH6bZWlT1t2MK2chYL3zsVXidJXzdkRZov2fLIWHygDCkeNR3c3UIqAmFn8Sp7igzhtQF5nnMqgolSSYvGc12e0g7XbhHboCaySG65L06V1LkP5ZOAEOWu6uXMRLRbsn01DTcyAgmsgjHQkPLhW1Ps/Bexsu/UBk7otPnVwUTyL01eFpcsaGrAmei08FmG5AyqTVAP9flXbLPFOq8lKKqQqjf2amfPC4UZ7JGfJx9W3XEoxI6FMHKKDzZe3QHnJLb/xmEBdfGABk2vb46CfHzq5+5HL3W9R+Y6clISuJPES35dHBX2RoYghS1LaGp38alq5k9bba/sq1DFldSPVe4iAr6IcW/RL5rSDaWZJDRO6oLlVahEnZcqid50oJo8q+E1zcpAj127TwTQtoPMFWpmk5JKl3sTimfSPss+yxXGwPr9dKfO6Xtgn8BnS1Pnq+Q6graDFUSzbwHNNLbah7XluNprpufvrtkqYxIu9hepFNrgJbWOfhCpIA1UKxYKfxTsMrgWbFnc9EiU6p4mddylpJWsB03IkGyu9Bmk6x7PM7onOIkwgtjBkIVo/60u5fGgYREHsIAW1be3m1Oj9Sl1GsmfTRIdM4/nR/GlU5vYFZMQ9D3nDcKGQagoNDWkY9bGQMX1wJJMmHQtDrCtFv2dVlgZdw48sc6LDGzi1y8beeoWJZn9WLsc4c7OPI8PTrPh0qLRlG9aKrEFWr3Hjx31NgHBw6P5CghLFXyf20el/USEDCO4CaJR2KD0EFG5RL2mk1udP0LBpd6Kak/m0lSv/yEUdB1cpJ5CTuLHPGRjTA7Cl1UvXdjnf+5ypZ4i1IqRx4iOIWHdOCOYsH+aFDVeznjDXshzCGoyLhuBYqAYyd8Rhxiqn0Vr8WwlALR7mznJN9iT8Bc8KwBARsx8TZf6WGIk/+taGDjf3+uTqs7aHfUmclIxQqEpQ4OdnQNo7ZqWTOUVM3vuASujktxof+ItLNvDjXYehNTOB//hRbf4BtmgjIEh+2As03WT4oi2RztMkgfhwRIMlTTC6Z+D7etUo9tgRA8txX7Rgr9cHMNsB1aZPex7ijTZRH+kFc3wJBa6yga0rkQeEAYkCalDl4wwaCMwUpV/AGGrqMLtbWHzO6xbft5fdcpDjCoWgPmz/GRhrogheXqpKGryDgf59LBfq1r0bBWtel/VIHBWuULwRUak8lHPQpNee88FG6a/HZGt6/RPISBQSFeOI+re0rilvIATKlzTr+5EbBPEP1u+9l/9KCvdv7zaeGTsG66PTaa6EWiENVqA/ojhFvdm75fP2JlR2vT7F4KB0QiRfX3wg0l6a4kk1s0C95XeyC0jD6nDRqJX+jHR6VIuoPMEfg== 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)(52116014)(376014)(1800799024)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: EW3l53EW6FGTGn/C4LY7mlZTzdiYdpignQdN6XMHXW7M+Y8TNO8T5qP67KqMUeZsfdbwl6Icz1JRFBvREmJdLUEfdYU4p4X7iuDe3eVpgs90wzxUezXD/CdPHa8hXwmCCZ13SYAzfwVkECWeL9vnygHFO3kSXZ5mj/A6P8kTcbhuk202krMpxJ5mRQqyKpp31RDrK9HG8CLRqGzdrFCvMek6Vcn2d7CZrfwyC9l2ogaozotEwHNP6AffiD0OkneYbi4xkdU0vIXquJlXeI1fEQ1NpPPYjpwspBtfw64fVCTI3lHoQvyqMi9QezTj8nvW38LfhSSLixvUaXKZTqRlLr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qmNUcqe3krTfVTBmrwbOHseFq0+DRdolt4OCqOsoI963NmKqArfoS3opDsXivNqP9jCpdRoO1CyN+++kef8ofsuujTMxo0hZW/FQi9HEvhzhmRngU3t5X5rFnIjUhqt4nOG/Ee4JP71XKFWXOOr/5YOeLr94afzV04j0NzEc3CVlcpupBhNdjnQdUU2RS7wLGt6FWdue6P/E= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 659c6604-8380-45b1-3dd4-08dcb03c1715 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2024 02:05:32.9888 (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: aPaPzhBskFW12LEYvtJn59teEmeVGYhfP6b7MiusLlZ0ZVr4B4LYBw7eagdf5Sm3GRs0OcmHmo4Exvfvri8c4zCZvJRoz9Eez15PjivhrB3e6BbhwFg/INNXU//Fw2pe X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYAPR01MB6427 Message-ID-Hash: QNXNRAZ37QG7FSSVD2Q66BJIQZQZIMEV X-Message-ID-Hash: QNXNRAZ37QG7FSSVD2Q66BJIQZQZIMEV X-MailFrom: kuninori.morimoto.gx@renesas.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: We already have snd_pcm_direction_name(). Let's use it. Signed-off-by: Kuninori Morimoto --- sound/core/pcm_timer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/core/pcm_timer.c b/sound/core/pcm_timer.c index c43484b22b34c..ab0e5bd70f8fa 100644 --- a/sound/core/pcm_timer.c +++ b/sound/core/pcm_timer.c @@ -108,8 +108,7 @@ void snd_pcm_timer_init(struct snd_pcm_substream *substream) if (snd_timer_new(substream->pcm->card, "PCM", &tid, &timer) < 0) return; sprintf(timer->name, "PCM %s %i-%i-%i", - substream->stream == SNDRV_PCM_STREAM_CAPTURE ? - "capture" : "playback", + snd_pcm_direction_name(substream->stream), tid.card, tid.device, tid.subdevice); timer->hw = snd_pcm_timer; if (snd_device_register(timer->card, timer) < 0) { From patchwork Tue Jul 30 02:05:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 815346 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 F0303C3DA4A for ; Tue, 30 Jul 2024 02:07:19 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 60191A4D; Tue, 30 Jul 2024 04:07:08 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 60191A4D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1722305238; bh=knIOxpuXFYFL3U3j7UpP/kTWVJAQRh9G17inUkAhz5s=; h=From:Subject:To:Cc:In-Reply-To:References:Date:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=sBnp4ioBZ39UCTovXWg7mk+BLZeATDoYZ/l4bpzkWb1JcqPsUa1R0FEDGL8nC96/C BosXomf41J2ILPrit+D/SkJX2SQ2bBfgEVgZiQznot9zoXn4rbLbUJELpOp7+BU7Nn oiDVIG+jc4GyKnx5JkeMCK7fiyTLQlHE0UTr7k7E= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 819FAF80691; Tue, 30 Jul 2024 04:05:51 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id F3649F8068A; Tue, 30 Jul 2024 04:05:50 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 879C5F80580; Tue, 30 Jul 2024 04:05:45 +0200 (CEST) Received: from TY3P286CU002.outbound.protection.outlook.com (mail-japaneastazlp170100001.outbound.protection.outlook.com [IPv6:2a01:111:f403:c405::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 84584F800E3 for ; Tue, 30 Jul 2024 04:05:42 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 84584F800E3 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=renesas.com header.i=@renesas.com header.a=rsa-sha256 header.s=selector1 header.b=du7yFnAh ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=QJa8/PYXBQUKqhrYzaZguf0V0qN38KtsWcSN8RgNMOCoqvcCYhXVv0DhuzdqiLAPxnJQL0hIKTo038ta36+mx7gQueSkHh4O0rKNMQUC07cE0nR8c/Y+rWrELqnSq+u3XNjKhYV1a8vMowRlPSUrhJRpSyNjSnj9Vu1m8xK8mlUW4KdSgm0wpGcz4PGwPXNeBB9JwXjXvKlYmqiVCS6yBxWG4+XsqKU7F0yFvSenlvX/TJZ1GwmFNM+mje9VnaTHgRwbiE4gFZP0p0AXr58BFHjvDMP45UwVZj0ZjG5JjupTOE+PPjR0uUseN1R8Ad3oL2wsMcwGwfCXGMyZ30awyw== 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=XgM5/VN+7lugDaPojuL7lscomxtYOS2SA5JxhZ0KdhU=; b=n9fixvjUMSvBmi/gLgdacvS4BSXnSBV9KvyM8qLJwmd+j9tgBrv1Zwa6CWfzqtvAMnWXY3LdzlhOveauirFyHowZbxdxr/xuFyzFOOeSL4ImLwouXxKpKqZsk5//gXIA7TTCJ9WFpXEE6x+rpo0LyOAd26s2FQDLG7DbKadXeZFICia19d5SSjMlZf6y++6cl8U+070q8sUeVv5ARBQr9o4+/wC089R1i67OQbJNIKA2+gC94rUdwtAyKlPdzX7BpzUyEsNoc4qJD5hk29z/g309EIXyHv+UMJ12jESZiN9A+ZlqonRYJdRLuHkuN4Q+M65xKRrypWzIMYWEE5ka4Q== 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=XgM5/VN+7lugDaPojuL7lscomxtYOS2SA5JxhZ0KdhU=; b=du7yFnAhPsRTGXulGElxVKRsi3tx++FrBvV5oaLEIEvF2m9kWOuIq7UCNxHUXr4gdPdDQF/o7Z+LW/i4eKXVSdMk9lG8aTMaG84y+vBSgCFufn3CeGs/63EjzRzX+p3mhLRgHjqctkaskPuI/37EIsvv8fcuEYjqW33QHG4eyLc= 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 TYAPR01MB6427.jpnprd01.prod.outlook.com (2603:1096:400:a1::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.28; Tue, 30 Jul 2024 02:05:40 +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.7807.026; Tue, 30 Jul 2024 02:05:40 +0000 Message-ID: <87o76fk51p.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 06/12] ASoC: stm: use snd_pcm_direction_name() User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Mark Brown , Takashi Iwai Cc: Linux-ALSA In-Reply-To: <87wml3k539.wl-kuninori.morimoto.gx@renesas.com> References: <87wml3k539.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 30 Jul 2024 02:05:39 +0000 X-ClientProxiedBy: TY2PR0101CA0012.apcprd01.prod.exchangelabs.com (2603:1096:404:92::24) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYAPR01MB6427:EE_ X-MS-Office365-Filtering-Correlation-Id: 80ddce54-bf68-4313-3941-08dcb03c1c02 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|52116014|376014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: kUe0z++B0KuVN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6WAeZu7cBbwaCIfF7mHPBCQLKSxAlmWkym3XF8jt1kCKjS1Q/C2FhoNBtfqAa6VLuAFysBPStl/0JS0ANe3m/NeKltzrrZN3ORt9M/J8e46u+JO0Ru7uX5CoRVE223Kh+TYjuWtH9iwDoZSVxqFGPjfYSsgmdgEXfp5ZdlUOQ40WkDgS6a+4jYR7GLxjhjWTMdUQcIBhm5UhHXoRyEaatQB2NHZ/Hm2ACWdoCGQTuCuvXbw+hH1M5sPSziexROsyJGmw4auvGSFc31VoWQ0fgplgt23wCigLOdpjj8E3U2SQg98tRRJaa/p3eTWWdeezGG68vumA== 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)(52116014)(376014)(1800799024)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: QykMqoP+mTCU2Gcq3R/6C1YIuQZt8nuedL+ApGfugX7sY/YwYDrvyV98/rD4Xa4z/oPsqlel39Dl9XvfiJR2fd5PCB2HGPd/YGXjZZUXF5WPmhh3G6DfbTN3xBwwk9h0H90Uk8fegFGXbjGDOKZzfNlTe2XYoHo2etdxIGjbCTHXz9C5BPYOQqd8T4qalt/7nRRxHUOhCSzHZMNdfcWZ8hf0avTPjqDUiWPiL3PhFoRd626+Qx+MljjUSq/QPmF9feknqdnrZp3HFDOsmOKEcqXXcDBzcKAwM2Vu4p87KL2OEfXw5UOnhNT7uuTkKiO2XfloveC6/J7fqHZO2zWByaeSXibLBS7vMeAU0jOyLQWykFfgfH4FXlTLT1NLzaho56z3jzafzf2ZbTx3sKCaJilgyolyN4kL4OA6lQ1/SsrLniJ/MBFOWwjVTovnxETLaJm9QG04XN9FKOFHgjoQCo3peSoJ9XpaktB6iWowSkKvPrnu9xJJsLlxzqReoo48mC8ds33v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qeQ1qgSLp+Iw1DhEmk6akTaNgw0Pm6ip3v0= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 80ddce54-bf68-4313-3941-08dcb03c1c02 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2024 02:05:39.8605 (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: 7eyz9hLyae1+ejvJXbDNjI6oEd7PaTV2FYru4LjYbPWIWDsP2VaIUZKI6tExYWHQnMNDq1hDCpfV0+avUP+0dEoBoTwJf1z7wG0yBPH5uzve+hp81As6EO1McSVE5ih9 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYAPR01MB6427 Message-ID-Hash: MCBE4UQWM42Y7H3AAJ3ZYXD2K3GL3NV4 X-Message-ID-Hash: MCBE4UQWM42Y7H3AAJ3ZYXD2K3GL3NV4 X-MailFrom: kuninori.morimoto.gx@renesas.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: We already have snd_pcm_direction_name(). Let's use it. Signed-off-by: Kuninori Morimoto --- sound/soc/stm/stm32_i2s.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/stm/stm32_i2s.c b/sound/soc/stm/stm32_i2s.c index 46098e1111422..a96aa308681a2 100644 --- a/sound/soc/stm/stm32_i2s.c +++ b/sound/soc/stm/stm32_i2s.c @@ -823,7 +823,7 @@ static int stm32_i2s_trigger(struct snd_pcm_substream *substream, int cmd, case SNDRV_PCM_TRIGGER_PAUSE_RELEASE: /* Enable i2s */ dev_dbg(cpu_dai->dev, "start I2S %s\n", - playback_flg ? "playback" : "capture"); + snd_pcm_direction_name(substream->stream)); cfg1_mask = I2S_CFG1_RXDMAEN | I2S_CFG1_TXDMAEN; regmap_update_bits(i2s->regmap, STM32_I2S_CFG1_REG, @@ -869,7 +869,7 @@ static int stm32_i2s_trigger(struct snd_pcm_substream *substream, int cmd, case SNDRV_PCM_TRIGGER_SUSPEND: case SNDRV_PCM_TRIGGER_PAUSE_PUSH: dev_dbg(cpu_dai->dev, "stop I2S %s\n", - playback_flg ? "playback" : "capture"); + snd_pcm_direction_name(substream->stream)); if (playback_flg) regmap_update_bits(i2s->regmap, STM32_I2S_IER_REG, From patchwork Tue Jul 30 02:05:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 816352 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 7F579C3DA4A for ; Tue, 30 Jul 2024 02:07:38 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id A5748857; Tue, 30 Jul 2024 04:07:26 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz A5748857 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1722305256; bh=e7qxODlxIm31WvrJXCxMWwkJaE252Q8Fuum4g+cTII4=; h=From:Subject:To:Cc:In-Reply-To:References:Date:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=ro83cMce4PRe0uEzyP8vtl+8PhM+ozkdSseNtrgdgb2dutzUFIvMb+71n2JkBOFi1 tnbe9TGWLm5s3sICsCZdYiLUxyWhi3xJ2QmPhhdAvRBvlH8zlJICHZSjaLccO4FyWh feq8RMVqEko8GEEoR3upaqQgxK77GLKuLOxUv3RQ= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 5CE91F805EB; Tue, 30 Jul 2024 04:05:59 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id B8B84F8069D; Tue, 30 Jul 2024 04:05:58 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 93B93F805C8; Tue, 30 Jul 2024 04:05:54 +0200 (CEST) Received: from TYVP286CU001.outbound.protection.outlook.com (mail-japaneastazlp170110002.outbound.protection.outlook.com [IPv6:2a01:111:f403:c405::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 7B61CF805C6 for ; Tue, 30 Jul 2024 04:05:52 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 7B61CF805C6 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=renesas.com header.i=@renesas.com header.a=rsa-sha256 header.s=selector1 header.b=JN07chDO ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=hUOLHVGJuc3p5rkS6JCldlVWIdCeS5MDdxWN+sw9ZHyxR9IMcM6Jomh5i+S/GgeevNZy7Km8E1vnZ74HSr+C74A8KlZhdY/m5m8dccu6K8aZ+78j+CwQnu4r61rOrnOg5Qk6rLi8clTFmoyduZtVxzS3CcLZQx3zw4TpFu2v+O2nHXJAtuHNRCdqlfUjZLCaTxpiv44Am40NUb2bfhUSVBKz4ZDbcXuUDSO3PGtPiX7aVNVc6fBofyPOgLkkGT0dWNwDb5n7BofPZ2IbRqoud14mfhOYr/xMEG+M8gSc4sTwdXFIms5lD8HGARfBBPLVhjgwj474lL9ronYt16XflA== 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=7dfhIP3I52AB96dDtTpnkebnW0NATocwx71gixTnudM=; b=AIQ6cJICTSjUnvIQu+JsotQ8VmZTO3jhcIVwf79WICMpCdf2XImDyaRX058btnBFl4eZGpEnMWILfgZ24n0i8hYYtAjIadKn2zqfUi27mjH1pM5P2Cv5+zr+LW3wUHDI2+HySM1MMeKtZJW32QV7zHHogF80Vrt2QSQ4o2V3MJ8O+Ch7KkYW/Et2qnaxssMgZXZp4xhNN+7mjNgNZuFiw0fWqFyEtLclLm+VornRn3GMzjjzKVqPasKq0xVgpU8QJ+plQQJ59SSxQIe08OvxRZPS9/EmkZXpA2FkclFjcHt3G9f60S9MXOCRhGORU8l6L5SeCI3krvm7ZnMT8sdjqQ== 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=7dfhIP3I52AB96dDtTpnkebnW0NATocwx71gixTnudM=; b=JN07chDOUE3QKPVKBPgjw3PbKLKcRixMJKO1iEkl3zT+klr1icdmH4GeSmn1UN8ye9+if8KCyUwrhpoe4KxoRg/bybQtn0BGi2YqtNF/RBT82O/A33g4kpFxgXlBLHtjpdInHKcT1IWG/qhx2WdzVRnwmTypAet+yjZLGbSMPSE= 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 TYAPR01MB6427.jpnprd01.prod.outlook.com (2603:1096:400:a1::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.28; Tue, 30 Jul 2024 02:05:47 +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.7807.026; Tue, 30 Jul 2024 02:05:47 +0000 Message-ID: <87mslzk51h.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 07/12] ASoC: sof: pcm: use snd_pcm_direction_name() User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Mark Brown , Takashi Iwai Cc: Linux-ALSA In-Reply-To: <87wml3k539.wl-kuninori.morimoto.gx@renesas.com> References: <87wml3k539.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 30 Jul 2024 02:05:46 +0000 X-ClientProxiedBy: TYAPR04CA0015.apcprd04.prod.outlook.com (2603:1096:404:15::27) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYAPR01MB6427:EE_ X-MS-Office365-Filtering-Correlation-Id: ab918c8b-4c57-40e2-e03b-08dcb03c2077 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|52116014|376014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: aJ0+7wjahC5/9V0Nv+nE8mY9tyFYXKfRJ5EpY3qw/QeifFM3/guQj353574y5lqdGCSWsgFiQp5UCbaL6irdVMMjFQsVR/OhrUeGI+RmtFSVhXMXGSCtFIsqiuxpBjApm30px0z3oiYBiP88TMgedEV3M7t5yvRKBG8BJksYqXMYLLhP79n8p9fr0MQMUz9duT9fj6m4b7yvaJBiYvEfVoYhadElTrEUsBtiukhHG+8QOFjos40R8loLXMBtiU3R3eFTxJCDLFwdHFUD2odo5qmjmBfRCpH4BsfBNOE2Jkkpxo3m0rYn1mLFtaASfPo3iGsdR3eUqqg6U3HJQXoJ6UZyVb7Z2p3JVjTYZziOyEf3YwQX8jOJChQWXQXVxqkyf8ktqOQjvwOWPFzfdFFocbc810O59jWzjpeWniy1Cw5I8ZjhNhFSebwO9eO1ifp3eKzk9FcJrzFSxigjblUhIzUsUzjjr/wZJReAR7PBKRjHXOoK0WmGpLbH0hNPSK3AvI7Ceh/9VFz3eRzbcPjYMuQqRW4vSKIwaqVB6sWahpABncyQiV472McnlIZ+mmtuGgFgWLLmR5cVUtJgp9/sVfM4nGxoIzIz5FA3qNFIEYMcbpcv0BKNY2Hx4zcDOR2C5WHIRFeww7m1/fABCIq+SlVimUYZlla9xLOG2NTuVrbyUZolxb16qy5GhEEJdVXv5PAkzsnF6esqpdY/lDHj4geU3EgzI7b/qFP7oidNCA3Y8fgWqJ3PBhzdHzI+HnAjWqZfOlynV/Epvj08/npb//mEmbCuwsCQVkYED8cf7QWKw6WccazsWOB/yo+0n6hwmspWIEF4wzWp6k2P/d5zu3ry+pb2YcdZxbn45lVSf1W6bVhOu43mRGckUV/4dTQfS/8fty8PhdRGo/ob4xI72mWmY6/15NuUS6WafDRtuq1BnPOZRg6JJsBWNv22wO06cdw2pyBw1Krv27Pa7azkHiufzkBu5z64ov+cTfIKYO+70SuZWuV1X3u3klPLlqJZYS3HjTIxIVEoRd0RHCas2mFycC/4SSQlIi8vg1cm45/Ih4BMxlJv78qC4dPbuTmnTMHx0LHY3hzOWkt+eHN9D38MMmxU54mvlQmpQRvIVSfOBxOa4d+IyVAWYYfZ8GcJ3cwZGOLbT4XGwr8jJzgTYoGST4BRSqcD2ZOV7CE2deRi9PxfHpmWrjNho5wEFsCRnrAWAqWZ29UVZqMFVyEo8dWG7mHlTs/jcwHj6a6g4mVdR6e+zZgDdDeBg+4aTgPdTii39hQ02mIaDzYJnzlzh8VpmXMiZHAckL/AjvSYddrVLkOXMRnKH8vHwQG1vednG7oIYPJwpogJq/+neZsh+W7svKbzUS3e6Rhh/iy6r7seMsWLDagqOd1N2m2xthUHD+PwwzuIDpWwol6pMrqGpg== 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)(52116014)(376014)(1800799024)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: TK52zWKOjSi78Pan6ogBaZs+T4bR0Rlm6OhV6A64TQK//ftO/yErtNf/UspHt1PMj2LgPMnAxPkH3EKtq+/CET/1e/XQvMUzsOuReB9OzDG5nPqnL7AZ9kE0c2J/vsPjw1DXX28JT+Xp+B+VoYm/K5gZRQ0ssszhr5/NztzCTmdXTh+8m0Rt0EyZDqV3mgQ1OpbbeSXwclvKOTQbt1P69x83PON7bID35kJkUv37mOpGpg1x40fzFf12q5jipzt0ygvbTC9wuY3NfUjFkQjrHxe3YlHjnmvA0/P73qmRvQS3mOFpKGVvdxHmar7Tj9MplsjqgYZOzvc73Lr0GRpB7PXTUrCZU5c+8vlPB9nt+F4M/AIMXSNm8nZukoeDJ8fuyGjfLH6JSELJ1TQHFQn9E0KBwT15I0Ps88QjfY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SwuBq0LGoQkODpkviHVbsta27K4JhrE1gF1PopyU+TjD43lUYq7DVrarZ5UFi8FXinIKi7tNY9Gq+LIWA7uCtHalhClOUbnMNp41KIRudgM6SdrdJ5fXjlneudrZJ42VcWfwmJ1e0xg= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: ab918c8b-4c57-40e2-e03b-08dcb03c2077 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2024 02:05:47.1263 (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: DfphZ4eaOhD6V9AnE5FtQAJ+phqp9NaXrAhar7Njqs80F65FdjhrNSQlupS6LvG+BxTuyMAL1TMoMRvDbSgYUK/Y5k+naO1GGc6C59GHRQdAHntl73vA8b47vHA8I9Xv X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYAPR01MB6427 Message-ID-Hash: WIYOVOH6M4UDVE4G45IEGJ7IAHUHFKHU X-Message-ID-Hash: WIYOVOH6M4UDVE4G45IEGJ7IAHUHFKHU X-MailFrom: kuninori.morimoto.gx@renesas.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: We already have snd_pcm_direction_name(). Let's use it. Signed-off-by: Kuninori Morimoto --- sound/soc/sof/pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/sof/pcm.c b/sound/soc/sof/pcm.c index baad4c1445aa7..35a7462d8b693 100644 --- a/sound/soc/sof/pcm.c +++ b/sound/soc/sof/pcm.c @@ -100,7 +100,7 @@ sof_pcm_setup_connected_widgets(struct snd_sof_dev *sdev, struct snd_soc_pcm_run dpcm_end_walk_at_be); if (ret < 0) { dev_err(sdev->dev, "error: dai %s has no valid %s path\n", dai->name, - dir == SNDRV_PCM_STREAM_PLAYBACK ? "playback" : "capture"); + snd_pcm_direction_name(dir)); return ret; } From patchwork Tue Jul 30 02:05:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 815345 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 6CE5BC3DA4A for ; Tue, 30 Jul 2024 02:07:45 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 7FF89B71; Tue, 30 Jul 2024 04:07:33 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 7FF89B71 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1722305263; bh=hxgWa2YUKvRfpAj4OkVnzgaaH9aGWE4xaeMqjuCtZ28=; h=From:Subject:To:Cc:In-Reply-To:References:Date:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=rbbM+7PuIAUuuo4PKieo+LHFdndVfpA2EedyU0whtoxd6Ci/J+raVnFFxYs/eO5PA FndWlFhsiBEydrAiZex7KyMYzz3FcA+W4jNIrJPoh3hZlryEzZBoeBEjwefoQuWVBJ wBlXJSxR2WS0OVDQURR3jChuxmByOndV97pF2MxI= Received: by alsa1.perex.cz (Postfix, from userid 50401) id EBB44F80692; Tue, 30 Jul 2024 04:06:03 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 8A1CCF805A8; Tue, 30 Jul 2024 04:06:03 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 06166F805F4; Tue, 30 Jul 2024 04:05:59 +0200 (CEST) Received: from TYVP286CU001.outbound.protection.outlook.com (mail-japaneastazlp170110002.outbound.protection.outlook.com [IPv6:2a01:111:f403:c405::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id C2910F8057A for ; Tue, 30 Jul 2024 04:05:56 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz C2910F8057A Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=renesas.com header.i=@renesas.com header.a=rsa-sha256 header.s=selector1 header.b=Nc8Mgwfg ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=BhbdysHYVd4SJhE6A3M1fK+NtXIVQZz9phjIbS9B0ZHmP8Gp5s+RQMl+PhOEsqLLFX/AzG75xAU7tSGbGFwPIYc16KJUFcLAIHepk11RRItMNHTD5BalT4PaPFfR1BuFDY8p5Y+oByB9C+b8HJG6zIixCQ0BDhgNM8ymdCRqv00JEIDo5cZTHllQ3zwGUxRRTRJFVbagDvXTNBicn0ePDmjy6fDVg2gWZCU7X0mEib52OmYR+ZlinO2tteL1aPqP/4rd0+53tb1aUmo+Mrw2IoUhm7akp2JNdegoVDKaHruzivKKCM78UFpzmPyJrp+ODlvxfKkcyDQa9Yx7mfxsBA== 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=EUAtbawBbde7dUata8p43IzCdsHojxCarM2/h+aXbTs=; b=eDqYgo6h/mYrA+Sb6GBxtCl2ne2wa6DvSw0mOzDrh8bED5YPamNC1+j7HD6yInmOtyF59xzxYyVv0JMFnSXy6gNZao0t/lLv/YtU/2KMbV+pfXawCgaCg3TG1cEvGLctRJpXceTQtXGa+v2CB7QLclgdWaU8ii4aUazjINJdlypzcuRjhs8B0VcwAy4u3IxjJUtAf8gYufVitcRny3136CYj6mxvOaEGYMiaw/t02/yV8Fee8gurmm/YkezXeEJIdpMdW7x0ksGpbkGDmhvaD9d5IvrSj36IVHasVj5rYpHHiBVy087F5VtxnAVDRMnM0PO4OSheqXvuDkS6OJ3Elg== 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=EUAtbawBbde7dUata8p43IzCdsHojxCarM2/h+aXbTs=; b=Nc8MgwfgjHDZNV7wUVR9X/TkPhiQuPwOlpnMq4cTzMtElgaRGd8W7Ue3wc9AxrAXhyUpe1Mol8OVSVZKbklpxyOM+apEb3ul59dlFkk8ZXphA3T8ESHYGMKPzDw4v8RZIVynQk6SLz8Si1IWDitWbdIa5GjjJE5KlfhcNr3slZ8= 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 TYAPR01MB6427.jpnprd01.prod.outlook.com (2603:1096:400:a1::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.28; Tue, 30 Jul 2024 02:05:53 +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.7807.026; Tue, 30 Jul 2024 02:05:53 +0000 Message-ID: <87le1jk51b.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 08/12] ASoC: sof: intel: use snd_pcm_direction_name() User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Mark Brown , Takashi Iwai Cc: Linux-ALSA In-Reply-To: <87wml3k539.wl-kuninori.morimoto.gx@renesas.com> References: <87wml3k539.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 30 Jul 2024 02:05:53 +0000 X-ClientProxiedBy: TYAPR01CA0138.jpnprd01.prod.outlook.com (2603:1096:404:2d::30) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYAPR01MB6427:EE_ X-MS-Office365-Filtering-Correlation-Id: f9e2b42b-a69d-49ed-4d2c-08dcb03c2441 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|52116014|376014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: H/p9AHEYW924eVnHnZoLz0DoSofI+d8GpU4j5ODNvbAO94oQg/GgjWQYw6z7vaZUpzrEgqa1YcFOUm9eBRHfssd4NMB/9HvQBu7V4ysS+aOZLfiLsf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40YgoYhu0fwYRB94AMhuVpPMkZzzbQOrYDcFVBf53kiJq2uzixGTwL+DQXgXoH1BKF3mrKG5LrP9gixYvfnWLzUL1vB8zUeNx/FIg6VTS2SGgYyo/wUsKRbfjHv0rsx7ti4BA3vD+tcQiMwnXmNSVo2LTVoa83YD7R/uqG+5oOhsNK0AZSVXXdyvDSYapITdG8gI5hzxc8FqHrhifqiVuaoieIJ/G8mAFabpQrBK26g== 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)(52116014)(376014)(1800799024)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: /jkalKXYxrcPdAF6XKMiIe4HJE8+jS1Yh1G99dXXtQb0tnRKd3A1bSpMe6VoUTtwzPV5Ha0bf6a/KNxu67UN9aW+UOAQB2WntBf8hxMYlIGevjbfZfI4kqE076KuYWGPg5WOQWTkQ8S0EDYRuGFRHDZPt/W5RQlHBVac3DIZdLrpYVRvBhawt1TNeS93+auWhhmz+Pgu7ICZLIpJctu0uXZM58smdCL7w/+E+o43DYvVnDvZp2tq5n5w2J+Xm7dNz/cQEozfdTn6nJb4l3Z9kvla1wVG0qYLfJQMJIbdYJjTtNHtO5m6OnhyGp5hNe2yv0n4/ytHM9httXB8XAkeA1Jg+DBy3OT9FJ4ZhYEk0Rx79OnHiwyO4RBjuerSFtMlwwdSi0Ijpi2+dcX7j9gIQdjibKDg3sAQ7dc3bvnzmKysEIAea7FST0vyCP/kh4Cjlo0QGvxcOzkWCKphUnHHa2VdY1PXYJjBjRpTOFK4UURW+ypNPzDY9pgIOCxs3w+zSqHNWc769ERpQ8wWuXY/sQgrNYBS7TSRfP1r/10wMkVEmBQISI438TSQSZRqz3zxMMWfWv0P9/vJ+erQdMhin301RyOn0Y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-Message-Id: f9e2b42b-a69d-49ed-4d2c-08dcb03c2441 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2024 02:05:53.3965 (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: CeL7F8tJ+TPLs0PF2bJBQ1g/x499BTF2cN3ou+Il/dUwxuqgUICOljrE/HjUTrH/ze0CRqSeOXiYWSf+QUbQtwdMoHP5pW3GkjQwGvaQFpehUa267HT674pBxmktEnqG X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYAPR01MB6427 Message-ID-Hash: HDCLEEZPQV2VJ5S2SFCQNVJV77ZSICZJ X-Message-ID-Hash: HDCLEEZPQV2VJ5S2SFCQNVJV77ZSICZJ X-MailFrom: kuninori.morimoto.gx@renesas.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: We already have snd_pcm_direction_name(). Let's use it. Signed-off-by: Kuninori Morimoto --- sound/soc/sof/intel/hda-stream.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sound/soc/sof/intel/hda-stream.c b/sound/soc/sof/intel/hda-stream.c index 8213debde497c..3ac63ce67ab1c 100644 --- a/sound/soc/sof/intel/hda-stream.c +++ b/sound/soc/sof/intel/hda-stream.c @@ -216,9 +216,7 @@ hda_dsp_stream_get(struct snd_sof_dev *sdev, int direction, u32 flags) /* stream found ? */ if (!hext_stream) { - dev_err(sdev->dev, "error: no free %s streams\n", - direction == SNDRV_PCM_STREAM_PLAYBACK ? - "playback" : "capture"); + dev_err(sdev->dev, "error: no free %s streams\n", snd_pcm_direction_name(direction)); return hext_stream; } From patchwork Tue Jul 30 02:05:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 816351 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 B790DC3DA4A for ; Tue, 30 Jul 2024 02:08:09 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id CEAD7E94; Tue, 30 Jul 2024 04:07:57 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz CEAD7E94 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1722305287; bh=eaREuIYdADP26AlAHjaTDRbgVAOT6w07YB3UZyxl/qg=; h=From:Subject:To:Cc:In-Reply-To:References:Date:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=hiLkDXChuO7Nonw5EsaaCWlnej5KgvPd9vmsfnu6tWPn93k6+qzSHiMLgqoiK8GeD 1fByapQdXofec/EpwlL99i9F0HrEFPL8wLO0TKYo+n3TyQ9GeAvkNFv2PoZQrz3Yo4 a0sVRZi1+dVy4U7ynx9P6244o0+na3DGvA13W2zg= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 8385DF806BD; Tue, 30 Jul 2024 04:06:11 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 3F242F806C6; Tue, 30 Jul 2024 04:06:11 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id BA165F806A5; Tue, 30 Jul 2024 04:06:06 +0200 (CEST) Received: from TYVP286CU001.outbound.protection.outlook.com (mail-japaneastazlp170110002.outbound.protection.outlook.com [IPv6:2a01:111:f403:c405::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id F0CC8F805BE for ; Tue, 30 Jul 2024 04:06:01 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz F0CC8F805BE Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=renesas.com header.i=@renesas.com header.a=rsa-sha256 header.s=selector1 header.b=A3R5HLeh ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=UuL/p8WfydZBB1c3uTLek2WJlKBSRzJe4cnn53DWTvW5NKUDvceHExUO6afkBFhhSdvUuMKwvzw9BLCdqqwkUJeESYCEssjVj2FJnSrIJkxGsgPNaCbE/wMYYbsBSThZhp46Rw+8Zb2xBmUHs5fcGeQF+mA5aZrZFynQGbaWi0S7KPQF3darVzjYuxFiTe8bpSJpDMA44vSGgXjEeWioR9z9hvx2TbrCjO+letZZiPLbqsnN6kzVJDV2kLz17qwId+uDi67p88CNXRSoAOPFrfeCwPja2ooXLc8HHGilj4Fdif0tbNEHTutSEm+ibMPoR9+plkRvvwuTyoLoSOouCA== 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=c3kNPnI2iBt8KcFwlRECRpZWKAHia4I5PXpVsBj49b8=; b=zBfWiRXYNtkPmFbcuIYsmooQKTob+74oNwn1UjiNbFJGQFDoqq/g/xfE3r2968c3vSwAIXIrBcWPjO6iIuV5Ai3neMElFNlBLb7gqJz7l8o5JJPPXibDYeAZkJdnezX5587x6DG6TUDLCrmUsgkJTnbvj5nBmEqtMLNrsPQC7XeKjQBU0c4+EXGAwMtGwGX2BZIbgHAC+nWa/fXLJT8yOEIocQWuz3g4MigMDI8i7xUPgEJjkyh7BgnkwwhDJnP4Y71NBeaYfYvmmX5AmDbFuuPiiywI3iImHdEzz2GbKtQFIaCi3mTDFLOaC4tqLfP9lzQUN1lUpkalamVSZkWvmA== 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=c3kNPnI2iBt8KcFwlRECRpZWKAHia4I5PXpVsBj49b8=; b=A3R5HLehdK/fevbqbvx9DjWXDu3hh/+pv9HAJf0/g0tCo2Pg8x8e66csaocauVwxqGrDNLA4zMeTApUZSvJHGjMk1rh45mpI89N8BYYJazylIioak3WNpfd436wKXtXJZpsGxcpKUkxaYSMK2YYmQtgcQJZ9PWhwqfGnN1GcoAc= 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 TYAPR01MB6427.jpnprd01.prod.outlook.com (2603:1096:400:a1::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.28; Tue, 30 Jul 2024 02:05:58 +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.7807.026; Tue, 30 Jul 2024 02:05:58 +0000 Message-ID: <87jzh3k515.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 09/12] ASoC: fsl: lpc3xxx-i2s: use snd_pcm_direction_name() User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Mark Brown , Takashi Iwai Cc: Linux-ALSA In-Reply-To: <87wml3k539.wl-kuninori.morimoto.gx@renesas.com> References: <87wml3k539.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 30 Jul 2024 02:05:58 +0000 X-ClientProxiedBy: TYCPR01CA0090.jpnprd01.prod.outlook.com (2603:1096:405:3::30) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYAPR01MB6427:EE_ X-MS-Office365-Filtering-Correlation-Id: 86f31d12-85bb-48a1-79a6-08dcb03c276c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|52116014|376014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: bDD/Rf19Y00X4LeV3SH7Q8SfXUDrvE+K7wKYcnsoI91+f8qCu11leZ7YAOGc8Ar/4BodACYjhbKOfwHxHPnjvB9b3qDjijGds84pt8V+ZAtxD+ug3/HED2BKgzi9yYLRVi+RaSsGyU4QUG+PBuw1c/W4KtDYvxoIYYJxrQhoUKXPLMiVhOTU5FytW/Kg+R63kSBo3GM1ThNmn56gFvHyivN3y18T1IN6Lw1QvmKHn/TSqcAh/i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Zqp8newRjIwePGQAkSPdpHipI9fBiZTX2rPO9xSh2P9sFsn97TrsmPMmJc7sX0uquT5p8/b/LRqZee74GVqhSUmiPnaF4FKObpJsUnEEo+Mbo5R6e0WA== 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)(52116014)(376014)(1800799024)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: N2l7NgKLiRHsfnj7oFCmHWHJUltqDHrbW/S8R2woGLG5i/5RXRn/xlFxwMQIgYgjYiULnYJBskVZM0cTrKb3msfDCtjTHE+cvqAFk6aa+qgiwYkLD2td0SScB+LrOGioxkNGC9Enq9SxDDrGuCT58e9yYhenhoSV8dFTzzjQI/H92uIGK7EBHZTNvRYfPnLUJ3s//i77V3R3wvk4P1n8XmEz8VMS8ebmZqUMupOxMDltlK3p7wMrT2fvZWbvNqijwli+QjgmBqmRi5rJE/CY9qI/SYSdLv53EUKtVDaLhSEE2KGxWzpgB4OrquewJVO4Y821w4jXlZB0br03tdRM49wgd0NQ4iYw39wlKv3gDMpqHR6u0WQiVsrGKRB5l5Bn2KrSZoL19I9bOX3ClnFS/PQd9v3t0XuyD02CAztAvl3OqykuEvm1GjDKo1sBpFWEae1xiBcEEVyS1NGewK+xUF6AwDJyTZEBb1rJmlnP9t9HbmqjzlsPj0JPzhvkkjqlU+yFseISKmPAJ2Pan25ncGXnb7BA4gBV5B6ja2DLJ6gySlO+TNmvF6L4KWHU/r83ybFJi7tjtriyWsFZYeV+hlyupsc1RmE3ZwBLePpnCt3ip78F61YjVZWCuy+zw08NxUNMcSEFRGaWM9yhfasZI/73gNZOLhKy+XpmtZOOSq39UdQ2GRNU3m1yNLLkrtBk+I/4mY9esKLql+Ynqq6bMI8vI9nLVkl2qxGM1ojJB74FMOfjmVtXSLLLjxaTrH4q/jJNKjyZR71hAOiiTvNHG3fbOUAHqsLfKiiyy9ww75kjCTOGU+WEWZWaRxTaehX5GSlazhbwDzulSPMlTHWnhZqT2H6Ur6c52QniNBo7scwMiOczgrRVLhj6C9bWeI3oO5c4AMRYPJbW3wVafoNIx5+sD2TvSTB8RQW8AS+X40UucKh+Ywj8s2B2WkoXX56p1aaxPcxEu3qCbtv2659GPS2uGt9iJR7fJZRlw3UUFPIIpzJ2l20NR/fA1dLkNrTmaGa6q6JqeZSJBEMSCkk00tuYXuU220f8bDfjU65HXvQutNWSDEqD6ywTJLKQVDzyMM016VNjFns22JNPS64QLehssg6Uc5astZgFjURjT2smCS8eVtH4jkJHeNa+hwnmLjA0VpWkA6VnE4OetdnViWG1nuEjE4qPzGGM5YXte7zIGHiv9HGQWdz9/RHpnMf/0QQrZCH+Pt43ghO2gbP6hEEgmzmUBiACA50EijOj6TvkwVGypDs6kX4CnNxziA+nhOwyFZ19DeTpyAoAhduTHv2xGFtVORt4lLnmYSJhO9Ddfc2tAWkfDIe+9VIZ4rOU22oAyeA27gylCyflYOLuyNeibif2fEPsxyv7VRzR+APKld6B7/Msv52664MJS8x918gDW1SLiYXZrhJ5GnO/E5cRhaO2hvvrAwW5YEgtHO7n3gYRYKt4ZgJ7Ih/eS/dmxD/jh4IhdtOIx3HiZBd1jsgrzEDLRGB29xZ7apiC5LpSB6RkYIquxu7vz1/5hAKQdhUgg3USiZ+jYacY5/ONuN6ChzV/Vre8WbRDPK4LqkjN4bJdcNFfg5EIKDrYZJobX/9wYbMEzJ6h43nUbTQCXXA5BdzRtVer7ehawSatuUE= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 86f31d12-85bb-48a1-79a6-08dcb03c276c X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2024 02:05:58.6767 (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: nxuFiC9eVFJecZI9grAjL8ZXSUuTrVgUxqoSOFyh6R0X7ld+o2t+FdKgAFOUe+ch0FuspPpbzZCtTmbYrP1ZH4AwvubS7BIbLEdPDWDbZcko+31NikgGfp2xe5nbza87 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYAPR01MB6427 Message-ID-Hash: 77NRHEVWGBYWGER2MF73MVOZXCTDPCBJ X-Message-ID-Hash: 77NRHEVWGBYWGER2MF73MVOZXCTDPCBJ X-MailFrom: kuninori.morimoto.gx@renesas.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: We already have snd_pcm_direction_name(). Let's use it. Signed-off-by: Kuninori Morimoto --- sound/soc/fsl/lpc3xxx-i2s.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/fsl/lpc3xxx-i2s.c b/sound/soc/fsl/lpc3xxx-i2s.c index af995ca081a37..ddcbfe1f92a98 100644 --- a/sound/soc/fsl/lpc3xxx-i2s.c +++ b/sound/soc/fsl/lpc3xxx-i2s.c @@ -190,8 +190,7 @@ static int lpc3xxx_i2s_hw_params(struct snd_pcm_substream *substream, __lpc3xxx_find_clkdiv(&clkx, &clky, i2s_info_p->freq, xfersize, i2s_info_p->clkrate); - dev_dbg(dev, "Stream : %s\n", - substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? "playback" : "capture"); + dev_dbg(dev, "Stream : %s\n", snd_pcm_direction_name(substream->stream)); dev_dbg(dev, "Desired clock rate : %d\n", i2s_info_p->freq); dev_dbg(dev, "Base clock rate : %d\n", i2s_info_p->clkrate); dev_dbg(dev, "Transfer size (bytes) : %d\n", xfersize); From patchwork Tue Jul 30 02:06:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 815344 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 34B83C3DA4A for ; Tue, 30 Jul 2024 02:08:27 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 9CB41832; Tue, 30 Jul 2024 04:08:15 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 9CB41832 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1722305305; bh=Bp7EUHbMlCX8NrGlSB2mlcwwzFXrG3jyeXK4vHJLKEA=; h=From:Subject:To:Cc:In-Reply-To:References:Date:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=qEVkLIwbmYZVW3DgDhF0HDndxOHyOLMVXmOkG/33WnT99vzFSyAsNGE/vNQQBowmP jJHZVak9ItcalX9wgO/bDKUdKnl0idn2YNGUzlwWA56i92EBLh4i1HDEuoqyXEMr39 hq3l/kC9xg3mLXD0QcjKTJmNeHkaYaFZ9G5/nDuI= Received: by alsa1.perex.cz (Postfix, from userid 50401) id DC5EBF806DF; Tue, 30 Jul 2024 04:06:14 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 70EB1F805E5; Tue, 30 Jul 2024 04:06:14 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id E6DB7F805FF; Tue, 30 Jul 2024 04:06:09 +0200 (CEST) Received: from TYVP286CU001.outbound.protection.outlook.com (mail-japaneastazlp170110002.outbound.protection.outlook.com [IPv6:2a01:111:f403:c405::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id C959CF805A9 for ; Tue, 30 Jul 2024 04:06:06 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz C959CF805A9 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=renesas.com header.i=@renesas.com header.a=rsa-sha256 header.s=selector1 header.b=S939cQuR ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=vOddaXstN02B5biK8GudbkBKlQICc2Rap14kNf/tJQcdliaCVY2WmMOV3G2oA5tB4TDsUxxpkvNfMe0TDFfrOdxOYhmJnLyFXcHs3uplMQfpHWkuiM0/88pCVTSowUQfjRhHGQ10bAgzlBBBkW5Ln0zWHAxzZgZTx22M2026MtsmpZKSg/WuwnR7LsX/RaaXj2dKuL4NwMqJfRRJwmkfk4RQgVFHWze5rcdwMFLS7YLF+tjyePfle3nl63y9foP8Pc3E3GQ8BUpUDzpEMUuZLKpYNmdY9JcEYwTAA5GN7IMamE1gsP6T9WpDFs51SFaq6BwRY1CErEDRo6+BiOtj/A== 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=PNrZMqv2BKjyKQJMUoZ1S5TDVrPo+9FSNc9wZOBwspk=; b=co7NSbH+4GsAyD50K38gD2O/8KCiYraEv3DOw/uhW92oTDkAtAtLG329ued3UXckGYgKok238DiyGmrodbZI6FHF/vy79JZ0UOmM+w8KY1c3zETN/z2oBfBMbLqU4UvuqvvbqhOXYEFt5ZLJ6+aAcFQ9M5SciiMvBz3nRgXmfotT5pBhZg3gOBNYWXnLUu9NjxmJoJDfy3nQz9biG1HEbbtXri5VIx+WJ/A0jP9WbD8DByfFOwfaTjUexK4HPHElDDuGEPTHvhggh7xCEMqp25DIGzxQG+zPeM/c2Txk8XdppMSp6pHFkgzxzyuOKXAAJn4fuzLrHhe2ylVQLVIdrg== 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=PNrZMqv2BKjyKQJMUoZ1S5TDVrPo+9FSNc9wZOBwspk=; b=S939cQuRwsXnf+vAF3VOK75VBVNArimW8dTGdpZXwczQq1wIHqF/1oGTI24OwAMtl7iYAku05khssEw3md/Ce2uWMElrxVXB1H3R10hFStUt9Efp8LtKHOeWzML8+OQukkGAeBGbE352wBXUtlbooUKjTWWlpyHvOOjSy5X3m9A= 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 TYAPR01MB6427.jpnprd01.prod.outlook.com (2603:1096:400:a1::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.28; Tue, 30 Jul 2024 02:06:04 +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.7807.026; Tue, 30 Jul 2024 02:06:03 +0000 Message-ID: <87ikwnk510.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 10/12] ASoC: tegra: use snd_pcm_direction_name() User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Mark Brown , Takashi Iwai Cc: Linux-ALSA In-Reply-To: <87wml3k539.wl-kuninori.morimoto.gx@renesas.com> References: <87wml3k539.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 30 Jul 2024 02:06:03 +0000 X-ClientProxiedBy: TYCP286CA0198.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:385::13) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYAPR01MB6427:EE_ X-MS-Office365-Filtering-Correlation-Id: 4def750f-ee63-4bfb-e752-08dcb03c2a93 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|52116014|376014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: fkFdmtjD+DELYxSxgy4CfTVbNZA3xEwq+TJlVHys3q2KgmaTPhp1tKOwt3NL85lumvIbMOyjAJbfp+aAhna/TASM+bunwKEZooYYtk3b473+FNHDkP2FvQ4xJ7WfiNRpXpu9Tm5h6YT+YMAOkerF10+xvRgGag4PD/52IVg/7XcbOZvNF2x4r3PxDVE22lr6u2WRCF8lY6We4ziwTwtXwmneP/s1+VVV6K9HUemdkv8/d3lRg7EPbXAbA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E1Bq/yByTG6XJzJ5k4lNy4LHrErL1oHbUA1xPJTP2EGVsBWIWGAVVi7RxZugnG0Le8aU3VqL6qZHBLjiiEwTantoaMDLvuOpXRw== 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)(52116014)(376014)(1800799024)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: sYLqQgw87Vwo8J9ZNSlWgFbteU7eNR5Kk64E9Z8JwngWneMCqFwKLsqH1Th5b+p8QrSywQGY90vhCv6oYdcTI6PEjwpSV6VMyUy/ASaHC0fkJrhXo/Mn7ifA2IMWRbDXPoYMNOydAZTmSuWXXmaQryyUqbxIKNN7J8mTMfN9aoVMwzMdDtvsYnHYT1tZL1QwMkoywATnReHl84AG8jg4izRp9ecEtfryOO9RmY1b5EtIM9D9AVEt99hjyZg1FWLcMESvgIedsq3MHfVKSIuzooWAewt/DP8pbqFUWvz6lybQwHopDGO5e5ADOLvdF8FJgYud38sUc/4pkQzV6kieUQuED75uq2BeHWW0MUbY+qtJIshhF5odeo3b400qEpasSKgAVcqhkn6zdeAAw6wAu5JrUDEy8Ujs+CdotiwskSy4gMblfGPelSdKEzEEQ9rGvXusoPz1r7eLbpXMX7zHiBrBXwdz3pm+IxSkulW6JabGDtVEaAdQty0xoojCdY4faOP1KWKlM0YcCX6aQyuZ1Ukyhdq/HAhNEeyfZPM+uh87UBtRCeV3aHtffLwGJJ4/32sreu0BLkf/5u+7TG+24NYz+VgZzTNLCna6RdCBr8fqj+duhw6g2/4ND6fVrYdu3r0RTmu7a/97t57r/BO/fTSXOvclWkeUgxLvcdNlJD2UmuS8EdF5bu54p+Ymm8xXNuCcw9sVvfNm0IKG1QIQdZgvMazOa+zkSyl6uOHyQyvBeP+OW0NR9daBS0gRzCQfTm6/gIUf3xOIwtkE0EZzpiU25yRmZYT2eagdUuvTggK3JYMsELlC59ox7eDIVlf4ZTcOCSmfOJ9Rm56NzpbhqWMNBvJgMUpe4D64ojtfVIUmsEwW3+BUmRqZeAQHiy5xWjqealOcEJ7lZPr7iBwGCh0bIVsXINrJH/eWIhAT/ujZzPS98nWt+VLx7SXlw1SP7NJ7i7kXhDaJ3S565w+1OUXRz+nxFdOF/QUc7cpzf91bwcLXAN8XwamSkcKDUGyhodsVKLy4HJrGozSHjkSQT9MrxD9Mg2IhDdanPI3qUtrGUP82wIxJmv/4NDBTCXUOp0kebZnkx/3wwFJLevKsRtHtV5JbZSaPtYV69MyxmC4ohwAKodTyF/ogqVheFIJIMhkGdHZ70J/VVaf/SUHCnNEcChn98nR08wVOwhTwxJPandAjRJPkZOheoplGiSq+44u+mtvWbkK/8huuzo9fk4EMS6W9vpGfV3li851IsZ82idieI1j+bnFWuolBmtp9ZTBfG/pDOV4HLJAwotZb1Jltz4fD9kxAEHzitdIW6yJy1eqXjqMEDZ4HdRk3oGF+e+2uarbKTPX6RkUWLPLRzizlzTD/LSu5MYrQLK7EccJST6CEkdTONoRqZ2oXLoiap3Vu2t+Qai0rX8KcESydzied4PGd1yuz1f2aTSXn83knnYvob59TKX0RGOT6xf5RP5VC3c815pGuLjU/AKIparwCPPgH6arGfP53zSQYq0FTbWcE4/VykhNk/9VPgk0avS9bzC5h3oymRThECIJ/9ecd+I3CqTzOq3iOJy0Poo/Ajd+mL/nHVMeSPwS1NQ2M1aleloCKNjcGvk25/HwiNp5jXAnSqD9sxfAE00S2YvA= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4def750f-ee63-4bfb-e752-08dcb03c2a93 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2024 02:06:03.9528 (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: xH7mzxAY6lRHW5dZDUkbhI1TYO6SNpwcq/2W4Jx2vd1+3/HfWPQu8uJO16ddEL7mh8fhYAMCpO062lr9Vd2J9auloP5UHmMfoVEU+U1NCrpaxCwLxIHabOJKFRWMg+RY X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYAPR01MB6427 Message-ID-Hash: AKMHX2Q6JWBI5HYIISYJSLT37M4ZQJMN X-Message-ID-Hash: AKMHX2Q6JWBI5HYIISYJSLT37M4ZQJMN X-MailFrom: kuninori.morimoto.gx@renesas.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: We already have snd_pcm_direction_name(). Let's use it. Signed-off-by: Kuninori Morimoto --- sound/soc/tegra/tegra210_i2s.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/sound/soc/tegra/tegra210_i2s.c b/sound/soc/tegra/tegra210_i2s.c index fe4fde844d861..e93ceb7afb4c4 100644 --- a/sound/soc/tegra/tegra210_i2s.c +++ b/sound/soc/tegra/tegra210_i2s.c @@ -85,7 +85,7 @@ static int tegra210_i2s_set_clock_rate(struct device *dev, } static int tegra210_i2s_sw_reset(struct snd_soc_component *compnt, - bool is_playback) + int stream) { struct device *dev = compnt->dev; struct tegra210_i2s *i2s = dev_get_drvdata(dev); @@ -95,7 +95,7 @@ static int tegra210_i2s_sw_reset(struct snd_soc_component *compnt, unsigned int cif_ctrl, stream_ctrl, i2s_ctrl, val; int err; - if (is_playback) { + if (stream == SNDRV_PCM_STREAM_PLAYBACK) { reset_reg = TEGRA210_I2S_RX_SOFT_RESET; cif_reg = TEGRA210_I2S_RX_CIF_CTRL; stream_reg = TEGRA210_I2S_RX_CTRL; @@ -118,7 +118,7 @@ static int tegra210_i2s_sw_reset(struct snd_soc_component *compnt, 10, 10000); if (err) { dev_err(dev, "timeout: failed to reset I2S for %s\n", - is_playback ? "playback" : "capture"); + snd_pcm_direction_name(stream)); return err; } @@ -137,16 +137,16 @@ static int tegra210_i2s_init(struct snd_soc_dapm_widget *w, struct device *dev = compnt->dev; struct tegra210_i2s *i2s = dev_get_drvdata(dev); unsigned int val, status_reg; - bool is_playback; + int stream; int err; switch (w->reg) { case TEGRA210_I2S_RX_ENABLE: - is_playback = true; + stream = SNDRV_PCM_STREAM_PLAYBACK; status_reg = TEGRA210_I2S_RX_STATUS; break; case TEGRA210_I2S_TX_ENABLE: - is_playback = false; + stream = SNDRV_PCM_STREAM_CAPTURE; status_reg = TEGRA210_I2S_TX_STATUS; break; default: @@ -159,11 +159,11 @@ static int tegra210_i2s_init(struct snd_soc_dapm_widget *w, 10, 10000); if (err) { dev_err(dev, "timeout: previous I2S %s is still active\n", - is_playback ? "playback" : "capture"); + snd_pcm_direction_name(stream)); return err; } - return tegra210_i2s_sw_reset(compnt, is_playback); + return tegra210_i2s_sw_reset(compnt, stream); } static int __maybe_unused tegra210_i2s_runtime_suspend(struct device *dev) From patchwork Tue Jul 30 02:06:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 816350 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 CBF82C3DA4A for ; Tue, 30 Jul 2024 02:08:41 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id E9EC3EC7; Tue, 30 Jul 2024 04:08:29 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz E9EC3EC7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1722305320; bh=mYuTvqtStt4B4q9ahq5WB/z6GrhgByodBdB1BgAGqs4=; h=From:Subject:To:Cc:In-Reply-To:References:Date:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=i8/cP52sTNH9N0ceh2JbNiHJAD5lXkdgArvpgCes4c4SA4H1Lj/J9GTPN7NUVc6Am a2peQW19+KRged+u24W0QtG0s5gtf9z32pMiqnxcOnrhkmFoM9mjgedhGFK/1BEmtb b5Z0XZCaLKiDieewKC2kER3zTqgYlER3XKc+CBMc= Received: by alsa1.perex.cz (Postfix, from userid 50401) id E6E37F806EC; Tue, 30 Jul 2024 04:06:21 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 67BC8F806E8; Tue, 30 Jul 2024 04:06:21 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id A1854F80606; Tue, 30 Jul 2024 04:06:18 +0200 (CEST) Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazlp170100001.outbound.protection.outlook.com [IPv6:2a01:111:f403:c406::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id E3512F805E9 for ; Tue, 30 Jul 2024 04:06:14 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz E3512F805E9 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=renesas.com header.i=@renesas.com header.a=rsa-sha256 header.s=selector1 header.b=BWOO3Ol/ ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=aIXgQ0HXcZDax3szUfcMgZHXq/LON1ALv50E7qQSaEEuF13G3nwyzHPCu8fgX+QrEx2aJgF2U6quRbA1OsCKOxK2YbyYXNBApEKTf+UAkVmLblirQeO0Ks8PdyQAO1SrHi9M1tCLhAXz6X8We79I2wcqgIPxKEMvXwxK84ph9kI9yJktK8zYdvot46o71zeantPDlrQa5EWeu3aw9q5cq+CHB0VA3eGKIwfdKtN07/KaZqNqj+E+2xgdc4Tg+hisXoedtkZeSoHKYEUB2W74t5yfb28vWPfwSEXRdjY+HCCS97lly7tmWAXsgM7kNuQvGVvjLU820zD5V5fzoxGCEA== 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=GkKt+cOgw4RBFWf0ynqXrMiNv/H3mOk5GGEgecNi1Ik=; b=e1UcjjgBG2dpm2zcmKg05P2/sqQwFV8+SRmwMULglSo2qb9a/QPZneBSjQEHi4kpAev2/ivtsOhZpMU2l3tP0HBLaol8BB998Pg2HH/72gB/IoMBlKLfrGUccmPSFu7cIEB2BQzh7Wi2XxfAUkDoLlMzi972lhori6ZZ5GCkCtgYUnY7Q3klmGocU7q089L/gi2BwtwZ5DBqZ2SsOmH1Tnt0NQ7cEhvb6m/DwIHk2V4rDekOYrHBuEhFo4vz32Awy2i0HtfgHkl7gp7zDSTEmXROJ48qV9cwmG6N/foSPMJbxFeiawg7DOEb/73UOq3TvOPFWs08W6BXj4eEHI3kUg== 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=GkKt+cOgw4RBFWf0ynqXrMiNv/H3mOk5GGEgecNi1Ik=; b=BWOO3Ol/JEh8xw9lTekJoOuC5/eu5k9f2GoInRoV0FW4/7slee+Jkg5msBs6elJk8PNYMFcgSn3uNI0hzxwrRGE+RA5J62furK+IW+cvUBeijMFciJeScY8AypkMAthTOA+4XdMWds5pA3+q1gvJA6Raaq5ioSYZf8sdEExWFig= 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 TYCPR01MB6621.jpnprd01.prod.outlook.com (2603:1096:400:ad::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.28; Tue, 30 Jul 2024 02:06:11 +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.7807.026; Tue, 30 Jul 2024 02:06:10 +0000 Message-ID: <87h6c7k50t.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 11/12] ASoC: soc-pcm: use snd_pcm_direction_name() User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Mark Brown , Takashi Iwai Cc: Linux-ALSA In-Reply-To: <87wml3k539.wl-kuninori.morimoto.gx@renesas.com> References: <87wml3k539.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 30 Jul 2024 02:06:10 +0000 X-ClientProxiedBy: TYCP286CA0200.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:385::6) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB6621:EE_ X-MS-Office365-Filtering-Correlation-Id: 92c9e006-cae9-44af-5215-08dcb03c2eb9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|52116014|376014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: 4XgjXfyyVl77oT9ujKsYHPn5x9e9qR+FKIZepT4veUsSIwbRPP5jVUPVVVvU7IG8orByLxpOjgT4kAJLieYCKBQs7sx4rzbAnhjA7SOYCBrcnN6XFv4BpyGL0M6TVvf3FyFbCirSqvsndL/zG7Rkr5Bdm+74qxQFjfBSzpydrcgeSDNupyW2JTrs1+ZBpOQJCL0IxgST7jPMvtkdequKmU1IMikRS39i8GT1eAK3E7Wu9qtFr4QKUbutQkk0SFV7X3WIWtKjRxU1+Un2oaPaXbRJqB39lug8k+jJO4so6k7b6aDpVKIyH6SgOgTDHKUqpg4S9oA/D3vfba2n1sFEPvHIHyuvzb8GNvbTB18qaY1J3E2u+m/UhbPWdWTHIyfhsiLplNLTJLv6GbWnulIsGnlUgqyQWTjTANcQ8fRknFT31FDr+wzkRyWIXXO6n7zvJrLeH7gcbhdB9LCk7g4ASxRQDOP2Ib04PQ4Oz65G//Kfrx4aGcLBqnp7iDDNAu4lkUu92k07zblsrTp3j1KlkoN2nFXlG3+D85hBJxgnGxJ6cygirMn7LtUznWwUfBQPhP+6EY1qRT5R6cNq5p4xNvtKXhhbCZpF4WyJRrUgjR10LCQDv24+MjU1Ib6j24U7kJ+VyL94dGZ9EX6VzoxGfQtkV1hEzhxhBVZsXQEhWRd62FuJh5Jjii3AvTLSLJcw2II/MhHi3cRyUTFItei6pQ7e3qFRB/Vbo/JYunGlpsz96CDe3NZti199CxLnU3Faeaek6GmwnFL3fpcllDEXY3pAdalbOAciybCOTaMfNl901Dw1VTL0m0y/8HCOnpUW5lBl2Nib9KqsbJUVTvgjnHQkEI42SPJRNhQTkhqKMLcCwknFvdDI8wHCQXjbyaNwlcMVPVlsA5Uur4x+zJsetkFyYapNokWBuvgA/HtqfvQMCzeO+jCXNVXDjErEDadh2pZKsVidixVLqZgfiJzTW85j047kXpKuoPnkkAiIPV30EAf+P3T12GiMSLtOw13PPR2Mq2On2NavG1lyRm5FvRFkgjluG6Hdz2eTh04ens+kr9/uvGOiHSwtdUeGnf9pMLNieCNgvGpIJZ1Zuhrn/SzyrMSup68FjDHEj7pht2g0XU1e6bZSOSWoFpT26WQEdJ0B/9+2eIvCQDVy7KBEklPlOeYLDXZRPMlQfRCF6dbI85WNsLWvsAblBgoyfRTD8js8KqLnT7VWlhhvCDeXZCT75RmzBCM0oiS8DeyCyNfmdH9PCcgSDCxckWsI0FfUROqLvdeNoTGTva20Nwp50qD9vStqnWLNiVAlWk/EjhSQrUHiKUAlDHJf2CsyUsiw3jv561DHD+xLAYljvm6c5dnpt5b+2qx8If/6bmt5Iarl0C6h6OLEMKKBN9/giPt+g7Ouj8P5NDBh9p8RGrmovQ== 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)(52116014)(376014)(1800799024)(366016)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ykQIPCNxK001Py9y2Th7FecmbTh2wVxoTOvzjsVTvXK6cFL2bGEQDxQ4hbju8dqHJouVuHEixIplJjKJDl2jSI1LNt3ogL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nfKt0Q9JINmLoy6gPrGDZtNYci675RXvFjjdjoDaB1aCBvV2VvAW13XpHLdw9gxkZprsJD7Lr9XZl96PXbwtcZvvBrABiuRJiNydQgA/RwV4yP0mU+oobDHIkDZQDwoyc1RFCzAQKESAjY0l5m95u5bU2Q85Fr64KjQ3fzG3FIfgKKq8HNK8obUA9lV1hUZ47IIOpC6kEroFULV0hw6oeH+GLXn6DN5zzFXk9YU1T+H8MDKUe7TXIMjY0fJsK/yAqlBs7sL5LXI+ZeY6dmvz4prRka7B55IVD6blZOfALmqiEi7kqTvs3PE3rK5HYpUpzLMw6GTfCfSbU3Jn7FGhTKg4OCMXBpeJ2c3DVYHWanOY53esUeP2+cwyy8YPhQ7VDzb3r1ABlJ6lK2U4X2tZ5AhM0FF/sCqybnpPYkWOeEcBNN67Q0l11tzOnh+YS8bztP7oYRsEUZ2zyCfpUblk= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 92c9e006-cae9-44af-5215-08dcb03c2eb9 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2024 02:06:10.9061 (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: Y0LSENsPy5ATfscnlf+cTHL/7iKDExNEc4RCduEkMd38Lwq/x0QVrychMDa5eiS+ZK7FcqhoqbJ15CIG/I8fq74vqInvYRRh58ZklVefz1XwyYoHakIwNSHkKRZf7b2b X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB6621 Message-ID-Hash: K4G67FFHPVHBZM5JFLX3G25RWZLJU5ET X-Message-ID-Hash: K4G67FFHPVHBZM5JFLX3G25RWZLJU5ET X-MailFrom: kuninori.morimoto.gx@renesas.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: We already have snd_pcm_direction_name(). Let's use it. Signed-off-by: Kuninori Morimoto --- sound/soc/soc-pcm.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index bad823718ae47..5520944ac9ddc 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c @@ -222,7 +222,7 @@ static void dpcm_create_debugfs_state(struct snd_soc_dpcm *dpcm, int stream) char *name; name = kasprintf(GFP_KERNEL, "%s:%s", dpcm->be->dai_link->name, - stream ? "capture" : "playback"); + snd_pcm_direction_name(stream)); if (name) { dpcm->debugfs_state = debugfs_create_dir( name, dpcm->fe->debugfs_dpcm_root); @@ -1278,7 +1278,7 @@ static int dpcm_be_connect(struct snd_soc_pcm_runtime *fe, snd_soc_dpcm_stream_unlock_irq(fe, stream); dev_dbg(fe->dev, "connected new DPCM %s path %s %s %s\n", - stream ? "capture" : "playback", fe->dai_link->name, + snd_pcm_direction_name(stream), fe->dai_link->name, stream ? "<-" : "->", be->dai_link->name); dpcm_create_debugfs_state(dpcm, stream); @@ -1306,7 +1306,7 @@ static void dpcm_be_reparent(struct snd_soc_pcm_runtime *fe, continue; dev_dbg(fe->dev, "reparent %s path %s %s %s\n", - stream ? "capture" : "playback", + snd_pcm_direction_name(stream), dpcm->fe->dai_link->name, stream ? "<-" : "->", dpcm->be->dai_link->name); @@ -1327,14 +1327,14 @@ void dpcm_be_disconnect(struct snd_soc_pcm_runtime *fe, int stream) snd_soc_dpcm_stream_lock_irq(fe, stream); for_each_dpcm_be_safe(fe, stream, dpcm, d) { dev_dbg(fe->dev, "ASoC: BE %s disconnect check for %s\n", - stream ? "capture" : "playback", + snd_pcm_direction_name(stream), dpcm->be->dai_link->name); if (dpcm->state != SND_SOC_DPCM_LINK_STATE_FREE) continue; dev_dbg(fe->dev, "freed DSP %s path %s %s %s\n", - stream ? "capture" : "playback", fe->dai_link->name, + snd_pcm_direction_name(stream), fe->dai_link->name, stream ? "<-" : "->", dpcm->be->dai_link->name); /* BEs still alive need new FE */ @@ -1441,10 +1441,10 @@ int dpcm_path_get(struct snd_soc_pcm_runtime *fe, if (paths > 0) dev_dbg(fe->dev, "ASoC: found %d audio %s paths\n", paths, - stream ? "capture" : "playback"); + snd_pcm_direction_name(stream)); else if (paths == 0) dev_dbg(fe->dev, "ASoC: %s no valid %s path\n", fe->dai_link->name, - stream ? "capture" : "playback"); + snd_pcm_direction_name(stream)); return paths; } @@ -1487,7 +1487,7 @@ static int dpcm_prune_paths(struct snd_soc_pcm_runtime *fe, int stream, continue; dev_dbg(fe->dev, "ASoC: pruning %s BE %s for %s\n", - stream ? "capture" : "playback", + snd_pcm_direction_name(stream), dpcm->be->dai_link->name, fe->dai_link->name); dpcm->state = SND_SOC_DPCM_LINK_STATE_FREE; dpcm_set_be_update_state(dpcm->be, stream, SND_SOC_DPCM_UPDATE_BE); @@ -1605,7 +1605,7 @@ void dpcm_be_dai_stop(struct snd_soc_pcm_runtime *fe, int stream, if (be->dpcm[stream].users == 0) { dev_err(be->dev, "ASoC: no users %s at close - state %d\n", - stream ? "capture" : "playback", + snd_pcm_direction_name(stream), be->dpcm[stream].state); continue; } @@ -1645,7 +1645,7 @@ int dpcm_be_dai_startup(struct snd_soc_pcm_runtime *fe, int stream) if (!be_substream) { dev_err(be->dev, "ASoC: no backend %s stream\n", - stream ? "capture" : "playback"); + snd_pcm_direction_name(stream)); continue; } @@ -1656,7 +1656,7 @@ int dpcm_be_dai_startup(struct snd_soc_pcm_runtime *fe, int stream) /* first time the dpcm is open ? */ if (be->dpcm[stream].users == DPCM_MAX_BE_USERS) { dev_err(be->dev, "ASoC: too many users %s at open %d\n", - stream ? "capture" : "playback", + snd_pcm_direction_name(stream), be->dpcm[stream].state); continue; } @@ -1669,7 +1669,7 @@ int dpcm_be_dai_startup(struct snd_soc_pcm_runtime *fe, int stream) continue; dev_dbg(be->dev, "ASoC: open %s BE %s\n", - stream ? "capture" : "playback", be->dai_link->name); + snd_pcm_direction_name(stream), be->dai_link->name); be_substream->runtime = fe_substream->runtime; err = __soc_pcm_open(be, be_substream); @@ -1677,7 +1677,7 @@ int dpcm_be_dai_startup(struct snd_soc_pcm_runtime *fe, int stream) be->dpcm[stream].users--; if (be->dpcm[stream].users < 0) dev_err(be->dev, "ASoC: no users %s at unwind %d\n", - stream ? "capture" : "playback", + snd_pcm_direction_name(stream), be->dpcm[stream].state); be->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; @@ -2531,7 +2531,7 @@ static int dpcm_run_update_shutdown(struct snd_soc_pcm_runtime *fe, int stream) int err; dev_dbg(fe->dev, "ASoC: runtime %s close on FE %s\n", - stream ? "capture" : "playback", fe->dai_link->name); + snd_pcm_direction_name(stream), fe->dai_link->name); if (trigger == SND_SOC_DPCM_TRIGGER_BESPOKE) { /* call bespoke trigger - FE takes care of all BE triggers */ @@ -2565,7 +2565,7 @@ static int dpcm_run_update_startup(struct snd_soc_pcm_runtime *fe, int stream) int ret = 0; dev_dbg(fe->dev, "ASoC: runtime %s open on FE %s\n", - stream ? "capture" : "playback", fe->dai_link->name); + snd_pcm_direction_name(stream), fe->dai_link->name); /* Only start the BE if the FE is ready */ if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_HW_FREE || From patchwork Tue Jul 30 02:06:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 815343 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 67A05C3DA4A for ; Tue, 30 Jul 2024 02:09:03 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id A6CBBE9A; Tue, 30 Jul 2024 04:08:51 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz A6CBBE9A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1722305341; bh=ol4ya0qamk80qOjUHjRiwmU+TPxNjSCFxN22timvOWo=; h=From:Subject:To:Cc:In-Reply-To:References:Date:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=Jq/3w5TosRZrgl+WLsbQTWlHQIwjFi5GX23hKmKORKwFq9w8XtmdFjJu+PAupWMHP wcrVsOebz6qhaXyOdWmcIij++7f7OxSWu5YNYeMgZNHHkn7tiD6ygV2jKoSIqXNK/P SJ86KFV7Vu8rnGqtN53c7SxdGLhTdpXZdHb+cU+k= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 731EDF80724; Tue, 30 Jul 2024 04:06:26 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 95775F80710; Tue, 30 Jul 2024 04:06:25 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 1DCEBF806F9; Tue, 30 Jul 2024 04:06:23 +0200 (CEST) Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazlp170100001.outbound.protection.outlook.com [IPv6:2a01:111:f403:c406::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 14A50F806E7 for ; Tue, 30 Jul 2024 04:06:19 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 14A50F806E7 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=renesas.com header.i=@renesas.com header.a=rsa-sha256 header.s=selector1 header.b=jgcj9pTo ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=TH5OEnkwKKfblbpYITEFGQVnX47sro6g7XJQQHoffZdEQ3wImgy1ZpVPJyofNNwPUFbRfcBJc6VJp96iBcj2OGToGLv3sbdVJEWOS9iL1OlJJou+wwmAJnhRBgvFi+FtV94HtKRmwvsdQKBbNyk2yplJnjGwKHzcqzE31CrMNwAiAoILHM/ekyTjQQT7XEZbQDAf55BF4uCszRmNSLFVAdhEYXc2lqJrTss2tbNNMPr9w+RfSnz+pyjhh79NAeoao969B+uDQwW1oXNad/91T8t4LD3ThWUbGbHt/g+jy4JdPMwp8aqmqbQXyaaysd82FMg7dk6mSKJ603IAJ/pusA== 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=bBtFsctu3wXsrYfQvso0c5tmnb1tncxhDtGIqP0SH5A=; b=JEPC6mgt7zuPNMrkXHZ8iqJtnAQoExlvGUaB+V93dC0GcJ+fy4HeXNrgqRZ8x55T4hEgk/1NoT5tOqn27YxQo3sXgotnciSChyADtUsoJFGZLuyrVc8RQ5Yt7pHLtmJ2Ep3fQMN66SE/qU2op2t8uom+WH/vVS/0tRlTDNPCRZnBVIVkxVgY5phuByVBCip2BNS9BMlM2mLaPLcKHc84sqrmOpmHOGcGeFtBUYrRNusNmj+15p2g2xUPZt4l/KpyDc19x0TAj3Ubi286vDaNfTgTnjDaFTI5iUKaATCH2KJP3+tFyLTjtqoKKxAdifDECRcw7rVrDFDuge0uigqzQw== 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=bBtFsctu3wXsrYfQvso0c5tmnb1tncxhDtGIqP0SH5A=; b=jgcj9pToCUDuEqVv5kA9/NYepPE5ZEC5Jme+LnH9fbiJEOwWA9yX7B3+iq6aI5qFul+HEY6fFxOvLZA/1PrFf/B63NhcqnBMJIhZ3ZDcLjSnEpK6/44cSN/lycMa7sbv4Vjnfd/mSgL6w+/mz2uDobCokSEACfgb97SBF/23VJI= 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 TYCPR01MB6621.jpnprd01.prod.outlook.com (2603:1096:400:ad::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.28; Tue, 30 Jul 2024 02:06:16 +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.7807.026; Tue, 30 Jul 2024 02:06:16 +0000 Message-ID: <87frrrk50n.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 12/12] ASoC: soc-dapm: use snd_pcm_direction_name() User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Mark Brown , Takashi Iwai Cc: Linux-ALSA In-Reply-To: <87wml3k539.wl-kuninori.morimoto.gx@renesas.com> References: <87wml3k539.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 30 Jul 2024 02:06:16 +0000 X-ClientProxiedBy: TY1PR01CA0192.jpnprd01.prod.outlook.com (2603:1096:403::22) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB6621:EE_ X-MS-Office365-Filtering-Correlation-Id: 1b780d93-3aea-4123-286f-08dcb03c3230 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|52116014|376014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: Gdge4efN3vV16u6Miz3xlLt9pIbrSY16DUAefPfjfk5a4rU+wdtinx7cw9feNiVxZD2PXE5hVG7XTSrKsS593M/TqSPFxF6CqXsXeP9AaKpK8CEKj+dFAMf5KCbgo4T6bK1O//urw7ENuYOQsh+Sff9jfZoTc08rwaKgKE7rbDXY0TVBndHSWogHMkwr0WbTGY6vqX1zl/BUGh4iDe3S620qMuK3+17LJ//LEUpWbTeR4HpUAIMqXxtTaAyREjeNt0pn1jY7I2TCN9FjR4jYNFsEm4N/20pEBqj04I8DyOlBGI1ib8RM7YVPHKutCWKQJjQw11wEMbMXSErpIZr8yOY/mrha942t4zkjEVuQfLfk0ThKJQJfa+KkIf80F61qMNWtc8+R8W423kQNrDAwsbN7frgMwfBWQ2dsYzyP5oG4q9WltKa5FhUZhJNV2bXTqZ4lRBnshlTz29ZCPqIbUCiLstQUOoO49d2wy9Ne+9AkwvfEr/Bu7kj/tXpqFUVF0Bu1xq3WUHRnfOVNDXY1a2pJNgTfpDMvjfPNBzNpRh6hV1j3GL882uvx1CMuuFdCLpCcTuEloIqZ+P011/Q+ljajbUx+3pyD8FD6jyDoPokCm3d9zyXqXB1QWpk+tsa0Izc3yDVxrjmWoLr2fbFagS9B/S0er+apamHlUOmqSc7yhtJUfwv8BHYgyC3Y1gOGWDXSKi+t6MIkupPU8MQyvC+dTiAhXHQ0QNFpCnIBQUprsCx2e9DWOaoh67+9/liqCulYXoh5I5bIQb7F34IFaas8s8tmMiy44XoOCKlAlTMwPMjz+wGuyr73CLc6YVHBoGKIFYM9aBFpDpn8tD2VxHtpM8MrMCzRq+RVzlOsbJpNvIatbFljL6/4sOHLlqS8dAD1KxfK5htESklvyy9ByHpcft6y34K9b3SDFcRpxSEgn7NOngXc3GtsbXC1VLYumNr4u3fI9Bz+TyNpr7QJDjQSyc4bqrb24WBOxhaKmv2METa3sBNXNhk8Z6hYDs5ZHJk0oYlK9rt6hTQf937v2J8rizn3inNFEKmT5lM5B8Pqf9c9XzGBYTyjINzdoD8lY3STP8wwO8yUYFkfTGCB5SzbM6bQ1wtMFAYDHy1FAZQ4OWf3DaUGE+RkfYD4bvDSYYiCCbtYCzEDiPqUbMplBbZK8QkuJnZNAoxIcVD0wzHU30rJkvxWtQOgE+7sIK/RksZY2KiS9BRwTbX6ArclEwyuwzmFciVSBasKQzAWOcoZnn1mt3HD0BEdtsvSjqAKBSAeoIR/KrA5/H14O4K3gRVjBTXfnh4l2eMLWQUeNudiEEbFEAu4YYKhGZbeudB11SaHOal36mvs2WEX2acK7GfDayNtueQJ2Kw2poarv77U3RMs9aHIZd6XfL/f10bzlHd8ql8zcw7pAsy1EzongA== 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)(52116014)(376014)(1800799024)(366016)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1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vJz98aBC2zXqtobylDJGR9yL8AeRwtA73fkKjO67lA0zdDMiGu92KgaoJ6YAzNmdAzO44pSWI8R/IRJtai4Lih0jVO6qtbVIATmpDFSD0bsNzhGsnl3JkD1tznaXriiMMi+wcg5sWgyvLkTtNZagegGITH3wiMzFl7eba9B6SiHPWqDan7htlNW2OpCmO4zl952LxvxzgFfXZTE7TYpI6XHWlCxngWJxGTi/knh4B/7WHroGoFNJs4BsJVCK7K1OeHrh+u8m6MgomDXlSxDXXgApXKriC+1TBiN7VCGRln9ZvjckJbpWL3DeB/OoMa2Y30uWR+gSnNuoYi7v8ok//d51jpYdybvRgnOgrXBSdGjb9V8ZhgmXIxLc2EtAExDbqKtuPU55zGCzN3XKKtE7AT6VDqU+uBIIT7nNQg4LstX8YJnLWLMPUp2LHzusDs4o50pLx0MuITraUmHt5wpETou1tumVsqDKg2MPgik205UAyRJZYYlAuhJSTtBrmrEestSsfb/iMGzuLx80Rl/kn+gYuWWVV+tI66RSGeiAZiU1xywOtWRepiuOB8rmosZPsKflQk5tcEnMX4= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1b780d93-3aea-4123-286f-08dcb03c3230 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2024 02:06:16.7200 (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: Pa68XcIMqTk2p7kUgep3f5qtLE2zD6x+mJB3nzLSTh18D6PdNjrBZkFSzziZLPgOvCO/MwcxU2aCwy5xFhwtA30L2RSAVrZKHIKid9cFT13rINKhakOEogeBpJZiCoP+ X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB6621 Message-ID-Hash: BTDBOIBSXHIQNJ2PCJPHB5KO2K44V57E X-Message-ID-Hash: BTDBOIBSXHIQNJ2PCJPHB5KO2K44V57E X-MailFrom: kuninori.morimoto.gx@renesas.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: We already have snd_pcm_direction_name(). Let's use it. Signed-off-by: Kuninori Morimoto --- sound/soc/soc-dapm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 37dccd9c1ba01..d7d6dbb9d9eae 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -2751,8 +2751,7 @@ static int dapm_update_dai_unlocked(struct snd_pcm_substream *substream, if (!w) return 0; - dev_dbg(dai->dev, "Update DAI routes for %s %s\n", dai->name, - dir == SNDRV_PCM_STREAM_PLAYBACK ? "playback" : "capture"); + dev_dbg(dai->dev, "Update DAI routes for %s %s\n", dai->name, snd_pcm_direction_name(dir)); snd_soc_dapm_widget_for_each_sink_path(w, p) { ret = dapm_update_dai_chan(p, p->sink, channels);