From patchwork Tue Jul 30 02:04:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 815349 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 80A16C3DA4A for ; Tue, 30 Jul 2024 02:05:33 +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 8BAC486E; Tue, 30 Jul 2024 04:05:20 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 8BAC486E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1722305130; bh=o/ekUqVkHHxLEc6bkTX4tXaKxOW4wrz6LoUxOmjHShU=; h=From:Subject:To:Cc:Date:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=vJm4X+0p3IO7z3P6ehSdR0TWBqBjAsfn+oUGG4QvQyeETf+Zlw9swMFJ8fhPsku93 cY03PSru8+xIVpPUlEZuMkht4+UDrk4tDytHAGPOwByCIrJJakm5hlYJ5OJmNK4GNx /AsiEub2pdepjbeQ2jhjZbKhgEl+Gcg31CqaSFZg= Received: by alsa1.perex.cz (Postfix, from userid 50401) id C4860F805B5; Tue, 30 Jul 2024 04:04:58 +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 7CBBBF805BA; Tue, 30 Jul 2024 04:04:58 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 1D977F802DB; Tue, 30 Jul 2024 04:04:54 +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 D81C4F800E3 for ; Tue, 30 Jul 2024 04:04:50 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz D81C4F800E3 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=Wt3TTpkm ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=EpgfRhhudbkHpryuszEZe0X1jFsJhhLto0iSqFWBEyiChWDO8P3exKUrL0bmzoIL2qm/z90FeFoNLkbmwDZc4CIAPvetGAztkWoZrF/wbv8jfQYglIdK3UFIekVEp3watfN9aUTZutRUF1JLI3bfM6Ha08odQ9vMkAAyAx+HKWS1P/XgRUBnVULO4EGB75SwM/Vw+Ci3GYEWmBKTpbFvuwtXGDEEEhV+pF9GLZNyhcK+Ct2D2xEy6EUzKkQVgXxkwWFWMyZ3NbnprdonS+yPpphnoZo2QuNRH2bGpAF5kwSJEKIKZg8lffwf5eQl4XHX7Qx8WcK8r/AqqmSiTxdGvQ== 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=Fqpk0CP6Po51NuRG7XnqMgbc+drwNBmMy1E4WlPieJ0=; b=dBEuXV+K7/gENB5o7Muh03QKDEaHGzTDzjTKoKRqvg8wwUDYrCGgrEcKBvCJLnHsJluJxWt1/ow0kDmRj4XIalgutAyDLoQ9bL+OzF4e+SOXkHqphqPSu82+y0wzOXBzjyH/Rm0LrfWoUNkja7XoTH7fK9vSnYmpuxkmHE8YiWR+0l7XGWilAOS3KeSmZLHA51wJJ4bvDh8exyNZ5FvRuyj+oiNlxQGu64jHNjOfJkchr7wJgLoU0O4xHQ8gqhB4jT08Z7ELF/yXgrsvV+oCPN60YHdAPW9ZRIChUwA0f55PIk6GyOPJcCTOePtrrK7EsZHy+Y3W4skDzFRWdQSVCw== 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=Fqpk0CP6Po51NuRG7XnqMgbc+drwNBmMy1E4WlPieJ0=; b=Wt3TTpkmoreMYKo45k2vWMQfNO50UhEI+n0/4b7stMYg4A7L/qINHspWl++Vs+15B/cbhkVd02HYBoJ1vnTjvxgGrFUYgSewEqpS4yCuNirf+ePGeHKACdqAQHBfAk6UI+LmARy85P9L4BEFvX87ZB8xUBLZWALa3P35vhpVQa0= 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:04:43 +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:04:43 +0000 Message-ID: <87wml3k539.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 00/12] ALSA/ASoC: 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 Date: Tue, 30 Jul 2024 02:04:43 +0000 X-ClientProxiedBy: TYCP286CA0288.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:3c8::16) 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: 934d22ad-b88c-419c-5c23-08dcb03bfa87 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: ROcBLZDZvB4LUxGh/mzdQKQBHdu7fRDfavznXf6TS9I80HrKylNr8obf03nfj1cfW3nM2+tG9GMNw2n2jMvyHB1f5hNFdqY1ZBFz+X9b216ynxTnd90cBrLINRiNTvNRhT7mXsavMZEauikIIu38hdINoC5tL3UZILv8jHxxxB5+4dMywcgzg62AU5R6bQprl3thWnBLZeovRdtRG7fseuycXiBe5wo7iWuyUp16+0wEB80BIVwp8xWaiOkZG3iybZOR40RfoWlbeGuw7VCCTAWkBqUnXrjXs2T7BwwCl106l4oygE8MPhV3GT7lYq0zuDOQmeDMCsfuWRCDbwMl7HNozn67WigHelc9zyke3Qo3o0aARHxqTJyK3+as04WiVCsOYqVkJGOpqNShD7kv2EgD/kl7IVOpN2gMDJGz805HKZIQvdp857qqTGaR0APDged2C0/uR4zMsPqA8Y3IUU7BKVsgoW5Khu06euMSspLPW+1MENTVgh24BOq3pj6SDyLezkHUW1BSiS6/AN0x3/iYkrO2GJJhSLFvhOODhDxORJR/7avWJYFGVHUVCyDxafid5Qagcdg3lPj/RiXW3XgLIzMKIw8XUPCTtpVxaNPOGkxwMmPEmKNIiuX7gp4U0MUDfpmlOuSAE66CVxOQKe1LVtiFUdMUE0kePUxJOAOWU0JKjvKyenN7r/CT7TKtXr4Y1ed5Nug2fBBwsYePGjHa/8JTTG+be5K+iLqU7zkhw0dkZoguUy1Ko1pn7CfN6nDTVTQusO0fktE9/EZMhpPRZwhMAfCOVxTTV0g4cJHPmi95mWyiKA0Tuidj4rbY69us5xiDQikS8GTU/sxaZKZfTI+aIfr608Y+1bATboAHNHVICJT1/xDjvQR3TH9h3KzLa2IAGhkMHJQenfYa5jMc94u3yxYGy7bjnkbilbHvDi4OBJC3C2K1BfRlDkmh5nhsCpXdIc6I6yQvyRVHggY9dkSd4ahjRc/NcSxahrbYGtbABwNa1Z1P5lNsRcOrKcVhpK6QCE3ev/XtUKe5KVxSpJEDaR2lA7+0cenAYUpiwPhyQeW6UCTnI89PEn5rXu/RX6tZvafi84DujSmoDYgQmbXuOqwq9kVzzF6D+u1VC5y35nKYjbiApTzxPzWAOoGpXPnNj5EoaF5RP78sYhqmdWKJeqMQamvlqY5UemYzanrRnn7VnFuMTw8HSrwgohoWWxkvU3eR/QCRDG5bAj+j+uSXgkmYq7Wmr46B/U4Xl/LCv4VN2fmYCgui2yFklR7xsF75CXj8zmjYkzrZweho8dy5RPsFqp4D82BTreKD/HpXWD1gKD8fMe7zQbNf/BWHfeLGQoPk+CcnmTbfZ9X6DBDaA4FnV6jF8rHUzLcDGzxuwBEsAFko15MHSHIc7EWMMdB0SM/Zw9Yj8mcpug== 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-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rFjBySssAcvL7KpFVP2cgPTjaR1z1Ujr0SRh4sVuYGhbRkZ5ODirBNQZ1A/JzjOzNXL3sGQwFIEMyJDjsHe+pKQlmlDBbtEMmbzK67t32wqwQY26drW6Y4SwgiAMbYY1fC0+Yk4LOtqtho/hGurKxubFZo5IM7+oYh6C0plBOSIEClwaOyw7w3sZRIYUHoAUO/j4axtL2t9BwgOZ02hwH2cbw02BoiOhS7CQOh1b28gThf6HtgXH+3hRcYz/yfs9X+Ylu7zrl3M9WcIKAS10ZzGZgo0S5goBxzc6Up7AebBzL9p2boc6Y1Hzaoja0mszDSI6GLYFJhj/GvcNrq6CDpW6bBZcpQS0s4HfP1YZLnelWXTkPPoCCLuW5u3/nJTXHQzSF31RWRTJoKiPgXOpnqihiDnOAeM+UqU7BVYyuQr5EM3ZD0vXzhI21aOES/QHB+El+UYLWHfC0KVPPJZKH2lNdHH2i2D5RsdhHLd2EpxqH3M/fxxDUR8CMpn06gZboomc+rJt2uW7E+ZvFbJsWEUSGbmDpwaNlup4GCzDVS8d53GVOnmxA+Dp/zJ8eM1E610mJKA5aNvGQdDrueyxGrxp+3I2D923hO6HF7F0FUJB66mUo8c= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 934d22ad-b88c-419c-5c23-08dcb03bfa87 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:04:43.3830 (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: Hyg3O/tnNhVPI/OCEy15BLZBeoc2QXHJScTOB9aSTk3BGEIDxMYOsP452f2IlSe+6bB5R3F8dIcDCiEsmq07LDK4HE7PvbFssNgkL7biv1DottBKZuuMMrd8y+5KWxZE X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB9786 Message-ID-Hash: QREWEPVJBHBSNDHDHS3ALWMQCDI7RBSO X-Message-ID-Hash: QREWEPVJBHBSNDHDHS3ALWMQCDI7RBSO 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: Hi Tatasi, Mark Many drivers are selecting strings "playback" / "capture" by own handling, but we have snd_pcm_direction_name() function for it. This patch use it. One note is that snd_pcm_direction_name() will select "Playback" and "Capture", instead of "playback" / "capture". Almost all drivers are using it as dev_dbg() or dev_err() so no problem. But some other drivers are using it as other purpose. It might be issue (?). For example ASoC debugfs dir name will be changed by this patch. Kuninori Morimoto (12): ALSA: pci: pcxhr: use snd_pcm_direction_name() ALSA: pci: rme9652: use snd_pcm_direction_name() ALSA: trace: use snd_pcm_direction_name() ALSA: aloop: use snd_pcm_direction_name() ALSA: pcm_timer: use snd_pcm_direction_name() ASoC: stm: use snd_pcm_direction_name() ASoC: sof: pcm: use snd_pcm_direction_name() ASoC: sof: intel: use snd_pcm_direction_name() ASoC: fsl: lpc3xxx-i2s: use snd_pcm_direction_name() ASoC: tegra: use snd_pcm_direction_name() ASoC: soc-pcm: use snd_pcm_direction_name() ASoC: soc-dapm: use snd_pcm_direction_name() include/trace/events/asoc.h | 3 ++- sound/core/pcm_timer.c | 3 +-- sound/drivers/aloop.c | 3 +-- sound/pci/pcxhr/pcxhr_mix22.c | 2 +- sound/pci/rme9652/hdspm.c | 6 ++---- sound/soc/fsl/lpc3xxx-i2s.c | 3 +-- sound/soc/soc-dapm.c | 3 +-- sound/soc/soc-pcm.c | 30 +++++++++++++++--------------- sound/soc/sof/intel/hda-stream.c | 4 +--- sound/soc/sof/pcm.c | 2 +- sound/soc/stm/stm32_i2s.c | 4 ++-- sound/soc/tegra/tegra210_i2s.c | 16 ++++++++-------- 12 files changed, 36 insertions(+), 43 deletions(-)