From patchwork Thu Apr 18 04:14:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13634141 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2071.outbound.protection.outlook.com [40.107.113.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7A46A5467A for ; Thu, 18 Apr 2024 04:14:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.113.71 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713413683; cv=fail; b=PLK/wZVPUAarPYBwAiFv/HWOUvOnWX6Avj92PfR6MtXYFHlCv1qibzYmYQ94ZZk4GkA6htIlhZQN8ZXuRT8q4WgbSWO3CntXeaG2j0i9+mXLwn6gEnj9zRCNuGtxliksScoF/BU4Y26aV/tPcrFSMJGUcHUXLazrnumCOaaSKGw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713413683; c=relaxed/simple; bh=CHwN0w+kKECkNO7weFPOWmJwd7w94paxc51yfl3ZMp4=; h=Message-ID:To:In-Reply-To:References:From:Subject:Content-Type: Date:MIME-Version; b=lnMeMXdRwT+kx6s3pinmHnXNvOtk2i79M93FrRw9sDWQm7tsm+2VRk+VryHVaRHy7j30Yt0/LgwTUUccwSputS0TD1RefaX3Uq8XZEsfIabzvO/Ech27m93Z/8+dDoIlplJyMpun56PY1iwGGtWsT0fYo/VtSmvELYNWago/AKQ= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b=PWpXf/88; arc=fail smtp.client-ip=40.107.113.71 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="PWpXf/88" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AOJQCSUIWuTjYLw7Bql95nkLeCLfJxgYneWB8cCfhIGNwW65Ssd1uKT2QQQZXwZtZp7y7L+os1zWp+TKS8YDcknoJaaylzm2BSlcALW9LwrodfhXDv0oSt69l3L1A55lHHtKo1Xvu6NsEHaAAJkp84uL4tXcbn0jY2SjDPtqfJVn+/uZ7rEMPCA6SJS2uc9WSsKGwbA+5kS6FWQn6GNHcr3xb5X3v1nNbwy8Nopu3Mt4lcXlnkRkx+YAM5iByTW7c4DnDHa0ndfRlyJS+bju6pr3YpdbG4XdgIFEC8mRA1obFblFgUjQsEHwqDUleicU4tWWtEnrdCYtdnRdDaZhZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=t7JpM9eowkOs6q/Wzy+Lj4zAdrPFKWW+4gwnLCEOr5k=; b=jmiaP+HJ85uHI0HBWiDUqHqXFMbFbFRNl0knJsV9+/n62dEi62IahVpirkvgj+OqPwwUMrVfX8NTInY6MoT22ujSom4R1il3OEN98gKtO+Zp4WzrgsyAaUwuHj3y/diQvePBQYHMedXYnqEQIszYmwwbij3OR/lv1/OKcsUuVf9RawOiCA3whsTa/+fnVPCOtcyAbmjWM17pIqfDegwk5DZ14AWsGXj7qb53eLLF1vWXKiLsZfpK62SieFTwCdnXVP15r8ysVHjCPxMQ9DwQy61xbDxVGNhiV/DOBow56QdhBN5eKX7GEgT/4rlX2lEuleHMgB3WGDnNqPBcTgmebQ== 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=t7JpM9eowkOs6q/Wzy+Lj4zAdrPFKWW+4gwnLCEOr5k=; b=PWpXf/88XuBl2FD4z0isB9Gp2uqaxwkYEpumpb7AmpshaXpad9ltFOd04zSd13o5lTTeZUa8XXSi9wB0I43O1ewiLrq3bs/Q927FnUMyK4sV1R9YpcnwNxDz1Bd8xZdj45vApIgpgteXC7gbFc7yakdEgphkpeDzBzrFSe/gnbM= 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 OSAPR01MB7397.jpnprd01.prod.outlook.com (2603:1096:604:142::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.39; Thu, 18 Apr 2024 04:14:38 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::131e:55c0:a4a0:713b]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::131e:55c0:a4a0:713b%7]) with mapi id 15.20.7472.037; Thu, 18 Apr 2024 04:14:38 +0000 Message-ID: <87v84f71ea.wl-kuninori.morimoto.gx@renesas.com> To: =?iso-8859-2?q?=22Amadeusz_S=B3awi=F1ski=22?= , Alexandre Belloni , Alper Nebi Yasak , AngeloGioacchino Del Regno , Banajit Goswami , Bard Liao , Brent Lu , Cezary Rojewski , Charles Keepax , Claudiu Beznea , Cristian Ciocaltea , Daniel Baluta , Hans de Goede , Jaroslav Kysela , Jerome Brunet , Jiawei Wang , Jonathan Corbet , Kai Vehmanen , Kevin Hilman , Liam Girdwood , Mark Brown , Maso Huang , Matthias Brugger , Neil Armstrong , Nicolas Ferre , Peter Ujfalusi , Pierre-Louis Bossart , Ranjani Sridharan , Sascha Hauer , Shawn Guo , Shengjiu Wang , Srinivas Kandagatla , Sylwester Nawrocki , Takashi Iwai , Vinod Koul , Xiubo Li , alsa-devel@alsa-project.org, imx@lists.linux.dev, linux-doc@vger.kernel.org, linux-sound@vger.kernel.org In-Reply-To: <87h6fz8g3u.wl-kuninori.morimoto.gx@renesas.com> References: <87h6fz8g3u.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v3 15/23] ASoC: amd: Replace playback/capture_only to playback/capture_assertion Date: Thu, 18 Apr 2024 04:14:38 +0000 X-ClientProxiedBy: TY2PR02CA0046.apcprd02.prod.outlook.com (2603:1096:404:a6::34) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OSAPR01MB7397:EE_ X-MS-Office365-Filtering-Correlation-Id: 4f22f383-77a6-45f4-cc49-08dc5f5e106c X-LD-Processed: 53d82571-da19-47e4-9cb4-625a166a4a2a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HLP4hFwRAOXrnXDg+/rswmeAnqJ+Exrg5hfMG9TxBpxfdcTSeoVxhHwPAuIZI4ZQsZoa36WuaJXINWvbRq1yWvPGXA4fBkZAn4sWk48FmPOt33HgyjgZhoKjOOoM1F7sSBfus62L10AILO2IIFjkZLCd48KE3BOIYSrij0U7ftuBejRk91xnWMXe4RwMmbAFfTWrnyppZE/qBHNFK/H5M4Lhr+nAJbzlXQS8+cKLM03mqrsk+lmps+DTlykXgd2xRp1lyp7kGgqYpYdzjk3IEZzc20NKhguM99B+9K2bnDYrdFpd6xhPu9PpklouQjmf8ugmgG+dzVcIs2vuegsdxVzsGOykVfAKBhynA9WqNlkpewQ4Rmj2C9ZgVkidva0z/SJJ7L0KApoxhzT1Hm1+bRabVUaFMBkuoaYo20SKQXjHU9mapum/JIjXeElEih+FH6e9Dv5D4wI4/5Rqghv/QIN5wWHpvY7exgDo4w9Ykv5JJIMfkyKqSBhqiIze3M4vAVCnUR4f+O+4MM0xm6XrjAmOgDQqP/SOOG4AdaSy/UD5omt9MORMl+z5M96ZaKVsR19LkTM7jxHGuomPczT8GRzVihMf6N0+zhn/5pDbix8NNwmQO+bbXa4k75Ik+AtYgm5gYfiCy4g5wkwfoTVlvKuljiJwV2mEOuf6lIuSAGNcSDCs4hkf1gX+KGHHu6q/IkctN78dWxKMgKElqjIEj781JCK0Il4x8R9a6l4v+w8= 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:(13230031)(52116005)(7416005)(1800799015)(376005)(366007)(38350700005)(921011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: VKVs+3XrRrEyHyqOpmpS4m6K0JZwiWoH8M4uiNwEL6OdtPEUDXYQQQq60P79yG2AijE5sy1/8Sjgq27JfrO8C0q/YB+ldnb2romnJgzYO1TMmOIByYNu8fH89g7HRU58jLfmSySMQJ1b9TUfBYiSQVDTjg0f0snm2LGFTl6WZPq0l3U7wNkKN2VE4NtHb4zp0wM09kwbf8QNw9DsfKtB/xN7xCDftujv789kkuOo1Ec+rO/jwON5bykkLsmd+c4mzHIf1bSA2sk1mMQZJf/FM0xXFkhaN2rPaJUpny61KEwtFAOXsG6j/5z2N5MBtzJDkfd4LUmyP1SV79Sxc+8UK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4/aok+Ej7CHscyKXV008sQQ0ny9zrnI4mly9oTOqitX0FQB+3amGMr2FQ83G/Qw2ovzLPMtDdUcg1nJPYVWNgAa6yLN1GCBrywv/7DaUOecLb5UbXbgFCiFurJtAdiC657Sva6Nb4KZs2QQ+mGLTPyrF2p2cG81DyhoXsvMUs6kHx75M5SZtYWoc1j3G4kzTouymRmXia7kKWModH7e9gBs+mOg= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4f22f383-77a6-45f4-cc49-08dc5f5e106c X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2024 04:14:38.7679 (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: TkBUn2c72JSy/KTyW0x/oJviZTN1CtQvF65zNaU0a1QeFT0NboJJMBoNxp3WtYmIQrm/HtKGJiLULspmczf2b/ZHAZPNnhpQCbckpa1qg8JeBrUe/FHb59DSwQ7eoXTZ X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSAPR01MB7397 soc_get_playback_capture() is now handling DPCM and normal comprehensively for playback/capture stream in same code. This patch converts xxx_only flag to xxx_assertion. Signed-off-by: Kuninori Morimoto --- sound/soc/amd/ps/ps-mach.c | 2 +- sound/soc/amd/renoir/acp3x-rn.c | 2 +- sound/soc/amd/vangogh/acp5x-mach.c | 2 -- sound/soc/amd/yc/acp6x-mach.c | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/sound/soc/amd/ps/ps-mach.c b/sound/soc/amd/ps/ps-mach.c index e675b8f569eb..3d8bac56e8b7 100644 --- a/sound/soc/amd/ps/ps-mach.c +++ b/sound/soc/amd/ps/ps-mach.c @@ -31,7 +31,7 @@ static struct snd_soc_dai_link acp63_dai_pdm[] = { { .name = "acp63-dmic-capture", .stream_name = "DMIC capture", - .capture_only = 1, + .capture_assertion = 1, SND_SOC_DAILINK_REG(acp63_pdm, dmic_codec, pdm_platform), }, }; diff --git a/sound/soc/amd/renoir/acp3x-rn.c b/sound/soc/amd/renoir/acp3x-rn.c index 5d979a7b77fb..42b8d89fa8a1 100644 --- a/sound/soc/amd/renoir/acp3x-rn.c +++ b/sound/soc/amd/renoir/acp3x-rn.c @@ -29,7 +29,7 @@ static struct snd_soc_dai_link acp_dai_pdm[] = { { .name = "acp3x-dmic-capture", .stream_name = "DMIC capture", - .capture_only = 1, + .capture_assertion = 1, SND_SOC_DAILINK_REG(acp_pdm, dmic_codec, platform), }, }; diff --git a/sound/soc/amd/vangogh/acp5x-mach.c b/sound/soc/amd/vangogh/acp5x-mach.c index cd5b075d4b7e..cc902f857af3 100644 --- a/sound/soc/amd/vangogh/acp5x-mach.c +++ b/sound/soc/amd/vangogh/acp5x-mach.c @@ -289,7 +289,6 @@ static struct snd_soc_dai_link acp5x_8821_35l41_dai[] = { SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBC_CFC, .playback_assertion = 1, - .playback_only = 1, .ops = &acp5x_cs35l41_play_ops, SND_SOC_DAILINK_REG(acp5x_bt, cs35l41, platform), }, @@ -388,7 +387,6 @@ static struct snd_soc_dai_link acp5x_8821_98388_dai[] = { SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBC_CFC, .playback_assertion = 1, - .playback_only = 1, .ops = &acp5x_max98388_play_ops, SND_SOC_DAILINK_REG(acp5x_bt, max98388, platform), }, diff --git a/sound/soc/amd/yc/acp6x-mach.c b/sound/soc/amd/yc/acp6x-mach.c index 1760b5d42460..a19f359bedae 100644 --- a/sound/soc/amd/yc/acp6x-mach.c +++ b/sound/soc/amd/yc/acp6x-mach.c @@ -32,7 +32,7 @@ static struct snd_soc_dai_link acp6x_dai_pdm[] = { { .name = "acp6x-dmic-capture", .stream_name = "DMIC capture", - .capture_only = 1, + .capture_assertion = 1, SND_SOC_DAILINK_REG(acp6x_pdm, dmic_codec, pdm_platform), }, };