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/363EM2hRpCjeIaBuGzAoQ33vdnC+KE/ALF7nL7nJpqIK3Nx38y9ez9u2J2IuS49vpQILv4qwnwEqRoApXpWHJjJ18yAnv5vI+VOcWRMlGgwUKt74lia9fbfmPPVglxycTE3+Uh2jv84IUQGFUXtxzGqomSgiKbRPehUi1X648SXVgV/TtdH5Zx+1aQs/h0h7WCvedLuNO+X2QIJt2BGacEB3Fq34MbjUFPltR2tdpAuyWNZAC5RgIVIQqop0m6k+awH3xG9SG+FljO/o1/GGvInVOrM8ynKLYWBtlw4QxYurKuFWhYM0TRSdF1uXRYAMpNCD1kRgtLtxAbX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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+erQdMhin301RyOn0YfjixtM3oNdSLCVsL2uHRbst0LBAAuphT5G7RTtO+J7f+tshxwDGX/tzH6+0Cx2AWPhkAG626OTSbyY/X8IUnV3mQzh5cm19Aij1pGq4f4d9SVxT5TuuvR3MWdv2imdchcheY5psfTXdf/orDQqZ6sGkLDZh1rQdCUb2Vf67I7ujgi/h9UgtbrnkYvkYy9wAL5Z+ZnR0nEc+fnwvdoJ07H9+YC7bozZJVdXMWw+EYPDH1yid/kL6z5C7fsU4IihOrbrmmiwz5YUzR0cyAyAIvy4N4AHBXO1CtQLFE45MQuQo7EWL4Bv4MXbwMfUiKe+qtiFDXf/IUr9wfafnh13fY9527RngYLDR1cnP6KYtopHHVo+d8v++EaUzZ7wk8OGerqaThf9eQt6XnRN+4Ju39UNRsa/r1jTIS7xzhTAwzBiZZUWnNAjb0fMkOkj1LDswPQZ+1Oq7Zr7O9w/eWd7B3TR+BiRHurnFhJ61IDT+EMbxM1x7JxGq1BpXSDz4rSWdo8gKHqUL183Bf0XsuJFIMF2Vvy4ooUzc3LGTancWaSQO7yCUeMLTRZGvpwpvFbAKU4QZo5Wm52C2G/TJktiHICsnhUuzZ8oOJXXLyLaXaKETvbWxBM1xHsHW2piKb1sEfrXsmoPmb9pgjS/sy65wPgfUioOjE1ibuKNX1Dco2zqJNG6R7C3+KEQqv3p7STLACZ54Av7+s0AP0NOJI+gp/zJrBnTd+nhkIhgjEB61/TQiwiKbJCW3cEVOz3rXTf7LeP+0sNRt/BEmq8NEgQb6QpmGdq4QTBzAJMoMiIKFPDyPCqZB8dTvwRyRCFT/NHEbZCV80lNwb6VsUfStIhAhYzqbzEx+vmwAabpDiV4NK+8tI+OmC8l7xdQAT/q7maqbhUTqClBUUmvcHVcWhGKl4pngXjLqo6AckNN11R+/FOKzqov2sfidjjA25n1kB0CUA4t6l13CeN3enVADYSudyNEn5S0au5ss4BYAx560f3BOyq9/dM8ftnY5+wb8HspniZTYebb5u5KQn8= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-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; }