Message ID | 87ttfzx0k6.wl-kuninori.morimoto.gx@renesas.com |
---|---|
State | New |
Headers | show
Return-Path: <alsa-devel-bounces@alsa-project.org> 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 (unknown [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 F1C7AC3DA7F for <alsa-devel@archiver.kernel.org>; Mon, 5 Aug 2024 01:04: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 6A09F5822; Mon, 5 Aug 2024 03:01:00 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 6A09F5822 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1722819670; bh=sUbSlC4pHZ0eRcGv5SyBGJKHaXXcIaAFVvJDkgdORp0=; 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=uDmUi1G67iuvp2BcbDg8h+1MZhBjzdRY3TSPnqL1svT/SXRvrbthcVtnBAeopaKvC qPx+rj0qFHEJkGzJTvC2TGzzMp/MsNgkHI93GSx79u5OvORgSgCkm4a4oyhKA6NA8i dVJbowDWY3Syn9KQRFFJmUI2FqFyCYPOxRPdWeko= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 26D7DF89D22; Mon, 5 Aug 2024 02:42: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 A78A0F89D37; Mon, 5 Aug 2024 02:42:35 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 5107CF80720; Mon, 5 Aug 2024 02:42: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 5C2CDF8070E for <alsa-devel@alsa-project.org>; Mon, 5 Aug 2024 02:42:22 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 5C2CDF8070E 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=OgzEbG5q ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=QpID/ipf9jaFDFldrHS2Ee2cS0eTCpXzQsOpxelJFWkq1YvaSGTAAhbDa9V9xm02hA+I2vKdB8Ohr8M7iS//KwW0s+hIVpK5mYdrQ9XHDUlsH8yu5QpK+DHbmKg+mlwXAHf/cv07Mvf4l96es2SOWlQDw7ixLw45QvlvhghVv6fibZ2/6wPRS+ASgEMOeBvO2I20+jfrc/bNE9THli8MCLFU1VtbYBA/XX5cTZxW3oPnTRjpVr4oITjI+mOnO8dZUeCOepyaF6jN60VksGbTfFvaOlARxGp4v6DEam2MArGcU+qbQebletNMCnj8IQtezYNCoZ99HapA7eFjk8wF6w== 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=h9pYEbXBKX+zEsHuOMvJ/fveRF72+JbVt3093IImBGM=; b=fVdP9a3cR1woRXxkMiBt+xRsQrZl7QirUF35jeR2BWwfaYm7RxoUR5e65dvBFsAnCnTQzKkQLEzXB/Ifj4//XHJLKgm5GQ2etYsfbRpEzwbtC/+m76pUUU0Pc+lXzPo3iM+L6oVkvmRaQJfeKQV3Lay6fVduqNiH1WmZXXe/A7SS2See7LSRpAom3uery1YFU3LRWpHs9Yz4rYVlaKNOZW/fy0Wx6K3Rx+3C4K7LLHt+ioMWtBmqqtlblNlPNHowG1V+BkWm2IeKyCjyh8uwt2MpDHlBiVjzROqQya08xs9avXAYbfMBxS906H0vHffuputva3aUhVWip7dY5A1BBg== 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=h9pYEbXBKX+zEsHuOMvJ/fveRF72+JbVt3093IImBGM=; b=OgzEbG5q8IB3V+/zBdwiMCald5p0WrgqMWHMvCxpbw4upy1YYP3OdBv7W8qnAz0d3ViydmxzWqTCrtX0CKVJ2Wedxf8Axq7yassFVuiC4VqV3NNcv7IHQc/JGKUMWisGfF+WFE2h4PcRjsZthoONOEbrJjIpc8RXOamG8zHvR6c= 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 TYCPR01MB8678.jpnprd01.prod.outlook.com (2603:1096:400:15a::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.26; Mon, 5 Aug 2024 00:42:19 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%5]) with mapi id 15.20.7828.023; Mon, 5 Aug 2024 00:42:19 +0000 Message-ID: <87ttfzx0k6.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Subject: [PATCH 082/113] ASoC: codecs: sta529: use snd_pcm_is_playback/capture() User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Mark Brown <broonie@kernel.org> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, linux-usb@vger.kernel.org, linux-staging@lists.linux.dev, Linux-ALSA <alsa-devel@alsa-project.org> In-Reply-To: <874j7z3j1a.wl-kuninori.morimoto.gx@renesas.com> References: <874j7z3j1a.wl-kuninori.morimoto.gx@renesas.com> Content-Type: text/plain; charset=US-ASCII Date: Mon, 5 Aug 2024 00:42:17 +0000 X-ClientProxiedBy: TYAPR01CA0144.jpnprd01.prod.outlook.com (2603:1096:404:2d::36) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB8678:EE_ X-MS-Office365-Filtering-Correlation-Id: 4c85843f-1481-4be2-714a-08dcb4e77533 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: k524mGlAo6u+5cPpMyn9HNRleZw7fhZZc7fI3Wc0QHC9k5SdbwtCd3z9zRO/kzmiOqDrn7BUV5Torx+1OmcwbVqOmnip0BJOOOYmrSqvUqWuRYqvcilm6BdQrNeB0lNdOkNSmruqdy3eWf3pByNmO6hhM6xrnrV5GpNoe0UvTaU4bhIi6eUhKE3ldR6hD80DmldzNdwkYlk8A7WOuFOiWzxdcXFdSstVicctJ6Fh4GtihR1Svhvoey6VtbXjuKqu48Tf0dQ3rJ0cu/fA1oxJJQ8qwJLEGoZ0w9KVzF1f2+Pid3XvpMjzgwxN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RDJrNT3Q8ZvLYKgKON8tNOAp/4cINVp9u86FA== 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: dZNOdN7p5jK2LKICA78TKqwC2HC9t6rxmjVWT+/RErEe8m/ofi/wo4NSVxfv3QuO18pxJADK9S51RaNnut73lP7NLyXJ1er+38dyj9DdupMobA9kgw65ccQJdIvw4K2oGfZZ70qK7wIYO4JK+i847Uf8wTngpSF4Lvan9WwPFqf20Ksl3AS8mY6hZtNFB0UlXS8L7M2lP9ZeD9BRQF1ig98bQ14iXSIBLQ7xxFuW2mb29RnG+U+FqB/ah71xOP1X4qgjkbCAw7l2iGWXcWS8l/QU3anKbWCyvXcH+LHnSj0guyjJprFI97kZQqTDFIZlxx7bT4J1oZoTIjRMX4UXkQNVuJaTv+vwoRfF/o2CSxcKJY3YntfXyykiCUGLMnrFZym4AIZuVCixKj4v8varX/A5Hj2OCPXYZsOyMgq5w8hgbg6AJTRjeKJDbxXKmODf0XMxi98MRpVVggryhn3K66dR7xDXiF7ihgG+Dd9wGamsBQQvSjVG/yghkgKxz3cgTE4jqR8YhC4sUE80lb+Fl5SXlpcwZ0BE3ouvDUkJ2bPAQ7s52Gjk3GmwUM7LP4AtiMU0Tt30SUSbkqioyoVk7ck1FmgwLrUSToJvJpnVXJJeDY9Qa8iS8m+peoANTYHnKFyV1QDW9LBewYBW5vzfJDxugj8PJtZYhBGY783hImV2ZCCh3qBAXDcjCOKlffs3YH1pYkrYK9hyiHYeRTkFlHDEsMprnxBY+T/wr5g2tr2lO05DUq8PZl8+njBWwrgxfEhVA6gHpTwDvCmj48VbS4QcYqJepJK6WcYdUjq9dhEBi7s+caM55k7j2A5FXZ+TKucZDUG+mraBhXYNaOKTkCkDjN8NmRetLx/vM5l1a3Lh7rg/HQtqcJywympkoeFcWWNHyJ7nGKVlAiRNLIeLRQCqZqAUelPxh9uSVlZGSuuLjAseopjT86ggT7pmqamqK6wQuNLt/RdtA2yL/gv1uzbrFdp3WqwaxXA78E3Pr4I3CEsamwdCE5L8tpeSdLieFR2nTV+z3gfR0vix1I98GK9R3rBtDY/mDh0k84xrVTwcFuNtoUfrCrmOjaES8NYmUohVNk5PZmLFLxUWYd0INr5vAdpbeaDerXh3oTyGdMzfX9BqBtmbtFk2p+F76fzugzLQkrdc17P7Cs/fiC2asY5x0K/Ftt/l/BLfOWcEIAOl3EgWafLvIwwli+YiY84YosK57FOsUDboNV7mKFEZ2ZSc/4IkPRyL6sSydnW+c9Pef2CIO5yyGhpzH8cBH1DY9uZDH0HheTbgfJVUpdQYXc/UHPUK/lOFpQaOh0dqQTnfGOH1BdM4aSiP8TVJRqNI80DZ4MYxAR/ngGwwn9PoW80pl8/OHZs8ZMYyA7Dusw+SjI6Wf6WtPQ+c0SIBaX/DMjcwIU/BxK6mVmERmDJGV7cgxNAttQ0Y1MDct9TWQ/w3Z5ekOLhuJJbvOkEQ3metMlqjEA/7K14QIzqpdVeIZfgFQpi46gRz9HC7GBmBbsrAQARuvbK+iJl9BY4XUndWyI1Ja9lrIMoVEXvKrDztXZLJZVViIjITtowRC4I7+7nDELw92HSEyLK2eNFmcLkqKzzUPJ46Bl2LxOAAVDBHCwYLbdOGTL99N2eKXFADrOk= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4c85843f-1481-4be2-714a-08dcb4e77533 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Aug 2024 00:42:18.8483 (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: zxtmeDGH9n3Q5j3c+wuxTxIdKDn41N4S0R1IT5vgdQtUAlazeunmVQB9fL0KJ8j31NNW9Wumklrh7TOmIgoSkfLzy1gxnifH23vvfC6TlYYn75EK+z+1b2hqyHjhzG+g X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB8678 Message-ID-Hash: QYLPUBPJVTEDS6YUSC2ENCWUBJZKEUGU X-Message-ID-Hash: QYLPUBPJVTEDS6YUSC2ENCWUBJZKEUGU 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" <alsa-devel.alsa-project.org> Archived-At: <https://mailman.alsa-project.org/hyperkitty/list/alsa-devel@alsa-project.org/message/QYLPUBPJVTEDS6YUSC2ENCWUBJZKEUGU/> List-Archive: <https://mailman.alsa-project.org/hyperkitty/list/alsa-devel@alsa-project.org/> List-Help: <mailto:alsa-devel-request@alsa-project.org?subject=help> List-Owner: <mailto:alsa-devel-owner@alsa-project.org> List-Post: <mailto:alsa-devel@alsa-project.org> List-Subscribe: <mailto:alsa-devel-join@alsa-project.org> List-Unsubscribe: <mailto:alsa-devel-leave@alsa-project.org> |
Series |
ALSA: add snd_pcm_is_playback/capture() macro
|
expand
|
diff --git a/sound/soc/codecs/sta529.c b/sound/soc/codecs/sta529.c index f7718491c8996..e750536b1f740 100644 --- a/sound/soc/codecs/sta529.c +++ b/sound/soc/codecs/sta529.c @@ -232,7 +232,7 @@ static int sta529_hw_params(struct snd_pcm_substream *substream, return -EINVAL; } - if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { + if (snd_pcm_is_playback(substream)) { snd_soc_component_update_bits(component, STA529_S2PCFG1, PDATA_LEN_MSK, pdata << 6); snd_soc_component_update_bits(component, STA529_S2PCFG1, BCLK_TO_FS_MSK,
We can use snd_pcm_is_playback/capture(). Let's use it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> --- sound/soc/codecs/sta529.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)