From patchwork Tue Oct 15 00:56:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 835863 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 6E011CFC501 for ; Tue, 15 Oct 2024 00:57:36 +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 2AD01950; Tue, 15 Oct 2024 02:57:24 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 2AD01950 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1728953854; bh=a3QT98bomtfUSYQSEuqDI1AJXWTuVNw7SE0h9rV7scw=; 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=uwLCjLeCfzmM3zaADBLV39oVetXL7Kxdj+6eNb+RfC7XFKbGVf8KTqYIQ2x43MM7u 0v7H2i1yBHtpZdC73/W9fr3Huy2gw2uqvD0AcgskXXi9Ksh9Agm7iijJXO40skDW+X +sERdGafY13XSoKHjmpwCCbHnuDsvdPrLSYGG1/E= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 44073F805E9; Tue, 15 Oct 2024 02:56:17 +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 756D6F805E1; Tue, 15 Oct 2024 02:56:16 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 7FA2CF805C0; Tue, 15 Oct 2024 02:56:10 +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 24B36F8032D for ; Tue, 15 Oct 2024 02:56:06 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 24B36F8032D 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=VQsOLQDg ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=xrkP9X1WnaPIDH4wyJ52x6r7ob3jcxb9fVBva52aoSQ/aTtVHB1ey5nsndN7UgAl2Uz1AZCGdyWpCWs83USRPf3DTuQ9vCzOxWpV1VJSzAiYJ+Xg3u1CUtNAA8TyaGx+uZyutZbrTU4k50HQy22Iza1mH1IT0kp8F5XyhPatTvwcZvvhsrvWzo0hK0NwLZekvZGMXJyAkDs+lrL3T58T2UmQf5+hTz0nHywKwcehhIH/MZ612AyK6HLa1tEJXIYUHig+8FhMymX0eNJTT9Gc7xoDy+TFUHcfyC7ujstTE7h4joWSgLe4eo2PYgPfHYStI6wlzl/BMsUeoXvc7ZEJFw== 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=E6bixXz1S9oLZpJPC65pnQpAW6E9ApZBHhGMnOmYyBg=; b=JBtHj/zxYrN7kA1RfzjkY0q5Uv7GVyh68d6ayEGT9GZ7vSnbdx/L66mYO3m5DTBVja11OLRmkI8PRqMElXqgzdwBmQ7PMgTmaA0XoYQzd0sYZ5ySDPWjYqFcetiGVIUD5yVY0xWfBYFxnC307D1iSO5NvWJ7jjwJ2C5cPbf8d8wA6cDlRFCn7253vuXrcAlkPaqtPe+qDsnzSCo9Vm9flDDBhwzRtJ1U6CBcH7DfYHWgLDKYDe+Lw7MZTuSD9Rfj6eWmqo3i1GZCT+jr1bJGrIi8kB4OvVru4VCl2UjMteA3T3visb4ZD3wBSbKzJZ0BJmf4pySkewNyULq8IxJUog== 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=E6bixXz1S9oLZpJPC65pnQpAW6E9ApZBHhGMnOmYyBg=; b=VQsOLQDgTDAi/zkk5DOcrD60+z1GMiNQramkq+MVzT30CYr/ZDetW8/G3XVP+ZWO+2HFpnYXMxn7FN68fcULcv23iSCgH5KMk2juwwovleJbo0zo5AXuxkKn1WQs4aZBJLV+/tLVYwp8xGOrMkJ9WlOaF8lbE1GxDBjFNzYIVEA= 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 OSRPR01MB11566.jpnprd01.prod.outlook.com (2603:1096:604:22f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.26; Tue, 15 Oct 2024 00:56:00 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%4]) with mapi id 15.20.8048.020; Tue, 15 Oct 2024 00:56:00 +0000 Message-ID: <87msj6qj4v.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 01/13] ASoC: amd: remove dpcm_xxx flags User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Mark Brown Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org In-Reply-To: <87o73mqj5b.wl-kuninori.morimoto.gx@renesas.com> References: <87o73mqj5b.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 15 Oct 2024 00:56:00 +0000 X-ClientProxiedBy: TYCP286CA0075.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:31a::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_|OSRPR01MB11566:EE_ X-MS-Office365-Filtering-Correlation-Id: d94f315b-be56-4c1b-6496-08dcecb4231c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|366016|52116014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: Q/XTOqFK/OLW6t0BJdC15W7pqPGDMAfRGqyE/u4R2UKrXEp7tn9Nkhqn4kdg0lHSnbVKYF0mJGJLsabEmrMf0Asa1/ecIqUbSt7lJbaXhyi6aOJfh2xiyqCuSsVZeuVuWhOZiVLMLh7b9mYZ7PpNDt2E06pm1wEOOKvZLqGlqSz0eYnaU+FCIBam/FJU9P+o9+z9NZBQEY48gQHrV8gGVUnoozDnMLhOZPoitu4T1o6pvcaI+HS/jl57kpi2HclGzFsNYU/h1oGNv5EwtBEjSyIoPE5++3sIK2qwul/pJc3tviMgmv2Ppyij858YHsefG0jzA8wNqeVYk5nceopsvKrKbFSpF+JzyDJALLfnaxofkv6oJrybj2VxvL6gYSCqfmR5Wx5i0Tbtp6r2PlyKOwQJig7sN0NcUqEBPaKmknX3PAQRScpJTP/om8klc+Gt2W1wszsD0yBZuRD7xDNK5OlkUW59WMr/gs+fAdszW0LJmiPibgZrzknB1yX1A5YzmDOmNfm+AwSAb5tFOpZkdeXZb52fEpu35PGLvrWWgcWSEhKm43UWNZR82HVFd6u4ZQkkAM1Xqpil3qNDhMrIRDyIXzCHDXDCiVGXC320YfusKViLFRCDavqkELgHEkq6PT2uE/utiHtN4OCEV5FvZJvSaFbGxwO6EUH4QeyUnzU3XqP0OREQQXdU6DEvtniNlouaNjVs+cftrC76sm1/eEgqxZeFpHTG2uIeomzVt7PVLrrS7qDJBmDBDDeg1L6u3OB9e+TA2IZWGyjpXj1QE++q8p/0YJG0iielCbyL19t9NEmxdZ1n6xmjQ1+yPuAWZosnwFi0H2+HnS9XYjFdwycrQ03yxOR/oYXRp4eLqSbtDdPdXQsOE9askYUPvPEpLveUW+xkDpXCNSEeV5QPyjTbJpHFkVyqCZIPIGfKjfhqquMKtp9FK9vle6L1vd1uXMWAndhvpAv76ipGrWDNmDXQuUzdHiTvODxDO9rH+WRe2JTU1+o7IV+h8/5X+yiGIQxZIbbjihmjIzg9Kn6+mmh2xPjaciaafOq4zf/JvvGlIHTKI21mKx1CAoZRPhomVYX7Ps/PlGDneKQAcm1NR4wqbveIJeBO99ciPjYZpYIj+A6kxlnhVU6CR5gR3aFsSdPGIatBYKF8vW1qX8k09CaxLmJmdXKpMaYTh+TtvJQ2UK24WSKt2buGQ06dJYU/vxWexHW/dpLPSsi175pOWNjYVBkvADeMnTIhwxquUo7k3ckfESxSqX7Xbh51FdbKgpL0/xWxWVQZmzZIAabdmP3WBAHI0QZA9uf1X6a7nj7qJk59g4AvhDqCVYPjHseBEBupsEq14UItmEW6PqG/Vw== 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)(376014)(366016)(52116014)(1800799024)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: mMW+fdpjIGZt1lSQjigv9uT9AOdC4317tmrvn21VH9rRcvQuKR/jvJWMsGXh1hYzjVgDteQm8EWVwSDnabcTOSY9ZfSjb7C6m6jCi7GEfWSosAQJK8tNluyLtQd95yz1Wb6u1at9y5ERQfRo2rJJuYsK/SXaHfCJnIIoT3aWX+AUJjf1E1l5e6gCsBGXQ6A0V7K3BpevYjPrIVZ9LATU0n/OLNCMKpNDAdmU/Zm9fLpLMLmmhNThlAZ2Icyn85iCJPbZaks3AO5QxDdccdV3ZzT/erRVwwlFYc1m8OJvQS+tk3jyRkrmrSRUsYUtL8PzLDgke4lNMMi9bcbzLBeMVESlycitXwoyzPTpMsMbJ7+gU3ohCxHc7mGHEkXgvByQRwoFYyFjXfQOpdkOVbBSqlxHJ0HixJfdfHlVjLzmDXXj9HlfMAEl3c+enqkfRMkceWYL6TPnfdNZfVkaVAVsLQaBHcD3aaDQfeERr5r5pakfxY61MI/UhXQVmfCIqOSNoxUnRyKqzBEMtS6QWhLFJ/K7lJ801y5qJ8hit6KBq3RK3KdU8xWOOHAX4iGJftGpKwdfW1ClMGTwpWwvJMiUZcYW3HHXipt6ECi3BXiStNqlAdCfHwa1vUvqwqARr7IFPeASqBG8lcFituiRpRvXJWhkKE+GtXaQvTAml3AQIgL6gf0QBS6prHSKH93W48zReZb72UMyguRdpYzYZhzG8G+RD7LjmI4GajfW8P47nm+KGK8uK+cHRQabLhLWNPp1J14P1G/mI2Ltqv5pchHGn71oXw09AAl9XwFQWqekThIuPRDwNpnLW1iaW+HSfegbMSwHNumQScr9GE17dl4NhpmTgdau2lLFUAv+/Mbsi7V33JiOmx/lUcVLhBV6I6mYubxcjr0f1B8S2kLyJenB/NYQRaB7MaW4FoLPoKgIYNr5cFt01EAdbIJIAaokmYduSoxq6qmDg61FwXwy757kAWpOrEtPDTxJCPPd+V2gYuugePylHX8Z3jyzVY2tCA8hAK1jfbDpivOPJWkWrxINknAalvqnD253EmVL3vKs7QnbXSMFOyKvb+ApOkARhO+TkstH7yYgPlLAAfB6dnfito+ya3fzfkzFJIYd2ywNc75wysEG08/OocmGucRYud15iVwyTKTx4ohRl090Wnw6hwI1kOR1/nl/uyr/+0mV+4BXh2N8pbDt7Dp8lrhC4KBBujmPU01uW+Ok4uWLVNBU7LFHjA30Ty0V8c64WznyL+i9d7yWjRIBBJOqXI0k2RCzDL1Ikvq0ZWS9pV3AM0uvCbqudtrXVh8z4kl2fWkBKzP0w4ZjM7taBcqzG6/xftILAqK7R2voHPYx0tS6TtYQdKwiqangcm8Y52A1RSmpHsoGp6WwkWGEUh2j/N6i6BDJKOOLZOa3klrttllIn8Glfc0SURyG4i0ChnTEyKuYi2ccdtdLGEDpIMfei1+ePiUePWYNSmxJd0+/kn/gU7XD5Hxq/b5ePIakIqvHQ6UYUlcWCbyBW+qZakp6MazOOCBM9SdK2Yf7nZpjxOQAeTEu8IfR6iG1hGRrjn4XKIN7OsTIHQAoKH7T8bUm/LPyK9fLkKMNm2wjiL6T5eMWhFBcSavRyHSfrkZBmUvg3tM+vmM= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: d94f315b-be56-4c1b-6496-08dcecb4231c X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2024 00:56:00.8160 (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: CQYnXnt2BgQrRnGXmF6NHXYzfb9kinpSpwXjpLp4hHC9LJOG0HtlncwYk2QG27EJyPLKnADPgLJ+twaOhN0+PMV2jqFTVHOHIEC/7aivKlkBt28pM1p32sC/vWE3YRvx X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSRPR01MB11566 Message-ID-Hash: X54WPF3VMTGYFY5YUROLDSCSE7Z7CPEM X-Message-ID-Hash: X54WPF3VMTGYFY5YUROLDSCSE7Z7CPEM 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: dpcm_xxx flags are no longer needed. It converts dpcm_xxx flag to xxx_only if needed. Signed-off-by: Kuninori Morimoto --- sound/soc/amd/acp-da7219-max98357a.c | 20 ++++++++++---------- sound/soc/amd/acp-es8336.c | 2 -- sound/soc/amd/acp/acp-mach-common.c | 24 +++++++----------------- sound/soc/amd/acp3x-rt5682-max9836.c | 6 ++---- sound/soc/amd/vangogh/acp5x-mach.c | 6 ------ 5 files changed, 19 insertions(+), 39 deletions(-) diff --git a/sound/soc/amd/acp-da7219-max98357a.c b/sound/soc/amd/acp-da7219-max98357a.c index 77cf72082e73d..02b04f355ca66 100644 --- a/sound/soc/amd/acp-da7219-max98357a.c +++ b/sound/soc/amd/acp-da7219-max98357a.c @@ -542,7 +542,7 @@ static struct snd_soc_dai_link cz_dai_7219_98357[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBP_CFP, .init = cz_da7219_init, - .dpcm_playback = 1, + .playback_only = 1, .trigger_stop = SND_SOC_TRIGGER_ORDER_LDC, .ops = &cz_da7219_play_ops, SND_SOC_DAILINK_REG(designware1, dlgs, platform), @@ -552,7 +552,7 @@ static struct snd_soc_dai_link cz_dai_7219_98357[] = { .stream_name = "Capture", .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBP_CFP, - .dpcm_capture = 1, + .capture_only = 1, .trigger_stop = SND_SOC_TRIGGER_ORDER_LDC, .ops = &cz_da7219_cap_ops, SND_SOC_DAILINK_REG(designware2, dlgs, platform), @@ -562,7 +562,7 @@ static struct snd_soc_dai_link cz_dai_7219_98357[] = { .stream_name = "HiFi Playback", .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBP_CFP, - .dpcm_playback = 1, + .playback_only = 1, .trigger_stop = SND_SOC_TRIGGER_ORDER_LDC, .ops = &cz_max_play_ops, SND_SOC_DAILINK_REG(designware3, mx, platform), @@ -573,7 +573,7 @@ static struct snd_soc_dai_link cz_dai_7219_98357[] = { .stream_name = "DMIC0 Capture", .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBP_CFP, - .dpcm_capture = 1, + .capture_only = 1, .trigger_stop = SND_SOC_TRIGGER_ORDER_LDC, .ops = &cz_dmic0_cap_ops, SND_SOC_DAILINK_REG(designware3, adau, platform), @@ -584,7 +584,7 @@ static struct snd_soc_dai_link cz_dai_7219_98357[] = { .stream_name = "DMIC1 Capture", .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBP_CFP, - .dpcm_capture = 1, + .capture_only = 1, .trigger_stop = SND_SOC_TRIGGER_ORDER_LDC, .ops = &cz_dmic1_cap_ops, SND_SOC_DAILINK_REG(designware2, adau, platform), @@ -598,7 +598,7 @@ static struct snd_soc_dai_link cz_dai_5682_98357[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBP_CFP, .init = cz_rt5682_init, - .dpcm_playback = 1, + .playback_only = 1, .trigger_stop = SND_SOC_TRIGGER_ORDER_LDC, .ops = &cz_rt5682_play_ops, SND_SOC_DAILINK_REG(designware1, rt5682, platform), @@ -608,7 +608,7 @@ static struct snd_soc_dai_link cz_dai_5682_98357[] = { .stream_name = "Capture", .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBP_CFP, - .dpcm_capture = 1, + .capture_only = 1, .trigger_stop = SND_SOC_TRIGGER_ORDER_LDC, .ops = &cz_rt5682_cap_ops, SND_SOC_DAILINK_REG(designware2, rt5682, platform), @@ -618,7 +618,7 @@ static struct snd_soc_dai_link cz_dai_5682_98357[] = { .stream_name = "HiFi Playback", .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBP_CFP, - .dpcm_playback = 1, + .playback_only = 1, .trigger_stop = SND_SOC_TRIGGER_ORDER_LDC, .ops = &cz_rt5682_max_play_ops, SND_SOC_DAILINK_REG(designware3, mx, platform), @@ -629,7 +629,7 @@ static struct snd_soc_dai_link cz_dai_5682_98357[] = { .stream_name = "DMIC0 Capture", .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBP_CFP, - .dpcm_capture = 1, + .capture_only = 1, .trigger_stop = SND_SOC_TRIGGER_ORDER_LDC, .ops = &cz_rt5682_dmic0_cap_ops, SND_SOC_DAILINK_REG(designware3, adau, platform), @@ -640,7 +640,7 @@ static struct snd_soc_dai_link cz_dai_5682_98357[] = { .stream_name = "DMIC1 Capture", .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBP_CFP, - .dpcm_capture = 1, + .capture_only = 1, .trigger_stop = SND_SOC_TRIGGER_ORDER_LDC, .ops = &cz_rt5682_dmic1_cap_ops, SND_SOC_DAILINK_REG(designware2, adau, platform), diff --git a/sound/soc/amd/acp-es8336.c b/sound/soc/amd/acp-es8336.c index 3756b8bef17bc..0193b3eae7a66 100644 --- a/sound/soc/amd/acp-es8336.c +++ b/sound/soc/amd/acp-es8336.c @@ -150,8 +150,6 @@ static struct snd_soc_dai_link st_dai_es8336[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBP_CFP, .trigger_stop = SND_SOC_TRIGGER_ORDER_LDC, - .dpcm_capture = 1, - .dpcm_playback = 1, .init = st_es8336_init, .ops = &st_es8336_ops, SND_SOC_DAILINK_REG(designware1, codec, platform), diff --git a/sound/soc/amd/acp/acp-mach-common.c b/sound/soc/amd/acp/acp-mach-common.c index 2394aa061265f..dc18301843f22 100644 --- a/sound/soc/amd/acp/acp-mach-common.c +++ b/sound/soc/amd/acp/acp-mach-common.c @@ -1407,8 +1407,6 @@ int acp_sofdsp_dai_links_create(struct snd_soc_card *card) links[i].num_cpus = ARRAY_SIZE(sof_sp); links[i].platforms = sof_component; links[i].num_platforms = ARRAY_SIZE(sof_component); - links[i].dpcm_playback = 1; - links[i].dpcm_capture = 1; links[i].nonatomic = true; links[i].no_pcm = 1; if (!drv_data->hs_codec_id) { @@ -1444,8 +1442,6 @@ int acp_sofdsp_dai_links_create(struct snd_soc_card *card) links[i].num_cpus = ARRAY_SIZE(sof_hs); links[i].platforms = sof_component; links[i].num_platforms = ARRAY_SIZE(sof_component); - links[i].dpcm_playback = 1; - links[i].dpcm_capture = 1; links[i].nonatomic = true; links[i].no_pcm = 1; if (!drv_data->hs_codec_id) { @@ -1480,7 +1476,7 @@ int acp_sofdsp_dai_links_create(struct snd_soc_card *card) } links[i].platforms = sof_component; links[i].num_platforms = ARRAY_SIZE(sof_component); - links[i].dpcm_playback = 1; + links[i].playback_only = 1; links[i].nonatomic = true; links[i].no_pcm = 1; if (!drv_data->amp_codec_id) { @@ -1512,7 +1508,7 @@ int acp_sofdsp_dai_links_create(struct snd_soc_card *card) links[i].num_cpus = ARRAY_SIZE(sof_hs_virtual); links[i].platforms = sof_component; links[i].num_platforms = ARRAY_SIZE(sof_component); - links[i].dpcm_playback = 1; + links[i].playback_only = 1; links[i].nonatomic = true; links[i].no_pcm = 1; if (!drv_data->amp_codec_id) { @@ -1527,7 +1523,7 @@ int acp_sofdsp_dai_links_create(struct snd_soc_card *card) links[i].init = acp_card_maxim_init; } if (drv_data->amp_codec_id == MAX98388) { - links[i].dpcm_capture = 1; + links[i].playback_only = 0; links[i].codecs = max98388; links[i].num_codecs = ARRAY_SIZE(max98388); links[i].ops = &acp_max98388_ops; @@ -1553,8 +1549,6 @@ int acp_sofdsp_dai_links_create(struct snd_soc_card *card) links[i].num_cpus = ARRAY_SIZE(sof_bt); links[i].platforms = sof_component; links[i].num_platforms = ARRAY_SIZE(sof_component); - links[i].dpcm_playback = 1; - links[i].dpcm_capture = 1; links[i].nonatomic = true; links[i].no_pcm = 1; if (!drv_data->bt_codec_id) { @@ -1574,7 +1568,7 @@ int acp_sofdsp_dai_links_create(struct snd_soc_card *card) links[i].num_cpus = ARRAY_SIZE(sof_dmic); links[i].platforms = sof_component; links[i].num_platforms = ARRAY_SIZE(sof_component); - links[i].dpcm_capture = 1; + links[i].capture_only = 1; links[i].nonatomic = true; links[i].no_pcm = 1; } @@ -1613,8 +1607,6 @@ int acp_legacy_dai_links_create(struct snd_soc_card *card) links[i].num_cpus = ARRAY_SIZE(i2s_sp); links[i].platforms = platform_component; links[i].num_platforms = ARRAY_SIZE(platform_component); - links[i].dpcm_playback = 1; - links[i].dpcm_capture = 1; if (!drv_data->hs_codec_id) { /* Use dummy codec if codec id not specified */ links[i].codecs = &snd_soc_dummy_dlc; @@ -1662,8 +1654,6 @@ int acp_legacy_dai_links_create(struct snd_soc_card *card) break; } - links[i].dpcm_playback = 1; - links[i].dpcm_capture = 1; if (!drv_data->hs_codec_id) { /* Use dummy codec if codec id not specified */ links[i].codecs = &snd_soc_dummy_dlc; @@ -1691,7 +1681,7 @@ int acp_legacy_dai_links_create(struct snd_soc_card *card) links[i].num_cpus = ARRAY_SIZE(i2s_sp); links[i].platforms = platform_component; links[i].num_platforms = ARRAY_SIZE(platform_component); - links[i].dpcm_playback = 1; + links[i].playback_only = 1; if (!drv_data->amp_codec_id) { /* Use dummy codec if codec id not specified */ links[i].codecs = &snd_soc_dummy_dlc; @@ -1734,7 +1724,7 @@ int acp_legacy_dai_links_create(struct snd_soc_card *card) break; } - links[i].dpcm_playback = 1; + links[i].playback_only = 1; if (!drv_data->amp_codec_id) { /* Use dummy codec if codec id not specified */ links[i].codecs = &snd_soc_dummy_dlc; @@ -1790,7 +1780,7 @@ int acp_legacy_dai_links_create(struct snd_soc_card *card) break; } links[i].ops = &acp_card_dmic_ops; - links[i].dpcm_capture = 1; + links[i].capture_only = 1; } card->dai_link = links; diff --git a/sound/soc/amd/acp3x-rt5682-max9836.c b/sound/soc/amd/acp3x-rt5682-max9836.c index 357dfd016bafd..4ca1978020a96 100644 --- a/sound/soc/amd/acp3x-rt5682-max9836.c +++ b/sound/soc/amd/acp3x-rt5682-max9836.c @@ -317,8 +317,6 @@ static struct snd_soc_dai_link acp3x_dai[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBP_CFP, .init = acp3x_5682_init, - .dpcm_playback = 1, - .dpcm_capture = 1, .ops = &acp3x_5682_ops, SND_SOC_DAILINK_REG(acp3x_i2s, rt5682, platform), }, @@ -327,7 +325,7 @@ static struct snd_soc_dai_link acp3x_dai[] = { .stream_name = "HiFi Playback", .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBC_CFC, - .dpcm_playback = 1, + .playback_only = 1, .ops = &acp3x_max_play_ops, .cpus = acp3x_bt, .num_cpus = ARRAY_SIZE(acp3x_bt), @@ -339,7 +337,7 @@ static struct snd_soc_dai_link acp3x_dai[] = { .stream_name = "Capture DMIC0", .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBC_CFC, - .dpcm_capture = 1, + .capture_only = 1, .ops = &acp3x_ec_cap0_ops, SND_SOC_DAILINK_REG(acp3x_bt, cros_ec, platform), }, diff --git a/sound/soc/amd/vangogh/acp5x-mach.c b/sound/soc/amd/vangogh/acp5x-mach.c index 7878e061ecb98..2ca904db82abe 100644 --- a/sound/soc/amd/vangogh/acp5x-mach.c +++ b/sound/soc/amd/vangogh/acp5x-mach.c @@ -276,8 +276,6 @@ static struct snd_soc_dai_link acp5x_8821_35l41_dai[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBC_CFC, - .dpcm_playback = 1, - .dpcm_capture = 1, .ops = &acp5x_8821_ops, .init = acp5x_8821_init, SND_SOC_DAILINK_REG(acp5x_i2s, nau8821, platform), @@ -288,7 +286,6 @@ static struct snd_soc_dai_link acp5x_8821_35l41_dai[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBC_CFC, - .dpcm_playback = 1, .playback_only = 1, .ops = &acp5x_cs35l41_play_ops, SND_SOC_DAILINK_REG(acp5x_bt, cs35l41, platform), @@ -375,8 +372,6 @@ static struct snd_soc_dai_link acp5x_8821_98388_dai[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBC_CFC, - .dpcm_playback = 1, - .dpcm_capture = 1, .ops = &acp5x_8821_ops, .init = acp5x_8821_init, SND_SOC_DAILINK_REG(acp5x_i2s, nau8821, platform), @@ -387,7 +382,6 @@ static struct snd_soc_dai_link acp5x_8821_98388_dai[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBC_CFC, - .dpcm_playback = 1, .playback_only = 1, .ops = &acp5x_max98388_play_ops, SND_SOC_DAILINK_REG(acp5x_bt, max98388, platform), From patchwork Tue Oct 15 00:56:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 835516 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 557C9CFC501 for ; Tue, 15 Oct 2024 00:58: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 4B4BAE65; Tue, 15 Oct 2024 02:57:48 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 4B4BAE65 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1728953878; bh=D30Eim8Ln02RXwksD6qpDFu9qxLf5s07lw3x4XwjsC8=; 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=jhQqx464wcmpmYZkH7JcAKr9wtTDSS2aAhtSz0lsOiaz/nuhzLC+bONBeJREtYYal /g783enF0TaXIqVNQI9k+Q1m9gZ/j1qoZ7VnUSmWYOLjW+aa0OY6K5DjPYrRyb1y6z L1AsJmQ6p7gnlOL3gCRKL+b0MWVHrz0nOofh7mzc= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 81E11F805FF; Tue, 15 Oct 2024 02:56:23 +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 4E94DF805FA; Tue, 15 Oct 2024 02:56:23 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id F03F3F805EA; Tue, 15 Oct 2024 02:56:17 +0200 (CEST) Received: from OS0P286CU010.outbound.protection.outlook.com (mail-japanwestazlp170110001.outbound.protection.outlook.com [IPv6:2a01:111:f403:c407::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 35CB9F8032D for ; Tue, 15 Oct 2024 02:56:12 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 35CB9F8032D 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=GAVCEGdj ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=NBlcNOCJMKfORc6kj6eAxTwHecZjfI9v/TnVjz1UG/mC6mgmlwQAJVSsGnwK7X0HKYUm8ZfG6LmUdDcy3dQgSwffBwsU/OYBdBuMWi29CJ77EGuUbn2rZi2RlCIq3c1XRxT/dGXySGg/SBrLL7mH7+V2zH7wIJMKZ2VrrBRTQ39Tt2uo+SgE6WrA4lN46cla/YXdWx7PjaQj8/qYUzetqvH/sMJAVZkzuex7DoDD33g57Tgc0mEqmgLYm/5dtSxmGHZqgo4iJNPN+6ymQVW1mTb+G2kNwdOWlBkImOu1l1KRg7CIMZcsmEpHbpVVock5tVih94ApVvZeTlDIvHjTWg== 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=u3PQdVvaZ1VYKzr8aoP2xlzfTMD50pWZg5Olj/6FycE=; b=tgJkFElt3melcWcmHGY7KmFSPtYTY2/efLtHxwnEGdJDq+LPhFblz/9pGTk+XvSz9hTLRj+zGWnPVUSjW0axMgPecHDj/jRR5tWb9zL+l+NWLapy+2cR+mWZkTp/PMn2ywVcVnvnbmHzLz23K87eyRA3uSrHg6UVBGFyG5h6K5y7fGdAd4fZz6tr0DIa+PyKUVXLLe/IOqcW28pnSP5fIvDzSuqA6ZU3B594fKhf6chuX2MVoG1QnQL9zisx6bg8cVes0B6HF/6PB1U3d9JcrZIyg95G63GWKcAQ6RkHEYzyE0kxRxaHSo/u+JnqTH9s/KAgVGXaW3xrW+AmH9b7Vw== 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=u3PQdVvaZ1VYKzr8aoP2xlzfTMD50pWZg5Olj/6FycE=; b=GAVCEGdjCZVQcTV2tL5pelsVi8knUAtMlARkGTFlbKZfs23uH42kGGJlo9m47iAykTkUhCjovoPYD+bA/t/tBfKX8e7qCEItrRb0SSExi7pgVYmQgek6vc+k9YwVoToa3jWinavfE91XAbXtEpM2DVnNru/2dq68SD70MD+xp1M= 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 OS0PR01MB6130.jpnprd01.prod.outlook.com (2603:1096:604:cb::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.27; Tue, 15 Oct 2024 00:56:05 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%4]) with mapi id 15.20.8048.020; Tue, 15 Oct 2024 00:56:05 +0000 Message-ID: <87ldyqqj4q.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 02/13] ASoC: fsl: remove dpcm_xxx flags User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Mark Brown Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org In-Reply-To: <87o73mqj5b.wl-kuninori.morimoto.gx@renesas.com> References: <87o73mqj5b.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 15 Oct 2024 00:56:05 +0000 X-ClientProxiedBy: TYCP286CA0265.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:455::17) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OS0PR01MB6130:EE_ X-MS-Office365-Filtering-Correlation-Id: 89bef205-eeb6-41dd-24cb-08dcecb4261a 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: x7n6gpSnIIehCPTsaWCXcGts2f4zG3WRNT6mf9DvDfu9wZaXl+EV+PU07EXmlv7CnykDYAAPUXr8IMpJ46e8LKx9twIw6J3hlog9kdwylQmnzLkskmsDhSYCc0AME19daZiqcRw7N3AOFx1kdSvfsrnSnzknEDLvbU3ybGd3lkaXZ5iv/Q7fxDWM38JUj+T1YKvUl7o8MYgUQKMgO52b7dI3yuc/NTnYPfN/r8ZDMCFenVDWEdzW/6Kao/uaLWFES1hZHU18Wv9O4bC0lJpuUkG6CoQYk/S5hR0dBe88l7NSrK4Bei7Aki8BuoYRoxRxp2PUuo4MxanPw5y7gVTNFB+z1KYNIe6kFwW7EDfeFIIhwtoCNdYWdcHEK1koPAuKd8zbzSefwYFnobvpu3Kb+nuEOKrSy+nWBn7mqYPieqnPNb0qpGZ1QZy6VOO+32aPUz4DvBqLMjtVezaqmA3QjOXl/2EABNYaNfYMFZbRK1iQ/WtMFqzkmg/SWVmS+iNDU9/ua+I1Jmmq19JPs3k75w+aKjSy4MuOOJbdbInHkFzTSSGIcFsoPAGtx7lZK8QQp6WfOphpY/lKLV5ywBNnbCpLyclNLue2px9IjOtRtC935DQHIPb/yVBqkid/fd2f4hplgFHkOmX7RFn2Fcx5UcsZ1WNQ1K44cMbBIaJBPtrPSi8msHqek6SV2WM4cOKLVjPJ51wdI1ETWfl6jh3zuoH5laNBoUigk1NXuwUUu69MHZ0sPe4lEJZIn4oPEUaVAVFllGV7a4NCDcmhM/2r+bpJoZ+/a1xk30EotLjRlsXIZumzKiwgJ9Ov/ABTN5E9N3L3WUrmt4/fzPVihSVb7Lszph+Idu2IGOtaL0KyfCrVXG0h3sqCZ+0GREdunN7BLCtaiJ6S8567Ta1Qo8iKaQU9vTpApVI8DwTwtx9UcOCmQKdX64khoF0/Lx40uPLmJTa7rRFgB6zUye48dQpWaLlNJb8xROUzB+p0U+XV//roAP3/YqgknSXUAE3P3ykOrvA2jrYlH1p6dGiNFgwQx+/cKqAbAWnCQk3j/FvTBxJN4+pzs6ExVsi4608l0R7AxwDp/g8jqvDfjbXioYQ/dxiikt6jIpz1NbuVql1BAlCzatwYfTFk0/fQNf6fux8qt7Zf0cK3H1C5bON2ntPS7IVBGJeB32fiV+tbUpSMQfbcdWgGVZyOIF0wBi8TTK8k1eUs+m7Lxbvo97cMebUfSeW0R/x1K3ngdNQiUxrTlAZ0TYxHjwqBqmCQWm9V6vVSyX1+KFrHcLqalJjdOAcAWGSBMeSPCV6dbnY2tHXPy4zMFMtygAli1vtPskRNuazTrnFYP/CCT/6TubrMioxE6w== 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: KaLvpGn4unV7p948OoSJeNbtHSOjFFlrsToL4k//Pw/ybS6LKtHKi5Xa5GqOBo+Ta0XrFKJAi+QH2Xy+c8v/gYQyPVy6Y80pr1B2z9oET9V5IoYH/1J/4bBmVYeo9znTR6gQQt7CbwJ4MuXvDbasluWTYfivljDv+eM15j6cq4ms3yFfhoj3NzGsNrScFKYE4guCCmm62FIHtNYSen3cxZCWiouzvNoFrglKOevvmvYEqUCak8ywbM3PVo1TCftyfFs8b2ptaeFVcUnDUjZCaxNeXglAImmz++talkkrHLG3tWIQnyaTbM9PaRHrGTxb9vmziyx4VFNmZYEMPHTcbqfUVXPHdTLlWhigS5vEdx/v53OO/msnhF+zKpg/KL/pL9oRB0YaYSdMfDN9oGQxgzBz6yIveLas1Bp10P9vkNK6lPzOESygrALtCOyjMKNGcjnxm5Cl6jTQ4pF7GHVZxF0y0Wb0M0HfvLnw7onyHm+LFOJ2jHZY+Ii189a1SAUuMnuHG8hfv114DclQZb0+m1JDTaL7EdPzwzv+p1tBdTVsJNuExiWsTJ5GIaekcvo8fW8xmnAqz+lQk98QigQtOzaIRsB28EUF/kreqxIioJRc+XUWy1Zjg//uiG9L1G1W8ipoRH7Cu7a8IawRCKVXZqh5fs1W0xNjXserOcuie9EPw+KFuLfKRnEoGWJr2YaAZG2j8r9OH4Bx1fcbhrEekg9sfIB8KmhOn6TaBEb8NMRbVyN9hObS3tfCsVURQLgI74pDosiik6hV2b+4ttj/hV1TXEPbJf0cXW9CPLXLjQcAaPd+5IZHInCIbbA0hqMlFu5OrgOJVd/3zmeMPM9M3SLytZjpFpbLBu66CGxEtNrMX0q0qCEPWzHCvrJuaxg7snoP0nRldkzMyCdPrNjHWwForAsYl3CM9VgBkGmeuXRy6fH78v9SBioahtLezBsETaPPq4YWy9KsT8y3FQsSImhqymF8ybueHciAeAVtDO5zNOZ/YN1MmxkRa93UIQ3gWpbC27yCnq7xWeX1Zy7JKb79kEUrcnX2LYOJTh8YXHQsV2UhgK+g1DFpUm+BhgJb9xOqurSGYDGnwpYkl1GBmB4dNsluVX1bAnykOO+y76atm5HAn/NK6yD3c0jngf5EFo435tJV84TvxGFbyYzmJTfaoGCa/U4ktaT0SWzDxtVHZUAXn1rOCFCePvqsI6LFY5hw6PTlxOHyCiH1GVcKB0xQi/ODfEHYFqChz/23rWToRIgjlwYdNN3NfFW7AC+oM6o6OEI+N5ChBVkq7R1viEn0gn42ygluB6Icw6oltIXNddR31RLopzqcWYviTVWuDEsmRHDRupXEl6+RgMA/yMhCbKfew2xHolX1Iqfbux56FLhogWyigT3LGPSnkhyxYVL3+5XiPuCdy903DOuUPnY/IzIIWc9twmmmai54ZTa7m5hSrO/LtEkj/EAYK7h/QOKyXQVW3o2oL8VHlt8xFcCpBg1ieMDhxzYPurgO6hjkRKym07c2fj0teHkZRzl+yn3XqtH3YNU9mOsgJfXb7hY03gAd8ATooGwcUY7U1drsyODuO5H6Pe3/tqTE0TXvbyWz+2Ahpc0qtzpt9VOW9i5bG/3czuAhbn/Yn5Jfvgg= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 89bef205-eeb6-41dd-24cb-08dcecb4261a X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2024 00:56:05.8099 (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: rfLh07Yzw09lqaYiF9ze688KEw/apkoDN9KCW2rJw6ho6LbzceYgq63C9Zhzb+ZjYoEGlST/CMP+ZnCDYcPENfsvk3XG0ulWiCoIDwW3ohp/JVcESEDU6zp2Wj2JwyUD X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS0PR01MB6130 Message-ID-Hash: IADVIIO5MRKZLZ3BQL77VQVCDOUJ3EF2 X-Message-ID-Hash: IADVIIO5MRKZLZ3BQL77VQVCDOUJ3EF2 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: dpcm_xxx flags are no longer needed. It converts dpcm_xxx flag to xxx_only if needed. Signed-off-by: Kuninori Morimoto --- sound/soc/fsl/fsl-asoc-card.c | 24 ++++++++++-------------- sound/soc/fsl/imx-audmix.c | 18 ++++++++---------- sound/soc/fsl/imx-card.c | 4 ++-- 3 files changed, 20 insertions(+), 26 deletions(-) diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c index a0c2ce84c32b1..02e1594e8223c 100644 --- a/sound/soc/fsl/fsl-asoc-card.c +++ b/sound/soc/fsl/fsl-asoc-card.c @@ -317,8 +317,6 @@ static const struct snd_soc_dai_link fsl_asoc_card_dai[] = { { .name = "HiFi-ASRC-FE", .stream_name = "HiFi-ASRC-FE", - .dpcm_playback = 1, - .dpcm_capture = 1, .dynamic = 1, }, { @@ -326,8 +324,6 @@ static const struct snd_soc_dai_link fsl_asoc_card_dai[] = { .stream_name = "HiFi-ASRC-BE", .be_hw_params_fixup = be_hw_params_fixup, .ops = &fsl_asoc_card_ops, - .dpcm_playback = 1, - .dpcm_capture = 1, .no_pcm = 1, }, }; @@ -504,13 +500,13 @@ static int fsl_asoc_card_spdif_init(struct device_node *codec_np[], } if (priv->dai_link[0].playback_only) { - priv->dai_link[1].dpcm_capture = false; - priv->dai_link[2].dpcm_capture = false; + priv->dai_link[1].playback_only = true; + priv->dai_link[2].playback_only = true; priv->card.dapm_routes = audio_map_tx; priv->card.num_dapm_routes = ARRAY_SIZE(audio_map_tx); } else if (priv->dai_link[0].capture_only) { - priv->dai_link[1].dpcm_playback = false; - priv->dai_link[2].dpcm_playback = false; + priv->dai_link[1].capture_only = true; + priv->dai_link[2].capture_only = true; priv->card.dapm_routes = audio_map_rx; priv->card.num_dapm_routes = ARRAY_SIZE(audio_map_rx); } @@ -764,8 +760,8 @@ static int fsl_asoc_card_probe(struct platform_device *pdev) } else if (of_device_is_compatible(np, "fsl,imx-audio-tlv320aic31xx")) { codec_dai_name[0] = "tlv320dac31xx-hifi"; priv->dai_fmt |= SND_SOC_DAIFMT_CBS_CFS; - priv->dai_link[1].dpcm_capture = 0; - priv->dai_link[2].dpcm_capture = 0; + priv->dai_link[1].playback_only = 1; + priv->dai_link[2].playback_only = 1; priv->cpu_priv.sysclk_dir[TX] = SND_SOC_CLOCK_OUT; priv->cpu_priv.sysclk_dir[RX] = SND_SOC_CLOCK_OUT; priv->card.dapm_routes = audio_map_tx; @@ -791,15 +787,15 @@ static int fsl_asoc_card_probe(struct platform_device *pdev) priv->dai_fmt = SND_SOC_DAIFMT_LEFT_J | SND_SOC_DAIFMT_CBC_CFC | SND_SOC_DAIFMT_NB_NF; - priv->dai_link[1].dpcm_capture = 0; - priv->dai_link[2].dpcm_capture = 0; + priv->dai_link[1].playback_only = 1; + priv->dai_link[2].playback_only = 1; priv->card.dapm_routes = audio_map_tx; priv->card.num_dapm_routes = ARRAY_SIZE(audio_map_tx); } else if (of_device_is_compatible(np, "fsl,imx-audio-wm8524")) { codec_dai_name[0] = "wm8524-hifi"; priv->dai_fmt |= SND_SOC_DAIFMT_CBC_CFC; - priv->dai_link[1].dpcm_capture = 0; - priv->dai_link[2].dpcm_capture = 0; + priv->dai_link[1].playback_only = 1; + priv->dai_link[2].playback_only = 1; priv->cpu_priv.slot_width = 32; priv->card.dapm_routes = audio_map_tx; priv->card.num_dapm_routes = ARRAY_SIZE(audio_map_tx); diff --git a/sound/soc/fsl/imx-audmix.c b/sound/soc/fsl/imx-audmix.c index 6fbcf33fd0dea..dcf770b55c4bd 100644 --- a/sound/soc/fsl/imx-audmix.c +++ b/sound/soc/fsl/imx-audmix.c @@ -264,11 +264,10 @@ static int imx_audmix_probe(struct platform_device *pdev) priv->dai[i].cpus->dai_name = name[1][i]; priv->dai[i].dynamic = 1; - priv->dai[i].dpcm_playback = 1; - if (i == num_dai - 1) { - priv->dai[i].dpcm_capture = 1; - priv->dai[i].dpcm_playback = 0; - } + if (i == num_dai - 1) + priv->dai[i].capture_only = 1; + else + priv->dai[i].playback_only = 1; priv->dai[i].ignore_pmdown_time = 1; priv->dai[i].ops = &imx_audmix_fe_ops; @@ -285,11 +284,10 @@ static int imx_audmix_probe(struct platform_device *pdev) priv->dai[num_dai + i].cpus->of_node = audmix_np; priv->dai[num_dai + i].cpus->dai_name = be_name; priv->dai[num_dai + i].no_pcm = 1; - priv->dai[num_dai + i].dpcm_playback = 1; - if (i == num_dai - 1) { - priv->dai[num_dai + i].dpcm_capture = 1; - priv->dai[num_dai + i].dpcm_playback = 0; - } + if (i == num_dai - 1) + priv->dai[num_dai + i].capture_only = 1; + else + priv->dai[num_dai + i].playback_only = 1; priv->dai[num_dai + i].ignore_pmdown_time = 1; priv->dai[num_dai + i].ops = &imx_audmix_be_ops; diff --git a/sound/soc/fsl/imx-card.c b/sound/soc/fsl/imx-card.c index 306168b164d39..0f11f20dc51a4 100644 --- a/sound/soc/fsl/imx-card.c +++ b/sound/soc/fsl/imx-card.c @@ -860,8 +860,8 @@ static int imx_card_probe(struct platform_device *pdev) } for_each_card_prelinks(&data->card, i, link) { if (link->dynamic == 1 && link_be) { - link->dpcm_playback = link_be->dpcm_playback; - link->dpcm_capture = link_be->dpcm_capture; + link->playback_only = link_be->playback_only; + link->capture_only = link_be->capture_only; } } } From patchwork Tue Oct 15 00:56:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 835862 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 31855D1815E for ; Tue, 15 Oct 2024 00:58:18 +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 24746DFA; Tue, 15 Oct 2024 02:58:06 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 24746DFA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1728953896; bh=GgGhujaI0woWlgYqdJG4tJyAc+dIuukpTkAfJ3dobUU=; 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=phdGVzF2IWmb+TrNMf8OCk44XfzvQHhewM89l1j+u1E+xYSQGgp+Ra3PcosbKK8IW 69XTDBk/82l1Ks5iZOH34nk7gmyQRp7F6Qng/DNUh2/k8nhrzJXWbRnB1Z+DAH2vV/ m9C4VSfc33IySMNuaaN90lAe2lM8iGn71YxLbS94= Received: by alsa1.perex.cz (Postfix, from userid 50401) id EB0F3F80616; Tue, 15 Oct 2024 02:56: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 13FD5F80632; Tue, 15 Oct 2024 02:56:26 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id ABFC8F805D4; Tue, 15 Oct 2024 02:56:18 +0200 (CEST) Received: from OS0P286CU010.outbound.protection.outlook.com (mail-japanwestazlp170110001.outbound.protection.outlook.com [IPv6:2a01:111:f403:c407::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 10D1BF805EC for ; Tue, 15 Oct 2024 02:56:15 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 10D1BF805EC 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=e9e5fa5P ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ywUiuzxZ20CP6yvjeG+Djueewim+AVxJ/dIdld9y2aGLmWn2IWfZ5+1qkN+Id6lt6j4LqEMoOXtL22wFc9ppm3AIFliys+7YlFKckEoAXoOYzeTsf/pZ54xdYhDu3pfbEfpKhYUOXSwgy2az+CPLBJPkOYShmZ8gWUaJKctBiXMwEptvc1usRB32iUaQqS7h+yH/OaIN8CqEkmHDZbAPQrzcqZeuwUn+5dtJumI3RcaP+jgcKZRtcFYM+iLg5Y52o2hHVcGxCkeLpsDXxUJDXOuMGOkkbLQx/pR5eIDB+8+GDuJQyjqbffud9+LJ4h7GLy/0uaHGGzgVM2kM2dFdnw== 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=KZAxs4yzTaa6Dg7lirfzVAAaYESTfbXLM12N5GBpcfg=; b=bFPCVvCqEaplnGllzfQVC0wuZeNCJbzUJhBRJuH+fk60mi9pW3LtRNcCWCffKwbgBMCetWyl+44pYBnR1ESOpsDJohC4hWf0uB/MOdVm72CDCdGPORrHQkVjH2PXBaGkE9uQmDGXBb+B47RwdVVSXe9jcqOy86ANgXFs4X9A50rGERSHNVqVneecuiakDXDvdEYduRES/y8XE320BEPjEhhf3BEfZ/ngE3Go8wtJwnmkNcHwWFWSu/qXhD7oJzRuoPFb/FkKnl641mk3yqKn2simMlEcv+oP0SiDRGQbRI/vCPleT80ZspgwVKXX5xkPcBArKz9+u+tPXISXd+tu3w== 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=KZAxs4yzTaa6Dg7lirfzVAAaYESTfbXLM12N5GBpcfg=; b=e9e5fa5PfpCED01vqt/nl4MAuqUxtAYuEDDLsCNpwtdeqlV0dCCkHzUUHwHsdw+PsIgeMToQP2bNijvkgJQe+jbzwXmiBNeKsjvmmxlJt5UBnBGgdjxH0PzY0hSy9c1HBWEb0eiaNg1Ppl4wXsPZPUpr6i6SnW6k5F1nj3ptZzs= 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 OS0PR01MB6130.jpnprd01.prod.outlook.com (2603:1096:604:cb::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.27; Tue, 15 Oct 2024 00:56:10 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%4]) with mapi id 15.20.8048.020; Tue, 15 Oct 2024 00:56:10 +0000 Message-ID: <87jzeaqj4m.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 03/13] ASoC: sof: remove dpcm_xxx flags User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Mark Brown Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org In-Reply-To: <87o73mqj5b.wl-kuninori.morimoto.gx@renesas.com> References: <87o73mqj5b.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 15 Oct 2024 00:56:09 +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_|OS0PR01MB6130:EE_ X-MS-Office365-Filtering-Correlation-Id: 2bbab7c1-77a2-407e-7c26-08dcecb42884 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: dIQdUl6ErXiuCj/z6JhJYZAnIBocg99KLtYJMgs7MfXeR7SlN6cBzSbYGe4bDT/Qq5ZX/eI+l47NueHbZq4sz1qwNoMBm94SfY2Ub3suIduv7dpdbn2BOxVrxLuzJNn5I9oqrzIEyWY6MKKha0KFdmSQesh6Xi5A2l6xspwrLtOSns6bsyWM2H31mLKgx6aKbyaAQuwO3KHQQn7+N0XTpOIgQqnvC5pmG4NwgeRSnvbD1/Wo82stsW70d5sMJCJA1wP+k0uz/iM/tk5Pt9lM5i6YaKVu2QN+lUZReXVUJ8oRAnR4OL2kbTx3IoNQ6H79te/9+4z0yibzTZ02zn4zKGhS4gwHy5UIRrEir/UIP2LPglphU/fae60u5Wgz5Q/CHqFZZfYzt0p/Ac/BzoRnHtsaJ+eSVxJKLZiQFEu8jPKix+Ul1KH0LUEnEUWJP2czCTm8D5hKP/XRFPh8G6r28xzmb02ENzJQELyWLjXx065t2E2vqfIMgbapw7/XRZFReCUCLPV9xFLgurMLWWyqJPyJdM9UbYKbdrg4o4fy83m0LLf9K1o1nqT47O4/HqTPMUKjtHnohB0+zPGdjj38STxKDHbgl83f3DNCOlt5Q2VK1LO+Ot1RGiXzI9cpPmEjn0HvLdcQ4k1A8IES8S82eOFONj0gIahpf4o0ZeFcMFhqt0dvt20S+HLbpKmSGaD93sf8+9S7GAimRmH461+q7rxpPMq6PJ2YWucy5QIZq9oIku2KESRkCeTSbigE6WcxV5dMv/rYSD7+w76x5PSRTRKDL+mb+OwLECHx4bIYfNJQhBFbRxb8C3oYXKkwnNDFyaGLCUgugYv//Xa7zBnrewEcL9X3aTiPp1HGL3vpCM45esKUEV/sIzxXPxX+k8mLXU9sWBR5XRxMdPA0C1nxYyjphKJKFyWEVCjNdPBJvGHTptX3MfDwN2vlG7rOatOATAKdq5UDC89VaDvuOLs96jobWT5UzyZP9r6pQ2cfVISKgkVgD4S3D+IqbQgB8JmZ3Sqofdw+P2H7EthllFRf2nEGuc7nMbUvYea2NX+mw1rCuWc/Ea1Tl8nX9Or15uUWyioyzSIuHYV4MI/DO2ru8K+sQF0fTqr4InMcbo51UK7NCOF6cq2oU/eI4QYoFuLWqjkA0pOjDqsaJlRX7RUNhE4KeSr//upI1Yp1g7GKWLxu0wepJyR2jLdvXWjPBo11CG2XFT1kz9V0eDJjiVjwvbtb/clOv3+opfaDnSLkUwfipt66DxzkP2TFxpPHnlN3RZTkd93aNt0hDuSJYQPlamxqxLI2ki3vFj6LJxP8fZgl86mJe5Zx/vaqhZ+WIlqDoCwedRG6PCHXxlXsY8MLCA== 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: f4ETCx5mU/1AOOo4tDIf+j6jcqQBy27QPysuZVNEyQ7kCPgf1zTpg6AXZM3wo5Om4AcBi9MYNdbX9RLrXZOSK7IZ3fYmiEhVZBSWe9pnszEd5dx8LQ4YgfdYB2l2XmE1FawtnsKKv0fJfehX2ud1ifRy1S8g5qUKTb+CbPbpN9qi97laMfwpzvffqo8a99yoXqnAse5HZexO4nkQaWf7Tt+eXIi1Ufq7hZgZQRLLmwXw9KiVX6etgAoAeopu0NPGAkBcXTwVnS9Pp5E9SsgQJegUyMBatnqtm+MVK32yRSDwZJzwzOzy93+JqxiVPZA5xalLjYclTzyU7+gAlvUSoM1H/D5J0XSXuFFffDNaMMonO3+Nx/qNuYSOHat66FAa5gJpAJO6RsXc+6Qru6VMap/ZAsozyRDuYynvf0vcxX/dOAGO9XZL4wdcCRhQtUDlYBw2BUBPwDRqoXe2KGPAxCOMEVmBRmydu4OKrFna5RUwHYKsmJPIFsg9eBa/hURxnGc+1rfPTle9kddoZRm2HgGVotyT/ydzFN6Sgq7AoUEXKViwD7/fD5ElEZGlUc1HxKO4B/xbkgIjdqDeuOvD96S5fMrCeuXmg5JknvwgMMdALhwZlAl7AR58WgxOTzyxNlaLaNK+It9tAm//NnVGdWAJtQHIl1nCwkdi+pA687ny56vPfdkgRpXEXerlPsq23x2yFCEDVu1E5EOS/YJg+9psbuV1pD/YI4EmZfsyXR1o3yw89pxSzdi5cKOuzCpzquPoVmSBxKT06iWqgiAKB27MkWN10sw9nP6nL/oWJ6qczpPlHQAeSuVXZlxJNOam5LQMQ1uT/kkKU+ke9R/2k5Mv4Q9urrfURkWnD1M7EOVz27DNO0UZcdr7dRVu++HAJaKTUAqXESHCqbyM0e6Ig4xizqIkaP1VNUpPLIIfJQ1kDiXwvlTfmj0wfAAOBRr181WTuR6/v1AEzhWItg235IK5wmReH1h43Mxi4TEWmxZfAC87fIeYfxW/dsBSFQdMuR9iwIlVikqiJ077I50h4aqBkN0rOW2P3uGWjy+Ilbkr2JYwi23EYxmbQ1L6hi1CvRBALISa42Vm87dT9j9s8DOvswEVSjR4XLrrUxb+nOTtLzdOFGjQwNzYo5yVyLcLEhxTWUUqrrEoZAe653zuCfPlFHqScaE27ecj3jguQvYdNRxyniCCkV/OX0GFVgPzAgkidVlO/tvmR725wykFtXbwPYiErl3vQSgq8SW46UeQbT7rY93pvgPhG4bD9axzqzTNvIMk7LQhpNHUuScpkh/1jsXKJ1t5UJ3daaAJHgjrASO9djlrm7v8k1SuBP0El7FxgVjxNRJ5m76sgT2VDvnJn5Sow2vkCks6lPL/y0oKNuSiOhrujpuMUdrk1hu6k2RpVG5ccsf2QbZWW/G64TMpcYMqIcXARQ10REW6lEY5I0hSuRb3S7EQ7diAWc+o9gSpZ2Xadvz9ovaP8CicayS0uTL7kYJGgs7m3UojILSC2syiCOAxiwnaO+656u5aCkLUThAcgxtdgR31RjUS7PLmaQDdbWG8O783ZXgSD72ar5Tllu92w2xMbjNrhAvlaz4fcqrQSTC9fepTdrLQCHTaxmXmMs4XD+OOyEpncF8= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2bbab7c1-77a2-407e-7c26-08dcecb42884 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2024 00:56:09.9066 (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: WVudaRAb1XEgqMjhmAcZQ3SPl3jnM7xTORLW+4bXMJxlDnd1Mo7p3heYzcUZ6b2aiLZ3Z+1tfk5vGN8uOPCjawkiGK+tDqKXbE5pRs1jyKPZ9BsmEYJgek9LZbZMV4Zh X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS0PR01MB6130 Message-ID-Hash: RKJZ3CVKWZ4SOZY5FEPBF4JEJOBMYQKB X-Message-ID-Hash: RKJZ3CVKWZ4SOZY5FEPBF4JEJOBMYQKB 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: dpcm_xxx flags are no longer needed. It converts dpcm_xxx flag to xxx_only if needed. Signed-off-by: Kuninori Morimoto --- sound/soc/sof/nocodec.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sound/soc/sof/nocodec.c b/sound/soc/sof/nocodec.c index b12b3d865ae30..c0c906a78ebae 100644 --- a/sound/soc/sof/nocodec.c +++ b/sound/soc/sof/nocodec.c @@ -55,10 +55,9 @@ static int sof_nocodec_bes_setup(struct device *dev, links[i].no_pcm = 1; links[i].cpus->dai_name = drv[i].name; links[i].platforms->name = dev_name(dev->parent); - if (drv[i].playback.channels_min) - links[i].dpcm_playback = 1; - if (drv[i].capture.channels_min) - links[i].dpcm_capture = 1; + + links[i].playback_only = drv[i].playback.channels_min && !drv[i].capture.channels_min; + links[i].capture_only = !drv[i].playback.channels_min && drv[i].capture.channels_min; links[i].be_hw_params_fixup = sof_pcm_dai_link_fixup; } From patchwork Tue Oct 15 00:56:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 835515 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 C5369D1815E for ; Tue, 15 Oct 2024 00:58:36 +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 091D8DE5; Tue, 15 Oct 2024 02:58:25 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 091D8DE5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1728953915; bh=0JuyPGS4VbwTkOk2Dwr01bxEenHqvdBp0UVbg2PblNU=; 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=JhTo3ZrSgFVTFm3QXrOjNLsOoKz9yyFoKok7449Zdty1BYlev7JvEe9nXtWK/AOat XAYLdkLdaHjhu97iDWF361W9ODu4ReZCodiry+unIttKU/pccipXyGsadAwGgJf34J Zm4dNvfaHYL1r5lbypg2UWgtNLplN0ytygp9iLZ0= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 6D2A3F80672; Tue, 15 Oct 2024 02:56:29 +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 D3F8BF80656; Tue, 15 Oct 2024 02:56:28 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 8954CF805F4; Tue, 15 Oct 2024 02:56:21 +0200 (CEST) Received: from OS0P286CU010.outbound.protection.outlook.com (mail-japanwestazlp170110001.outbound.protection.outlook.com [IPv6:2a01:111:f403:c407::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 CDD50F805EE for ; Tue, 15 Oct 2024 02:56:18 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz CDD50F805EE 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=NB0brcA7 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=NkuS5Nsnw2RyDg2k8NUU2vJoB4zs/QSHCFdZDQvzDbXRkjdRXh/IIEu49c1Q3OqsYoKxTbwGLVaVJGvTbYaUsh70zYp6zcSX/3GUY0HuH/ZEV74VsBCnJ23lqYF7oNSd3fm/FkxopocyjnfYf+4dnUGpOuL4O+SCZXyQafatqQldK8/P9OVEJS7MiH9aMvmNBfmtwBQX1QwyFPQomXJpKd3lxejPg/4suROEljjAjDy2SazZrjGpZkuz+Xamq0HjzVmfxUeNC04Q2q6FEyNTjJ10qYxQ76bBbV5YF+gvaGJr/LXHqF/7Kcy5s5gXVDqm7elruVZ30H8UjzXN4Grr7g== 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=oyf5TLq8Py/lTSeeOBhHx/br0P8Zo0IJRcqO4iKs/Qc=; b=w/pPmidudlHDaoU6/3WDg6HnpXSh25AXuw/rXOCrZihbQj44rkPvSPvo0Uz3QdvvvedxQM0KuoRCtbLTNwjGdr/Lw0s8a6lprtDsuCDuTah6IOep/kqvVtD7RMuT9DtSf+VuK6mlAew7gvoeKvUhJj6xt6LRlOuKXb0ULh5h9IxsepJ9mpokwi854tNs6IjaFD4HJihtQijhOOjnJGLVDGQgelpajDK3twq495N3ODXkkRKqp91z3k2YyO2WrtqQtci8TuDFnHnh2qfLnmU8bsbhxedaSOX80o6qkIGVDqxSIf8GIkVLrnm4zu24DpkY577z/Nt0nyaI/MVg4wZmkQ== 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=oyf5TLq8Py/lTSeeOBhHx/br0P8Zo0IJRcqO4iKs/Qc=; b=NB0brcA7xDVy6Yu17UeazsmV7WdueXM1uCS3JQceWCWKUBet29rV8qxijbHkdoelwG9TfWd89bAUiMgeZSZlU26z9BwgFLCai8wLNpdWAtUVXpzOraCk86MITE1YqGo41aq9yjtmEbTxaTzjUiblhvvB20AoKbhkgcceGDlDMuc= 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 OS0PR01MB6130.jpnprd01.prod.outlook.com (2603:1096:604:cb::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.27; Tue, 15 Oct 2024 00:56:14 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%4]) with mapi id 15.20.8048.020; Tue, 15 Oct 2024 00:56:14 +0000 Message-ID: <87iktuqj4i.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 04/13] ASoC: intel: remove dpcm_xxx flags User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Mark Brown Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org In-Reply-To: <87o73mqj5b.wl-kuninori.morimoto.gx@renesas.com> References: <87o73mqj5b.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 15 Oct 2024 00:56:13 +0000 X-ClientProxiedBy: TYCPR01CA0148.jpnprd01.prod.outlook.com (2603:1096:400:2b7::7) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OS0PR01MB6130:EE_ X-MS-Office365-Filtering-Correlation-Id: e4f82092-6c09-44b7-5b06-08dcecb42b00 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: JOMo0UTbtKP4Vi+nRXoTh0rCu17ytLmoaa4SLtJt5UpSteFnB4nT4yzfhmKPudbQwMKWnq8nUI9GRxqQK+obc4U9YLrVWvwGeN44mA74tUASypl/OtcgaqjFtBmUP9R2Onic/d/RpXx64MouOcaKFYY4yr1bgc7lTtmd6fciwbfS8BatCButivQhlBckKC5DdIyVehQo1aRdJ2Q2MRVTx2O3XAxqyM3K7ZHZiIMifhG9E7juHfuP+qHNcAuDQPfcNDkfeLiSSVd/j8SWOmtYPyMi4hxSe7HAJi1VzIjmYEVDSWg0ZVx9N/zqfTYiKYZy+Q5kGXkI9ArBCcjpRr2qEQRPVUWzDinoAZBbv5fochc+eJhzmhAkHsYsC4Y42OWsXgIPr5vJpqR5jXIarA1mm5j1rjM369sNF4ySGAIfcVAPC6jP+nab6JN66dTkiHrysQ7yc9LF3TRIC20GvXfUmp9/m3jPi8xYF9I91+FiSXrSDHPs3mVYF7uD5hpxddiRyiys6li0ehHGe86yjGE+cPKS7aRaWKwQPP7yxwkft5O7F8QB34QApa68k9ntNAmfMZ6UsSEIhQLk5eatpCFTxgEAeEyR3Lexj1Dhv8UR+Hz4yFjr3vIpiXXRM/XaW81FIVV8VKUWnz6boQ/7N6LKc+6AQOvGYp49DxxipgnL0V6cA85hvGXa/pyGmf0VrVa4YHVFz7Ri61qOW9G7GpsVxc+l9evb1Sx1zsWfOvBozu1FhKkpwYAybqvNnC2SHyFINxm5PyT0DNPJV/7rTo30y7dyTwtIv/ZYJr3ybVsZkKEptf9sMQ8ey5aFMMlTVQcCkrwQOXa/9xFIo/z25U8jyv5yjY0MzZunbPpiXI4VYnU1BnLpeG6QO0CCcbfQIAPeiHGY7OkuOf8S58kfzH+RqA7aixHP6o9mI8k0T4hEQTV6lueOnmIuBe23vMxsJUr1BlBXZsvwNQzPq1bWF8ycoBVuCuccwhKnggxciYe4fYewIFjeC8GysOMF3b5eMykjBfFCbNL3QFAZshCUM0lOrFK8RULSdRxdPf9l0sB975+GMPa+p65Fvc2ERoNDk9F9p9VF7rMw8YMQxO02Ura6JhcEnqW5uTdAh0t2xbjwrwDlEYYXN3nEerhS01vSkgBWFF2iGdRj8DTlvMzVp7JPwKREmtrzjfZz/8LnRODtJdf9MKE6U8IjN2B4bv8xSxkUMuuPAuj5BhU1BzApAyUbt1y0eoBzG4447zxNz7FBf/sXaKocLjwgiAuF/JBSbFHjEVSXGSG/N8QSbyOvOE3lHKXQBsuStkaC+LhH9EfFCaXWbfO6l+NOA+PHPmWwWtPFe8/XsjsPac6lCr7yCdqNUQ== 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: +h/Z+p1hpo7KAZVoFf60q7OdWcO80fIiekMXshncORYFR9RkUz/mgJqyIbBGELS49sYhJtdHfXXIOfud634sO+9BieN0Yj9KaE8JAhchZ4xqr2JtvvXR3zPZyh4bnOfHH1IsP+nNPvew/dfhWlg+5u9hEWw9vNMPYSIL/863ERDcumJGp1W7mivSc0mdYMqWZG6acqwRPUcZKh441u0uRHD3xppgGIpOfQQ3oWp8J6oIsWNtwT+kNPefil41Ne7Ion8SdSenjufMPJMRfJto6znDnRJQlUPB+tgkGZPSfYW/XqI1DSdvEpU/FEAvyDZZtvQwzEQRSZCEzSHRgHJIuLmHIx5zLhwogAZ573ROYbAtM0UbczsxevaSCH4gKCPcfwMJwC2JOcfjt2qIbMhDgMZNhGKjWPYAD3P3L+fgx4x9S9/DPurz6T3W4BK6T/zFG10DzP4d0izHNYs4AeVaGko7tRn1/769PiGQzl5zpXmOU10ddsFFzSCM8ncnLA13sLY1ybdp9vdyUqO8bYWKyo9Y/P5jGXB7XhWH0V5x3Fr1r7CE7VN+VrhbGQOdyMbarOPL/onWt45B+hOlkCsIxDG2uw53EkBPTVkmHFjbZYHCCfOei/h9GyUDwsc6yu9o6Jy4vIM59/D51gWry1okcAm8/B3MYVS1i9Rg5GXS7QWX7cqJsz+RjtlOX1GyhuAYAJ3cWKXq3Ugj0LkRUbvpwXdRff98qsZ9DBDkfv6fZfAdI63nHsWUtYeavnWjz5168NMrBrKdGksP8Oa+d/Rj5lfifNiviHCOWwW8137pI4KaLTmBzlAduVs5P6HYRFlg/3fUvIVVSuvFVkuBFKTpZ7BNMQiBqRt0SZB7kCL0Qb5Qf0e2R9SFeSj9I8icKsQjYxs/gvspzqltua2kDCY9EQN/BVQ8ToJZ+5m9zpfUHBvv1t+MTw86aFneluD2xbYeMeyhMd8CXH49+fWKfZtZu+AMy6Dv5XaIfVBPzOZmJxTbaD/BNz3p/MZG0yqUsBnuHwM9urNCx1qH8+XKXaOps9kcvBPxU0fq+aCYP5qEDvB34TTnux4B8W5DJDJje3QLxNOY4ZLnpG4oNmUHlecEHPic1sXQfuDt9TC0SDtGYTxzntUnTICMFZHX/1Ve1IA04DvUlW0laXUpDMgp2SshW7IWukgXepuJRu6r3KwNH9qoGjdc1E0mqNsEBk3mZVd18mEraxfj6rEsMZ1i0zwr+x3EgrbDdwcmI1t2F2E7ElRoNyqw1MKWsuLJusCL7J2ssXHQkSNOvvIbudHQatfsQjgAI7F3kUOGsFfVlhhvPRXmF/+NBEMxLY/94OLXeiZzSf6aEm6GkCQXsqk8CeXn10cnbJIc14BuKWU38JOe3RECCcqa1sUb17Q9zavlq9Hp/k+9Vabv9uWLdLXUg0/WdMBFBS3hjr/MXxqP6dqDryLZtM8RgGmyVN/Jir6E7yWctTMOUb01DzkVzwItS9yWi3VFSDQKS/Syxf08VLRcKzuUxrZB1El56YR0ltmk+xdHwrJR1uZweu5bSzf53QQE/sw9PGGYjntAcfxB4MiZ02SolgJ10Q8pnrpBanFDaxsnRoimAx5feFsVuv7D5Z4PSiwTgqSXxfVvF6/CiDaj/aE= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: e4f82092-6c09-44b7-5b06-08dcecb42b00 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2024 00:56:14.0623 (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: zNlEN/X3xEIM6/f/LXrRP3G7IzL566vvoJUNpouwQp4CnZv8Ru2M3gFw/TeXOK+H/HA2beOcC8AldGYIawSOTDSOJCMMGynC8IK8y0z2TQq7+hBBxMZocQpwZ+u5/xm2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS0PR01MB6130 Message-ID-Hash: MBLJ3HMEQLYD3H66K2XMU52HVQ34BDLG X-Message-ID-Hash: MBLJ3HMEQLYD3H66K2XMU52HVQ34BDLG 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: dpcm_xxx flags are no longer needed. It converts dpcm_xxx flag to xxx_only if needed. Signed-off-by: Kuninori Morimoto --- sound/soc/intel/avs/boards/da7219.c | 2 -- sound/soc/intel/avs/boards/dmic.c | 4 ++-- sound/soc/intel/avs/boards/es8336.c | 2 -- sound/soc/intel/avs/boards/hdaudio.c | 4 ---- sound/soc/intel/avs/boards/i2s_test.c | 2 -- sound/soc/intel/avs/boards/max98357a.c | 2 +- sound/soc/intel/avs/boards/max98373.c | 2 -- sound/soc/intel/avs/boards/max98927.c | 2 -- sound/soc/intel/avs/boards/nau8825.c | 2 -- sound/soc/intel/avs/boards/rt274.c | 2 -- sound/soc/intel/avs/boards/rt286.c | 2 -- sound/soc/intel/avs/boards/rt298.c | 2 -- sound/soc/intel/avs/boards/rt5514.c | 2 +- sound/soc/intel/avs/boards/rt5663.c | 2 -- sound/soc/intel/avs/boards/rt5682.c | 2 -- sound/soc/intel/avs/boards/ssm4567.c | 2 -- 16 files changed, 4 insertions(+), 32 deletions(-) diff --git a/sound/soc/intel/avs/boards/da7219.c b/sound/soc/intel/avs/boards/da7219.c index 80c0a1a956542..93eba4fd27710 100644 --- a/sound/soc/intel/avs/boards/da7219.c +++ b/sound/soc/intel/avs/boards/da7219.c @@ -203,8 +203,6 @@ static int avs_create_dai_link(struct device *dev, const char *platform_name, in dl->exit = avs_da7219_codec_exit; dl->nonatomic = 1; dl->no_pcm = 1; - dl->dpcm_capture = 1; - dl->dpcm_playback = 1; *dai_link = dl; diff --git a/sound/soc/intel/avs/boards/dmic.c b/sound/soc/intel/avs/boards/dmic.c index a31aa471a1c21..4dd9591ee98b7 100644 --- a/sound/soc/intel/avs/boards/dmic.c +++ b/sound/soc/intel/avs/boards/dmic.c @@ -22,7 +22,7 @@ static struct snd_soc_dai_link card_dai_links[] = { { .name = "DMIC", .id = 0, - .dpcm_capture = 1, + .capture_only = 1, .nonatomic = 1, .no_pcm = 1, SND_SOC_DAILINK_REG(dmic_pin, dmic_codec, platform), @@ -30,7 +30,7 @@ static struct snd_soc_dai_link card_dai_links[] = { { .name = "DMIC WoV", .id = 1, - .dpcm_capture = 1, + .capture_only = 1, .nonatomic = 1, .no_pcm = 1, .ignore_suspend = 1, diff --git a/sound/soc/intel/avs/boards/es8336.c b/sound/soc/intel/avs/boards/es8336.c index c8522e2430f8a..426ce37105aeb 100644 --- a/sound/soc/intel/avs/boards/es8336.c +++ b/sound/soc/intel/avs/boards/es8336.c @@ -233,8 +233,6 @@ static int avs_create_dai_link(struct device *dev, const char *platform_name, in dl->ops = &avs_es8336_ops; dl->nonatomic = 1; dl->no_pcm = 1; - dl->dpcm_capture = 1; - dl->dpcm_playback = 1; *dai_link = dl; diff --git a/sound/soc/intel/avs/boards/hdaudio.c b/sound/soc/intel/avs/boards/hdaudio.c index 430c070a1a0ee..cb6d54db71892 100644 --- a/sound/soc/intel/avs/boards/hdaudio.c +++ b/sound/soc/intel/avs/boards/hdaudio.c @@ -39,8 +39,6 @@ static int avs_create_dai_links(struct device *dev, struct hda_codec *codec, int dl[i].id = i; dl[i].nonatomic = 1; dl[i].no_pcm = 1; - dl[i].dpcm_playback = 1; - dl[i].dpcm_capture = 1; dl[i].platforms = platform; dl[i].num_platforms = 1; dl[i].ignore_pmdown_time = 1; @@ -160,8 +158,6 @@ static const struct snd_soc_dai_link probing_link = { .id = -1, .nonatomic = 1, .no_pcm = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .cpus = &snd_soc_dummy_dlc, .num_cpus = 1, .init = avs_probing_link_init, diff --git a/sound/soc/intel/avs/boards/i2s_test.c b/sound/soc/intel/avs/boards/i2s_test.c index 7e6c8d9c900bd..4556f105c793e 100644 --- a/sound/soc/intel/avs/boards/i2s_test.c +++ b/sound/soc/intel/avs/boards/i2s_test.c @@ -46,8 +46,6 @@ static int avs_create_dai_link(struct device *dev, const char *platform_name, in dl->id = 0; dl->nonatomic = 1; dl->no_pcm = 1; - dl->dpcm_capture = 1; - dl->dpcm_playback = 1; *dai_link = dl; diff --git a/sound/soc/intel/avs/boards/max98357a.c b/sound/soc/intel/avs/boards/max98357a.c index 8d550e82b46a8..6570209c1a63e 100644 --- a/sound/soc/intel/avs/boards/max98357a.c +++ b/sound/soc/intel/avs/boards/max98357a.c @@ -82,7 +82,7 @@ static int avs_create_dai_link(struct device *dev, const char *platform_name, in dl->be_hw_params_fixup = avs_max98357a_be_fixup; dl->nonatomic = 1; dl->no_pcm = 1; - dl->dpcm_playback = 1; + dl->playback_only = 1; *dai_link = dl; diff --git a/sound/soc/intel/avs/boards/max98373.c b/sound/soc/intel/avs/boards/max98373.c index fdef5a008daff..6f25e66344b7a 100644 --- a/sound/soc/intel/avs/boards/max98373.c +++ b/sound/soc/intel/avs/boards/max98373.c @@ -134,8 +134,6 @@ static int avs_create_dai_link(struct device *dev, const char *platform_name, in dl->be_hw_params_fixup = avs_max98373_be_fixup; dl->nonatomic = 1; dl->no_pcm = 1; - dl->dpcm_capture = 1; - dl->dpcm_playback = 1; dl->ignore_pmdown_time = 1; dl->ops = &avs_max98373_ops; diff --git a/sound/soc/intel/avs/boards/max98927.c b/sound/soc/intel/avs/boards/max98927.c index 082f311d8b840..ad18c4e9a6704 100644 --- a/sound/soc/intel/avs/boards/max98927.c +++ b/sound/soc/intel/avs/boards/max98927.c @@ -131,8 +131,6 @@ static int avs_create_dai_link(struct device *dev, const char *platform_name, in dl->be_hw_params_fixup = avs_max98927_be_fixup; dl->nonatomic = 1; dl->no_pcm = 1; - dl->dpcm_capture = 1; - dl->dpcm_playback = 1; dl->ignore_pmdown_time = 1; dl->ops = &avs_max98927_ops; diff --git a/sound/soc/intel/avs/boards/nau8825.c b/sound/soc/intel/avs/boards/nau8825.c index 6ea9058fdb2a7..bf902540744c5 100644 --- a/sound/soc/intel/avs/boards/nau8825.c +++ b/sound/soc/intel/avs/boards/nau8825.c @@ -210,8 +210,6 @@ static int avs_create_dai_link(struct device *dev, const char *platform_name, in dl->ops = &avs_nau8825_ops; dl->nonatomic = 1; dl->no_pcm = 1; - dl->dpcm_capture = 1; - dl->dpcm_playback = 1; *dai_link = dl; diff --git a/sound/soc/intel/avs/boards/rt274.c b/sound/soc/intel/avs/boards/rt274.c index 9fcce86c6eb48..4b6c02a402047 100644 --- a/sound/soc/intel/avs/boards/rt274.c +++ b/sound/soc/intel/avs/boards/rt274.c @@ -184,8 +184,6 @@ static int avs_create_dai_link(struct device *dev, const char *platform_name, in dl->be_hw_params_fixup = avs_rt274_be_fixup; dl->nonatomic = 1; dl->no_pcm = 1; - dl->dpcm_capture = 1; - dl->dpcm_playback = 1; *dai_link = dl; diff --git a/sound/soc/intel/avs/boards/rt286.c b/sound/soc/intel/avs/boards/rt286.c index f157f2d19efb4..e40563ca99fd5 100644 --- a/sound/soc/intel/avs/boards/rt286.c +++ b/sound/soc/intel/avs/boards/rt286.c @@ -153,8 +153,6 @@ static int avs_create_dai_link(struct device *dev, const char *platform_name, in dl->ops = &avs_rt286_ops; dl->nonatomic = 1; dl->no_pcm = 1; - dl->dpcm_capture = 1; - dl->dpcm_playback = 1; *dai_link = dl; diff --git a/sound/soc/intel/avs/boards/rt298.c b/sound/soc/intel/avs/boards/rt298.c index 1e85242c8dd2b..94fce07c83f9e 100644 --- a/sound/soc/intel/avs/boards/rt298.c +++ b/sound/soc/intel/avs/boards/rt298.c @@ -173,8 +173,6 @@ static int avs_create_dai_link(struct device *dev, const char *platform_name, in dl->ops = &avs_rt298_ops; dl->nonatomic = 1; dl->no_pcm = 1; - dl->dpcm_capture = 1; - dl->dpcm_playback = 1; *dai_link = dl; diff --git a/sound/soc/intel/avs/boards/rt5514.c b/sound/soc/intel/avs/boards/rt5514.c index cfa146b6cf087..30588d9e9ba3b 100644 --- a/sound/soc/intel/avs/boards/rt5514.c +++ b/sound/soc/intel/avs/boards/rt5514.c @@ -121,7 +121,7 @@ static int avs_create_dai_link(struct device *dev, const char *platform_name, in dl->be_hw_params_fixup = avs_rt5514_be_fixup; dl->nonatomic = 1; dl->no_pcm = 1; - dl->dpcm_capture = 1; + dl->capture_only = 1; dl->ops = &avs_rt5514_ops; *dai_link = dl; diff --git a/sound/soc/intel/avs/boards/rt5663.c b/sound/soc/intel/avs/boards/rt5663.c index 44f857e909691..b456b9d146654 100644 --- a/sound/soc/intel/avs/boards/rt5663.c +++ b/sound/soc/intel/avs/boards/rt5663.c @@ -171,8 +171,6 @@ static int avs_create_dai_link(struct device *dev, const char *platform_name, in dl->be_hw_params_fixup = avs_rt5663_be_fixup; dl->nonatomic = 1; dl->no_pcm = 1; - dl->dpcm_capture = 1; - dl->dpcm_playback = 1; dl->ops = &avs_rt5663_ops; *dai_link = dl; diff --git a/sound/soc/intel/avs/boards/rt5682.c b/sound/soc/intel/avs/boards/rt5682.c index 0dcc6392a0cc8..335960cfd7ba1 100644 --- a/sound/soc/intel/avs/boards/rt5682.c +++ b/sound/soc/intel/avs/boards/rt5682.c @@ -242,8 +242,6 @@ static int avs_create_dai_link(struct device *dev, const char *platform_name, in dl->ops = &avs_rt5682_ops; dl->nonatomic = 1; dl->no_pcm = 1; - dl->dpcm_capture = 1; - dl->dpcm_playback = 1; *dai_link = dl; diff --git a/sound/soc/intel/avs/boards/ssm4567.c b/sound/soc/intel/avs/boards/ssm4567.c index 63bbfc30f35e9..cfef00462f661 100644 --- a/sound/soc/intel/avs/boards/ssm4567.c +++ b/sound/soc/intel/avs/boards/ssm4567.c @@ -121,8 +121,6 @@ static int avs_create_dai_link(struct device *dev, const char *platform_name, in dl->be_hw_params_fixup = avs_ssm4567_be_fixup; dl->nonatomic = 1; dl->no_pcm = 1; - dl->dpcm_capture = 1; - dl->dpcm_playback = 1; dl->ignore_pmdown_time = 1; *dai_link = dl; From patchwork Tue Oct 15 00:56:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 835861 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 AC196D1815E for ; Tue, 15 Oct 2024 00:58:49 +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 BCAC4868; Tue, 15 Oct 2024 02:58:37 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz BCAC4868 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1728953927; bh=+3iOY++1gWaDouYT9bhhdLFKqUAA/eCCpStrVxpCZ78=; 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=Cf0oF2hN96DnXb/vhR5ZSqMc0cPq+9ItgtjHgGuFAn9OHhbX6/i/Cbf9VDvDcpiSq Zr269ioHSSygwiY+5x6mNrYf8VCb1pyOWEPAw4PTGrSpavu4hnPGSWnDrLng3cAuPA lVL7pJ6fFBD5JcTfN2dydHrsWwta4/evVHe8Q/eQ= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 0860CF80693; Tue, 15 Oct 2024 02:56:33 +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 613F2F8068F; Tue, 15 Oct 2024 02:56:33 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 3EBC8F8061C; Tue, 15 Oct 2024 02:56:25 +0200 (CEST) Received: from OS0P286CU010.outbound.protection.outlook.com (mail-japanwestazlp170110001.outbound.protection.outlook.com [IPv6:2a01:111:f403:c407::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 9F40EF805EE for ; Tue, 15 Oct 2024 02:56:20 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 9F40EF805EE 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=RZtWdKN5 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=WuF2iEJDGPbfYCmKP3qRoU4RVEggjyhPEyuy+nO/GBegmzxB5Od1gt9IWx67hTDHHFDFSoW3LjmKs7TyynDlmckNUoRB/J+1T1eXZqfnRPSvcjL6IjhiNDwxu+uU+NdglROsRNSkvwuQrzFh+LNOY8w5Ohv2+qpGmX3gE13+cXhMLd3ADxt/MiicYNXixj7Ayt97V5DzFeZX4Ixa0Ddp9lFkBQutpomQGmyaZeE454j+7gdE/Ykh4pu0jSx5+NuukeGSm6DDXvegaP+it8X05unPPstN5HGzWDaa2QJ6O32uAHZaxNzJ1S+zyNSzsbxgKyHaEzxAATUYD2EJXmLqeA== 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=NMde+Gsewkg5yaN7cIsJHBgQ3crEs406DnvzH+HMtbk=; b=qPAT3H2eJrLlDU47cporxEucBODLCNFkf5mvSd1yH4I5v07Lm6Zbb5PlKCz0agbhwP319YOtHwLHrqfTsd/FmNIN1YrKQZpgopTLoxPClw85IlIrzudO2wS45lO/w7VNZKLa15lO6+fyLqGa7kEM+Aa2r/uT2ndNUZ44DM3aXCY9Gg4lzeabbv0TZ/ghBGtvWY3vjYScc5Bll5K8nSREBI6gpJA2vtri93sBRklzsUz/fTIk3PKfspFMddVCTf+QNqAzlRluCBUXI21YD30N7vA8v/TO41z0XNABFiYTzePC7MhpFSW+emUVNBRWy0XOzmBlQEytV16DyPvPIxPyOg== 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=NMde+Gsewkg5yaN7cIsJHBgQ3crEs406DnvzH+HMtbk=; b=RZtWdKN5sAMvNxU68+aSG6t1d65Q1qG7tssCMZb0Z5+Mw5TX9lDLH5UShtFd8kpoF0mxQG46IDlo/Y5FGH/xyk9+Lb7YcDyJd6+i8axzS3VQC7yxJE8FvB7++UZoTHiAH4NkNzW28o0r9COv8F5lUh29+ua4gQR2INOOHC1IzNE= 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 OS0PR01MB6130.jpnprd01.prod.outlook.com (2603:1096:604:cb::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.27; Tue, 15 Oct 2024 00:56:17 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%4]) with mapi id 15.20.8048.020; Tue, 15 Oct 2024 00:56:17 +0000 Message-ID: <87h69eqj4e.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 05/13] ASoC: samsung: remove dpcm_xxx flags User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Mark Brown Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org In-Reply-To: <87o73mqj5b.wl-kuninori.morimoto.gx@renesas.com> References: <87o73mqj5b.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 15 Oct 2024 00:56:17 +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_|OS0PR01MB6130:EE_ X-MS-Office365-Filtering-Correlation-Id: fa7693ca-fd70-41df-68a2-08dcecb42d4c 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: A9KEuBCt6yLmh18TgzrEuOc9UO1YImEeZ3XAnK0OzTi3Wt5ZEQTPk+iXHwVNpwNknHPAs9FEXUclslLQhTqEbNSj7EuxKXSbGCtWO3bT4/+QAIfKlobO4uHdq+EEhEj2OAOgBsRLDve+jQ4ZCcA3SFoe6MRlDp3UkLQdrcqfAs4Kbx2g9BoFi8bjqrdA4JI9hRZwT2x1DS5F7TfZGsY2FnFQ3AVU2rh6jbJ7yLm/pWIgjt/E+0AKRvAzwt8VbPQ4SkSh3mE4dN65xFsNu2Ze4GnpyxawrKH0V5G+RBRglJ7OThXEihWy4+O29bTesOYhyCF3VCGKUloZG7mV+xiPB/HiHF2ZKBBcolwle1FUZIoF/1B0N/kCUfieg2vqZX8gx2/sho0ntEGOyMGE7V3uEf/6QVV/z4aT5IbZjwRWabMrrl+tcxsySHKVGvJvsmfhfaQ+mcLnQUYN8fA3uIA7sRAwskm0xt0b8anfh6qSaR69euEIEnDcHhI98zlluZtXwD/iiSG1uhPmup+71jXdGlxs0bMEOabQwkgUf68ykUesEq1YYe0YCBAF2xBHAhlTptRa/J3z0p8fSLfzMckCDAhKgWUwVqyrNCMvIfA3wzbsDtRCHcVOokn8DvfJs/XjHDvoW/oMwpGgEvwgsZvo0E++S/3HdS5LVukh5WwCZRHTk432Y8otTLpgWHT7Ga8hZgQCKuSvRfUVKGgKGP8YAuE2vAavNid4rDlrXmJRjamR4nWqj3ZFZSi6+uxanc+Ydv6qfnj6z4vLSBypU/zq4Ko66+gRDqmRoInOQHWSArL540dENhNNGeldHwOXFvSOguwqHeMWztTLuTkNL/6oD/ok5+5UgXg6PUtbj+/TGEvr1zomgsZEhyOyPBVYfkANecbGLLxdIY7dTYLiijZie7GUVkzkheEbiBp37+YScSdYNpfCS7SPPqkmAKNdfyAs4hiLo6BN2gKz/JxUjmmZUAMpxPG/U3NbV4AKkLo1IP+/V/g+WxPanBd5v92L0QVsbSVsEAdaEqxPO2ne/aXbWjwsPYTh9W1gP8qG1Yo+1/8+5WGE/nVwIS8OdaqqYC5KQC4qopKkOvs5BtiV2lqqb93aRKmBceeVFMuGf1UImsoSFcMyyV+AhR3iQNvSJSFp7K1BGzA/amveR5vTt/iVHcIKjiRXeNJqSzXo51iPc8v8KFWLpKq9YfkHoXm36t3DzZ8BtMSxp34kT9WGT/CltnPQF4CQJS0Df62BKCbYLG9WM26W12OMwqMY6HlpPEueZOf5n6yFvrNP6A/ynSlx+Z+6Q0b8gl/L+PWcr/vU21nBxyZmME/WG6qHbZ/NsQV9c2eZzDGumOOZBd6yVMjhUg== 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: Q70bcvr6zEA899xWwj0J2w95rsVdr7IlC9Jdf5qGOau1RzWzoQVa5U7Z9VzTXQ9y0XmxRaXln6mcDZO6R7xmx044nBqyXxNuOQ1Af4IjN6/tNYAZWP/MCpjwenn5ntx23xcHwrvtOwSIZc8kukRJtAbyfB5OGds3Pq8TnDHHQR8lu4g7f6EXO8ItjV6xQNr0roseu1DytwDVu1JVZUyRDLHDWRoRbabZDgOzjezxaQJISn8WTyVcdey6+3ICNlFZc3q5xU/YsIfby7bfgQ1ROeZwSlx8pSimLgIzlLp0UE0petseoNTdQ8A45vqLa/ZIlBwz28/XvD2WVcYwqCiHIgt7nS+KzFhFY/w7yxjw4t38uIPLteZ6E40w9cUY88nkGbx/MHEi0jSq4czJUdBVzKe5iZ0u8D5ZBgakgaJ9O8EACnYx1fQEtAUYSiFLPBGxYkr+14mVee5RdAunEzP9itFwusN0xZJJCu1iHhucFEiLbHsKo340A9U3z990DtOxd3lcqsUakNlga2M8iF4Shww+0hegyplnYy+hQ3U2ilbZbV838nzd6iIxCU8AB/lxK5RQOm3ccWk+YcxO3A186D4AfWZVWA9J4+HPYz8hBY9ijQuIy/DVbfE4X+Ivb4LAv0fCKSYm1nDT2NSQ253S0hs/hz9n8FzoaxviJiY/WPU7wypxMX3M3ajrqeemd4Gf+nowJI0VtROMRfAnSrEUDysFvivx6EAXersc5RioQJlyYmdoJ4IVXBCW6IOXJ9gIGKt8mXNr/OL7golEJrMiE9EMg9hB9gzQC5GJo7ehrVZ3GmlSoOJf+nOEEaz5XO99EKwkjGPAsEeROIavYUU1r/BJzJrBXFxLAE1E37A6K2REquASk289FUnOC6fykn1h+UEmSql2FiVZkNG9alXp9KirxTjLfCF8RVe8/DGe7QiKa27dd7/ad5PKaIQD5Pb/dRaOmgH9frkNhMo7yXaOqDMFwnARALCYfyMonByLGbh+IBcJOyJ+sAWYlaRxrTTaqB8fhES2SU1hr/rwyXJZdhd06Q3QwP00qrFgQgD2PJjhlO8+wPjpHcBo6iFf6qQKGL6AZfQPJvuGvYT/ZhVsF+mvK7Z2U0TppxU59AafOz4O9eNQRLocqXgiVCs3gi6k5xdaovXoqHPhwe8NdPyi9OJjflFhXmMjYJtAHNPeq9zslDYTMRs9t0hXQ+dGcx9JUxE5Rx5EUAXpEViiyc5yIcbw3w0Z+fEBgTHYuXD8uk0CDtUfWETVQiwqtspqOuwrAR7xWM4Wwl8j+Kas4LVtE+69noYirV1jU946LFqxXO6hGCvzWafXeej/Z88LGlInIC29CNSW22/cqbcGsV7K3BumcseFSMKZTFd/2HimR+o9EvRc9jaqkoP89GK1rixfaP3z0eGmRZ2IzVYXbuIo7h8c/2eFC0kU7ip4K2sKtYlPwPj0zeTg18wMJh6dyhUFKGmoaQPurA3L2e4N5QTdDAo/6oilNMVb7exFJh2xj/4htHmQse4J35spNKoc9W+Ud/MTF/kaLb2IiojG4Qpcd21C5dkukFNnTwI6AVDUJ4hrhDshUeR3EO155LE9Vx4GelTBwR05ec8yJmU/iQeyt52XxiWH+4varmnl4sh+FYs= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: fa7693ca-fd70-41df-68a2-08dcecb42d4c X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2024 00:56:17.8726 (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: cc57L+54OIhssMRYYB0Px4l+d19WjHkE/ly6Jl8eg55AJBJeQQUMJ8VB1DQ1yiZeHPcKo1e0A0/0RZz6DoWC/LXnvdf4j+K45koiZJMH7zLew1gYyM5mmq3F8FzSzv/T X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS0PR01MB6130 Message-ID-Hash: BBMB4I5KUKKY57M4VZM7FCZHAKFZCUIB X-Message-ID-Hash: BBMB4I5KUKKY57M4VZM7FCZHAKFZCUIB 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: dpcm_xxx flags are no longer needed. It converts dpcm_xxx flag to xxx_only if needed. Signed-off-by: Kuninori Morimoto --- sound/soc/samsung/odroid.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sound/soc/samsung/odroid.c b/sound/soc/samsung/odroid.c index ed865cc07e2ef..20e17d0610301 100644 --- a/sound/soc/samsung/odroid.c +++ b/sound/soc/samsung/odroid.c @@ -171,14 +171,14 @@ static struct snd_soc_dai_link odroid_card_dais[] = { .name = "Primary", .stream_name = "Primary", .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(primary), }, { /* BE <-> CODECs link */ .name = "I2S Mixer", .ops = &odroid_card_be_ops, .no_pcm = 1, - .dpcm_playback = 1, + .playback_only = 1, .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBS_CFS, SND_SOC_DAILINK_REG(mixer), @@ -189,7 +189,7 @@ static struct snd_soc_dai_link odroid_card_dais[] = { .name = "Secondary", .stream_name = "Secondary", .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(secondary), } }; @@ -278,8 +278,8 @@ static int odroid_audio_probe(struct platform_device *pdev) /* Set capture capability only for boards with the MAX98090 CODEC */ if (codec_link->num_codecs > 1) { - card->dai_link[0].dpcm_capture = 1; - card->dai_link[1].dpcm_capture = 1; + card->dai_link[0].playback_only = 0; + card->dai_link[1].playback_only = 0; } priv->sclk_i2s = of_clk_get_by_name(cpu_dai, "i2s_opclk1"); From patchwork Tue Oct 15 00:56:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 835513 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 3AE6BD1815E for ; Tue, 15 Oct 2024 00:59: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 44054B71; Tue, 15 Oct 2024 02:59:38 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 44054B71 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1728953988; bh=pQkpjcmPEcGj2ip7jg3igqlrRArmCPbx8KHfvymo0BI=; 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=iQ7B4Tp3dDjQ4izHch28iIK0E8uiVEMdsVHBmMO5HluycnGbo7v/lHurc+Twb/gqI 0IAGD1ZhQ/SQBFRZJgGqkvNYf5lUd+2H7YfKFYP/0iKrgpsDv+eupW5oeKsruoNLUS hnczT9sL5Jgr+vEQlz89t7U88SHZkBouX4sdOh8U= Received: by alsa1.perex.cz (Postfix, from userid 50401) id BFD17F8070C; Tue, 15 Oct 2024 02:56:45 +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 939A3F80715; Tue, 15 Oct 2024 02:56:45 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 14F0BF80694; Tue, 15 Oct 2024 02:56:36 +0200 (CEST) Received: from OS0P286CU010.outbound.protection.outlook.com (mail-japanwestazlp170110001.outbound.protection.outlook.com [IPv6:2a01:111:f403:c407::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 7F2A4F80639 for ; Tue, 15 Oct 2024 02:56:26 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 7F2A4F80639 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=KrfeR4Sv ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=lm6UrbWBAtjbqGI5NaQaudzVEMvz4x7hn+mjdl+M61rzoWKhW8+Tj2SsdHkNybbclmczLiP7mGxR8L68XxveLLFclpxgJ9V8dAA9+iWNpMQfiRNvvfPMOd/RmQAx/5zuixlvGf1bF1mifneGAR9eituDDTnlimZOmQDnkjX5UheqXmVT6XqIzibT0jDoAauLHMX/qtclojDEauHa9lX14PBXKOikhhG7XUpJEsOMrMmOtGTB+Hn2fv5bIee+Gz7AT50T3a7hzCI6p99E0QOwBzjZEv0nkLM9JYLVVRn/AebZ27oh4nFEaJPFV1vGK0KUKJtU2lpGuy/3C1SyIQixug== 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=PKSmbg0e1i2JyEjg01uQkSIGGs3KUauyeo8AeJYB0Cw=; b=RSZ9HxFpZDNg4czHD7m61kBl+gmlQwgTp4QgFQ+uzESb09340z9bx8Q7sDhA8aMBIHmcRG49S7CZgPtcCZrHVSP7kL1w7rq5J1jedpCZvGKPEUG31WavsEBux4nobzOBOA0c4hUMQVehRh6EA+yVaYARoajeOToc4BIoWTT5PGcwR93AifSVzZdkw4QeYMAVzXiORYMBk/tQCanQM18rceL7DNL0r/EAyDkpky4oJiu0bHIHiI4cELXgHDjt2860j2OfnIGz2STvxc2w8gMa56CWVeBrtrOv06S0PJbD/OSTl5zWmH2GIyEc4xh9kshH2VaOr1yXW1STHMzMOo4vWA== 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=PKSmbg0e1i2JyEjg01uQkSIGGs3KUauyeo8AeJYB0Cw=; b=KrfeR4SvVHSnSqd2Owt5MAA2yLzUgoxyfb0L8EpzD8H7umMt0S5tMkBnAoNpIQzWRRltcICXAotgvJjiT7sCTKm0jE7v1E+gfU4jN0e4evOYt1ev5PcZ0To98eUxnVPsGixUQtqN3rbLPj+VvFo8aGl+juMhrOAvL+YCvL0VdCY= 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 OS0PR01MB6130.jpnprd01.prod.outlook.com (2603:1096:604:cb::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.27; Tue, 15 Oct 2024 00:56:22 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%4]) with mapi id 15.20.8048.020; Tue, 15 Oct 2024 00:56:22 +0000 Message-ID: <87froyqj4a.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 06/13] ASoC: mediatek: remove dpcm_xxx flags User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Mark Brown Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org In-Reply-To: <87o73mqj5b.wl-kuninori.morimoto.gx@renesas.com> References: <87o73mqj5b.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 15 Oct 2024 00:56:21 +0000 X-ClientProxiedBy: TYCPR01CA0148.jpnprd01.prod.outlook.com (2603:1096:400:2b7::7) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OS0PR01MB6130:EE_ X-MS-Office365-Filtering-Correlation-Id: fa447694-00e1-42fd-67c3-08dcecb42faf 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: YOoxUdhm/YjYeWAz7RzvgnzCLBArmMGuavnO9QHYz7iNyN1VP/LFB945oTZ0mbW3TTdD2vLg3F3obERKQdPwIAfOdq2Gs2H4QntaSIVAo/CvtTMmtzkBG5/Fe1DaHj3hEVZkNa8QtnX/Bh10h0uRS/2Zi8REXhsRR6we5nevqbnv9X3KtIdkiKfjpBkfkFyO5xcnvHJ2QkSGgeHz/RCx19diMpr1DZoYz1Fu/OeOEgcv4alVz22pnrXnCuH+UaXlHtxYQ4BUMEWcWSrcquF7d2i9A0Ht5Fya5VcMSy3KBSA602x8IzRxYPlrJFbOi19fqVYAUmjJX1E1ybmUv4x4nxkKp2fx6An/h1HVGjgqPVHgZ8FppPIZzyIthJ9MR2BipANiGBecvUxXLQ95yfQt8p0IGM9uCttUFkOkjlBhz/0bmiNYFYmY+kpDCHani+gzgfFbHVu7ksGLfkvL7dKYPsUS/F9sXI4RJ6QFou7G+zPq8zf+cfbBF3sgZGdQ3h1Zi5E7M/B9arD+ho94FHurO0z1nymQ4rQ98sjNh86/Xqk3eTZNq8R/EB/VrinTMjqjhAlk8/gfVT+WsZHEq21NYlDAKZiSy87fVXMa/nzs4pisZddqs8GM5K8hRel57aOj2j6MQ/uN7zwXdM94ieMyyXXMmGOwyeNXWpGS6121sF3Kbqtx3FdedPny9LZ9qKuY9KveVWOYx5plUeCadDk+4/b//dC0PjjMGXmqNWP/qzpgqW815IsaAbmuxNQPDZHKJgHQAoD588xM3jhdH2IgZaVQz2kwlz4DgHDrBfUghytc/RP0+WU/NHN5Yrnfj3tZzHyKP60RunpoJvsi0ND9SxePQpGJ+drvg8mxCPodSDcg07TEZMv6qJt7zdOEcnQDiUhe8nVSeeyPpr60+J6hI/ZSoe6nTSHNQmF516DLpZAwpKS4/BTSmkyQsEI4HOWe8tv0C/wZbbM2WR2qTqzr9CKDAPJhXEcQPK76cIiG6IRQN8xh3/ak43LCaNGACADVAJRK4r6UPa7jLrllMomok+605IEOp7nPI1k2sbInYNe8dk3MclHJLCWAdSuClAsj7X2/sHKnCVobo8Q84U1xOo1yv1envCaUkQ68e02s+4a7dCweOYgrrWqgU5lCEnf7IJLuLG/VTDRuEfLl56G+yaFGhXroAb80VK9bmJp42FAowY4tw35Wq4RsGj/2Pxm+VpeVu1eqIYrBx20dBu16KUfc2cFGAHKW9G59tkqeTv7YjuIYlXGBdrNRfrTdKjK0jpYv2ngQHGa6c95as6mozYs8iraNEg1fFuymY7K16/lUd3LzkbNV5LtQ2NPUnDwvV0UqHiNwgox6udjHUdrpyw== 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: 0kw2v4z8HBYdk9UqL0qDt1UeIEH+Su5fXF7lU9lxtb9RmLYQwdin2CORIlf13c4Nio1qS13O1CrovXMP6o3KUonL9aZ8VpJbFF3IlbNnM4++PV6u0VdyoFkYvHbphYSP9C15E9aAIYqhbloL2VW/n3H624pCYO5lygHRopRzH8ucRC1kcN/KW2LUjy3aYW1mtSPnj8RoKlcSveePDO8j68lqdMSU5fcvuexzYlcCjQFlygbeZ4wwymgWo5bQ+85GjvtZwN1tSssrM02qaUIWs2n19+1AGmV1lnTtNiIPFHK4yIE4KSmednaEB8yAtfD97dF5kEpXkyYzWlbFXpnlGXOw6Wk+anXDSAYWX7udYi/JsvzQ2t2xhHzrtS1y34IPsNCphzlJdUQSJWbk4UnwNhoMgUBZtVe1fq0XuZCtJiMftn9LZTa/0WlweKNsp6w1X9GOYmsCGQieYCDMsX8N4WPxemOAdpJpGXnXRWeVai0Gy1HIK8LjFbyQV8XlJZPloEFg/JVuXD2Cy9RNqI0UYFX3DPZ2+Dx/PLZoV73cyanoclUqHOkkpTY/Qolruprkvxi/aidhGtz9dkJA4XtdqkFp8ve7CVvWbw/hvqrcbMZngBltMI5HoCcOE0pjV7fdx35G1MhKRVNfp+GjjPQiujW2rh8YsnZQ3wEyimWKNsgiV/EUchnD89XFUZtWuKlUIcjtXD7p71xJMJ5mB6t7VWbQvXbUEL+Rz0vxgFwjV6T6varaRyt35Ky1pPBZRaWc/+5Ix4NDIVsm+PJoqVi3SZYcKKGkYo5nTVyNyFm7XNZyauNMh2l5oTmZUgEiqQRn0Jj9//gBNf8hN75AMArCcF4SNk2DLvEzYHYKM8s84D9vdAXBV21lk19s7zeGHoe3BrBnq+VsR7HhLbG6HoQedoXwoJBuz3BydiqM6rn00bRdi0GhfQOVE+phqazbV9X3GeS4phehCHUXBruEOLUeVLywA0Bh9+girMoM41sE2I7nljeV3dR/VPfAmOhY5UggRnEiyvfEVCkHK1a4bwK+/OcO9OeG0mjQScJU1wQFvRJfChPWTfHTq/BSbUSElv1e27WdsUCPaBC2Nj+kpkMa4PfLZ2oQs2LbdBh9EaKVvLzzubq+gkAvHWYR+yHm4sYWQIGDX56g//klKbMQfAZApdNWwFQtMBd85MCmTMfx2EreBitKWljADnSMcqYasgZ7kWeksRMsUKjaElKtKqdLLttKmyui+SnP4BZ/60LdaRW1WBfY1xXq0E9fdx0+J8Bo7DYndnfAI3GBz5bWOug8fE9f9Mfw3S52EcebxmZi1BMtdLi1+XDhmJeqvHKEi//R13JsNh8X//l0JoU2+siFqiWu9+ndqeq0tz+FBFUqsX1c49SXLcb4fhJ7Pdds4qIYajMs2hIALeD388/47rV1++aKT7CfgpRxC+jPrJT/D4WKJqHQZsJ1vxW6mX0NKquhrp+LGZSHe1nyFnq9e+EKznsClAsNh0lHTNMSzsm2FBdQAerUitjOsc8AvlnMOlRG08sFbBMrrIAUSGP4ztHGNmFYyFE7e+jHnawpCKm2VRrMa9ZFVam+F5nfLz6esVmx2jvPPYbOWt8+F4reJjo+gowCSyYa698ql+41nEZwmvY= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: fa447694-00e1-42fd-67c3-08dcecb42faf X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2024 00:56:22.0077 (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: 4wEx/GBFKqF3+nFZ47WUKYOxXqPJiAVVGe+wq5jXFOJZIzVqldVaZlxuqaH0Px4NGJkMlq24Cx59SiIgbWFd4KvWVx5EdFgAY438ORKu12DNZpV3RVrbUWEaEi0FeRn0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS0PR01MB6130 Message-ID-Hash: DQPQSRUI6C3UAAVEQZQLECE3UY55OPRQ X-Message-ID-Hash: DQPQSRUI6C3UAAVEQZQLECE3UY55OPRQ 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: dpcm_xxx flags are no longer needed. It converts dpcm_xxx flag to xxx_only if needed. Signed-off-by: Kuninori Morimoto --- sound/soc/mediatek/mt2701/mt2701-cs42448.c | 20 ++--- sound/soc/mediatek/mt2701/mt2701-wm8960.c | 6 +- sound/soc/mediatek/mt6797/mt6797-mt6351.c | 24 ++---- sound/soc/mediatek/mt7986/mt7986-wm8960.c | 6 +- sound/soc/mediatek/mt8173/mt8173-max98090.c | 6 +- .../mediatek/mt8173/mt8173-rt5650-rt5514.c | 6 +- .../mediatek/mt8173/mt8173-rt5650-rt5676.c | 10 +-- sound/soc/mediatek/mt8173/mt8173-rt5650.c | 10 +-- .../mediatek/mt8183/mt8183-da7219-max98357.c | 34 +++----- .../mt8183/mt8183-mt6358-ts3a227-max98357.c | 34 +++----- sound/soc/mediatek/mt8186/mt8186-mt6366.c | 86 +++++++------------ sound/soc/mediatek/mt8188/mt8188-mt6359.c | 58 ++++++------- .../mt8192/mt8192-mt6359-rt1015-rt5682.c | 78 ++++++++--------- sound/soc/mediatek/mt8195/mt8195-mt6359.c | 60 +++++++------ sound/soc/mediatek/mt8365/mt8365-mt6357.c | 14 ++- 15 files changed, 185 insertions(+), 267 deletions(-) diff --git a/sound/soc/mediatek/mt2701/mt2701-cs42448.c b/sound/soc/mediatek/mt2701/mt2701-cs42448.c index 4974b0536b7bb..00a79867235d2 100644 --- a/sound/soc/mediatek/mt2701/mt2701-cs42448.c +++ b/sound/soc/mediatek/mt2701/mt2701-cs42448.c @@ -221,7 +221,7 @@ static struct snd_soc_dai_link mt2701_cs42448_dai_links[] = { SND_SOC_DPCM_TRIGGER_POST}, .ops = &mt2701_cs42448_48k_fe_ops, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(fe_multi_ch_out), }, [DAI_LINK_FE_PCM0_IN] = { @@ -231,7 +231,7 @@ static struct snd_soc_dai_link mt2701_cs42448_dai_links[] = { SND_SOC_DPCM_TRIGGER_POST}, .ops = &mt2701_cs42448_48k_fe_ops, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(fe_pcm0_in), }, [DAI_LINK_FE_PCM1_IN] = { @@ -241,7 +241,7 @@ static struct snd_soc_dai_link mt2701_cs42448_dai_links[] = { SND_SOC_DPCM_TRIGGER_POST}, .ops = &mt2701_cs42448_48k_fe_ops, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(fe_pcm1_in), }, [DAI_LINK_FE_BT_OUT] = { @@ -250,7 +250,7 @@ static struct snd_soc_dai_link mt2701_cs42448_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(fe_bt_out), }, [DAI_LINK_FE_BT_IN] = { @@ -259,7 +259,7 @@ static struct snd_soc_dai_link mt2701_cs42448_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(fe_bt_in), }, /* BE */ @@ -269,8 +269,6 @@ static struct snd_soc_dai_link mt2701_cs42448_dai_links[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_CBS_CFS | SND_SOC_DAIFMT_GATED, .ops = &mt2701_cs42448_be_ops, - .dpcm_playback = 1, - .dpcm_capture = 1, SND_SOC_DAILINK_REG(be_i2s0), }, [DAI_LINK_BE_I2S1] = { @@ -279,8 +277,6 @@ static struct snd_soc_dai_link mt2701_cs42448_dai_links[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_CBS_CFS | SND_SOC_DAIFMT_GATED, .ops = &mt2701_cs42448_be_ops, - .dpcm_playback = 1, - .dpcm_capture = 1, SND_SOC_DAILINK_REG(be_i2s1), }, [DAI_LINK_BE_I2S2] = { @@ -289,8 +285,6 @@ static struct snd_soc_dai_link mt2701_cs42448_dai_links[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_CBS_CFS | SND_SOC_DAIFMT_GATED, .ops = &mt2701_cs42448_be_ops, - .dpcm_playback = 1, - .dpcm_capture = 1, SND_SOC_DAILINK_REG(be_i2s2), }, [DAI_LINK_BE_I2S3] = { @@ -299,15 +293,11 @@ static struct snd_soc_dai_link mt2701_cs42448_dai_links[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_CBS_CFS | SND_SOC_DAIFMT_GATED, .ops = &mt2701_cs42448_be_ops, - .dpcm_playback = 1, - .dpcm_capture = 1, SND_SOC_DAILINK_REG(be_i2s3), }, [DAI_LINK_BE_MRG_BT] = { .name = "mt2701-cs42448-MRG-BT", .no_pcm = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, SND_SOC_DAILINK_REG(be_mrg_bt), }, }; diff --git a/sound/soc/mediatek/mt2701/mt2701-wm8960.c b/sound/soc/mediatek/mt2701/mt2701-wm8960.c index 8a6643bfe830e..2814f0570928f 100644 --- a/sound/soc/mediatek/mt2701/mt2701-wm8960.c +++ b/sound/soc/mediatek/mt2701/mt2701-wm8960.c @@ -67,7 +67,7 @@ static struct snd_soc_dai_link mt2701_wm8960_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(playback), }, { @@ -76,7 +76,7 @@ static struct snd_soc_dai_link mt2701_wm8960_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(capture), }, /* BE */ @@ -86,8 +86,6 @@ static struct snd_soc_dai_link mt2701_wm8960_dai_links[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_CBS_CFS | SND_SOC_DAIFMT_GATED, .ops = &mt2701_wm8960_be_ops, - .dpcm_playback = 1, - .dpcm_capture = 1, SND_SOC_DAILINK_REG(codec), }, }; diff --git a/sound/soc/mediatek/mt6797/mt6797-mt6351.c b/sound/soc/mediatek/mt6797/mt6797-mt6351.c index 784c201b8fd4b..daad9544a8d41 100644 --- a/sound/soc/mediatek/mt6797/mt6797-mt6351.c +++ b/sound/soc/mediatek/mt6797/mt6797-mt6351.c @@ -78,7 +78,7 @@ static struct snd_soc_dai_link mt6797_mt6351_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(playback_1), }, { @@ -87,7 +87,7 @@ static struct snd_soc_dai_link mt6797_mt6351_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(playback_2), }, { @@ -96,7 +96,7 @@ static struct snd_soc_dai_link mt6797_mt6351_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(playback_3), }, { @@ -105,7 +105,7 @@ static struct snd_soc_dai_link mt6797_mt6351_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(capture_1), }, { @@ -114,7 +114,7 @@ static struct snd_soc_dai_link mt6797_mt6351_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(capture_2), }, { @@ -123,7 +123,7 @@ static struct snd_soc_dai_link mt6797_mt6351_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(capture_3), }, { @@ -132,7 +132,7 @@ static struct snd_soc_dai_link mt6797_mt6351_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(capture_mono_1), }, { @@ -141,8 +141,6 @@ static struct snd_soc_dai_link mt6797_mt6351_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(hostless_lpbk), }, @@ -152,8 +150,6 @@ static struct snd_soc_dai_link mt6797_mt6351_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(hostless_speech), }, @@ -161,24 +157,18 @@ static struct snd_soc_dai_link mt6797_mt6351_dai_links[] = { { .name = "Primary Codec", .no_pcm = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(primary_codec), }, { .name = "PCM 1", .no_pcm = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(pcm1), }, { .name = "PCM 2", .no_pcm = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(pcm2), }, diff --git a/sound/soc/mediatek/mt7986/mt7986-wm8960.c b/sound/soc/mediatek/mt7986/mt7986-wm8960.c index 6982e833421d6..c3d1e2eeb0e57 100644 --- a/sound/soc/mediatek/mt7986/mt7986-wm8960.c +++ b/sound/soc/mediatek/mt7986/mt7986-wm8960.c @@ -45,7 +45,7 @@ static struct snd_soc_dai_link mt7986_wm8960_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(playback), }, { @@ -54,7 +54,7 @@ static struct snd_soc_dai_link mt7986_wm8960_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(capture), }, /* BE */ @@ -65,8 +65,6 @@ static struct snd_soc_dai_link mt7986_wm8960_dai_links[] = { SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBS_CFS | SND_SOC_DAIFMT_GATED, - .dpcm_playback = 1, - .dpcm_capture = 1, SND_SOC_DAILINK_REG(codec), }, }; diff --git a/sound/soc/mediatek/mt8173/mt8173-max98090.c b/sound/soc/mediatek/mt8173/mt8173-max98090.c index 0557a287c641a..0724564cee6a6 100644 --- a/sound/soc/mediatek/mt8173/mt8173-max98090.c +++ b/sound/soc/mediatek/mt8173/mt8173-max98090.c @@ -104,7 +104,7 @@ static struct snd_soc_dai_link mt8173_max98090_dais[] = { .stream_name = "MAX98090 Playback", .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(playback), }, { @@ -112,7 +112,7 @@ static struct snd_soc_dai_link mt8173_max98090_dais[] = { .stream_name = "MAX98090 Capture", .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(capture), }, /* Back End DAI links */ @@ -123,8 +123,6 @@ static struct snd_soc_dai_link mt8173_max98090_dais[] = { .ops = &mt8173_max98090_ops, .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBS_CFS, - .dpcm_playback = 1, - .dpcm_capture = 1, SND_SOC_DAILINK_REG(hifi), }, }; diff --git a/sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c b/sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c index 4ed06c2690652..d8e4e70d834ce 100644 --- a/sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c +++ b/sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c @@ -139,7 +139,7 @@ static struct snd_soc_dai_link mt8173_rt5650_rt5514_dais[] = { .stream_name = "rt5650_rt5514 Playback", .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(playback), }, [DAI_LINK_CAPTURE] = { @@ -147,7 +147,7 @@ static struct snd_soc_dai_link mt8173_rt5650_rt5514_dais[] = { .stream_name = "rt5650_rt5514 Capture", .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(capture), }, /* Back End DAI links */ @@ -159,8 +159,6 @@ static struct snd_soc_dai_link mt8173_rt5650_rt5514_dais[] = { SND_SOC_DAIFMT_CBS_CFS, .ops = &mt8173_rt5650_rt5514_ops, .ignore_pmdown_time = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, SND_SOC_DAILINK_REG(codec), }, }; diff --git a/sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c b/sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c index 763067c211539..488f2314dbf78 100644 --- a/sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c +++ b/sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c @@ -171,7 +171,7 @@ static struct snd_soc_dai_link mt8173_rt5650_rt5676_dais[] = { .stream_name = "rt5650_rt5676 Playback", .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(playback), }, [DAI_LINK_CAPTURE] = { @@ -179,7 +179,7 @@ static struct snd_soc_dai_link mt8173_rt5650_rt5676_dais[] = { .stream_name = "rt5650_rt5676 Capture", .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(capture), }, [DAI_LINK_HDMI] = { @@ -187,7 +187,7 @@ static struct snd_soc_dai_link mt8173_rt5650_rt5676_dais[] = { .stream_name = "HDMI PCM", .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(hdmi_pcm), }, @@ -200,14 +200,12 @@ static struct snd_soc_dai_link mt8173_rt5650_rt5676_dais[] = { SND_SOC_DAIFMT_CBS_CFS, .ops = &mt8173_rt5650_rt5676_ops, .ignore_pmdown_time = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, SND_SOC_DAILINK_REG(codec), }, [DAI_LINK_HDMI_I2S] = { .name = "HDMI BE", .no_pcm = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(hdmi_be), }, /* rt5676 <-> rt5650 intercodec link: Sets rt5676 I2S2 as master */ diff --git a/sound/soc/mediatek/mt8173/mt8173-rt5650.c b/sound/soc/mediatek/mt8173/mt8173-rt5650.c index 466f176f8e948..59c19fdd86758 100644 --- a/sound/soc/mediatek/mt8173/mt8173-rt5650.c +++ b/sound/soc/mediatek/mt8173/mt8173-rt5650.c @@ -210,7 +210,7 @@ static struct snd_soc_dai_link mt8173_rt5650_dais[] = { .stream_name = "rt5650 Playback", .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(playback), }, [DAI_LINK_CAPTURE] = { @@ -218,7 +218,7 @@ static struct snd_soc_dai_link mt8173_rt5650_dais[] = { .stream_name = "rt5650 Capture", .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(capture), }, [DAI_LINK_HDMI] = { @@ -226,7 +226,7 @@ static struct snd_soc_dai_link mt8173_rt5650_dais[] = { .stream_name = "HDMI PCM", .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(hdmi_pcm), }, /* Back End DAI links */ @@ -238,14 +238,12 @@ static struct snd_soc_dai_link mt8173_rt5650_dais[] = { SND_SOC_DAIFMT_CBS_CFS, .ops = &mt8173_rt5650_ops, .ignore_pmdown_time = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, SND_SOC_DAILINK_REG(codec), }, [DAI_LINK_HDMI_I2S] = { .name = "HDMI BE", .no_pcm = 1, - .dpcm_playback = 1, + .playback_only = 1, .init = mt8173_rt5650_hdmi_init, SND_SOC_DAILINK_REG(hdmi_be), }, diff --git a/sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c b/sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c index f848e14b091a1..1d8881e0a361a 100644 --- a/sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c +++ b/sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c @@ -425,7 +425,7 @@ static struct snd_soc_dai_link mt8183_da7219_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, .ops = &mt8183_da7219_max98357_ops, SND_SOC_DAILINK_REG(playback1), }, @@ -435,7 +435,7 @@ static struct snd_soc_dai_link mt8183_da7219_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, .ops = &mt8183_da7219_max98357_bt_sco_ops, SND_SOC_DAILINK_REG(playback2), }, @@ -445,7 +445,7 @@ static struct snd_soc_dai_link mt8183_da7219_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(playback3), }, { @@ -454,7 +454,7 @@ static struct snd_soc_dai_link mt8183_da7219_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, .ops = &mt8183_da7219_max98357_bt_sco_ops, SND_SOC_DAILINK_REG(capture1), }, @@ -464,7 +464,7 @@ static struct snd_soc_dai_link mt8183_da7219_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(capture2), }, { @@ -473,7 +473,7 @@ static struct snd_soc_dai_link mt8183_da7219_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, .ops = &mt8183_da7219_max98357_ops, SND_SOC_DAILINK_REG(capture3), }, @@ -483,7 +483,7 @@ static struct snd_soc_dai_link mt8183_da7219_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(capture_mono), }, { @@ -492,38 +492,32 @@ static struct snd_soc_dai_link mt8183_da7219_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(playback_hdmi), }, /* BE */ { .name = "Primary Codec", .no_pcm = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(primary_codec), }, { .name = "PCM 1", .no_pcm = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(pcm1), }, { .name = "PCM 2", .no_pcm = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(pcm2), }, { .name = "I2S0", .no_pcm = 1, - .dpcm_capture = 1, + .capture_only = 1, .ignore_suspend = 1, .be_hw_params_fixup = mt8183_i2s_hw_params_fixup, .ops = &mt8183_mt6358_i2s_ops, @@ -532,7 +526,7 @@ static struct snd_soc_dai_link mt8183_da7219_dai_links[] = { { .name = "I2S1", .no_pcm = 1, - .dpcm_playback = 1, + .playback_only = 1, .ignore_suspend = 1, .be_hw_params_fixup = mt8183_i2s_hw_params_fixup, .ops = &mt8183_mt6358_i2s_ops, @@ -541,7 +535,7 @@ static struct snd_soc_dai_link mt8183_da7219_dai_links[] = { { .name = "I2S2", .no_pcm = 1, - .dpcm_capture = 1, + .capture_only = 1, .ignore_suspend = 1, .be_hw_params_fixup = mt8183_i2s_hw_params_fixup, .ops = &mt8183_da7219_i2s_ops, @@ -551,13 +545,13 @@ static struct snd_soc_dai_link mt8183_da7219_dai_links[] = { { .name = "I2S3", .no_pcm = 1, - .dpcm_playback = 1, + .playback_only = 1, .ignore_suspend = 1, }, { .name = "I2S5", .no_pcm = 1, - .dpcm_playback = 1, + .playback_only = 1, .ignore_suspend = 1, .be_hw_params_fixup = mt8183_i2s_hw_params_fixup, .ops = &mt8183_mt6358_i2s_ops, @@ -570,7 +564,7 @@ static struct snd_soc_dai_link mt8183_da7219_dai_links[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_IB_IF | SND_SOC_DAIFMT_CBM_CFM, - .dpcm_playback = 1, + .playback_only = 1, .ignore_suspend = 1, .be_hw_params_fixup = mt8183_i2s_hw_params_fixup, .ignore = 1, diff --git a/sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c b/sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c index bb6df056a8789..6267c8554c152 100644 --- a/sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c +++ b/sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c @@ -430,7 +430,7 @@ static struct snd_soc_dai_link mt8183_mt6358_ts3a227_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, .ops = &mt8183_mt6358_ops, SND_SOC_DAILINK_REG(playback1), }, @@ -440,7 +440,7 @@ static struct snd_soc_dai_link mt8183_mt6358_ts3a227_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, .ops = &mt8183_mt6358_ts3a227_max98357_bt_sco_ops, SND_SOC_DAILINK_REG(playback2), }, @@ -450,7 +450,7 @@ static struct snd_soc_dai_link mt8183_mt6358_ts3a227_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(playback3), }, { @@ -459,7 +459,7 @@ static struct snd_soc_dai_link mt8183_mt6358_ts3a227_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, .ops = &mt8183_mt6358_ts3a227_max98357_bt_sco_ops, SND_SOC_DAILINK_REG(capture1), }, @@ -469,7 +469,7 @@ static struct snd_soc_dai_link mt8183_mt6358_ts3a227_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(capture2), }, { @@ -478,7 +478,7 @@ static struct snd_soc_dai_link mt8183_mt6358_ts3a227_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, .ops = &mt8183_mt6358_ops, SND_SOC_DAILINK_REG(capture3), }, @@ -488,7 +488,7 @@ static struct snd_soc_dai_link mt8183_mt6358_ts3a227_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(capture_mono), }, { @@ -497,7 +497,7 @@ static struct snd_soc_dai_link mt8183_mt6358_ts3a227_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(playback_hdmi), }, { @@ -513,31 +513,25 @@ static struct snd_soc_dai_link mt8183_mt6358_ts3a227_dai_links[] = { { .name = "Primary Codec", .no_pcm = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(primary_codec), }, { .name = "PCM 1", .no_pcm = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(pcm1), }, { .name = "PCM 2", .no_pcm = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(pcm2), }, { .name = "I2S0", .no_pcm = 1, - .dpcm_capture = 1, + .capture_only = 1, .ignore_suspend = 1, .ops = &mt8183_mt6358_i2s_ops, SND_SOC_DAILINK_REG(i2s0), @@ -545,7 +539,7 @@ static struct snd_soc_dai_link mt8183_mt6358_ts3a227_dai_links[] = { { .name = "I2S1", .no_pcm = 1, - .dpcm_playback = 1, + .playback_only = 1, .ignore_suspend = 1, .be_hw_params_fixup = mt8183_i2s_hw_params_fixup, .ops = &mt8183_mt6358_i2s_ops, @@ -554,7 +548,7 @@ static struct snd_soc_dai_link mt8183_mt6358_ts3a227_dai_links[] = { { .name = "I2S2", .no_pcm = 1, - .dpcm_capture = 1, + .capture_only = 1, .ignore_suspend = 1, .be_hw_params_fixup = mt8183_i2s_hw_params_fixup, .ops = &mt8183_mt6358_i2s_ops, @@ -564,13 +558,13 @@ static struct snd_soc_dai_link mt8183_mt6358_ts3a227_dai_links[] = { { .name = "I2S3", .no_pcm = 1, - .dpcm_playback = 1, + .playback_only = 1, .ignore_suspend = 1, }, { .name = "I2S5", .no_pcm = 1, - .dpcm_playback = 1, + .playback_only = 1, .ignore_suspend = 1, .ops = &mt8183_mt6358_i2s_ops, .init = &mt8183_bt_init, @@ -582,7 +576,7 @@ static struct snd_soc_dai_link mt8183_mt6358_ts3a227_dai_links[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_IB_IF | SND_SOC_DAIFMT_CBM_CFM, - .dpcm_playback = 1, + .playback_only = 1, .ignore_suspend = 1, .be_hw_params_fixup = mt8183_i2s_hw_params_fixup, .ops = &mt8183_mt6358_tdm_ops, diff --git a/sound/soc/mediatek/mt8186/mt8186-mt6366.c b/sound/soc/mediatek/mt8186/mt8186-mt6366.c index 771d53611c2a4..a5ef913743d4e 100644 --- a/sound/soc/mediatek/mt8186/mt8186-mt6366.c +++ b/sound/soc/mediatek/mt8186/mt8186-mt6366.c @@ -647,7 +647,7 @@ static struct snd_soc_dai_link mt8186_mt6366_rt1019_rt5682s_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, .dpcm_merged_format = 1, .dpcm_merged_chan = 1, .dpcm_merged_rate = 1, @@ -660,7 +660,7 @@ static struct snd_soc_dai_link mt8186_mt6366_rt1019_rt5682s_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(playback12), }, { @@ -669,7 +669,7 @@ static struct snd_soc_dai_link mt8186_mt6366_rt1019_rt5682s_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, .dpcm_merged_format = 1, .dpcm_merged_chan = 1, .dpcm_merged_rate = 1, @@ -681,7 +681,7 @@ static struct snd_soc_dai_link mt8186_mt6366_rt1019_rt5682s_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, .dpcm_merged_format = 1, .dpcm_merged_chan = 1, .dpcm_merged_rate = 1, @@ -694,7 +694,7 @@ static struct snd_soc_dai_link mt8186_mt6366_rt1019_rt5682s_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(playback4), }, { @@ -703,7 +703,7 @@ static struct snd_soc_dai_link mt8186_mt6366_rt1019_rt5682s_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(playback5), }, { @@ -712,7 +712,7 @@ static struct snd_soc_dai_link mt8186_mt6366_rt1019_rt5682s_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(playback6), }, { @@ -721,7 +721,7 @@ static struct snd_soc_dai_link mt8186_mt6366_rt1019_rt5682s_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(playback7), }, { @@ -730,7 +730,7 @@ static struct snd_soc_dai_link mt8186_mt6366_rt1019_rt5682s_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(playback8), }, { @@ -739,7 +739,7 @@ static struct snd_soc_dai_link mt8186_mt6366_rt1019_rt5682s_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(capture1), }, { @@ -748,7 +748,7 @@ static struct snd_soc_dai_link mt8186_mt6366_rt1019_rt5682s_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, .dpcm_merged_format = 1, .dpcm_merged_chan = 1, .dpcm_merged_rate = 1, @@ -761,7 +761,7 @@ static struct snd_soc_dai_link mt8186_mt6366_rt1019_rt5682s_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(capture3), }, { @@ -770,7 +770,7 @@ static struct snd_soc_dai_link mt8186_mt6366_rt1019_rt5682s_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, .dpcm_merged_format = 1, .dpcm_merged_chan = 1, .dpcm_merged_rate = 1, @@ -783,7 +783,7 @@ static struct snd_soc_dai_link mt8186_mt6366_rt1019_rt5682s_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(capture5), }, { @@ -792,7 +792,7 @@ static struct snd_soc_dai_link mt8186_mt6366_rt1019_rt5682s_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, .dpcm_merged_format = 1, .dpcm_merged_chan = 1, .dpcm_merged_rate = 1, @@ -804,7 +804,7 @@ static struct snd_soc_dai_link mt8186_mt6366_rt1019_rt5682s_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(capture7), }, { @@ -813,8 +813,6 @@ static struct snd_soc_dai_link mt8186_mt6366_rt1019_rt5682s_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(hostless_lpbk), }, @@ -824,8 +822,6 @@ static struct snd_soc_dai_link mt8186_mt6366_rt1019_rt5682s_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(hostless_fm), }, @@ -835,8 +831,6 @@ static struct snd_soc_dai_link mt8186_mt6366_rt1019_rt5682s_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(hostless_src1), }, @@ -846,8 +840,6 @@ static struct snd_soc_dai_link mt8186_mt6366_rt1019_rt5682s_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(hostless_src_bargein), }, @@ -857,7 +849,7 @@ static struct snd_soc_dai_link mt8186_mt6366_rt1019_rt5682s_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(hostless_hw_gain_aaudio), }, @@ -867,8 +859,6 @@ static struct snd_soc_dai_link mt8186_mt6366_rt1019_rt5682s_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(hostless_src_aaudio), }, @@ -876,8 +866,6 @@ static struct snd_soc_dai_link mt8186_mt6366_rt1019_rt5682s_dai_links[] = { { .name = "Primary Codec", .no_pcm = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ignore_suspend = 1, .init = primary_codec_init, SND_SOC_DAILINK_REG(adda), @@ -888,7 +876,7 @@ static struct snd_soc_dai_link mt8186_mt6366_rt1019_rt5682s_dai_links[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_IB_IF | SND_SOC_DAIFMT_CBM_CFM, - .dpcm_playback = 1, + .playback_only = 1, .ignore_suspend = 1, .init = mt8186_mt6366_rt1019_rt5682s_hdmi_init, SND_SOC_DAILINK_REG(i2s3), @@ -896,7 +884,7 @@ static struct snd_soc_dai_link mt8186_mt6366_rt1019_rt5682s_dai_links[] = { { .name = "I2S0", .no_pcm = 1, - .dpcm_capture = 1, + .capture_only = 1, .ignore_suspend = 1, .ops = &mt8186_rt5682s_i2s_ops, SND_SOC_DAILINK_REG(i2s0), @@ -904,7 +892,7 @@ static struct snd_soc_dai_link mt8186_mt6366_rt1019_rt5682s_dai_links[] = { { .name = "I2S1", .no_pcm = 1, - .dpcm_playback = 1, + .playback_only = 1, .ignore_suspend = 1, .init = mt8186_headset_codec_init, SND_SOC_DAILINK_REG(i2s1), @@ -912,46 +900,38 @@ static struct snd_soc_dai_link mt8186_mt6366_rt1019_rt5682s_dai_links[] = { { .name = "I2S2", .no_pcm = 1, - .dpcm_capture = 1, + .capture_only = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(i2s2), }, { .name = "HW Gain 1", .no_pcm = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(hw_gain1), }, { .name = "HW Gain 2", .no_pcm = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(hw_gain2), }, { .name = "HW_SRC_1", .no_pcm = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(hw_src1), }, { .name = "HW_SRC_2", .no_pcm = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(hw_src2), }, { .name = "CONNSYS_I2S", .no_pcm = 1, - .dpcm_capture = 1, + .capture_only = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(connsys_i2s), }, @@ -960,15 +940,13 @@ static struct snd_soc_dai_link mt8186_mt6366_rt1019_rt5682s_dai_links[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_IF, .no_pcm = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(pcm1), }, { .name = "TDM IN", .no_pcm = 1, - .dpcm_capture = 1, + .capture_only = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(tdm_in), }, @@ -976,35 +954,35 @@ static struct snd_soc_dai_link mt8186_mt6366_rt1019_rt5682s_dai_links[] = { { .name = "Hostless_UL1", .no_pcm = 1, - .dpcm_capture = 1, + .capture_only = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(hostless_ul1), }, { .name = "Hostless_UL2", .no_pcm = 1, - .dpcm_capture = 1, + .capture_only = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(hostless_ul2), }, { .name = "Hostless_UL3", .no_pcm = 1, - .dpcm_capture = 1, + .capture_only = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(hostless_ul3), }, { .name = "Hostless_UL5", .no_pcm = 1, - .dpcm_capture = 1, + .capture_only = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(hostless_ul5), }, { .name = "Hostless_UL6", .no_pcm = 1, - .dpcm_capture = 1, + .capture_only = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(hostless_ul6), }, @@ -1012,25 +990,25 @@ static struct snd_soc_dai_link mt8186_mt6366_rt1019_rt5682s_dai_links[] = { { .name = "AFE_SOF_DL1", .no_pcm = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(AFE_SOF_DL1), }, { .name = "AFE_SOF_DL2", .no_pcm = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(AFE_SOF_DL2), }, { .name = "AFE_SOF_UL1", .no_pcm = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(AFE_SOF_UL1), }, { .name = "AFE_SOF_UL2", .no_pcm = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(AFE_SOF_UL2), }, }; diff --git a/sound/soc/mediatek/mt8188/mt8188-mt6359.c b/sound/soc/mediatek/mt8188/mt8188-mt6359.c index 08ae962afeb92..84abdba9ddb6d 100644 --- a/sound/soc/mediatek/mt8188/mt8188-mt6359.c +++ b/sound/soc/mediatek/mt8188/mt8188-mt6359.c @@ -932,7 +932,7 @@ static struct snd_soc_dai_link mt8188_mt6359_dai_links[] = { SND_SOC_DPCM_TRIGGER_POST, }, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, .dpcm_merged_chan = 1, .dpcm_merged_rate = 1, .dpcm_merged_format = 1, @@ -946,7 +946,7 @@ static struct snd_soc_dai_link mt8188_mt6359_dai_links[] = { SND_SOC_DPCM_TRIGGER_POST, }, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, .dpcm_merged_chan = 1, .dpcm_merged_rate = 1, .dpcm_merged_format = 1, @@ -960,7 +960,7 @@ static struct snd_soc_dai_link mt8188_mt6359_dai_links[] = { SND_SOC_DPCM_TRIGGER_POST, }, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, .dpcm_merged_chan = 1, .dpcm_merged_rate = 1, .dpcm_merged_format = 1, @@ -974,7 +974,7 @@ static struct snd_soc_dai_link mt8188_mt6359_dai_links[] = { SND_SOC_DPCM_TRIGGER_PRE, }, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(playback7), }, [DAI_LINK_DL8_FE] = { @@ -985,7 +985,7 @@ static struct snd_soc_dai_link mt8188_mt6359_dai_links[] = { SND_SOC_DPCM_TRIGGER_POST, }, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(playback8), }, [DAI_LINK_DL10_FE] = { @@ -996,7 +996,7 @@ static struct snd_soc_dai_link mt8188_mt6359_dai_links[] = { SND_SOC_DPCM_TRIGGER_POST, }, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(playback10), }, [DAI_LINK_DL11_FE] = { @@ -1007,7 +1007,7 @@ static struct snd_soc_dai_link mt8188_mt6359_dai_links[] = { SND_SOC_DPCM_TRIGGER_POST, }, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(playback11), }, [DAI_LINK_UL1_FE] = { @@ -1018,7 +1018,7 @@ static struct snd_soc_dai_link mt8188_mt6359_dai_links[] = { SND_SOC_DPCM_TRIGGER_PRE, }, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(capture1), }, [DAI_LINK_UL2_FE] = { @@ -1029,7 +1029,7 @@ static struct snd_soc_dai_link mt8188_mt6359_dai_links[] = { SND_SOC_DPCM_TRIGGER_POST, }, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(capture2), }, [DAI_LINK_UL3_FE] = { @@ -1040,7 +1040,7 @@ static struct snd_soc_dai_link mt8188_mt6359_dai_links[] = { SND_SOC_DPCM_TRIGGER_POST, }, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(capture3), }, [DAI_LINK_UL4_FE] = { @@ -1051,7 +1051,7 @@ static struct snd_soc_dai_link mt8188_mt6359_dai_links[] = { SND_SOC_DPCM_TRIGGER_POST, }, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, .dpcm_merged_chan = 1, .dpcm_merged_rate = 1, .dpcm_merged_format = 1, @@ -1065,7 +1065,7 @@ static struct snd_soc_dai_link mt8188_mt6359_dai_links[] = { SND_SOC_DPCM_TRIGGER_POST, }, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, .dpcm_merged_chan = 1, .dpcm_merged_rate = 1, .dpcm_merged_format = 1, @@ -1079,7 +1079,7 @@ static struct snd_soc_dai_link mt8188_mt6359_dai_links[] = { SND_SOC_DPCM_TRIGGER_PRE, }, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(capture6), }, [DAI_LINK_UL8_FE] = { @@ -1090,7 +1090,7 @@ static struct snd_soc_dai_link mt8188_mt6359_dai_links[] = { SND_SOC_DPCM_TRIGGER_POST, }, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(capture8), }, [DAI_LINK_UL9_FE] = { @@ -1101,7 +1101,7 @@ static struct snd_soc_dai_link mt8188_mt6359_dai_links[] = { SND_SOC_DPCM_TRIGGER_POST, }, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(capture9), }, [DAI_LINK_UL10_FE] = { @@ -1112,14 +1112,14 @@ static struct snd_soc_dai_link mt8188_mt6359_dai_links[] = { SND_SOC_DPCM_TRIGGER_POST, }, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(capture10), }, /* BE */ [DAI_LINK_DL_SRC_BE] = { .name = "DL_SRC_BE", .no_pcm = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(dl_src), }, [DAI_LINK_DPTX_BE] = { @@ -1127,7 +1127,7 @@ static struct snd_soc_dai_link mt8188_mt6359_dai_links[] = { .ops = &mt8188_dptx_ops, .be_hw_params_fixup = mt8188_dptx_hw_params_fixup, .no_pcm = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(dptx), }, [DAI_LINK_ETDM1_IN_BE] = { @@ -1136,7 +1136,7 @@ static struct snd_soc_dai_link mt8188_mt6359_dai_links[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBP_CFP, - .dpcm_capture = 1, + .capture_only = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(etdm1_in), }, @@ -1146,7 +1146,7 @@ static struct snd_soc_dai_link mt8188_mt6359_dai_links[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBP_CFP, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(etdm2_in), }, [DAI_LINK_ETDM1_OUT_BE] = { @@ -1155,7 +1155,7 @@ static struct snd_soc_dai_link mt8188_mt6359_dai_links[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBC_CFC, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(etdm1_out), }, [DAI_LINK_ETDM2_OUT_BE] = { @@ -1164,7 +1164,7 @@ static struct snd_soc_dai_link mt8188_mt6359_dai_links[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBC_CFC, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(etdm2_out), }, [DAI_LINK_ETDM3_OUT_BE] = { @@ -1173,7 +1173,7 @@ static struct snd_soc_dai_link mt8188_mt6359_dai_links[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBC_CFC, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(etdm3_out), }, [DAI_LINK_PCM1_BE] = { @@ -1182,14 +1182,12 @@ static struct snd_soc_dai_link mt8188_mt6359_dai_links[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBC_CFC, - .dpcm_playback = 1, - .dpcm_capture = 1, SND_SOC_DAILINK_REG(pcm1), }, [DAI_LINK_UL_SRC_BE] = { .name = "UL_SRC_BE", .no_pcm = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(ul_src), }, @@ -1197,28 +1195,28 @@ static struct snd_soc_dai_link mt8188_mt6359_dai_links[] = { [DAI_LINK_SOF_DL2_BE] = { .name = "AFE_SOF_DL2", .no_pcm = 1, - .dpcm_playback = 1, + .playback_only = 1, .ops = &mt8188_sof_be_ops, SND_SOC_DAILINK_REG(AFE_SOF_DL2), }, [DAI_LINK_SOF_DL3_BE] = { .name = "AFE_SOF_DL3", .no_pcm = 1, - .dpcm_playback = 1, + .playback_only = 1, .ops = &mt8188_sof_be_ops, SND_SOC_DAILINK_REG(AFE_SOF_DL3), }, [DAI_LINK_SOF_UL4_BE] = { .name = "AFE_SOF_UL4", .no_pcm = 1, - .dpcm_capture = 1, + .capture_only = 1, .ops = &mt8188_sof_be_ops, SND_SOC_DAILINK_REG(AFE_SOF_UL4), }, [DAI_LINK_SOF_UL5_BE] = { .name = "AFE_SOF_UL5", .no_pcm = 1, - .dpcm_capture = 1, + .capture_only = 1, .ops = &mt8188_sof_be_ops, SND_SOC_DAILINK_REG(AFE_SOF_UL5), }, diff --git a/sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c b/sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c index db00704e206d6..1aba9c75594eb 100644 --- a/sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c +++ b/sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c @@ -598,7 +598,7 @@ static struct snd_soc_dai_link mt8192_mt6359_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(playback1), }, { @@ -607,7 +607,7 @@ static struct snd_soc_dai_link mt8192_mt6359_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(playback12), }, { @@ -616,7 +616,7 @@ static struct snd_soc_dai_link mt8192_mt6359_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(playback2), }, { @@ -625,7 +625,7 @@ static struct snd_soc_dai_link mt8192_mt6359_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, .ops = &mtk_soundcard_common_playback_ops, SND_SOC_DAILINK_REG(playback3), }, @@ -635,7 +635,7 @@ static struct snd_soc_dai_link mt8192_mt6359_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(playback4), }, { @@ -644,7 +644,7 @@ static struct snd_soc_dai_link mt8192_mt6359_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(playback5), }, { @@ -653,7 +653,7 @@ static struct snd_soc_dai_link mt8192_mt6359_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(playback6), }, { @@ -662,7 +662,7 @@ static struct snd_soc_dai_link mt8192_mt6359_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(playback7), }, { @@ -671,7 +671,7 @@ static struct snd_soc_dai_link mt8192_mt6359_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(playback8), }, { @@ -680,7 +680,7 @@ static struct snd_soc_dai_link mt8192_mt6359_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(playback9), }, { @@ -689,7 +689,7 @@ static struct snd_soc_dai_link mt8192_mt6359_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, .ops = &mtk_soundcard_common_capture_ops, SND_SOC_DAILINK_REG(capture1), }, @@ -699,7 +699,7 @@ static struct snd_soc_dai_link mt8192_mt6359_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, .ops = &mtk_soundcard_common_playback_ops, SND_SOC_DAILINK_REG(capture2), }, @@ -709,7 +709,7 @@ static struct snd_soc_dai_link mt8192_mt6359_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(capture3), }, { @@ -718,7 +718,7 @@ static struct snd_soc_dai_link mt8192_mt6359_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(capture4), }, { @@ -727,7 +727,7 @@ static struct snd_soc_dai_link mt8192_mt6359_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(capture5), }, { @@ -736,7 +736,7 @@ static struct snd_soc_dai_link mt8192_mt6359_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(capture6), }, { @@ -745,7 +745,7 @@ static struct snd_soc_dai_link mt8192_mt6359_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(capture7), }, { @@ -754,7 +754,7 @@ static struct snd_soc_dai_link mt8192_mt6359_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(capture8), }, { @@ -763,7 +763,7 @@ static struct snd_soc_dai_link mt8192_mt6359_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(capture_mono1), }, { @@ -772,7 +772,7 @@ static struct snd_soc_dai_link mt8192_mt6359_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(capture_mono2), }, { @@ -781,7 +781,7 @@ static struct snd_soc_dai_link mt8192_mt6359_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(capture_mono3), }, { @@ -790,15 +790,13 @@ static struct snd_soc_dai_link mt8192_mt6359_dai_links[] = { .trigger = {SND_SOC_DPCM_TRIGGER_PRE, SND_SOC_DPCM_TRIGGER_PRE}, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(playback_hdmi), }, /* Back End DAI links */ { .name = "Primary Codec", .no_pcm = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ignore_suspend = 1, .init = mt8192_mt6359_init, SND_SOC_DAILINK_REG(primary_codec), @@ -806,29 +804,27 @@ static struct snd_soc_dai_link mt8192_mt6359_dai_links[] = { { .name = "Primary Codec CH34", .no_pcm = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(primary_codec_ch34), }, { .name = "AP_DMIC", .no_pcm = 1, - .dpcm_capture = 1, + .capture_only = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(ap_dmic), }, { .name = "AP_DMIC_CH34", .no_pcm = 1, - .dpcm_capture = 1, + .capture_only = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(ap_dmic_ch34), }, { .name = "I2S0", .no_pcm = 1, - .dpcm_capture = 1, + .capture_only = 1, .ignore_suspend = 1, .be_hw_params_fixup = mt8192_i2s_hw_params_fixup, SND_SOC_DAILINK_REG(i2s0), @@ -836,7 +832,7 @@ static struct snd_soc_dai_link mt8192_mt6359_dai_links[] = { { .name = "I2S1", .no_pcm = 1, - .dpcm_playback = 1, + .playback_only = 1, .ignore_suspend = 1, .be_hw_params_fixup = mt8192_i2s_hw_params_fixup, SND_SOC_DAILINK_REG(i2s1), @@ -844,7 +840,7 @@ static struct snd_soc_dai_link mt8192_mt6359_dai_links[] = { { .name = "I2S2", .no_pcm = 1, - .dpcm_capture = 1, + .capture_only = 1, .ignore_suspend = 1, .be_hw_params_fixup = mt8192_i2s_hw_params_fixup, SND_SOC_DAILINK_REG(i2s2), @@ -852,7 +848,7 @@ static struct snd_soc_dai_link mt8192_mt6359_dai_links[] = { { .name = "I2S3", .no_pcm = 1, - .dpcm_playback = 1, + .playback_only = 1, .ignore_suspend = 1, .be_hw_params_fixup = mt8192_i2s_hw_params_fixup, SND_SOC_DAILINK_REG(i2s3), @@ -860,7 +856,7 @@ static struct snd_soc_dai_link mt8192_mt6359_dai_links[] = { { .name = "I2S5", .no_pcm = 1, - .dpcm_playback = 1, + .playback_only = 1, .ignore_suspend = 1, .be_hw_params_fixup = mt8192_i2s_hw_params_fixup, SND_SOC_DAILINK_REG(i2s5), @@ -868,7 +864,7 @@ static struct snd_soc_dai_link mt8192_mt6359_dai_links[] = { { .name = "I2S6", .no_pcm = 1, - .dpcm_capture = 1, + .capture_only = 1, .ignore_suspend = 1, .be_hw_params_fixup = mt8192_i2s_hw_params_fixup, SND_SOC_DAILINK_REG(i2s6), @@ -876,7 +872,7 @@ static struct snd_soc_dai_link mt8192_mt6359_dai_links[] = { { .name = "I2S7", .no_pcm = 1, - .dpcm_playback = 1, + .playback_only = 1, .ignore_suspend = 1, .be_hw_params_fixup = mt8192_i2s_hw_params_fixup, SND_SOC_DAILINK_REG(i2s7), @@ -884,7 +880,7 @@ static struct snd_soc_dai_link mt8192_mt6359_dai_links[] = { { .name = "I2S8", .no_pcm = 1, - .dpcm_capture = 1, + .capture_only = 1, .ignore_suspend = 1, .init = mt8192_rt5682_init, .be_hw_params_fixup = mt8192_i2s_hw_params_fixup, @@ -894,7 +890,7 @@ static struct snd_soc_dai_link mt8192_mt6359_dai_links[] = { { .name = "I2S9", .no_pcm = 1, - .dpcm_playback = 1, + .playback_only = 1, .ignore_suspend = 1, .be_hw_params_fixup = mt8192_i2s_hw_params_fixup, SND_SOC_DAILINK_REG(i2s9), @@ -903,23 +899,19 @@ static struct snd_soc_dai_link mt8192_mt6359_dai_links[] = { { .name = "CONNSYS_I2S", .no_pcm = 1, - .dpcm_capture = 1, + .capture_only = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(connsys_i2s), }, { .name = "PCM 1", .no_pcm = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(pcm1), }, { .name = "PCM 2", .no_pcm = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ignore_suspend = 1, SND_SOC_DAILINK_REG(pcm2), }, @@ -929,7 +921,7 @@ static struct snd_soc_dai_link mt8192_mt6359_dai_links[] = { .dai_fmt = SND_SOC_DAIFMT_DSP_A | SND_SOC_DAIFMT_IB_NF | SND_SOC_DAIFMT_CBM_CFM, - .dpcm_playback = 1, + .playback_only = 1, .ignore_suspend = 1, .be_hw_params_fixup = mt8192_i2s_hw_params_fixup, .ignore = 1, diff --git a/sound/soc/mediatek/mt8195/mt8195-mt6359.c b/sound/soc/mediatek/mt8195/mt8195-mt6359.c index 2832ef78eaed7..56b9d2433a1eb 100644 --- a/sound/soc/mediatek/mt8195/mt8195-mt6359.c +++ b/sound/soc/mediatek/mt8195/mt8195-mt6359.c @@ -913,7 +913,7 @@ static struct snd_soc_dai_link mt8195_mt6359_dai_links[] = { SND_SOC_DPCM_TRIGGER_POST, }, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, .ops = &mtk_soundcard_common_playback_ops, SND_SOC_DAILINK_REG(DL2_FE), }, @@ -925,7 +925,7 @@ static struct snd_soc_dai_link mt8195_mt6359_dai_links[] = { SND_SOC_DPCM_TRIGGER_POST, }, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, .ops = &mtk_soundcard_common_playback_ops, SND_SOC_DAILINK_REG(DL3_FE), }, @@ -937,7 +937,7 @@ static struct snd_soc_dai_link mt8195_mt6359_dai_links[] = { SND_SOC_DPCM_TRIGGER_POST, }, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, .ops = &mtk_soundcard_common_playback_ops, SND_SOC_DAILINK_REG(DL6_FE), }, @@ -949,7 +949,7 @@ static struct snd_soc_dai_link mt8195_mt6359_dai_links[] = { SND_SOC_DPCM_TRIGGER_PRE, }, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(DL7_FE), }, [DAI_LINK_DL8_FE] = { @@ -960,7 +960,7 @@ static struct snd_soc_dai_link mt8195_mt6359_dai_links[] = { SND_SOC_DPCM_TRIGGER_POST, }, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, .ops = &mtk_soundcard_common_playback_ops, SND_SOC_DAILINK_REG(DL8_FE), }, @@ -972,7 +972,7 @@ static struct snd_soc_dai_link mt8195_mt6359_dai_links[] = { SND_SOC_DPCM_TRIGGER_POST, }, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, .ops = &mt8195_hdmitx_dptx_playback_ops, SND_SOC_DAILINK_REG(DL10_FE), }, @@ -984,7 +984,7 @@ static struct snd_soc_dai_link mt8195_mt6359_dai_links[] = { SND_SOC_DPCM_TRIGGER_POST, }, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, .ops = &mtk_soundcard_common_playback_ops, SND_SOC_DAILINK_REG(DL11_FE), }, @@ -996,7 +996,7 @@ static struct snd_soc_dai_link mt8195_mt6359_dai_links[] = { SND_SOC_DPCM_TRIGGER_PRE, }, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(UL1_FE), }, [DAI_LINK_UL2_FE] = { @@ -1007,7 +1007,7 @@ static struct snd_soc_dai_link mt8195_mt6359_dai_links[] = { SND_SOC_DPCM_TRIGGER_POST, }, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, .ops = &mtk_soundcard_common_capture_ops, SND_SOC_DAILINK_REG(UL2_FE), }, @@ -1019,7 +1019,7 @@ static struct snd_soc_dai_link mt8195_mt6359_dai_links[] = { SND_SOC_DPCM_TRIGGER_POST, }, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, .ops = &mtk_soundcard_common_capture_ops, SND_SOC_DAILINK_REG(UL3_FE), }, @@ -1031,7 +1031,7 @@ static struct snd_soc_dai_link mt8195_mt6359_dai_links[] = { SND_SOC_DPCM_TRIGGER_POST, }, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, .ops = &mtk_soundcard_common_capture_ops, SND_SOC_DAILINK_REG(UL4_FE), }, @@ -1043,7 +1043,7 @@ static struct snd_soc_dai_link mt8195_mt6359_dai_links[] = { SND_SOC_DPCM_TRIGGER_POST, }, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, .ops = &mtk_soundcard_common_capture_ops, SND_SOC_DAILINK_REG(UL5_FE), }, @@ -1055,7 +1055,7 @@ static struct snd_soc_dai_link mt8195_mt6359_dai_links[] = { SND_SOC_DPCM_TRIGGER_PRE, }, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(UL6_FE), }, [DAI_LINK_UL8_FE] = { @@ -1066,7 +1066,7 @@ static struct snd_soc_dai_link mt8195_mt6359_dai_links[] = { SND_SOC_DPCM_TRIGGER_POST, }, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, .ops = &mtk_soundcard_common_capture_ops, SND_SOC_DAILINK_REG(UL8_FE), }, @@ -1078,7 +1078,7 @@ static struct snd_soc_dai_link mt8195_mt6359_dai_links[] = { SND_SOC_DPCM_TRIGGER_POST, }, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, .ops = &mtk_soundcard_common_capture_ops, SND_SOC_DAILINK_REG(UL9_FE), }, @@ -1090,7 +1090,7 @@ static struct snd_soc_dai_link mt8195_mt6359_dai_links[] = { SND_SOC_DPCM_TRIGGER_POST, }, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, .ops = &mtk_soundcard_common_capture_ops, SND_SOC_DAILINK_REG(UL10_FE), }, @@ -1098,13 +1098,13 @@ static struct snd_soc_dai_link mt8195_mt6359_dai_links[] = { [DAI_LINK_DL_SRC_BE] = { .name = "DL_SRC_BE", .no_pcm = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(DL_SRC_BE), }, [DAI_LINK_DPTX_BE] = { .name = "DPTX_BE", .no_pcm = 1, - .dpcm_playback = 1, + .playback_only = 1, .ops = &mt8195_dptx_ops, .be_hw_params_fixup = mt8195_dptx_hw_params_fixup, SND_SOC_DAILINK_REG(DPTX_BE), @@ -1115,7 +1115,7 @@ static struct snd_soc_dai_link mt8195_mt6359_dai_links[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBS_CFS, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(ETDM1_IN_BE), }, [DAI_LINK_ETDM2_IN_BE] = { @@ -1124,7 +1124,7 @@ static struct snd_soc_dai_link mt8195_mt6359_dai_links[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBS_CFS, - .dpcm_capture = 1, + .capture_only = 1, .be_hw_params_fixup = mt8195_etdm_hw_params_fixup, SND_SOC_DAILINK_REG(ETDM2_IN_BE), }, @@ -1134,7 +1134,7 @@ static struct snd_soc_dai_link mt8195_mt6359_dai_links[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBS_CFS, - .dpcm_playback = 1, + .playback_only = 1, .be_hw_params_fixup = mt8195_etdm_hw_params_fixup, SND_SOC_DAILINK_REG(ETDM1_OUT_BE), }, @@ -1144,7 +1144,7 @@ static struct snd_soc_dai_link mt8195_mt6359_dai_links[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBS_CFS, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(ETDM2_OUT_BE), }, [DAI_LINK_ETDM3_OUT_BE] = { @@ -1153,7 +1153,7 @@ static struct snd_soc_dai_link mt8195_mt6359_dai_links[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBS_CFS, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(ETDM3_OUT_BE), }, [DAI_LINK_PCM1_BE] = { @@ -1162,48 +1162,46 @@ static struct snd_soc_dai_link mt8195_mt6359_dai_links[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBS_CFS, - .dpcm_playback = 1, - .dpcm_capture = 1, SND_SOC_DAILINK_REG(PCM1_BE), }, [DAI_LINK_UL_SRC1_BE] = { .name = "UL_SRC1_BE", .no_pcm = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(UL_SRC1_BE), }, [DAI_LINK_UL_SRC2_BE] = { .name = "UL_SRC2_BE", .no_pcm = 1, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(UL_SRC2_BE), }, /* SOF BE */ [DAI_LINK_SOF_DL2_BE] = { .name = "AFE_SOF_DL2", .no_pcm = 1, - .dpcm_playback = 1, + .playback_only = 1, .ops = &mt8195_sof_be_ops, SND_SOC_DAILINK_REG(AFE_SOF_DL2), }, [DAI_LINK_SOF_DL3_BE] = { .name = "AFE_SOF_DL3", .no_pcm = 1, - .dpcm_playback = 1, + .playback_only = 1, .ops = &mt8195_sof_be_ops, SND_SOC_DAILINK_REG(AFE_SOF_DL3), }, [DAI_LINK_SOF_UL4_BE] = { .name = "AFE_SOF_UL4", .no_pcm = 1, - .dpcm_capture = 1, + .capture_only = 1, .ops = &mt8195_sof_be_ops, SND_SOC_DAILINK_REG(AFE_SOF_UL4), }, [DAI_LINK_SOF_UL5_BE] = { .name = "AFE_SOF_UL5", .no_pcm = 1, - .dpcm_capture = 1, + .capture_only = 1, .ops = &mt8195_sof_be_ops, SND_SOC_DAILINK_REG(AFE_SOF_UL5), }, diff --git a/sound/soc/mediatek/mt8365/mt8365-mt6357.c b/sound/soc/mediatek/mt8365/mt8365-mt6357.c index 42cbdfdfadb55..d398e83ea0528 100644 --- a/sound/soc/mediatek/mt8365/mt8365-mt6357.c +++ b/sound/soc/mediatek/mt8365/mt8365-mt6357.c @@ -168,7 +168,7 @@ static struct snd_soc_dai_link mt8365_mt6357_dais[] = { SND_SOC_DPCM_TRIGGER_POST }, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, .dpcm_merged_rate = 1, SND_SOC_DAILINK_REG(playback1), }, @@ -181,7 +181,7 @@ static struct snd_soc_dai_link mt8365_mt6357_dais[] = { SND_SOC_DPCM_TRIGGER_POST }, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, .dpcm_merged_rate = 1, SND_SOC_DAILINK_REG(playback2), }, @@ -194,7 +194,7 @@ static struct snd_soc_dai_link mt8365_mt6357_dais[] = { SND_SOC_DPCM_TRIGGER_POST }, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, .dpcm_merged_rate = 1, SND_SOC_DAILINK_REG(awb_capture), }, @@ -207,7 +207,7 @@ static struct snd_soc_dai_link mt8365_mt6357_dais[] = { SND_SOC_DPCM_TRIGGER_POST }, .dynamic = 1, - .dpcm_capture = 1, + .capture_only = 1, .dpcm_merged_rate = 1, SND_SOC_DAILINK_REG(vul), }, @@ -219,23 +219,19 @@ static struct snd_soc_dai_link mt8365_mt6357_dais[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBS_CFS, - .dpcm_playback = 1, - .dpcm_capture = 1, SND_SOC_DAILINK_REG(i2s3), }, [DAI_LINK_DMIC] = { .name = "DMIC_BE", .no_pcm = 1, .id = DAI_LINK_DMIC, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(dmic), }, [DAI_LINK_INT_ADDA] = { .name = "MTK_Codec", .no_pcm = 1, .id = DAI_LINK_INT_ADDA, - .dpcm_playback = 1, - .dpcm_capture = 1, .ops = &mt8365_mt6357_int_adda_ops, SND_SOC_DAILINK_REG(primary_codec), }, From patchwork Tue Oct 15 00:56:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 835514 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 0E04FCFC501 for ; Tue, 15 Oct 2024 00:59:15 +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 17192851; Tue, 15 Oct 2024 02:59:04 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 17192851 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1728953954; bh=n7fERorHze2JmC+6AyjZBH0qej2nC8phi50bjVYRW4E=; 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=Whnz57tdC4WwDn/rBsnDLfJEQ9sk3GWzInN+3zCZx7aXi9IuFgXeA7iAcMGHpYaBE /7rY+oszWwucCDO+JHyM8HwfIVb4SzQibQEyCsOhtD9C7LtIibCYXu706rppKEJWiv +slXAQXPGSsbw89ddMSLRxyBWaPYAza10zuSZa7I= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 3654CF806BE; Tue, 15 Oct 2024 02:56:39 +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 18508F806C0; Tue, 15 Oct 2024 02:56:39 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id ADA98F806A8; Tue, 15 Oct 2024 02:56:34 +0200 (CEST) Received: from OS0P286CU010.outbound.protection.outlook.com (mail-japanwestazlp170110001.outbound.protection.outlook.com [IPv6:2a01:111:f403:c407::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 80F9FF80679 for ; Tue, 15 Oct 2024 02:56:29 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 80F9FF80679 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=GsqiGFa6 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=YhvQwWWTPp+xNnPEam0ZM+zGbCtWl5A2e7MVKbaJYb0J1ypVjFMD93r06r2L4f6Pf8buGUv1kX8XqA4mDRGlIjiTPUa9X3mbJK/DVhCilQR/bEKBoT6c+Ai1I7unCqHJRZaLWHehAnvVE8RYllrALm+DZzf0iRHqnDtRpiImQJB+Kk0VGhoh6hXObvc85gIVxROOCmblcgyDYiU9GizIytVPnMb9emChy1qYVjxWS8xx1X4VHCkO05eJcZN33+Bdyj0g2nsvrjpu9zi0RUqanAz9AWj26TlEkEviJXxGmK8eVwSQNckLLdCBHHWdUIe3X+znD0K7By7Phmgt0JI6Ag== 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=VQbtWGqjWwJrlbSHrPG6x4hwYFF+NyLgnSgjClQ7fyo=; b=KQiSRn1NlOBH9xwRUsrrZdBdpqwjj/ycdVs9EfMmnpT6DOQ9aWHb21elIKF0ODyi0eseYKROC5ja8CfF6wtQ6ck0q39UVN+uMTuVmG6vMC6qn7zXErNHExLXxsvKmiODUJRDzXOEZOvfFOIFreRGuY+YgQpE0UxT0GzFXNIzGhSW7SWgYCxEwKLoOIISbHr3I//GO4YS+brgv0c6GrXknr9D2rVvQH6JtiToKbj1F37wbWSTrK9Xg5oFZ6W9RW0R0T+zwnaKceKpeCBWAnqWAb5dEEeUU5L+667wXMgVQTkMfaYBTaWumB9eZtKr/8cpey3DXcx/dlz7BeaavaSN9Q== 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=VQbtWGqjWwJrlbSHrPG6x4hwYFF+NyLgnSgjClQ7fyo=; b=GsqiGFa67sM7lgLfKUB4qCTPmmjt+0ceQZrk0ILD+ezat3UhUvzfsiSOJmNJ4a2oXPpkzqslR2MtwCDr/wMb5v79UUdEY4je0LzUshSiKdOjJXMqJ5x8lagU+u94zmwRrKMDZTpL4T51Jk6/X2+YrIXoteUr7nWEXc+I8XBR2Xw= 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 OS0PR01MB6130.jpnprd01.prod.outlook.com (2603:1096:604:cb::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.27; Tue, 15 Oct 2024 00:56: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%4]) with mapi id 15.20.8048.020; Tue, 15 Oct 2024 00:56:25 +0000 Message-ID: <87ed4iqj46.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 07/13] ASoC: soc-core: remove dpcm_xxx flags User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Mark Brown Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org In-Reply-To: <87o73mqj5b.wl-kuninori.morimoto.gx@renesas.com> References: <87o73mqj5b.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 15 Oct 2024 00:56:25 +0000 X-ClientProxiedBy: TYCPR01CA0141.jpnprd01.prod.outlook.com (2603:1096:400:2b7::8) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OS0PR01MB6130:EE_ X-MS-Office365-Filtering-Correlation-Id: 4061ec9d-8d92-4280-87d3-08dcecb43206 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: eYj8NXfHa/6aauG958IZf0C3IzBN9gJhn3u1xyu+xA5+kmymyhZoWcfJgdyAgmuNt6+/+SCtdxh1FOtu7YfxGKAiCEB5o98y1mu6NgNbtZY0ukhK1VCzp8edrsW9zxwQxsfUxLmgBHC+7ooXQkfYAuJNhmJMOWJUohOAEPdLsKaD5n4qriFjzAjYLQmZLk+reT45Xh0EmCwzVupHbXvhycTFWXQbhRyIrZpFKv4r4lctTh6k9BAIXNFad7P/fzZH+iksxtHSrRNSFF+9gjas2WYCpuxomWnlSvSuQU9tbZ5C9qcxS+nhe68Ei6eXzs7OeamTHzXF00qbDL9TwJ6PQB4g+7JTH3/ubP5rQn1TUWVDPHFFzkhbI1yjC+8y65UpKEgulttLa+381Z1zHcpOoS4IK9ucBZCcGbKIcChNwsu7a3BVu/GUzgMdaJWLzj+zZCC90qm+sAZ8LZwtI+K0bt3Y+hCiPvPwo5eVkjZEynD3SQlTKjdjpkC9+zSWu/GWCBkAJkR/DxAjRfigN07yi1d5A7t9m3CTpp6Y6ugabaK9rdftkX5RjSYvL8lRE/w2OBWjkYhNUrn1IAuGx40Jwz/VgLQUgchZ1pH2aN0QbLKZvsNUag5Qy9KhvmjX1Ba93RgS8iV6U7Xrkz6KXD+MuGvvK694tGXA1pDuLG/8ZtR55JYOXdTfHE0FH37RoN7P7arhkHhHXOj8rGJxCSxvo2eMFvqcDmZeis1UMJJt4QrZ0SMgatt4mOZKUjoiUT0lxOww3/tj8ViwNSOrZYLkJyXrtCT/maBPBp3u9YaF0W1I3hrExdkkIuAEbGJ6iYKVsc+LJLkGzzc0Cf0LuAdWblnFLHuDj8VfbuQdN55Llati8Jp10emEifSYTkd06Exej8wLZ0HrGru+WPf5K7j8yVLoShQDrvHQBbaS5H3HZ5FXb70HOds+PgM1EghUMDOXNEaYUXlBc/QRU0tkXd92xoMUXeN+Sk4v5z4vJAqG0H2vkwnukOUHkmHsBm1oHXZHaZMZm4jbo8GObusFmasxNoa6QqtiTCfL4QwoJqjf3IO108mZDXl2AThx4x+9nYxRvK9iozNijkFki1nMmlK5PZ58MUfImbi2eMrdNxCDAg03WJZTK/OCPNzSbY8kS/X6optlmrTic342qb/1zpF34Tk6Ll4efJVob+DjUEiJyQpN9Pt/6rK7bOU4xNi8yjf23j+8wk0K0nVliRBilpAMp63u5aQTrMmvcasdYDXbyMNAnbRYonfNtClspg3Gcd0VNDH62IY0wLX0qYi4U3cwiJaETggUy/deAvFwYNlSD+U2VIGvtt4G6CzAaJYwnwSLSF0gF+lgCYOGY+zaaDTx6A== 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: g06bJDR5DQACKsE/0FG3t0kN9LS5rZ875vU69X6SGBlS5Dd4tJYRavwKxCRUTGTf9AaeJC/Zvvtalw+WOM5bOYMuXXGQcF+mBqbTyvqbiZzo+GfCW23+5g+wLvC402O6ckWxhMlbMCvKuVmy5Wrt1ix1bCXw1o9jDfUKJt8UOo+8T1MMCAcbr4PMtPahjcQbbw5FQscttSBmdDfKst8YUpuvBN68QLRbY0GWF4MktgpA6YrkOWfnt/ceydyxG1/DuD/9v9CnctnleVOBNrvXJow6jAPjSqZNFlkne3XJubpTokPUVGVAGduI/QYUUEbQG9vFq/Nvi1QdjjhFf3RZa+eMGRHe78Mv6b2tgRqCfMqC6kvq9BzDJ0TcjxO6hSOzJc/389w19skjyV/1uUuw6pL0IZKDfUWIY081bFSbmxT92NqaFet9RxLIhrcMV7FG2AxxRjdZDgltzPmB+hFw35fkkUnCNFOEQtMzB7gQ38dZ7HjFfXu3hLnd+I8vqeeXaYl48gIRnAgEbuyIR48CaAqw3zNS4iCiFxwyLeTxj7U05dfGgOPCtu06knnyo/EJiM8Pyhux8MhdB2ZX6nDYgOUwhTF6k5GMfcieVNXnf6SLFJAhx3zt6CF/CsHhAIfJDNZ05YLAzARoU3D5rQ+MdkvlJMcdqByA5qfxFAunRVJ+xr6MyGGHIy2VFun/t9+dmxP+GEKswFnM6BYrtn7ZxUwjJXNGGRxGiNT6ZTYsexT8pIZcUdL3hbqr58scbHFLTWqXNksxRMQpAdrS+zhoWKwJ1LwyKoqsCFZ5Qozuhkl3zdImMPkdtnUjWnfZVpLQmMC8M7AigB7fXvnN14VM9d623Vd3DUUI+DAeWU615jA1SC9qI3kA7ChSf+18nKXjyfZ1EytZJlF94GCSUJjsvgiRn6StnWyFwjg1//Za6NmCwv9NFD5UN6fhsBsyFdrMYZw9gQW9INhsIxQsOQRZp8krLvUmFd76QsGSubGiZhiXFv/afPgisC6pANLDZb3nm/sJ8aH4eiUkr8DAmQuhoxE0UqGXRv6Z6agXVDJNdTgT2oMF63cyW0ZRERGcKepPjAQLFzXX67Eo8PDLY5Y2RI2oz7y0S+PxZOw4NehhTtxK+0Tln7oi6BF7DhZYbSbaB6dsMN4YxkrCfI8byicQ9Enk4h0XtxgP5vZhMNPkHJ8ixuKBpxww0Kdn0QobyCBC3/rkkf+0PlrXVuQdB8nnqCduIGkvrhwfZwIslQGSQBAf8J63aezpS0R7JbM+7HC3BAIjpr6sUkZFA/TM8pFSkozI5PPGPar6bh+vvOKVwWVAZLuevk6RzvtEUDwFk6U+pWR2mGXw6zGUOx1RmR7BOAzu84v/snfll2tvaI1WIsEGw4CEH+BkhfqMErxNMpXVW4PDt4Kt+YUiSixIjpS7UVgG9+TZP5DmzuPR4RViPmhGvE3B64ivdTg027JEJl0U0UmCojQf3uY/0oLG+g3LYRNvIRAiS49CzjdD9bxj8v/WHrzsmhRIoHDPejChfINBOWkVCBA3tAyaIkKJz+cm2PLEESC8lM8plEyAjP0kDo+OIyl6XkUHdpDIvGiPgkIcYr2Kw7ulkP3Yn+7CqfHODgIVJMS/ZNo89uL5fZJeGVY= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4061ec9d-8d92-4280-87d3-08dcecb43206 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2024 00:56:25.7980 (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: USYC9GJghgIIUM7uDKDmKXxN3F2NlcUgzdjGXpEEwsKYUaXrgf5oDODNixL9gHpeB9oEZwxybw6bQf0QsxETz8TPWhGtPIUt1Sb/uZaaeLNSaowfxV0oOilfxzz2Y4H2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS0PR01MB6130 Message-ID-Hash: 37QLP5BNCRYPBFZKVVBI4NAFHPA2NLIW X-Message-ID-Hash: 37QLP5BNCRYPBFZKVVBI4NAFHPA2NLIW 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: dpcm_xxx flags are no longer needed. It converts dpcm_xxx flag to xxx_only if needed. Signed-off-by: Kuninori Morimoto --- sound/soc/soc-core.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 20248a29d1674..f04b671ce33ea 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -1999,25 +1999,7 @@ static void soc_check_tplg_fes(struct snd_soc_card *card) dai_link->platforms->name = component->name; /* convert non BE into BE */ - if (!dai_link->no_pcm) { - dai_link->no_pcm = 1; - - if (dai_link->dpcm_playback) - dev_warn(card->dev, - "invalid configuration, dailink %s has flags no_pcm=0 and dpcm_playback=1\n", - dai_link->name); - if (dai_link->dpcm_capture) - dev_warn(card->dev, - "invalid configuration, dailink %s has flags no_pcm=0 and dpcm_capture=1\n", - dai_link->name); - - /* convert normal link into DPCM one */ - if (!(dai_link->dpcm_playback || - dai_link->dpcm_capture)) { - dai_link->dpcm_playback = !dai_link->capture_only; - dai_link->dpcm_capture = !dai_link->playback_only; - } - } + dai_link->no_pcm = 1; /* * override any BE fixups From patchwork Tue Oct 15 00:56: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: 835860 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 B01C3D1815E for ; Tue, 15 Oct 2024 00:59:30 +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 EE78CE82; Tue, 15 Oct 2024 02:59:18 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz EE78CE82 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1728953969; bh=dWJ9aiL0KPdEdwUWlUtMQzWpBBRw5tjhFlKXxKwqj90=; 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=U3YJU91tIfdfRj58yTxBZ6hplTBQYPUpRB5BRkeTWn0nkYz+O35BPdwHViwiQr58a 7HckWq69nIlLnUrcKCMqSi3lji1W/8PIHSHIGubjNDadyH5UyHwvB2fTcOdD/jUbM8 /nqEy/RdLIoxlNGFxaQHOhMBt1ukO/TZYtCfWfbo= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 14BA3F806D6; Tue, 15 Oct 2024 02:56:42 +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 34465F806D6; Tue, 15 Oct 2024 02:56:42 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 3D051F806A6; Tue, 15 Oct 2024 02:56:35 +0200 (CEST) Received: from OS0P286CU010.outbound.protection.outlook.com (mail-japanwestazlp170110001.outbound.protection.outlook.com [IPv6:2a01:111:f403:c407::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 3C3FDF80694 for ; Tue, 15 Oct 2024 02:56:31 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 3C3FDF80694 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=Qqc2wUxF ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=VN/ZasU6hoYbiEmv/uAOeg9qpwigJN5nYRzlF7XJMo0bVVce6X9upbV5Vzw2333PQvgrtvOkY3f2DQilKiu0n2G7F4hVWrAAnWFLNsJQCCDmz+vaohLIwSLVwnNWQa98iTTFYK5M2ia9dlIX42KOb1reIf4/GNajSQ0q+++6rfErb9paoZxj/XM5WBIFVjXl/bm9zBhTq9DXGo5NlkIiciSCl8FQMlSjLSkS9OAqlwGcaShdGfmPUKWaeaWSYRRPhJLP5SlpvLRzuJ+3TtL54FKIE/dJ4vuuHW79NLJFSTbZHiUEakJqAL5BU2dljaiTH/YSXvmHYRhxP/OGt5gAwQ== 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=ipWWxJjMu/EVkBUzGA8d5t1ousLvweYqHA9t/geTqS8=; b=eW9r0gEXqcPH2TYVnHc1y9isdT+xM5mPRXBxzk8R631yEnV0n/4GViy77LMIZ842wdbHsfxn6UtrWminpG3+39Th0a1xnNKtYf0bpYNPQSgVug0Hkrgyk2EkN6F7HfwXz8BAdznyutloKFtvRF4Y9xd7ufmciNxxFsG2DiMPkzjR33+fj/nzlbZi/ZWdH/kNT+SYPl+0mgs+KMUqw+/QjiRElQ+tpQ/+VKj9CWRD1y3yFFqhucy+pwoIdOX0+VtrDDT1T5qjk73DWW9Z10ei96ohv1d7guWQzc41b6QJQ/x0IN84+wAhXnrQhhUmsu8EYAYnHV4A3UmbSI+JdtRvuQ== 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=ipWWxJjMu/EVkBUzGA8d5t1ousLvweYqHA9t/geTqS8=; b=Qqc2wUxF67EBptBz+97KR97BQwrfKopkhSdB+aSqeO/yjY1ggPULr/sp39SP8UaOqK+9Ul7ByxytCKXGNSJw54iGIYILfe04Zw5CN7+lOIQvFYqsLTzSplIV8C2zlHQpfMqwq6G/ZC8/nDxJH8BsqEfvjwglYsq7ZhMNA4zqt68= 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 OS0PR01MB6130.jpnprd01.prod.outlook.com (2603:1096:604:cb::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.27; Tue, 15 Oct 2024 00:56:30 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%4]) with mapi id 15.20.8048.020; Tue, 15 Oct 2024 00:56:30 +0000 Message-ID: <87cyk2qj42.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 08/13] ASoC: soc-compress: remove dpcm_xxx flags User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Mark Brown Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org In-Reply-To: <87o73mqj5b.wl-kuninori.morimoto.gx@renesas.com> References: <87o73mqj5b.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 15 Oct 2024 00:56:30 +0000 X-ClientProxiedBy: TYAPR01CA0106.jpnprd01.prod.outlook.com (2603:1096:404:2a::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_|OS0PR01MB6130:EE_ X-MS-Office365-Filtering-Correlation-Id: dd77f241-251f-44d9-618e-08dcecb434a9 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: 2lN1ytNyC1Omfh8ieKtJbzXmEi/k3E3e16tNHZx3L387xdH7r9Mt7J6pgrvOaPp69tx00GfM5hkcWFm0doB617i/aJGtzXtak0qFrwzClUNnszkEcK9+av3YesgTGwOH+L9AUckL9oUXOwOIX2bf+hecyLKp6RGNseW7tprPAJ6gTARnYb9hDyYfivgHklaC3PeGFdYrgYYmvOGQKHzmihjSs6rPWtlRLfv0M/D9NFfWiFj/J5h1ywz/3BqkrXDzVQuhJkSeLyBFUSKKXJRBuTyzKY+zBg6nCTmCJTYucFMykZqEhKuZl4ZK3EGAIlvofYRaC7RGO51nGCSUi/KqMW3CaREoep/Ejocq92c0iqfIeweFAtEbLJs/owRYw4Yi64DK0693Qj2cIpNW/8dSNPX0IPJzNDkBymxZYUvl6eBoNCsSdlYN5x0A1pysrdbLBUx/AZzKFlaaTRb/1Jmihue1qUSqF/m3VzjqszhbwDowcfMVMiLCRBxylhYZv10LxAI8kfWV7tnWM0Veww5WoCEWYoMRnHzLR2xTJLTenoe030w0YkboX52fHEoXWPN0sRtod6HQWKt01ixP/8vEXBWvCCAFOHpCRZ42licd29T53z7nLeCq2DRAAJGYP9fBfMpgesyRk6t/HlHpnD8la62c+P0F5uM1SsNlOoJj0kK3o9ijXrCYBxRXwexvErR7+pYUMLHuRuaL023sAn9Hlpuc63+qcpUrujKGdVJPglvNgvfHKoFtejz3J3gFRe/AuOV21O3XN2Yzgl/MOPOZF2X7F5YYg42SI1/jyCgFw+yhEH1Nbx/IAR8BcXy9dDO3bnEwuSm6Np7fD52rlVtN2IowLIOcLVgODy0STIkeNpZqiR8T5woLnb7g4H2eOf6Krz+RYhpmM94e++3EFwiGjDfdgxQblZmiSchGLp7Lbr9fgeIKSuqk5kYsYhm7nnIb89v13diSq7ENOgYWVTVvge0zh8UPFZbmdz4LoT6jmaAild2cfXFZV17SeDSWp1HUWv8vpZxRhmzXpjurzgtISNlKDCjw3rrVq6Y1sklK9folbOfERliEzmlAsgqgkhF9u1UA7iE8xa6YlqjR+b7QEc6RqjGbhzP6UtC8ILYUrnfzqXFWsIpTcljqyiuk1zXU4+bi9hE5IHy0pXiOxnYU9XE6wKMoHmz6zJcZR5USMJrs5c74DyM1U1ZAun+os6zId9/CGP7+ZkEszhtcjzjTqrbORYvxjyNzOdNov6WS8TzVxwzEaQM9hmLmOKXwS5wviMvCqApXuK57zuK/oiwaC5hgeCDPVdK2dLvkCga5paHrMW9+tSZY3+jbejpZLKfCU0NR3b43wD7pgteFxwQZQA== 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: HIPqlKbpY6xPv4AIxTTJT+yklPP1wb0j+sktwMp4s3eFsNfGcQoncLb8KTjOQF0P/V0PbGeIYdmTifNt2yXoyq1FxONSGH6ULd2Bw/2+BQCezJ30lyt6EWje7WcWNm3POsxRtNrH+8RjQRLvGe9MTak0zS8akoEweAR8DC+MYpUyZc0ZA9w76hLugPu8/f38dMsK/Fuf75NiCT7s/vbJZP4eIxwb2ZFE7XnTBdHsi+lMlR6nS/X4WbttJY8S0ocG/kRaeC0w5+WiBtsrVHAQmVo7OyX9x2VR8Nrlu4PQqc4q6JOVpTGqb5YL6AbbpIqV4KJnhcoqnqcwdUpXFqJ5Iv+IYSmm2sCe3kwXQzK4Sig02rwwDXaSgDz3nhWJETQSxmPO6qSsl1qrt60qhgLVsiV1TaF7Ky3bOK+kmzycpv/4rpz4QsIr/OV0Jh9OqjukAa5FjAN+9rnkyd6uEdnghkWvyXAFPrVZPxtYm5evK6p+PNPknJqRZH+82ZXIhg8U249y1g7Dgsu1byq+uaZanQrfXz5ax9Twp4gp5nIEHmUgugD+IfFWIx6mXFiBCDTKaU5IUKf9xvqT7hpxcXCjLqne4Hzgx7ebhibkYFxQ5+vDhti1xrtImX8P4h3JTR1IwDhZZH1H/dAuVC/vbGh8vAkBkspdBT00I4Dk9Ega5VzPuzp1yv6s+dUugcACKwxG0t2T5mt0Rh5e7d5w9f6np7MGJcVFNA44Wbeb5KyMaU/8Ms8R7GWm9KzNEk7h3+IeG+TEvSJHTht5PK8c9077oeCG+uYw2wkO2euXp6e0jo1LHm62MIl7fTliDs5hoQcD/8QUgTPkGMjkAnm3Ry1hoJyD35GWcMmCOguX0iEGdPoPjMdnbyKTpS5Lf2vCRm33o+yrK4apqC393vjTT9FUwg3LA7hwNeQtP3JNltegM9NFxu2Y2wAq5Deq580oDMAOXHltpDEn9XvwY3VyM8qSbMqH6BK6Ds+3yF6sLRnkBeIMAlWDSpwibKP24RiC1L79N7DyKQaRvGbkK6pa9iesHrKSGs1/VfmplwBnG/+bjaMl0Ww46vRY1wiRJMNX5j8PswJnNkrlH9Ufy8MKhSEa86WfTF0iJEPTb8YYewQXg/ANK/zpjkMNdSQsUcJDLyjvjWnHc3u8sYWCXiErPO1UaJORTfwyEKas+thyBxTeX8FIupniA/dtrV16k7eefhDntLEBWwNoQG0fJ4qJeYeOCZEEoTcqO9SOYPXrvt16OIzBaMCVH6Mxbnc7hbjHJI0qX6XHArVN3qVt1Bz5/vse1uCBDkgRgmbSUZhvtE2HjILd96NMvZPrRm+xwkSuILo2VqLZjcrEPZPaibQI8sIKcx2vQ/iwsTFfzDzYCrwXdQPcE2LQD0qBA1M1F2yx1vjAgrECP0gRe8EYna6ffW+QO7FcP0Jmi9FHEqEzZ+3YQV6WrgbLH9K528igcDYK54mwPdrifrIG4Cx5NkjHBUpV5/TNknghSYVcvUFbWV64Jyb2zF5gLzac8kInLqiJHC6m4nQiDA9vD8LWFY8iRe7PmiOqkyVtAQ5h2Z15FDxBv/JUdRERBfitBwJzIZH+0KTje+ne+SV+uTgu7Tjoikbjvx0rCPUFY5mvQGUAZ+qUEeU= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: dd77f241-251f-44d9-618e-08dcecb434a9 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2024 00:56:30.2291 (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: oZL81ZGZBvtSkCCu0RPG3d61WDkzVrP0s1tURZTFtZfNIm2kRC2N0TcVE/7fqCz63okqwhjKjPim22Wwy5Dzg2JXMz/qpx1EKPS7BqV8e5botUd1JQyQEyqHMHXYCn1U X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS0PR01MB6130 Message-ID-Hash: N4LLMCHQN5L3H3C374YXLR6SJOK4IZ6E X-Message-ID-Hash: N4LLMCHQN5L3H3C374YXLR6SJOK4IZ6E 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: dpcm_xxx flags are no longer needed. It converts dpcm_xxx flag to xxx_only if needed. Signed-off-by: Kuninori Morimoto --- sound/soc/soc-compress.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/sound/soc/soc-compress.c b/sound/soc/soc-compress.c index e692aa3b8b22f..a0c55246f424b 100644 --- a/sound/soc/soc-compress.c +++ b/sound/soc/soc-compress.c @@ -606,12 +606,19 @@ int snd_soc_new_compress(struct snd_soc_pcm_runtime *rtd, int num) return -ENOMEM; if (rtd->dai_link->dynamic) { + int playback = 1; + int capture = 1; + + if (rtd->dai_link->capture_only) + playback = 0; + if (rtd->dai_link->playback_only) + capture = 0; + snprintf(new_name, sizeof(new_name), "(%s)", rtd->dai_link->stream_name); ret = snd_pcm_new_internal(rtd->card->snd_card, new_name, num, - rtd->dai_link->dpcm_playback, - rtd->dai_link->dpcm_capture, &be_pcm); + playback, capture, &be_pcm); if (ret < 0) { dev_err(rtd->card->dev, "Compress ASoC: can't create compressed for %s: %d\n", @@ -624,9 +631,9 @@ int snd_soc_new_compress(struct snd_soc_pcm_runtime *rtd, int num) rtd->pcm = be_pcm; rtd->fe_compr = 1; - if (rtd->dai_link->dpcm_playback) + if (playback) be_pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->private_data = rtd; - if (rtd->dai_link->dpcm_capture) + if (capture) be_pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream->private_data = rtd; memcpy(compr->ops, &soc_compr_dyn_ops, sizeof(soc_compr_dyn_ops)); } else { From patchwork Tue Oct 15 00:56:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 835859 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 A95D7D1815E for ; Tue, 15 Oct 2024 01:00:10 +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 1443620E; Tue, 15 Oct 2024 02:59:59 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 1443620E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1728954009; bh=jL5hztbRGI1Tm1tovWSX7TbyVHtxGpxZwsK/lZd5mBs=; 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=Lla0NMPPzwIhRN3U8J+IYM1Be1tRC2rsHfLCifHZMFYolMwQ/fuQyMw62xqJXFUs5 WuLZzKCDsAy6Lr37XkRPkqY0icv9TY/J+puaTrJ9ZCY1Frbh67Ipm59lNDQ4GwqC95 ropR+YpuqUW2xV+6Zv7YYQKcSzqXB3lreh3tuujo= Received: by alsa1.perex.cz (Postfix, from userid 50401) id D61DEF80753; Tue, 15 Oct 2024 02:56: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 01E2EF8075B; Tue, 15 Oct 2024 02:56:48 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 71F89F806C4; Tue, 15 Oct 2024 02:56:40 +0200 (CEST) Received: from OS0P286CU010.outbound.protection.outlook.com (mail-japanwestazlp170110001.outbound.protection.outlook.com [IPv6:2a01:111:f403:c407::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 0E704F80639 for ; Tue, 15 Oct 2024 02:56:37 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 0E704F80639 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=PdUKlG+p ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=vIv4mppH/V6lQwmHLpoeflGA3JDvNOVaN3eDUU1c7AKzQQiszeWjuoTU+y9JYn1427Q1YeoCtUwsYepI99OGOWS1KUt7TlgU/WxF+j1no8m264qW2el7ieG9NCxXkhbiqHipWCdVhMSpSdVsAP7KXCNfB/K2QIWcv36nnXR0kF763uTplvHc3C+dezHiJjXVS2QPfsugkRcSROK7fHQPYWP+FyHplsnCacnGe5Ton9BC/qtQL82H5j3EdeFxlDxuzhLgtWjMNNqAojZnIc6Ku0Yjjct/ZndxKZtGnjIC6EB9rVI4qSOCRCRhfcAlUkWqb5yyOkezrxhQb227y5wf2g== 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=q7YdZX1l6hpmIHvo28d4Vx8ad4WMxH5X72cmvyifWCA=; b=dAQe58dtQQ0lcaR52l3Q+c1FThM/0H5uA2+3KKqIWkcVUY8AlBFPumVpjOrzHNA2Oijz+Q65/fR+EppXUR/yrhYuviXuLEMwXPOOfLvE1Tr0y5Jp8T+YTTHmIvp6gaW9ggiuan3k55VzoAeTsdoAsGjCi9axFm0c5d1Wlbe9C7MbmZymg/Km7ujo3MVZaaxQvb1pYSl+QyWVTu/p019m+bjcfrUoXabk0f2Pkr7UdACyRoKCi6KjUiCm61a6wg2NljJDRRW7bP2cyZQVFjBr/DJ5ZeRQ7fpgO2E80xllkWC4u92XVzaGrQtigwk34xeyNtS9UcAgJ8ZTab+KyrTX5w== 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=q7YdZX1l6hpmIHvo28d4Vx8ad4WMxH5X72cmvyifWCA=; b=PdUKlG+p1JUFJFiUxzd9bu+4rYuMSAcBEEzgvBFTNEyEWRGsysgzYUvMuc6377Pu/hL1fUm4Uxpt/R/RNia9GUOH70PwSVyCISX/ABGsia2j9cPZc+cxmXJVc2SUc50miTC00fx1w1E/xc3mRTt4Xw16fOZvWV6y61dMe7X8tmo= 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 OS0PR01MB6130.jpnprd01.prod.outlook.com (2603:1096:604:cb::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.27; Tue, 15 Oct 2024 00:56: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%4]) with mapi id 15.20.8048.020; Tue, 15 Oct 2024 00:56:34 +0000 Message-ID: <87bjzmqj3y.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 09/13] ASoC: soc-topology: remove dpcm_xxx flags User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Mark Brown Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org In-Reply-To: <87o73mqj5b.wl-kuninori.morimoto.gx@renesas.com> References: <87o73mqj5b.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 15 Oct 2024 00:56:33 +0000 X-ClientProxiedBy: TYAPR01CA0111.jpnprd01.prod.outlook.com (2603:1096:404:2a::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_|OS0PR01MB6130:EE_ X-MS-Office365-Filtering-Correlation-Id: d719b99d-3ec6-4953-a330-08dcecb436e8 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: l5X8hLSxIq4xg7Rwsj45Usy1UsTK/DvQh+JCPah1qjTc/ATq5uh7vp88KPGha0NzHz7Ilk0vsAoR1r1dgECP2GfePCweD8PJmfmJPx5AJBUrjo167Kq8I8MeTt+hGFT/9J20IDWI1/ephsda8wFsJdCe72SL9MmueBnKjBFqOPxnCjNkJ89DL0Ejbp5loY5CACIP0XLFtyf9t/aqfUThJKkYiAvu6I76OQHzCNAjUhHIkCaSmMUd6ys78+kYfj16AnK5nWT3NcEfLFVQuvVOj1PZggzxEV47DJ36zR8bKji6LsRroZwEDIU1FNrsnplNAyBz4FcdAPZ7hE2nTdA0CbEGD1IBS5nDeyBxrh0tM3G+2Ys22MBvx5TsIcbvZxSDTtELblPbuahZH1BKAjTOA2a2/MmrZgZCmXvUBxLN5VH/DEiKVxZYGOvsCSxDP6KH/4dBRu0lRG0nVbdC2PWuMbhc/1WIaj9yJBzJZjYPEUFxpIPjcSFfapzyrWgyt12D8BfgzAwA/RkYj84HlohKZvCHvjIMUq84s/BzLVYMjwJkPTi6FvSeTYmVI97rrx7Dhoet+yIMcrweGH7jQRDyPb9q/t6IkQROYRZhD8pOaJR0/Cup8WhyiKeWCW/HaYx+6Rh2rQ7uUPwCneo95q9li0qI31fFhgRRLfYMnLj5FtC2YSNNupRMTcHT/Qb1auHKq5NlgjIbyqxHxn9KOyj2ZTjGiUh1+LqGIk539hI0TajhSK2BV6tCV5rcJj6CCs/jH/0aNj7QwlqhrXF12t8T/l6jLcwrM3gU6LTzPKqW94vJb7BHQ5N8z09tpY0c6WnZDe0k6LfpAbMnPidmRx8eGGi3K2dfnBPI8h4wLvm7XlUK9X2sbZswm6tuWSRuSY/ufH7toIBR+/1S9BYuUuDbN3lCVVdPKH8v80FLUQtWmwMNqMPEq/j5y2U2intVxH8clQ7RufzDEQWqiO4VWzUGsED9DgOtMJ3mNbQU6w4VFPcd1XrQI7GzIchsZp1WJDlrdA6uYaO3vpL9sjl+dUbJkZZ4moqZNgbeKOf8geBCbdEwOBIaQ3M4Shf49i5JtRem2CZCkSKfPYAEwwtpK8Gb3f2YyirgqDLw1BhylrHDY3f9PR8MXHgwz7E6edXh5NFyv3wJ8ZCUIGTNBdiaNzW19wS7+UHDI3v2awgRi45tE1cc3Jza/37X/M5OEZnzawQC0NYoAzHudeTBvtCVg88oSU6gpQYRts4dH5j69tu8GGaj2vjMthzlGpsDsvlv33IngLZnLBI95kcPcY4MTKPxxk7euUHHu4MHBw8Dsb6mqsiZhCR1VVbqvdJDhjGlxBAxNlZPbX2A8bT4p7p05/c56g== 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: X7eV0NDTy3dAYzkPBsPRvn2XD1TERqvDvz8mVOD3H/ILqWTaryGHQ04lpYqXc3Lp5j+MLKudVCKlxpf8GBhAOmsF741U2h9VBWvgkE5rZK/xwUM8XoXX81HM62mLvpeEWCfxKDMCE9vnu7uco7N+avDrrBKle66sQo6I1+v2+eYe7OUQ5MSFfQWfOSJwiyUJBxtRu75nQ54ITekx4+BvobiqD0cE3OnOzGQyQVwFfuYK63EGLDPratlZXWLyp0QNPUbVLfZsgUon0XP5fzt8GGsHPNHe/D70JXhgNZdUd9ppG1jKU51Jv3X0UfhOc/bfG1arhkr3yKrVQvNtKGvlPbkqAY4ZmAAIZd3/qTfXQwwmT/Be68OjNBsyOsOxqzwC5hWwcsuCGXpN2C8TXcDjBgWTWjGeahLg1RN1lJjnbNNERo3tSr0CXzBXeeYBobjMkPabCUMBPxsib5Q8A4qT7Ck8xHEt5RRdMJ6L3RXqYW9U4pa8LmDf2q/RSmQJWTlk4QF4yMKHWpu931VvFrDgwWWYUz5X6fMWnnNZA2BbslLX+8Y4AO/FtMb+dSFNiyXEttRTuKjJVko7G9HyG4xUtSrYTFbpq6cQG7dHf3XzIKqw9pJClIWtmgT/sx2UZgUyKkIz9mc53jDySwVS8N1XrPWnJhxoiP25UM/5DD5sw4V7Y6LnWjX5Qs60OBb2ztB/DO2qPwWRJSRJi/Bo+v1TvhqOTnt1RXC/2u1JEl8ag2csXkgBr08qmgLi++SbYDmfSIFc13Qh95Ht/YkWRiUqyobGxbezHpl4gkaG/Cb3HU2Vvweptyq1e1WKl+ukhOA75CkzgwQWknp+UwwOaOpo3wdTHMv5oNVV0EqNjaA5dd+2cQgKBFf2h+p0maRXVcHK399dwHolvBF0H7G81B4nXRKW6ugXQfBCK5qavfntALlAi6PtUjt4DWwgnU+8Xn5jRf0VYDk/bjrmtppvraAeHxYh3egQaqloACfqS9touX74tRzVlRYVOZXXzDOBMJwM3EE/zFnJZhxxr+AgwGn9ZkR+CnhhW14oXJx7/wz1xQzSCk8sYDlDRLplhbdSxuXy5xTgoO/ozN8mwmkyoccp1gRZmEU/b7Gu1Y0uNHNLq+b1GsLvsnad/qREbUUxPmtk3SH5JgOwxiD84BtGxrOArtNgy6yRu25uwJGMwsQDmlNCeXg8t1t6akQUB9AQ/UyZywZKrtZBkKK4XizTNkqrBvETC9EW5ov6thZ2CKZy+PUNg7kAEa8wCs/Wu54m2rB7b3a9gVIVj4geEzxqFzukx96EchH92GkzU5nDkt8pmsd5k9uDKPWpPPuUsxUJtjS3VHfMJwqbjFSpEtZC8amOZqxZiLyacNC8oqYjp0hx1JjZmjjR2VD+I5QhiusMLofb00cbhBuJ3yiWLjjaeYdRfP0alUbYoeyneVv0Njv39/GwFeooErQeWcE0KXKPUORk6eQAP8l2LHT0vsC1gUNm2hJdRS1K8WLlncqokENxE7zoglRuOiTQnI0e/4mAnHhwAFn2RE7vZ66f7SEwCtGJXZbO6DDOWZZOwctituCMuDFwRTYQXRsseyEZ7iG8X81b6LNfzCUbthiQxDHwXWVMkeEEBvoWMkowLb/pB83IHKw= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: d719b99d-3ec6-4953-a330-08dcecb436e8 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2024 00:56:34.0051 (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: rmpzCVvOJCftizRmdQkdkHpFalsUuCKQtaKT8aCa5WQVe4mVcNJcFmaJnYQIbBMU7dm5yeNu2jc5pB9hddjBqjkgSU6w8wwEYzvjg59UyLUD6nH3pNuFjiu2D0cBgBlc X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS0PR01MB6130 Message-ID-Hash: M4CCXYYXVGG6PRQ4WZVXVPWNUAMDKHKM X-Message-ID-Hash: M4CCXYYXVGG6PRQ4WZVXVPWNUAMDKHKM 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: dpcm_xxx flags are no longer needed. It converts dpcm_xxx flag to xxx_only if needed. Signed-off-by: Kuninori Morimoto --- sound/soc/soc-topology-test.c | 2 -- sound/soc/soc-topology.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/sound/soc/soc-topology-test.c b/sound/soc/soc-topology-test.c index a2b08568f4e89..c8f2ec29e9703 100644 --- a/sound/soc/soc-topology-test.c +++ b/sound/soc/soc-topology-test.c @@ -88,8 +88,6 @@ static struct snd_soc_dai_link kunit_dai_links[] = { .nonatomic = 1, .dynamic = 1, .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, - .dpcm_playback = 1, - .dpcm_capture = 1, SND_SOC_DAILINK_REG(dummy, dummy, platform), }, }; diff --git a/sound/soc/soc-topology.c b/sound/soc/soc-topology.c index 97517423d1f0b..43003d2d36667 100644 --- a/sound/soc/soc-topology.c +++ b/sound/soc/soc-topology.c @@ -1544,8 +1544,8 @@ static int soc_tplg_fe_link_create(struct soc_tplg *tplg, /* enable DPCM */ link->dynamic = 1; link->ignore_pmdown_time = 1; - link->dpcm_playback = le32_to_cpu(pcm->playback); - link->dpcm_capture = le32_to_cpu(pcm->capture); + link->playback_only = le32_to_cpu(pcm->playback) && !le32_to_cpu(pcm->capture); + link->capture_only = !le32_to_cpu(pcm->playback) && le32_to_cpu(pcm->capture); if (pcm->flag_mask) set_link_flags(link, le32_to_cpu(pcm->flag_mask), From patchwork Tue Oct 15 00:56:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 835858 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 E88B9D1815E for ; Tue, 15 Oct 2024 01:00:53 +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 063C9F53; Tue, 15 Oct 2024 03:00:42 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 063C9F53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1728954052; bh=sHJceF9qgO/8XgkLvZwhXK/dmYnmVfIJIK1XVUgl0l0=; 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=NRPumAeMWslRlKDnnMDNU3atYIODEcGt+QkPctLKS4/cGQsZj0/u3VLUXDQaR8bKz vRwDBAYUCak6HpF5Tvd0I86aJRBkIWBF4v+6WwqbBmvR5ZGoTLqC8407Ks5btjLef+ I96eERQDoxf3gsoNWk7IdXmu+tPz0e3KhL4u2SBM= Received: by alsa1.perex.cz (Postfix, from userid 50401) id DEB58F8086C; Tue, 15 Oct 2024 02:56: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 DD641F80834; Tue, 15 Oct 2024 02:56:57 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id A7558F80726; Tue, 15 Oct 2024 02:56:50 +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 61531F80726 for ; Tue, 15 Oct 2024 02:56:45 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 61531F80726 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=B99ROOOz ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=L5r5sVKWTP5o1uK+l8bXzAvRESPzd9fD3JJf9h65lYra3zpD56RzWFpItmeTg68/TBrIY0n2LYHGGZ80V5bCsrISYTjqJjS7Fmbpcms3Z8O6uiNb0IPOulaa4I9xl881p04SbLMtPVEHgBk4flUnJmfCZruy4JGwmuLrqykFH30BpN4dm+EPo+gTOTYfS7LlekMrSSDC2VhLYJ9t6eY5CuE27+bzoV4m8muliz0c2sRJwIg5AZWK1BXpWBW7+iU8tSuxc+04tBjXv6YcDeSWgnbPsP7mb3IMM1Cdb7+4Pj0vzVfPsmdpWvUmaJHZK6jDrjcnH69/cVd/vLUD6ThZGg== 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=2qs4JCdG53zTFye5G/+UbLM1QMcObGvrEDohoMWSvXQ=; b=SWUHlq2o3sjIpDRysxVJnyPKoXSenDQp/yWoZNaEF/c5wpwi+M4gB95BfslsIvQbFdHCFI0g/XYbop5Qdyok9ncg4ByywTpFzLjbb7RrC7qW1rrr/MAM8aJrgtO0ZY1wF4/IEsTorv4cd3Ed4ea/28aSuyZkf9oj/pjIt4t1VR9zrp04B0csn7wT0Gj1E6Yt/MPP5fOaWnABcIYkID0h2TGoFx9/NxRQ96MYp558ighZBdMZxaQj3oqIKYPiMG8W+msLLveiwkCBqhmyvESUS/aWcQUfA5Cx7QmCAnPZ3DGsEqq/0Apnj5Gpkn/cArf308uImsfxQbcch9R8bpFLtg== 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=2qs4JCdG53zTFye5G/+UbLM1QMcObGvrEDohoMWSvXQ=; b=B99ROOOzsbQ+QOXNEyJhWxYYGIcuME0R3ZoujdL3eHHJJ1d+kb1ftK9O81Rvu88GRYScmweAEz7c69wcDyPuhUooPg+8vjMSAq+lyvmrVvvTVxrkPjPgLYnnnyX6fm75+qBuMWA3PKr/FBr/TowHjk8p8ri7w2t4Q2Kujxl33ig= 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 TYCPR01MB7121.jpnprd01.prod.outlook.com (2603:1096:400:c0::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.27; Tue, 15 Oct 2024 00:56:38 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%4]) with mapi id 15.20.8048.020; Tue, 15 Oct 2024 00:56:37 +0000 Message-ID: <87a5f6qj3u.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 10/13] ASoC: intel: boards: remove dpcm_xxx flags User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Mark Brown Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org In-Reply-To: <87o73mqj5b.wl-kuninori.morimoto.gx@renesas.com> References: <87o73mqj5b.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 15 Oct 2024 00:56:37 +0000 X-ClientProxiedBy: TYBP286CA0021.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:ce::33) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB7121:EE_ X-MS-Office365-Filtering-Correlation-Id: 6245cd2e-c78f-40d8-7e9a-08dcecb43934 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|52116014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: GxW0TQqiP9tAV3TJgG4CZq+voA/C/yGa6dX1k5wqvNtTFRHSG8zVrwUVumfRI1o5GyWklbRiRi53VqFSmCqZSxIHg27M5lEAelRdq40XvCRtEM5lZTb7yxM3hy7RM3qHjb36qTNZzmaDT7G1nGGbU12BQQJfH1ByYWAaN4EKbZlodYJ59TmOEpgZyuTM8YWU9c3n6jQ/KhmnrH6aUKqBCbCNinpFqdJ4ReDBYaknCMWhrbavDWT5AwtCfXSzNvZ0xbjKRIww/X3y8QlKtS5DsvYv+9oUHbkqZz8lfhz+hugBsst551NP4DcfN+0ZmTosS3+qmdII2lqPwqM+Ux9HkNcuv7DO3AUMYyueXi75pslCg7hzy5omWLbd6BgE6y30JFQ4j7TQ2g10j6QpGA4RjUsW+8yhLTjF2INivcY568SXL1ZZc5DZuDXDLbkMZoSAvBYUSvPDTN6nryq+mnKjh+R4F3xLP5XYyIaoSUxph6mNzrb4IIdDqRQFKGs0ALhF7gygJ4KeG2z5WAWozt/FFg6yeW4t5vUwiObptyLsNG5WwJxEULYG4HPCPVgHFQS89VI9620narUs6tU0EIo7hMaYZAT0jq4BqGCvme1QZsUszJFP2s54cJa+TrOOUA7p7eq45RYTe2i7QYYqCsHnn48FGqq7dtd1xHEyywH6eVGkJN8Xpb5VR2fC/F8cqN/SlEmKvnLn7riR9aGK1MamowfzbFkC5BkxKNIKv18tQrWBpuUKq3WHvmYwNxR16NouV2oH2VPqsgpdYL8JVK4OGmxZD2dU8BtYH8og18fBHYVEaZuKHShZZGqkYmObdHlTCg6UFE1oBvB8PzD/I72Y1GHL4O9VCRDqO+Hd/Xaf8fGoWiSsRKALYRi2W+hutaq9kOFUzdSj3TzaKBoU5PT6w111rJMIEOeLgpuZsshsNA4Bby55Is8G9PLhemnK6N/hVBWyMjA8yyvs4XqpQEOWO7d6W8m0hA+LKJrj1gubgxO5MNY5i5y7FbCB/vrhDTvUBhYPzx06bGPJvWBq/wkWkJcggVvpvH8vTt5rG7JkAoFjx36z8i8I9aA07HsEmrz3p6GR9YBzMLvgl5YNdm3r6hhFNhwscwuBqIABrnPQYeJSKnmTBq+/cyVum3HGHDznWiTmGul40QmJk5zBqVRrWuZ6C7ZNCCGF+VOOeAvZHVWHdlcffYZtAEOoLwkhD5ugdQNjFmXcBPR5gW7JcGo5ccrhBxVQ2x6T86db4d2x3OklqqagSRTXqna43B43H0p47pSldN5Blggf2boPgmR9d2uhUYzwgbESnkdvsTulFpVV6cwrZhJySMvHA4KozPbId0rRgw8bni+idjUBM9Qa0w== 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)(376014)(52116014)(366016)(1800799024)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: vEXoTZ08WPMnyR0TcB8EmmeAOZ7KmCRmmz4ERpggmXqXCG6dcziNL7WbOnrcTZaXSU9V5+au1iKKjhnnVeca3sWCx+7rs8WhY48mMDn+MuR8eBEq/aylHvoVnw3SABeHaQ8zrZJdSr+PswTwBa3b4M89SQaD3iFMzftNJoaV0Cnc39VfPvbQwHZHoiDLL5hg1TTJKXh7xv7RBqoND+AHmWX04QsZa7bplgTf6BhuYSdjoVr6m61l1y9DKYRTFq//MhdTgZngdySvGwuqz9XXkkFZT9aPUYPD81ajhv06BKUd/XUl3/It5zZ7++hG8pKDaWGGoSQYmvZVPpRp5fCOHmlaljfWpCk0/r0Ow5RNj+2CiLAOIZMx6NwbFy90U3flBZUQDHAi6kXTkKPBq/eOU7yF6rOn2izBRFeM8BhpIXGCjJLpTImJYGgKMeMlobq7++BfmE8QOeKjPrVsxsLCuLmEA8W939mnZ5NOFe36kld9rPPZsLXx55Az7wCv/Xa8cQ0d4L0JsQrp7T+Mh+UQZ6zhb2YUi2uIu1RtfGVW4yHl4fj9pNBabTo2qBwdJepcs7q9lSX9O9acXZU5Di9RjcX6tJ+nxqsDKuGDMBYAz0RSdAfPtOp/IWSpzsMJASxn8h0RQI9AgvLePh1JRsxPsb4CQ1tSGA8mgkiZ6R6Hp1EfjF33FV2FdssrHWxEgTijTzO2pci7I0VOQXxUnYEcsZENFD0rcQ02lhKxZhu+om/VcYFcP8PZlvVImxiVY5snklGZ/Vcz5CfV/kQ5jklEH3z6pDPQH3Jyc19HHKie+NwLZPZz2Rp2JKG5xtk+iwKTieZF7zrFuz1XEd0K23mtZysNvOQQr3wI1PDfByuUXXVqXl7J/qWZO6TLGGGIjPw8yQajjNN+IMeyr4FmU7tEg+JXcp6CtJmuQG3J2huYJlSLSHFuWoW5g74N7EKkM396frm3Cr1vPguHkTMTkUzY2jhssc7FivCOfMKShOa7V+c5lpnXKqxh6KqoQknSEegceSW+AUJ3Qg7x6bVhYnlJY992EgkIyUMSFOChPomN5KElGgxBqtM1Kg3uEp9cmniKdnl1uMC3OU65kOAtlUVVVaYaBRODAKrnB1ZyP03MYIOWVb8gDYoUIorHR0WSV4+pxie8lNc4eKn2BMbVTBQSTOp0LujNnq7kcI9b0j49mHs2m6dxiiwIFRKDB93jc5qepr2tlCplM7y/tMocgcx6xZqiOXjF6BiJnM++oBnWcKlB+4AZCG9vghW9n352siHUYEyhoPqYxIhxwH63prD+jyLDekLoWa09Rtrn1geC7hdITSpLux2ZgZNqdEOh4LO+k51T9fSExT/mopQb+m30BsiX6Q3Qvx8BIi7ofWZgeeUFpZn38m876QxHTnprpmY4PxhdakUF7CjHmeJI+gtuxzWZmyxJ/99EWNPMXN45m1It7Og0093Njjm1iLi6cPBRF0bw9pLAiK5oT2tdLelvnALsgNFMCaU/pqCoebblQsWQgG8IJpI/sszpcYe4wZAwdfg39A0xFmE3rz7ZudlqDj16KGe845+wx88VecKKLT2JaA3SK5n/J9SwQQzfd5T5FQJtxCO8p11hfBUuTIiMWcmO52rU3wN/WfVVal2Ds3c= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6245cd2e-c78f-40d8-7e9a-08dcecb43934 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2024 00:56:37.8899 (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: fh6OyGwe90mp4ieU3Jv+2z8gjp3jerwEKfBxzafA107Z8TVBihqAo3XLOwXYOwiDLOGCRI+3WYvxaspOjZQ0qUJ/s5FnIJ/9HChDGHg3jAO0kDkaMrd7nk9ZkPBNrFfU X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB7121 Message-ID-Hash: ELPN4XHQGFN43UZSYVVUMFF6RWRUAX6P X-Message-ID-Hash: ELPN4XHQGFN43UZSYVVUMFF6RWRUAX6P 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: dpcm_xxx flags are no longer needed. It converts dpcm_xxx flag to xxx_only if needed. Signed-off-by: Kuninori Morimoto --- sound/soc/intel/boards/bdw-rt5650.c | 4 ---- sound/soc/intel/boards/bdw-rt5677.c | 4 ---- sound/soc/intel/boards/bdw_rt286.c | 10 +++------- sound/soc/intel/boards/bytcht_cx2072x.c | 6 +----- sound/soc/intel/boards/bytcht_da7213.c | 6 +----- sound/soc/intel/boards/bytcht_es8316.c | 6 +----- sound/soc/intel/boards/bytcht_nocodec.c | 6 +----- sound/soc/intel/boards/bytcr_rt5640.c | 6 +----- sound/soc/intel/boards/bytcr_rt5651.c | 6 +----- sound/soc/intel/boards/bytcr_wm5102.c | 6 +----- sound/soc/intel/boards/cht_bsw_max98090_ti.c | 6 +----- sound/soc/intel/boards/cht_bsw_nau8824.c | 6 +----- sound/soc/intel/boards/cht_bsw_rt5645.c | 6 +----- sound/soc/intel/boards/cht_bsw_rt5672.c | 6 +----- sound/soc/intel/boards/ehl_rt5660.c | 14 ++++++-------- sound/soc/intel/boards/hsw_rt5640.c | 10 +++------- sound/soc/intel/boards/sof_board_helpers.c | 15 ++++----------- sound/soc/intel/boards/sof_es8336.c | 8 +++----- sound/soc/intel/boards/sof_pcm512x.c | 9 ++++----- sound/soc/intel/boards/sof_wm8804.c | 2 -- 20 files changed, 34 insertions(+), 108 deletions(-) diff --git a/sound/soc/intel/boards/bdw-rt5650.c b/sound/soc/intel/boards/bdw-rt5650.c index 3c7cee03a02e6..d25a7188f603f 100644 --- a/sound/soc/intel/boards/bdw-rt5650.c +++ b/sound/soc/intel/boards/bdw-rt5650.c @@ -239,8 +239,6 @@ static struct snd_soc_dai_link bdw_rt5650_dais[] = { SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST }, - .dpcm_playback = 1, - .dpcm_capture = 1, SND_SOC_DAILINK_REG(fe, dummy, platform), }, @@ -256,8 +254,6 @@ static struct snd_soc_dai_link bdw_rt5650_dais[] = { .ignore_pmdown_time = 1, .be_hw_params_fixup = broadwell_ssp0_fixup, .ops = &bdw_rt5650_ops, - .dpcm_playback = 1, - .dpcm_capture = 1, .init = bdw_rt5650_init, SND_SOC_DAILINK_REG(ssp0_port, be, platform), }, diff --git a/sound/soc/intel/boards/bdw-rt5677.c b/sound/soc/intel/boards/bdw-rt5677.c index 304af3d06d017..9484f34107876 100644 --- a/sound/soc/intel/boards/bdw-rt5677.c +++ b/sound/soc/intel/boards/bdw-rt5677.c @@ -329,8 +329,6 @@ static struct snd_soc_dai_link bdw_rt5677_dais[] = { SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST }, - .dpcm_capture = 1, - .dpcm_playback = 1, .ops = &bdw_rt5677_fe_ops, SND_SOC_DAILINK_REG(fe, dummy, platform), }, @@ -356,8 +354,6 @@ static struct snd_soc_dai_link bdw_rt5677_dais[] = { .ignore_pmdown_time = 1, .be_hw_params_fixup = broadwell_ssp0_fixup, .ops = &bdw_rt5677_ops, - .dpcm_playback = 1, - .dpcm_capture = 1, .init = bdw_rt5677_init, .exit = bdw_rt5677_exit, SND_SOC_DAILINK_REG(ssp0_port, be, platform), diff --git a/sound/soc/intel/boards/bdw_rt286.c b/sound/soc/intel/boards/bdw_rt286.c index 58db09d9b6e16..523ade9f31ab7 100644 --- a/sound/soc/intel/boards/bdw_rt286.c +++ b/sound/soc/intel/boards/bdw_rt286.c @@ -133,8 +133,6 @@ static struct snd_soc_dai_link card_dai_links[] = { .nonatomic = 1, .dynamic = 1, .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, - .dpcm_playback = 1, - .dpcm_capture = 1, SND_SOC_DAILINK_REG(system, dummy, platform), }, { @@ -143,7 +141,7 @@ static struct snd_soc_dai_link card_dai_links[] = { .nonatomic = 1, .dynamic = 1, .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(offload0, dummy, platform), }, { @@ -152,7 +150,7 @@ static struct snd_soc_dai_link card_dai_links[] = { .nonatomic = 1, .dynamic = 1, .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(offload1, dummy, platform), }, { @@ -161,7 +159,7 @@ static struct snd_soc_dai_link card_dai_links[] = { .nonatomic = 1, .dynamic = 1, .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(loopback, dummy, platform), }, /* Back End DAI links */ @@ -177,8 +175,6 @@ static struct snd_soc_dai_link card_dai_links[] = { .ignore_pmdown_time = 1, .be_hw_params_fixup = codec_link_hw_params_fixup, .ops = &codec_link_ops, - .dpcm_playback = 1, - .dpcm_capture = 1, SND_SOC_DAILINK_REG(ssp0_port, codec, platform), }, }; diff --git a/sound/soc/intel/boards/bytcht_cx2072x.c b/sound/soc/intel/boards/bytcht_cx2072x.c index 8c2b4ab764bba..68a3d345dc25d 100644 --- a/sound/soc/intel/boards/bytcht_cx2072x.c +++ b/sound/soc/intel/boards/bytcht_cx2072x.c @@ -175,8 +175,6 @@ static struct snd_soc_dai_link byt_cht_cx2072x_dais[] = { .stream_name = "Audio", .nonatomic = true, .dynamic = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ops = &byt_cht_cx2072x_aif1_ops, SND_SOC_DAILINK_REG(media, dummy, platform), }, @@ -185,7 +183,7 @@ static struct snd_soc_dai_link byt_cht_cx2072x_dais[] = { .stream_name = "Deep-Buffer Audio", .nonatomic = true, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, .ops = &byt_cht_cx2072x_aif1_ops, SND_SOC_DAILINK_REG(deepbuffer, dummy, platform), }, @@ -198,8 +196,6 @@ static struct snd_soc_dai_link byt_cht_cx2072x_dais[] = { | SND_SOC_DAIFMT_CBC_CFC, .init = byt_cht_cx2072x_init, .be_hw_params_fixup = byt_cht_cx2072x_fixup, - .dpcm_playback = 1, - .dpcm_capture = 1, SND_SOC_DAILINK_REG(ssp2, cx2072x, platform), }, }; diff --git a/sound/soc/intel/boards/bytcht_da7213.c b/sound/soc/intel/boards/bytcht_da7213.c index 9178bbe8d9950..31141d4b6b256 100644 --- a/sound/soc/intel/boards/bytcht_da7213.c +++ b/sound/soc/intel/boards/bytcht_da7213.c @@ -174,8 +174,6 @@ static struct snd_soc_dai_link dailink[] = { .stream_name = "Audio", .nonatomic = true, .dynamic = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ops = &aif1_ops, SND_SOC_DAILINK_REG(media, dummy, platform), }, @@ -184,7 +182,7 @@ static struct snd_soc_dai_link dailink[] = { .stream_name = "Deep-Buffer Audio", .nonatomic = true, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, .ops = &aif1_ops, SND_SOC_DAILINK_REG(deepbuffer, dummy, platform), }, @@ -197,8 +195,6 @@ static struct snd_soc_dai_link dailink[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBC_CFC, .be_hw_params_fixup = codec_fixup, - .dpcm_playback = 1, - .dpcm_capture = 1, .ops = &ssp2_ops, SND_SOC_DAILINK_REG(ssp2_port, ssp2_codec, platform), }, diff --git a/sound/soc/intel/boards/bytcht_es8316.c b/sound/soc/intel/boards/bytcht_es8316.c index d3327bc237b5f..62594e7966ab0 100644 --- a/sound/soc/intel/boards/bytcht_es8316.c +++ b/sound/soc/intel/boards/bytcht_es8316.c @@ -315,8 +315,6 @@ static struct snd_soc_dai_link byt_cht_es8316_dais[] = { .stream_name = "Audio", .nonatomic = true, .dynamic = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ops = &byt_cht_es8316_aif1_ops, SND_SOC_DAILINK_REG(media, dummy, platform), }, @@ -326,7 +324,7 @@ static struct snd_soc_dai_link byt_cht_es8316_dais[] = { .stream_name = "Deep-Buffer Audio", .nonatomic = true, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, .ops = &byt_cht_es8316_aif1_ops, SND_SOC_DAILINK_REG(deepbuffer, dummy, platform), }, @@ -339,8 +337,6 @@ static struct snd_soc_dai_link byt_cht_es8316_dais[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBC_CFC, .be_hw_params_fixup = byt_cht_es8316_codec_fixup, - .dpcm_playback = 1, - .dpcm_capture = 1, .init = byt_cht_es8316_init, SND_SOC_DAILINK_REG(ssp2_port, ssp2_codec, platform), }, diff --git a/sound/soc/intel/boards/bytcht_nocodec.c b/sound/soc/intel/boards/bytcht_nocodec.c index 4a957d1cece35..fec23bda9e643 100644 --- a/sound/soc/intel/boards/bytcht_nocodec.c +++ b/sound/soc/intel/boards/bytcht_nocodec.c @@ -119,8 +119,6 @@ static struct snd_soc_dai_link dais[] = { .ignore_suspend = 1, .nonatomic = true, .dynamic = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ops = &aif1_ops, SND_SOC_DAILINK_REG(media, dummy, platform), }, @@ -130,7 +128,7 @@ static struct snd_soc_dai_link dais[] = { .ignore_suspend = 1, .nonatomic = true, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, .ops = &aif1_ops, SND_SOC_DAILINK_REG(deepbuffer, dummy, platform), }, @@ -144,8 +142,6 @@ static struct snd_soc_dai_link dais[] = { | SND_SOC_DAIFMT_CBC_CFC, .be_hw_params_fixup = codec_fixup, .ignore_suspend = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, SND_SOC_DAILINK_REG(ssp2_port, dummy, platform), }, }; diff --git a/sound/soc/intel/boards/bytcr_rt5640.c b/sound/soc/intel/boards/bytcr_rt5640.c index 2ed49acb4e36e..410eb36c37c93 100644 --- a/sound/soc/intel/boards/bytcr_rt5640.c +++ b/sound/soc/intel/boards/bytcr_rt5640.c @@ -1546,8 +1546,6 @@ static struct snd_soc_dai_link byt_rt5640_dais[] = { .stream_name = "Baytrail Audio", .nonatomic = true, .dynamic = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ops = &byt_rt5640_aif1_ops, SND_SOC_DAILINK_REG(media, dummy, platform), }, @@ -1556,7 +1554,7 @@ static struct snd_soc_dai_link byt_rt5640_dais[] = { .stream_name = "Deep-Buffer Audio", .nonatomic = true, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, .ops = &byt_rt5640_aif1_ops, SND_SOC_DAILINK_REG(deepbuffer, dummy, platform), }, @@ -1568,8 +1566,6 @@ static struct snd_soc_dai_link byt_rt5640_dais[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBC_CFC, .be_hw_params_fixup = byt_rt5640_codec_fixup, - .dpcm_playback = 1, - .dpcm_capture = 1, .init = byt_rt5640_init, .exit = byt_rt5640_exit, .ops = &byt_rt5640_be_ssp2_ops, diff --git a/sound/soc/intel/boards/bytcr_rt5651.c b/sound/soc/intel/boards/bytcr_rt5651.c index 8e4b821efe927..67c62844ca2a9 100644 --- a/sound/soc/intel/boards/bytcr_rt5651.c +++ b/sound/soc/intel/boards/bytcr_rt5651.c @@ -770,8 +770,6 @@ static struct snd_soc_dai_link byt_rt5651_dais[] = { .stream_name = "Audio", .nonatomic = true, .dynamic = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ops = &byt_rt5651_aif1_ops, SND_SOC_DAILINK_REG(media, dummy, platform), }, @@ -780,7 +778,7 @@ static struct snd_soc_dai_link byt_rt5651_dais[] = { .stream_name = "Deep-Buffer Audio", .nonatomic = true, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, .ops = &byt_rt5651_aif1_ops, SND_SOC_DAILINK_REG(deepbuffer, dummy, platform), }, @@ -793,8 +791,6 @@ static struct snd_soc_dai_link byt_rt5651_dais[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBC_CFC, .be_hw_params_fixup = byt_rt5651_codec_fixup, - .dpcm_playback = 1, - .dpcm_capture = 1, .init = byt_rt5651_init, .ops = &byt_rt5651_be_ssp2_ops, SND_SOC_DAILINK_REG(ssp2_port, ssp2_codec, platform), diff --git a/sound/soc/intel/boards/bytcr_wm5102.c b/sound/soc/intel/boards/bytcr_wm5102.c index 0b10d89cb1892..a6dfbcfdf74e3 100644 --- a/sound/soc/intel/boards/bytcr_wm5102.c +++ b/sound/soc/intel/boards/bytcr_wm5102.c @@ -462,8 +462,6 @@ static struct snd_soc_dai_link byt_wm5102_dais[] = { .stream_name = "Baytrail Audio", .nonatomic = true, .dynamic = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ops = &byt_wm5102_aif1_ops, SND_SOC_DAILINK_REG(media, dummy, platform), @@ -473,7 +471,7 @@ static struct snd_soc_dai_link byt_wm5102_dais[] = { .stream_name = "Deep-Buffer Audio", .nonatomic = true, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, .ops = &byt_wm5102_aif1_ops, SND_SOC_DAILINK_REG(deepbuffer, dummy, platform), }, @@ -490,8 +488,6 @@ static struct snd_soc_dai_link byt_wm5102_dais[] = { .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBC_CFC, .be_hw_params_fixup = byt_wm5102_codec_fixup, - .dpcm_playback = 1, - .dpcm_capture = 1, .init = byt_wm5102_init, SND_SOC_DAILINK_REG(ssp0_port, ssp0_codec, platform), }, diff --git a/sound/soc/intel/boards/cht_bsw_max98090_ti.c b/sound/soc/intel/boards/cht_bsw_max98090_ti.c index d7c1148588331..36984de8a0679 100644 --- a/sound/soc/intel/boards/cht_bsw_max98090_ti.c +++ b/sound/soc/intel/boards/cht_bsw_max98090_ti.c @@ -351,8 +351,6 @@ static struct snd_soc_dai_link cht_dailink[] = { .stream_name = "Audio", .nonatomic = true, .dynamic = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ops = &cht_aif1_ops, SND_SOC_DAILINK_REG(media, dummy, platform), }, @@ -361,7 +359,7 @@ static struct snd_soc_dai_link cht_dailink[] = { .stream_name = "Deep-Buffer Audio", .nonatomic = true, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, .ops = &cht_aif1_ops, SND_SOC_DAILINK_REG(deepbuffer, dummy, platform), }, @@ -374,8 +372,6 @@ static struct snd_soc_dai_link cht_dailink[] = { | SND_SOC_DAIFMT_CBC_CFC, .init = cht_codec_init, .be_hw_params_fixup = cht_codec_fixup, - .dpcm_playback = 1, - .dpcm_capture = 1, .ops = &cht_be_ssp2_ops, SND_SOC_DAILINK_REG(ssp2_port, ssp2_codec, platform), }, diff --git a/sound/soc/intel/boards/cht_bsw_nau8824.c b/sound/soc/intel/boards/cht_bsw_nau8824.c index 7651b83632fa4..4afb292d4f13a 100644 --- a/sound/soc/intel/boards/cht_bsw_nau8824.c +++ b/sound/soc/intel/boards/cht_bsw_nau8824.c @@ -193,8 +193,6 @@ static struct snd_soc_dai_link cht_dailink[] = { .stream_name = "Audio", .nonatomic = true, .dynamic = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ops = &cht_aif1_ops, SND_SOC_DAILINK_REG(media, dummy, platform), }, @@ -203,7 +201,7 @@ static struct snd_soc_dai_link cht_dailink[] = { .stream_name = "Deep-Buffer Audio", .nonatomic = true, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, .ops = &cht_aif1_ops, SND_SOC_DAILINK_REG(deepbuffer, dummy, platform), }, @@ -217,8 +215,6 @@ static struct snd_soc_dai_link cht_dailink[] = { | SND_SOC_DAIFMT_CBC_CFC, .init = cht_codec_init, .be_hw_params_fixup = cht_codec_fixup, - .dpcm_playback = 1, - .dpcm_capture = 1, .ops = &cht_be_ssp2_ops, SND_SOC_DAILINK_REG(ssp2_port, ssp2_codec, platform), }, diff --git a/sound/soc/intel/boards/cht_bsw_rt5645.c b/sound/soc/intel/boards/cht_bsw_rt5645.c index ac23a8b7cafca..b977a2db73a3a 100644 --- a/sound/soc/intel/boards/cht_bsw_rt5645.c +++ b/sound/soc/intel/boards/cht_bsw_rt5645.c @@ -448,8 +448,6 @@ static struct snd_soc_dai_link cht_dailink[] = { .stream_name = "Audio", .nonatomic = true, .dynamic = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ops = &cht_aif1_ops, SND_SOC_DAILINK_REG(media, dummy, platform), }, @@ -458,7 +456,7 @@ static struct snd_soc_dai_link cht_dailink[] = { .stream_name = "Deep-Buffer Audio", .nonatomic = true, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, .ops = &cht_aif1_ops, SND_SOC_DAILINK_REG(deepbuffer, dummy, platform), }, @@ -470,8 +468,6 @@ static struct snd_soc_dai_link cht_dailink[] = { .no_pcm = 1, .init = cht_codec_init, .be_hw_params_fixup = cht_codec_fixup, - .dpcm_playback = 1, - .dpcm_capture = 1, .ops = &cht_be_ssp2_ops, SND_SOC_DAILINK_REG(ssp2_port, ssp2_codec, platform), }, diff --git a/sound/soc/intel/boards/cht_bsw_rt5672.c b/sound/soc/intel/boards/cht_bsw_rt5672.c index c6c469d51243e..aaef212cf44ec 100644 --- a/sound/soc/intel/boards/cht_bsw_rt5672.c +++ b/sound/soc/intel/boards/cht_bsw_rt5672.c @@ -358,8 +358,6 @@ static struct snd_soc_dai_link cht_dailink[] = { .stream_name = "Audio", .nonatomic = true, .dynamic = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ops = &cht_aif1_ops, SND_SOC_DAILINK_REG(media, dummy, platform), }, @@ -368,7 +366,7 @@ static struct snd_soc_dai_link cht_dailink[] = { .stream_name = "Deep-Buffer Audio", .nonatomic = true, .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, .ops = &cht_aif1_ops, SND_SOC_DAILINK_REG(deepbuffer, dummy, platform), }, @@ -381,8 +379,6 @@ static struct snd_soc_dai_link cht_dailink[] = { .no_pcm = 1, .init = cht_codec_init, .be_hw_params_fixup = cht_codec_fixup, - .dpcm_playback = 1, - .dpcm_capture = 1, .ops = &cht_be_ssp2_ops, SND_SOC_DAILINK_REG(ssp2_port, ssp2_codec, platform), }, diff --git a/sound/soc/intel/boards/ehl_rt5660.c b/sound/soc/intel/boards/ehl_rt5660.c index 90d93e667bd9e..ebc417c04a500 100644 --- a/sound/soc/intel/boards/ehl_rt5660.c +++ b/sound/soc/intel/boards/ehl_rt5660.c @@ -178,8 +178,6 @@ static struct snd_soc_dai_link ehl_rt5660_dailink[] = { .name = "SSP0-Codec", .id = 0, .no_pcm = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ops = &rt5660_ops, SND_SOC_DAILINK_REG(ssp0_pin, rt5660_codec, platform), }, @@ -187,7 +185,7 @@ static struct snd_soc_dai_link ehl_rt5660_dailink[] = { .name = "dmic48k", .id = 1, .ignore_suspend = 1, - .dpcm_capture = 1, + .capture_only = 1, .no_pcm = 1, SND_SOC_DAILINK_REG(dmic_pin, dmic_codec, platform), }, @@ -195,7 +193,7 @@ static struct snd_soc_dai_link ehl_rt5660_dailink[] = { .name = "dmic16k", .id = 2, .ignore_suspend = 1, - .dpcm_capture = 1, + .capture_only = 1, .no_pcm = 1, SND_SOC_DAILINK_REG(dmic16k, dmic_codec, platform), }, @@ -203,7 +201,7 @@ static struct snd_soc_dai_link ehl_rt5660_dailink[] = { .name = "iDisp1", .id = 5, .init = hdmi_init, - .dpcm_playback = 1, + .playback_only = 1, .no_pcm = 1, SND_SOC_DAILINK_REG(idisp1_pin, idisp1_codec, platform), }, @@ -211,7 +209,7 @@ static struct snd_soc_dai_link ehl_rt5660_dailink[] = { .name = "iDisp2", .id = 6, .init = hdmi_init, - .dpcm_playback = 1, + .playback_only = 1, .no_pcm = 1, SND_SOC_DAILINK_REG(idisp2_pin, idisp2_codec, platform), }, @@ -219,7 +217,7 @@ static struct snd_soc_dai_link ehl_rt5660_dailink[] = { .name = "iDisp3", .id = 7, .init = hdmi_init, - .dpcm_playback = 1, + .playback_only = 1, .no_pcm = 1, SND_SOC_DAILINK_REG(idisp3_pin, idisp3_codec, platform), }, @@ -227,7 +225,7 @@ static struct snd_soc_dai_link ehl_rt5660_dailink[] = { .name = "iDisp4", .id = 8, .init = hdmi_init, - .dpcm_playback = 1, + .playback_only = 1, .no_pcm = 1, SND_SOC_DAILINK_REG(idisp4_pin, idisp4_codec, platform), }, diff --git a/sound/soc/intel/boards/hsw_rt5640.c b/sound/soc/intel/boards/hsw_rt5640.c index 1826a4dfd0f35..9bb2822ba63e3 100644 --- a/sound/soc/intel/boards/hsw_rt5640.c +++ b/sound/soc/intel/boards/hsw_rt5640.c @@ -85,8 +85,6 @@ static struct snd_soc_dai_link card_dai_links[] = { .nonatomic = 1, .dynamic = 1, .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, - .dpcm_playback = 1, - .dpcm_capture = 1, SND_SOC_DAILINK_REG(system, dummy, platform), }, { @@ -95,7 +93,7 @@ static struct snd_soc_dai_link card_dai_links[] = { .nonatomic = 1, .dynamic = 1, .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(offload0, dummy, platform), }, { @@ -104,7 +102,7 @@ static struct snd_soc_dai_link card_dai_links[] = { .nonatomic = 1, .dynamic = 1, .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(offload1, dummy, platform), }, { @@ -113,7 +111,7 @@ static struct snd_soc_dai_link card_dai_links[] = { .nonatomic = 1, .dynamic = 1, .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, - .dpcm_capture = 1, + .capture_only = 1, SND_SOC_DAILINK_REG(loopback, dummy, platform), }, /* Back End DAI links */ @@ -127,8 +125,6 @@ static struct snd_soc_dai_link card_dai_links[] = { .ignore_pmdown_time = 1, .be_hw_params_fixup = codec_link_hw_params_fixup, .ops = &codec_link_ops, - .dpcm_playback = 1, - .dpcm_capture = 1, SND_SOC_DAILINK_REG(ssp0_port, codec, platform), }, }; diff --git a/sound/soc/intel/boards/sof_board_helpers.c b/sound/soc/intel/boards/sof_board_helpers.c index 24f716e42d6a3..50e846d67c194 100644 --- a/sound/soc/intel/boards/sof_board_helpers.c +++ b/sound/soc/intel/boards/sof_board_helpers.c @@ -217,8 +217,6 @@ static int set_ssp_codec_link(struct device *dev, struct snd_soc_dai_link *link, link->id = be_id; link->no_pcm = 1; - link->dpcm_capture = 1; - link->dpcm_playback = 1; return 0; } @@ -268,7 +266,7 @@ static int set_dmic_link(struct device *dev, struct snd_soc_dai_link *link, link->init = dmic_init; link->ignore_suspend = 1; link->no_pcm = 1; - link->dpcm_capture = 1; + link->capture_only = 1; return 0; } @@ -326,7 +324,7 @@ static int set_idisp_hdmi_link(struct device *dev, struct snd_soc_dai_link *link link->id = be_id; link->init = (hdmi_id == 1) ? hdmi_init : NULL; link->no_pcm = 1; - link->dpcm_playback = 1; + link->playback_only = 1; return 0; } @@ -361,13 +359,12 @@ static int set_ssp_amp_link(struct device *dev, struct snd_soc_dai_link *link, /* codecs - caller to handle */ /* platforms */ + /* feedback stream or firmware-generated echo reference */ link->platforms = platform_component; link->num_platforms = ARRAY_SIZE(platform_component); link->id = be_id; link->no_pcm = 1; - link->dpcm_capture = 1; /* feedback stream or firmware-generated echo reference */ - link->dpcm_playback = 1; return 0; } @@ -407,8 +404,6 @@ static int set_bt_offload_link(struct device *dev, struct snd_soc_dai_link *link link->id = be_id; link->no_pcm = 1; - link->dpcm_capture = 1; - link->dpcm_playback = 1; return 0; } @@ -448,7 +443,7 @@ static int set_hdmi_in_link(struct device *dev, struct snd_soc_dai_link *link, link->id = be_id; link->no_pcm = 1; - link->dpcm_capture = 1; + link->capture_only = 1; return 0; } @@ -496,8 +491,6 @@ static int set_hda_codec_link(struct device *dev, struct snd_soc_dai_link *link, if (be_type == SOF_HDA_ANALOG) link->init = hda_init; link->no_pcm = 1; - link->dpcm_capture = 1; - link->dpcm_playback = 1; return 0; } diff --git a/sound/soc/intel/boards/sof_es8336.c b/sound/soc/intel/boards/sof_es8336.c index fc998fe4b1960..a927078768519 100644 --- a/sound/soc/intel/boards/sof_es8336.c +++ b/sound/soc/intel/boards/sof_es8336.c @@ -455,8 +455,6 @@ static struct snd_soc_dai_link *sof_card_dai_links_create(struct device *dev, links[id].exit = sof_es8316_exit; links[id].ops = &sof_es8336_ops; links[id].nonatomic = true; - links[id].dpcm_playback = 1; - links[id].dpcm_capture = 1; links[id].no_pcm = 1; links[id].cpus = &cpus[id]; links[id].num_cpus = 1; @@ -496,7 +494,7 @@ static struct snd_soc_dai_link *sof_card_dai_links_create(struct device *dev, links[id].platforms = platform_component; links[id].num_platforms = ARRAY_SIZE(platform_component); links[id].ignore_suspend = 1; - links[id].dpcm_capture = 1; + links[id].capture_only = 1; links[id].no_pcm = 1; id++; @@ -539,7 +537,7 @@ static struct snd_soc_dai_link *sof_card_dai_links_create(struct device *dev, links[id].platforms = platform_component; links[id].num_platforms = ARRAY_SIZE(platform_component); links[id].init = sof_hdmi_init; - links[id].dpcm_playback = 1; + links[id].playback_only = 1; links[id].no_pcm = 1; id++; @@ -569,7 +567,7 @@ static struct snd_soc_dai_link *sof_card_dai_links_create(struct device *dev, links[id].num_codecs = 1; links[id].platforms = platform_component; links[id].num_platforms = ARRAY_SIZE(platform_component); - links[id].dpcm_capture = 1; + links[id].capture_only = 1; links[id].no_pcm = 1; links[id].num_cpus = 1; id++; diff --git a/sound/soc/intel/boards/sof_pcm512x.c b/sound/soc/intel/boards/sof_pcm512x.c index 8d237f67bd067..68380b738d883 100644 --- a/sound/soc/intel/boards/sof_pcm512x.c +++ b/sound/soc/intel/boards/sof_pcm512x.c @@ -246,12 +246,11 @@ static struct snd_soc_dai_link *sof_card_dai_links_create(struct device *dev, links[id].num_platforms = ARRAY_SIZE(platform_component); links[id].init = sof_pcm512x_codec_init; links[id].ops = &sof_pcm512x_ops; - links[id].dpcm_playback = 1; /* * capture only supported with specific versions of the Hifiberry DAC+ */ - if (sof_pcm512x_quirk & SOF_PCM512X_ENABLE_SSP_CAPTURE) - links[id].dpcm_capture = 1; + if (!(sof_pcm512x_quirk & SOF_PCM512X_ENABLE_SSP_CAPTURE)) + links[id].playback_only = 1; links[id].no_pcm = 1; links[id].cpus = &cpus[id]; links[id].num_cpus = 1; @@ -294,7 +293,7 @@ static struct snd_soc_dai_link *sof_card_dai_links_create(struct device *dev, links[id].platforms = platform_component; links[id].num_platforms = ARRAY_SIZE(platform_component); links[id].ignore_suspend = 1; - links[id].dpcm_capture = 1; + links[id].capture_only = 1; links[id].no_pcm = 1; id++; } @@ -341,7 +340,7 @@ static struct snd_soc_dai_link *sof_card_dai_links_create(struct device *dev, links[id].platforms = platform_component; links[id].num_platforms = ARRAY_SIZE(platform_component); links[id].init = sof_hdmi_init; - links[id].dpcm_playback = 1; + links[id].playback_only = 1; links[id].no_pcm = 1; id++; } diff --git a/sound/soc/intel/boards/sof_wm8804.c b/sound/soc/intel/boards/sof_wm8804.c index facc6c32cbfed..51922347409f0 100644 --- a/sound/soc/intel/boards/sof_wm8804.c +++ b/sound/soc/intel/boards/sof_wm8804.c @@ -167,8 +167,6 @@ static struct snd_soc_dai_link dailink[] = { .name = "SSP5-Codec", .id = 0, .no_pcm = 1, - .dpcm_playback = 1, - .dpcm_capture = 1, .ops = &sof_wm8804_ops, SND_SOC_DAILINK_REG(ssp5_pin, ssp5_codec, platform), }, From patchwork Tue Oct 15 00:56:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 835512 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 502EDD1815E for ; Tue, 15 Oct 2024 01:00: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 A7769DF9; Tue, 15 Oct 2024 03:00:21 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz A7769DF9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1728954031; bh=G6O3FbFLkZiAkNzy3cz47yXID6ka4yLo1YV64oO7Gw0=; 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=SFqPB6cY/uVH8kUgfr7fHvIXqbcQqLq1wBjXiGX7bi0n3tFcEHxPeHuFUhD48akkY 02tH14nIcZX+E01lygNc19n2iqrH9dx0PC0F1pdNq7m1psYoWvOJEfSLr+G1cZycHz 0vBuvIhvEM7tZXY839YqH7W32Snj1Xlwt0+J2GoU= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 54761F80809; Tue, 15 Oct 2024 02:56:55 +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 D1B8CF80809; Tue, 15 Oct 2024 02:56:54 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id EB22AF80772; Tue, 15 Oct 2024 02:56:49 +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 4A17AF80766 for ; Tue, 15 Oct 2024 02:56:47 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 4A17AF80766 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=RN+SyX0b ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=blJPbmqSSZEvDT/mAH1IomOGdBE3LpHF5tDQLLFPApbQbHF07M01IO5Z04/3E0FjFAY78PwGUyTvBiV57a5+ekt2hlTtWDt3xNZqGUY82z/BlZ6X7xgYAwDE0l/mjo3GyqnZ7caRLJUU+y1r73ys1pWRKIdm9eQllkjwa8FwQ5AuOnmgN1NRwnAWGmmcNRFOBWmPZjteBfaxCMvUZNx3eLX0Mdf0CihARthHAO1Eh9tpCMUw98PNxgUOwF7BKINHKTh57YkHB6OUefsSnbkaZsC1ldi0MahOzwABN0xPN/OKGLQk+ht/cb2y6HyHnREhABBZyTiOv+Bo2rtkBsuO5A== 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=CFI9/tZ+iCX79zEhF0xVSCFczVQqTc/RxNEUXk7rTOM=; b=tgatlH6/TqzQto9oyPf9wUCOGsKW26uf+ZNEz2EOI6j6srcJ/AO3ZAq/NlwALveFim892XPLAo2MkpFSP2IUfCa4CUB+N+G7fV4sWtfUmnHCi0BhWTpTHIluHHRCbyYXS6kszbeZdCwMZWrVS2MGlGE/GvPV4C7IKQuluGBU3/kgw0d4tDeWoTRb2Kd487z3F0MTHWbLIsQXvGYbjYeUc7Voz0McDWj/fdvJ5sY1CYUfKx+esbw4PbwCXe2mhyu/bx8foGEU30d0AiCGUTVuYxKFN17Z/uBdPE7g9mijZU0/xPMGJfoNv4Agkp5xGndM8LjqBCcbQir+laBvdegS+Q== 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=CFI9/tZ+iCX79zEhF0xVSCFczVQqTc/RxNEUXk7rTOM=; b=RN+SyX0bI947lIrsQvSVS3YRuvogU9vIIuPnrHDTtT4pyRu98RZEULlV8XNezkbI/cX0zOfobM0ilZlXFpGCsEQv3qmW0ebVGskTcepI6491rb3to99H9b+B4Gx+Ia3A7H7Dyc8lFnvPgMLBWlg1dOtGprmZagDEHT/k2U/qXfI= 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 TYCPR01MB7121.jpnprd01.prod.outlook.com (2603:1096:400:c0::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.27; Tue, 15 Oct 2024 00:56:41 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%4]) with mapi id 15.20.8048.020; Tue, 15 Oct 2024 00:56:41 +0000 Message-ID: <878quqqj3q.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 11/13] ASoC: soc-pcm: remove dpcm_xxx flags User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Mark Brown Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org In-Reply-To: <87o73mqj5b.wl-kuninori.morimoto.gx@renesas.com> References: <87o73mqj5b.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 15 Oct 2024 00:56:41 +0000 X-ClientProxiedBy: TYWPR01CA0019.jpnprd01.prod.outlook.com (2603:1096:400:aa::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_|TYCPR01MB7121:EE_ X-MS-Office365-Filtering-Correlation-Id: c6d115f8-f9c7-42f5-e3bd-08dcecb43b88 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|52116014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: 039y37YdxdEIDSXmaTprqyQVADOlFdDsCdQ9b5IlJIj8OvcKDOMuwpYf0aYvXXPe/F13inbDT/FKr/LKNIsjTt0pkfm1BzCCi/Go8J2zF6+ljiDk0uUmQwlHg0evm25IsokFu7EDv6waclKIxnMr4Wkik58Ws+hGKdVlNYvtxSZkxt/WWdsGtVKUMYzR3hWusxShRmUSwlu4W68FMeYT0towoMnH3rgwx3u8qw3lOzMkjTEO0AMD+w7pIjK9pY823F7037S6fYmhn3aypotHtmwG7JoldzNPLJwzyZdGYjl6Q7uZ6Ugz7YRRMzav83vqKVGgQig1HtyHN4b1w+YdMqoBmJOp3DheocXmoOaYrvPtVLXz/nq6MpJ31OMqkKbGJmG4naLBrPa1dxhw8ENFs2JKmvPJF67up/7FuDHcS1vtnwjPk9I1JNy8Rn6tu4E0vJKYqpK2mIsLQqbuMR9QHa+41tFrQfgbB0MwDrDP3sYx0g1m5zzLFv1X/U03ce9DRg3TIZN5qUBlW61TpIoweZh2eND9kf8DVZ7g0Mr4Fkq0rapF4n3haWgt1WL6j0wgatgPMbltogUi9yufC+IcxA3Zt4joW97kgioZyUpD1OWl5fu8QtnbAQ8/6yjreG4PSkqxde146RrLHzI6QRQsa+z4Ek14BGqC09pdk6q5qcWJJ/YEoMHPLLT1/fRq8sI1NCvneg2C59do15ICyN70NZIrN78PvSkXmd5Xn3XrBl1AcibxHhoA+5aUjQEZNAIHxtxAcmqKcB/SwOwHWrkBBDmnTav5j7FFJcjheab8skebhuUsYzbSPAtlgQ3O+FATYV3VCtIbe4GsIrSmesLSrkxKN6RBo75N3zwPFxL9eEoWUSMFvkb5CXTWhhqYFoCgreMa8xV6cQkvYj7w+urZUokrUlRtXALRezyDcBGNo8tV//ChQ0TATTbnYL3nmq/25GepfpPzwbT4dUx/vlRYT6rKs+iMqLq1ehYpEm/GUa7D8t77VrBvqY7qmX1O6OaAtUtNNc+2uuht8qlhme/ZrPTjBjex9uq1VKa7xCtJYlg4jA73GwMTQ7AswCEug1KY/l419dajuqdLB6JuTZHNYZeUIwj5udrDmFAL/7NMYDssOAM6vdZbPj4HdjboigFIRVdvkDRIFnIKLE2MBVLXmkcJk1FmuXWT9mWctfGqI9HoKN9pE29VIdIkU64HtX3t2EEGzrV8lDMGFbjYFnl5Sj9EGHlAuRZ3qzYdPpDYD9gZmXe3FGJkLY6NjsZdXNidmZe9jh0XA1bn7iTq8NqDUfV5MDLssKBcekhkjEh67WUxODzZ0uvwRk/8lBFSKW5veZn1hnHANTWCNfY2SjujEQ== 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)(376014)(52116014)(366016)(1800799024)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: R3Ou4YWjBotOikSI/CZSmd2OSwf/FhWc+s/7pFVJqB9YmNe86emHk96V8EWUcH/ESeaTVO/Z6in5gc3934G9991xCpQxnXufCmbCflQLMBvadDkKXAuBx5tklur99WVrq6py56lvUkaChJkF8xLKNMKzIIxLukssbQa99lJEUhZmBk5MICdtIBWaonApIg/SsNblseP7sPza9WHpH+VnHoImmoulfp2mUnY418XIWiYZWJmp9RK/l/87F2AxxW+tL8BMQOxCQTA2YECx7nHhITPOOVZGUzzEZQQ4VomNOchklcxY+01ZcAzovZ6uIF34uBye30A7OF8iLj9ZAtf2kcGpdVlD3ppU5hS51lOIXt61sF2iA5jOfZhiHH3whMGsD32lqlrHI9WSoht0MsrL6TB2ccnHsQG0sulV885s69jVpvv5KnZQSl95cib8MKZpvBFYwpW+0yeEjOz9VlgrODJ8WYmb0/R5rWRj32Qh+KM9f7yu+3JMqvICQYSBVmziL5XsYNQm++Y2thvXOgadBpkTXulwAlyJd8duxosqr/l7jdkDWzZVjxtOh+lrD0obKl2KNcn1DOe4PVlds1o6oBwVdlDBLj4DwLy7y+5C1u0UMILYr2mrqcLX3eWPn6/JAtE/vtawsJATJoigxzNVbf8pHuC7jMCx6S+qAEB3t0+KCSfEeXnfQ0fIUsEgaEMueBHd2aleFqR3ZU3xxDRNc8mH1Ad0O8X9M99A3BTgLkGymzu19l3H2MYbJbCKy4Dy+DzgU7UZ7wyppZrQBVsumjMn4Erkw7szMp6flAfRlRgKl1BHZvNzpRP1vlQKv6Bes09GCeCQ0N6CcEO1Hl7h0lwR/3o93myWbN4cT4OVPvy9HnYABCF6qMTDqqdMy0ZhIrQAFbDJWYVQVrXSCcn4YnyQ+XNWB6uQSkhKcoKPppi7VXYOEn8y44pAwCE1OXT+IiyRjGvqz8ExYH2NiNAcmpyUqHTQMEqMzpMI9eKwYJiXTPBz8ZdgXBMzlaaIf8r6QrGUnau8c0GdrOYB92MjpXcqHWpuw3FpB/jV0PK3z/VWM+AQCCjoyPzMLa02jm6UYIRMG9FvK8leKOL0kLTV2cHicckXE5YzyWI7Pgc1ielMXqCobjsWaM6+c6nOfK3Ym8qb0dLeY3eAO41L60sNsLTwNaVIQ/3qcLefWz6W4vhwBZblxZksRqPKZ39n4zQPlpGKXZz6+ZcHhPb4JsQ+bYDmExgd/VOUrS9dUF+LD4NsRiGr4ueZJ/EzwUwjEASS502K8sOR9XmQ9vmqqCE2gk5OtDTF7T5WkwNK1LngtSo1eGrGSgqiM9HNX/ySf8cPIgkKNmU0SrgEvAI7xy78evYHr21TvBOD5TR53X2Lwx1DXVAkHaBIdquSPGyIM3DLesY/H6BVNmJaV51ru3bhRSU25hbmo48sJqAptOI0LemVGt6aI8KEGx/Fov1L+MUHfa/FZC6H2OqJ8qm5Rkp1EYyv8KMyuzBy7Eplv+ONVtL8xgf2QeJfLascfw2nLKgLdz58BGllkb/4EY92kY16Esaw078bGO06RE8tPOPxoLXY4d5rmls3w2T5BKG8hdjU5UE8etsTmpwN+Rlyiv2lVXp8aRCZm/gZazV0fUwHuPI= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: c6d115f8-f9c7-42f5-e3bd-08dcecb43b88 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2024 00:56:41.7593 (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: W4nx857k0645aPqXi/4XQmsuhXV5kDkGNBXMeIpO9p8+7NGTQ4YWNO/mi6ucDMYD35/MuWvkdwnEAqbH8fSGkbNlR7L4UtwK0a0s6Ywn6KRa2Gp9lJT3XJTkB+szLbaX X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB7121 Message-ID-Hash: ME7WUBA32FU6MZOTPIJL2E2VBEUQ6HFB X-Message-ID-Hash: ME7WUBA32FU6MZOTPIJL2E2VBEUQ6HFB 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: dpcm_xxx flags are no longer needed. Let's remove it. Signed-off-by: Kuninori Morimoto --- include/sound/soc.h | 5 ----- sound/soc/soc-pcm.c | 33 --------------------------------- 2 files changed, 38 deletions(-) diff --git a/include/sound/soc.h b/include/sound/soc.h index e6e359c1a2ac4..123a0140a23cf 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -815,11 +815,6 @@ struct snd_soc_dai_link { /* This DAI link can route to other DAI links at runtime (Frontend)*/ unsigned int dynamic:1; - /* REMOVE ME */ - /* DPCM capture and Playback support */ - unsigned int dpcm_capture:1; - unsigned int dpcm_playback:1; - /* DPCM used FE & BE merged format */ unsigned int dpcm_merged_format:1; /* DPCM used FE & BE merged channel */ diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index 7a59121fc323c..27810f6f86302 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c @@ -2860,39 +2860,6 @@ static int soc_get_playback_capture(struct snd_soc_pcm_runtime *rtd, has_capture = 1; } - /* - * REMOVE ME - * - * dpcm_xxx flag will be removed soon, Indicates warning if dpcm_xxx flag was used - * as availability limitation - */ - if (has_playback && has_capture) { - if ( dai_link->dpcm_playback && - !dai_link->dpcm_capture && - !dai_link->playback_only) { - dev_warn(rtd->card->dev, - "both playback/capture are available," - " but not using playback_only flag (%s)\n", - dai_link->stream_name); - dev_warn(rtd->card->dev, - "dpcm_playback/capture are no longer needed," - " please use playback/capture_only instead\n"); - has_capture = 0; - } - - if (!dai_link->dpcm_playback && - dai_link->dpcm_capture && - !dai_link->capture_only) { - dev_warn(rtd->card->dev, - "both playback/capture are available," - " but not using capture_only flag (%s)\n", - dai_link->stream_name); - dev_warn(rtd->card->dev, - "dpcm_playback/capture are no longer needed," - " please use playback/capture_only instead\n"); - has_playback = 0; - } - } } else { struct snd_soc_dai *codec_dai; From patchwork Tue Oct 15 00:56:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 835511 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 7DC6ECFC501 for ; Tue, 15 Oct 2024 01:01:12 +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 3B7A0E0D; Tue, 15 Oct 2024 03:01:00 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 3B7A0E0D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1728954070; bh=gb8047m6aUcDhBvJPYS6TSjIVhl4bb/0b9SN+1QCZQc=; 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=nOX6mciUJHnY1/hkKzmBzY5zu0epg8BV46HDtM2JRx5rL1RKBSDj/orYmQ7myAhkg /IGy20kRwr08kTEIuuSGNuZPp0n9BFe/OU9wrFL5AdZ7je5zYcBAo3Xz1QJJO/Ukum 9nBpYLJn4YWEFLeWaMOP4hI+xLQy/ZDvh9Rb9m6M= Received: by alsa1.perex.cz (Postfix, from userid 50401) id DBC36F80C17; Tue, 15 Oct 2024 02:57:00 +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 21DE6F80C06; Tue, 15 Oct 2024 02:57:00 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id E96DEF80791; Tue, 15 Oct 2024 02:56:51 +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 78265F80794 for ; Tue, 15 Oct 2024 02:56:49 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 78265F80794 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=nIwkuqb4 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=q29kckRr4xdwVOMtrUFOMe2hCYmGaf9mctgRsoXHmHutpLiup3HlWMNfhT8GtcBQmGhBN1LsqvUhYwQshUZPl/FTMF36HUUAJMAAhdd7SEgcSEsxkZfxydXvZ1by+fZ8bJwvjfdn5da7f+Ziz27baOx98bI8yGBdxjZ/09QrvRR3CpTIZvqpec9tLlnA/xH/WOWAdo+ht2rOaIjmV4OkjGmxCwZleFDmoYjqRkrYqop3tsg1Ym/6OWyEOTOevlN9F8VQc2OFIOX++7WSjaz3s2HneW82q/zYxbT1O+vyU18Q9vW5LpTxIpbZcuJEbREZigNnPfyLqZei4oblZHhGKA== 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=zF9L7c8BWVpiszPzAdAnNL/OjGbbyqG4WtEn5uBwTt8=; b=j6i12dTcC1dwTtatfAs+MGjV64lYfAz9kcVC+LzW7S6upEhXY49oD7V3+P7FxBgFLFPsyQYOiVptR+RieN0ZMCI7tr2yT9QlCSfnwVDJnYIzyt6c29gKIEHUniYxlAaiFr2PXFtQ5FdKGbFhuKJuQhiHjpsfwFRcA93slS1hIhcsvQC30cM0eDZMMmoL3GdLO7pJ59XvCm0m8nm//87fMqS9zfGXlFIFOS4CdURDlErEP95hES4UXANHGCva1M5WvYpQIUYZBkSa3v5HIJRmcH7O1Ps+07xAoG1MjrbVQb5i4YLpA9qGBr8gVhUeW45rXRoHRHGlldjS9GgLYgQ2rA== 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=zF9L7c8BWVpiszPzAdAnNL/OjGbbyqG4WtEn5uBwTt8=; b=nIwkuqb4m7IvBpmtsRnlYyqn00lNoZoJoQqoY+O5vqXQj6Y0sBqn9KuDd/Suf4RUygj6HOxKGxYX1uCYILaeynLe5OvHwdCcPsFAsMmQQG/umJWh8HK9aP4/d/gdQBGQLZWFWjZcFtVquaGbZ83kdF+79N79CxvT8WkpZgmKufA= 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 TYCPR01MB7121.jpnprd01.prod.outlook.com (2603:1096:400:c0::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.27; Tue, 15 Oct 2024 00:56:45 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%4]) with mapi id 15.20.8048.020; Tue, 15 Oct 2024 00:56:45 +0000 Message-ID: <877caaqj3m.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 12/13] ASoC: doc: remove dpcm_xxx flags User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Mark Brown Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org In-Reply-To: <87o73mqj5b.wl-kuninori.morimoto.gx@renesas.com> References: <87o73mqj5b.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 15 Oct 2024 00:56:45 +0000 X-ClientProxiedBy: TYCP286CA0209.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:385::12) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB7121:EE_ X-MS-Office365-Filtering-Correlation-Id: 350ebd5f-1d3c-4566-aa80-08dcecb43def X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|52116014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: LDxFP3yd/xlQeqjKe2lWruKFN6eC7YD7vjgScQ1y+s2+8g5CPFDonf6uJeEV+IvDb0csY3q37GfZ8RbLV2pXZFO/VHjG3Lp5VsqkJTI9WpL/knhWFNacRs2paiVVmG4wyyA3MJyg7LYVcu+Wn1/gPENukmTG2HGkna/Gbazz5cticIKH5Ds2AugguZXOwRac8hUx/4Ye3PfLzhgKTTecUpcs2Ao/1zotDX1qGsLbs9dqRc1szIV3wg/i1mcGI3X1DP2vpququ/6abiolqQwJ5f0tKQnmfYVcwW/93XKrMGzOt5PAaMj2XVDTk1h6JJTF03ffcGAtmp8O9tS23ptwLNLCiX0+ajgTbg2mxHLiKpCOno/mtHVg1R8axtQHUuJoufD9t6rrq0htJi/BuF/c2GQz4lYLGpUVxmFbGJW43ETAt+0AFQuROvKWuOLKTt+gLzv61/ATRGuoo2cagCgpq4rkcrCdazQz0OKxi3YxDRb0IbB8N2DuEOiSe2aq7cn7T/3KbMVNi3ono9W/KLOSo1eQR2At57KiRQ8AykvgQ1+DFklpEbwq4XwGQWQLqwI4lGiXUBKpLFJSIsJo4OcobzTOMNwp/qeWuQSueLkA+HN4iUqSpNoED8VuCC1zi4Ntk7WA5Nx9M4vDDSBbkDo+v5RNTylutxeAdZyXnpXR68mgjg7Od4YH8hDTcGkiUuS8ZHstTDy/rhMncbM4x4s7Bod5c5pKBImwxKv44zUPIlxic/oNSJjsACTKp1YKhz+JI2CBt9y8uU8xm08NUKZ1T4vmHkTcZUqQOpBSRqtWRIYi4nwkEsjNnSxdoqIK58tQsqiyjtC5pz74nJOYpRbtMib1ROsYrd3yqaypnv9qlq3EkC3Ho8iw7S+jW4y9nHPHFtL++9C4bTePoTJ7SeLsWAQ+FpgeMx43zhoqcmWNfCZr5G3QpACek0lG25y1HZBeT/i+E8XB3jPs+EeXD6KBMOMwnlrbMYcpAkJIVhMntCM1DTSSXwmo5/rCqVvsfFJgN/okivcGUYPmReuF0DAlWz6pzBx8+SinuRt5iOm+7ckPtF1GlelziqQkWSe23IOF1U7DN6Xy4jWysFTemh8f59FeJoxsnfkOnkkTFh6WqrTPCLOy7PW7cuwKp17GeaciDSewin1g57HRLi1ZnYOUTk8IDcowr9qKGFoNSPZ2fa6w8TNILe+AS5LsJM+Nm/wpVqwKnqgY8/aTWHcGpABVdBxpPRbAJZ4+vYtqFtZm1Gr+dzkQRSobaNouR1TC/bi0M0OiRdNqffwfnRzwWRtvu22mmKhwL4cuKi91LGLvwnCiawP8P9UGlxGEEsGBscZLasylIN67NJGnU4BmBpoaEA== 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)(376014)(52116014)(366016)(1800799024)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: xD5I0wG2hnk0pUNmPWMC+5cW0SApwIpEAg9R6WIaJfYQVkovgjoXymaCsIFEKLy9JCMTw/LuZAJzncJfy/5TFyTqkiWEw29TtvxbZZbxyhlPwBWiSlwnVZXZLH//HI8yEK+jt7hakKukDFeKJSQN0J+EnRn+1xxDQTq24cbQQjRu+6ZqZnC8X6Yt4GsV9c6PAuYszckSW4KcKKACKcONz24xZYoFl6rSW26DsS9lwGHilmMmHmbLdYoFlbi7Ohrdx75JMKR+UIvFIiZLO6QJ92FFBVBszXCq7m4C4arrco2rNlYqvFOdA42MvHhsKGINRln5s5Lp1HJ075hBsFvWw2r2VZgUGUI0zTlggZEk0rG/BK3BXHAuGBmwLIUCxz99yRaY5W6zI9XiOqOBgCcKcjm2TadPJhtrGufTETp9WlFvTB3i8ZDGJ0jJjAZrUkF+Ced1S5iImtwKaMG4pZmcq9IWImwTa6srS7bYOLxT7Tpl1sS/Y6MT3rIYdveM8rEAWhGP+nEAkxCwmZwSeeQzIA/KAS+CLSjGAQWCvH5uOP+5LHM00Noz1IoHn4l2eI4R1rVJuPuob8MwyIG7GPYR+7ZYhMCQKFs6sec8wTvzBhVi6bkUvH2GVkk8HxR0ez5HwbZiXl4fAcCpVuSjslks8UCN0kjujsCg4l4KqS3urAa8iUKRRdEhf5eyH0txmd4rV54zdJjZn/KYpOVeS2sOXGm1DmJKX8qZxDgME3uNj2PE9K1h1Fmdzc9sk9nDlX9akHjQ7C+qGPWf8k+1uvGFqXcJ8Zch/X2z/pMXdwpn8Bxn82eljfdlbeQK4nMry1tLzgmPNhgyXBJwV6+/G/AxoJhW78DlKk7mGUVQhED9/MkExgNDOnup1ijTAJwlEkx1i3qYtd5KP9SykiGJQOREmdTJHVfrCC3Hs+V845TeN3PyV8bCnpFpcjjSe70bnSgeJfP0+riFeG2klvIZQapBah7RMymEGtDPHhIncvWYQBauosOfZzJTTFY6pvv6HNfeUOH3wD1HniXhZ0AzF+6jYZzW84eS5iMrYfxiLet/K1d8dRnEoghT4qAKdGnv2t741+Q3Hk/XMFhAwCoElxSxrjuC05+O3mUGSApqfsi4Ci1e+WW3OW42XfAzbs7z64jg/G+kupk6y/FK+9n3Zdu0uT3okIUeDkY7fNuH4lddE7cBJsa35ib8grdjbcErvmn90KzTqWopFFPg856ARlOy1Phh/dOqPx4/sPL8SjBFp01gp3Jvi3WNWxtTkDQs3YbG3Cq9wQqIYo9cXK7jI9BqC7p6fZgd3ukRg8aWMZwP1AT8eh6Ne8nPa6giAdI09VPM2Fgk4PGy+sUTEFwxONG9WKX0h3ikFR8JNdvUjqRb3tvA4jGyJb7/WwcImyUm7HSNvkiM3ACWVhd1ecpBVEg/4AkIiSG+YcxpmJ9QORlaHwKnnBLkIJ+Pk3E+btv5l2JB5QtdHZVOj6FTgGD4eNKenmEq9JA0W72e/gP/Twq5I3dwM8dQoky2nuRnvSrFr2H0x6zQKE5ymu0B30WNWuewh9Dk8qAgPsjxl7Ha/bWToluouCrkYoSMIEo1fOzaZO5hJ6ZmGBTOuMo28NXwdg0EbCbV20lS1ARxeNd89Ks/nqs= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 350ebd5f-1d3c-4566-aa80-08dcecb43def X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2024 00:56:45.8191 (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: eGDC+g09kIcfQBxF+PHPs/re06drqdMly9odYLISWshyHPe8W5y+yKvviKeWiwcA3yuVJruLCusN5hmRc718XmVjsd/CWWdNPjefhu2m3YaFOTsSRK5ci9UvFCxPTUI+ X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB7121 Message-ID-Hash: EHPIAA4MO5QNUM443YE4ND2EODBT6XUU X-Message-ID-Hash: EHPIAA4MO5QNUM443YE4ND2EODBT6XUU 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: dpcm_xxx flags are no longer needed. Let's remove it. Signed-off-by: Kuninori Morimoto --- Documentation/sound/soc/dpcm.rst | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Documentation/sound/soc/dpcm.rst b/Documentation/sound/soc/dpcm.rst index 2d7ad1d915043..02419a6f82132 100644 --- a/Documentation/sound/soc/dpcm.rst +++ b/Documentation/sound/soc/dpcm.rst @@ -157,15 +157,13 @@ FE DAI links are defined as follows :- .codec_dai_name = "snd-soc-dummy-dai", .dynamic = 1, .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, - .dpcm_playback = 1, }, .....< other FE and BE DAI links here > }; This FE DAI link is pretty similar to a regular DAI link except that we also -set the DAI link to a DPCM FE with the ``dynamic = 1``. The supported FE stream -directions should also be set with the ``dpcm_playback`` and ``dpcm_capture`` -flags. There is also an option to specify the ordering of the trigger call for +set the DAI link to a DPCM FE with the ``dynamic = 1``. +There is also an option to specify the ordering of the trigger call for each FE. This allows the ASoC core to trigger the DSP before or after the other components (as some DSPs have strong requirements for the ordering DAI/DSP start and stop sequences). @@ -189,15 +187,12 @@ The BE DAIs are configured as follows :- .ignore_pmdown_time = 1, .be_hw_params_fixup = hswult_ssp0_fixup, .ops = &haswell_ops, - .dpcm_playback = 1, - .dpcm_capture = 1, }, .....< other BE DAI links here > }; This BE DAI link connects DAI0 to the codec (in this case RT5460 AIF1). It sets -the ``no_pcm`` flag to mark it has a BE and sets flags for supported stream -directions using ``dpcm_playback`` and ``dpcm_capture`` above. +the ``no_pcm`` flag to mark it has a BE. The BE has also flags set for ignoring suspend and PM down time. This allows the BE to work in a hostless mode where the host CPU is not transferring data From patchwork Tue Oct 15 00:56:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 835857 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 C854BD1815E for ; Tue, 15 Oct 2024 01:01:30 +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 02D2C741; Tue, 15 Oct 2024 03:01:19 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 02D2C741 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1728954089; bh=Vw2xYdXdckIo0v/pRr6zwYaapVl4vL3esBItTt93teM=; 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=aDiaTyAtpcvVEGAbmmCY6BOQMpYK4Rt7gWOIod01bgfqM5a3cwJtufuNYU5f9jt0X h+XDIjPEIIWlNkE7z3SEK5m+Szez1St3QpT55SpdGt7gUaS8gzP+M+M3BvKlmjVrff +imUVO5+xdtqvW1mZQjQbZnkpUMEcJbDJO05xBZc= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 18EA8F80C81; Tue, 15 Oct 2024 02:57:05 +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 AA88AF80C71; Tue, 15 Oct 2024 02:57:04 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 51414F80879; Tue, 15 Oct 2024 02:56:59 +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 C6414F80803 for ; Tue, 15 Oct 2024 02:56:54 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz C6414F80803 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=pazxBHKu ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=t4WPk0fSUcWAgmpNC+BF27iMAs7TjITolSdi/ZztqXx+0uve94JXTP3hWufjOBQAvWJqmXrDn4Z/3ZveBBFMJpcvF5eaPhf9aunFSkU7676LLuIqO1YQqBUqk1gwGgN/ilQ3Gt2oTV+8Emo+a5EhDn/lb5oRxhARY2RH7fb6GHph1qserJaXxL1pvizY5hIyNrQuF6Gpv/HrzEvajaDNKpVHewjQWcw0YTDpVZpIElK13YO37MwLa1MHTnIvMZfLf8xVIi9Sp+MXu7ZcDXrM3IGY6LFusR7KqRE5fiUN7PmdVGD+cEZ6AhvypI6FMq0KVQ3Nqx4ckLRMPJ3t5mmySg== 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=bOovbfK6vR/xOXcpsAN/tbbxAML/E0D1rQC/dk4nId0=; b=Qy6/HSskDlSBJXUD+kr0xsSCjqz4Oz7Yfo1zER4UmjPdySd4NneRLmx3uvpqUTA+r8lN1S1+cfi72ZZWgkH+Rx9X0+giEGHu2mnpGG6wLV4IyOp9d2CzQFcm7dfAlsWtHaqe4mKfShM/kYJ/t791snvcDuCXb3roBerJfcDr8igWk28CgpYlV4zUY9U7vHtPXyWP022mWq6MuaGuAR1S2m+wm3M/ujBqUe/lWFrrP/t6k4Ecxx9NvSJyci8yr8e7ZbW9HaMhQK4MBmkr0+0hV9tPOHJUfQbyBM018Rt67asEtvgujZBYo8oSXVicr9itq0EGTuxky8V0aMsP5S3FIQ== 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=bOovbfK6vR/xOXcpsAN/tbbxAML/E0D1rQC/dk4nId0=; b=pazxBHKu9BxPhEZLdxQUqFt3fYsF5LNHmKA1inYIR7cozSTKiIwZIBBUTBsurdVEyvmC8nyy0PWNBPBmJs+qZN2v/sIlL/VXU7CfuS6OR/lHw57uVcZA97t1tVuRFMVWzvu486sQWik93Fcmm7RqcMNpJlnjHIdEfnEfZhzOy8o= 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 TYCPR01MB7121.jpnprd01.prod.outlook.com (2603:1096:400:c0::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.27; Tue, 15 Oct 2024 00:56:51 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%4]) with mapi id 15.20.8048.020; Tue, 15 Oct 2024 00:56:51 +0000 Message-ID: <875xpuqj3g.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 13/13] ASoC: soc-pcm: merge DPCM and non-DPCM validation check User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Mark Brown Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org In-Reply-To: <87o73mqj5b.wl-kuninori.morimoto.gx@renesas.com> References: <87o73mqj5b.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 15 Oct 2024 00:56:51 +0000 X-ClientProxiedBy: TYWP286CA0033.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:262::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_|TYCPR01MB7121:EE_ X-MS-Office365-Filtering-Correlation-Id: 544521f2-5acd-4290-6c69-08dcecb4417b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|52116014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: P1xsf/y4Da5ijaCauR7uwNb31YCADiUPv0tjUr/9dBho4CiO2Vj5id9H0ve+v9RI1JjbXIUj/o5kL3EsgWOv3sAq9vEHopfW8buqeD4L7K9regz6eLRlWJlLF+MQy8xTGCmlSpR5wlFnGzaVq1V8hkRqoSVVvDgyY81u3rR72jbDRKlLXSvbm/N8iTfeIOY1LnCitoaYjEa76yRZmk1AfzopAiOHLLaMI1JS7DWX4LOQ+6Bu7bgIa3YkFFHZosorsYg7MLmvxaLis3/OTz9PX41CaOlDVAFhcZvF9VlA260iJX83kSwtpDpUg7fVtiNivI8Kh+EvDSF6zyrDT7E1Ruw86xDXXyn5pmRZegZ4ytEFnWFk4L10/VRhxYtdK/2wmXoJxEEuJS0Z9mmDdZoxnFjaYpXqG9ZorPDEX3dote57m2StYD0x7RYAKX7W/yy9yhuMYicUh3iJPrWWmQGYIkGFoUmSm5rfgGQOAgTHGsZgjhK411wM8hAYUkuYxtULKOJ1XafkG1RwU958w4ogjlHfSR9ZwogWYXACeW6BmOvmlLs1o5RTlKYJQLUiXZEcS+UkPVlvG/BxH69jcNqoaCsO7dItCAL+nO9Qc2rgCwhkyFjlx87/P7WMuWS+A2bQ5+XSnLSl9A5qtnLe7QuvA2cjBzloGDtekErs5e4cEI4pkn5OfmROf7k817u2V47/mRYRGPVKFlDiIo2VM0rVGDP0a3kVVFiSXXt2RD5Lgg6Ew//I8N9K8ITUgzkzaLupZUDT8YAYlXeO7buDcIRrrW62cLtFp0pwVthunfs1SzuTkzpNe9N/tWJmbqEWrKtNVbnIRHqHomLkb1NVVSa9ROZkrJEHDtmKEGFx9wbWS7GELM0LejcH7i2kW4LX5IvIeT3c1DUeGWvnkl79HeI0RAZBChwnhdGyXb9ki98wMRuP7YYAk3OfgWDsoU56x0ZAFCYyQh72Mbd7mpvmwnvtNnu89EZVuOEpePidBC1swOkYX/Gn2zGswwrLHeMvNcWCDyiDQnV9ttpOm9QgDotcoG25f0PvahlsHQ0oNYsdvzmgsNU1uRFUiAIQkfAboYzif0gA6/yXooi4fYq8yT/4pZVpcYZv/2ZsOSBojlbtxzqO4H9WLGJFnfHVIrJV2mctp1T8tv9etA/GuwFTwABbL+dRG/AW0vZyN3oWdwfkJ5ZOPEgb6VL0Fnq+Oz6Fa7ofpKkOv8N21lwCfY9Aj4IQzqiRZ8QLWTXbqxmUYSXR+R3HUqGALqQYdww0j6puSjKi8fSy43QPzcYRQNQZIos+J/csHGqaKGkS6glOF9tbvlKrOmgN006zJdrZ/ADesDR6j8YL7ObRiArO7D8tkD3yTw== 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)(376014)(52116014)(366016)(1800799024)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 8zRJ26LhhRWir6oFU8Wt8tT6q6ydX6q5A7dTftbV5+pVKSoaQV6bg5c2BZD2Z4EMA5kssCMPf2P7zQTMbd8Tanm1SDFyemMf0DLSErbeDYXSDbMbaHRaw0ft7OBfrX1hF2kc3nufeX3HFdQTdbJu/tMMEmvdPSz/C++CJH6Qq/JfGVmJ7Uh2EpU68FsIr2s4tfnzTXOfLxRubg8L/hd946ND212GHfVC1cbbDI282Jsxj8HDwj6k71VU7hBHhifQkXcambaKff/XbLcfjrY0U0WFoTUxJfLiENWJ7kY3bPT0eP+6K/wHoYnMEv/al55d637cBujcW3fhStOaF64MmWv3kTGWnx2S69XGMiA+g9XWoj0vI0RoPLyFHfZeCQWck4xeA3xCsZjoL9iUNYg5t9Vqf9lJALyTo2BS0OGzV4K8kkW+2P5cNTm4x6wuVlaNCDy4uj3aI3txNkY4Z+KDVJiHfhBKOR7xy1B90MG79+UuOW/N6pwN6EL8LMqpBDZKu8ibxayVQf7E9M6ZTY154t/Vi3ZtxwQmSGogjkH/l6xVQjy8wWfCNoG1j5JLa7s/3m46pg0SGVuWIH0SeUiPXyjkT6p6ZTFDW9i2SUjfWTQ0/zQJ1j5uYZjIa7I54xSOovLIJ0hj/q7jEo5BcPTilYjg78f6UUXDVNEBT0nS3eda+Z2/Iyuz3a9PekFtTY7/e3oWD7PVXZ6DFgQue/GwuvQTJ0nmCfjUCJkcvmRBk5VSX/JFhoxXaT61vwFtu1U7PFFRhGOQseRvGCLhlmkax8HWsJsJffFeYDbgCAaYuZXaaPNEMM9mKjwl72752+/0M/CAJ72NKW69GOWK81RkS03MhU+NI5OCnN81HOiptpolPOzuBRGes44b7MfnaQWaIgRaimTrwnWU9zUNxx2UjeB+O/GHyUUIOW+rI5Vorqo4xpsGY/Jv1W4d79UrOAvEHJ/h7zxjIAvwEX4LvDCkM/eq5SQ+hW58OskXh9dRyOGi8V5F0mBhgKSXKMTHL/LslK8wqzevwE2fLXsxtuhdATXTOBIn5vfbqPHt9FLXJ0rx+bheF4vlIwvhK+vRj7rouRqHZtparWx+lfHsaqN7sIDP3rGP1Q1ivLHZjph8gVaWM8JZcHJ5uoBbZQmNg4BHziEUyju5kyQvPg1CZGDQNXiFhfnSV9lRheEr8KKXPTrGyKqgRrfEv9dARx9N58quZwxMIxRci2C1uEG1YhWcZLAP75KZ6SA7xgmeH1Ka7ZhnvT9ZyWYguIXZAkndQHljzDMyHP90juB00OB6B1D3lIWaGRzJYGWEb1miptz0yzezWv7u+0azvv4lApO8ec/30v83w/owHR5kZVkYM1phZbMpqL+amPQ0uSErEKbO5ibyZ0+vi/K/y35Ou0M2V/juIzszhBgGUXFDEIwt7YUANKNlH8fUgsK1ZjP+aeQtoapcA2qhhbFSH5nRUqAxCflknjbFXi0DRfg/pA3GUBz6hUa+m2zcx2vdFZ5HM7Q3H9jy6r4YuTQVPSmc4M+GrJtp5RPfKTQXLgCBP/wrT351IAMOX4/gk4GpQ+54vL84cKV3BYNjQwC4iI49K58tGjn5nwr7TnyCYG5Y4IepRIJ4t8rA3nmOl/goPXmCZIhgq48= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 544521f2-5acd-4290-6c69-08dcecb4417b X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2024 00:56:51.7618 (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: eLTLtQhnFozZwuPOpkg0nMTTpZ9Lc9xXMdtV+qp/UFdiOBHF6hqW4dFZlCcyP/OpiqVOFeh17z7cYAS2+JTiFjy93l2HD385tmpzqPLE0d71WGTsee5OtwjOvZvmYjz+ X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB7121 Message-ID-Hash: XMRV527VEDUVLZRM3OCDBLA4Q3PMKFZY X-Message-ID-Hash: XMRV527VEDUVLZRM3OCDBLA4Q3PMKFZY 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: DPCM and non-DPCM validation check are very similar. The big difference is that DPCM doesn't check Codec validation. This is historical reason. It should be checked, but it breaks existing driver/behavior. Anyway, if we uses dummy DAI as Codec when DPCM case, there is no difference between DPCM and non-DPCM. Let's merge these. Signed-off-by: Kuninori Morimoto --- sound/soc/soc-pcm.c | 62 +++++++++++++++++++++++---------------------- 1 file changed, 32 insertions(+), 30 deletions(-) diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index 27810f6f86302..76cfb6b115445 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c @@ -2838,7 +2838,11 @@ static int soc_get_playback_capture(struct snd_soc_pcm_runtime *rtd, { struct snd_soc_dai_link *dai_link = rtd->dai_link; struct snd_soc_dai *cpu_dai; + struct snd_soc_dai *codec_dai; struct snd_soc_dai_link_ch_map *ch_maps; + struct snd_soc_dai *dummy_dai = snd_soc_find_dai(&snd_soc_dummy_dlc); + int cpu_capture; + int cpu_playback; int has_playback = 0; int has_capture = 0; int i; @@ -2848,40 +2852,38 @@ static int soc_get_playback_capture(struct snd_soc_pcm_runtime *rtd, return -EINVAL; } - if (dai_link->dynamic || dai_link->no_pcm) { - - for_each_rtd_ch_maps(rtd, i, ch_maps) { - cpu_dai = snd_soc_rtd_to_cpu(rtd, ch_maps->cpu); - - if (snd_soc_dai_stream_valid(cpu_dai, SNDRV_PCM_STREAM_PLAYBACK)) - has_playback = 1; - - if (snd_soc_dai_stream_valid(cpu_dai, SNDRV_PCM_STREAM_CAPTURE)) - has_capture = 1; - } - - } else { - struct snd_soc_dai *codec_dai; + /* Adapt stream for codec2codec links */ + cpu_capture = snd_soc_get_stream_cpu(dai_link, SNDRV_PCM_STREAM_CAPTURE); + cpu_playback = snd_soc_get_stream_cpu(dai_link, SNDRV_PCM_STREAM_PLAYBACK); - /* Adapt stream for codec2codec links */ - int cpu_capture = snd_soc_get_stream_cpu(dai_link, SNDRV_PCM_STREAM_CAPTURE); - int cpu_playback = snd_soc_get_stream_cpu(dai_link, SNDRV_PCM_STREAM_PLAYBACK); + /* + * see + * soc.h :: [dai_link->ch_maps Image sample] + */ + for_each_rtd_ch_maps(rtd, i, ch_maps) { + cpu_dai = snd_soc_rtd_to_cpu(rtd, ch_maps->cpu); + codec_dai = snd_soc_rtd_to_codec(rtd, ch_maps->codec); /* - * see - * soc.h :: [dai_link->ch_maps Image sample] + * FIXME + * + * DPCM Codec has been no checked before. + * It should be checked, but it breaks compatibility. + * + * For example there is a case that CPU have loopback capabilities which is used + * for tests on boards where the Codec has no capture capabilities. In this case, + * Codec capture validation check will be fail, but system should allow capture + * capabilities. We have no solution for it today. */ - for_each_rtd_ch_maps(rtd, i, ch_maps) { - cpu_dai = snd_soc_rtd_to_cpu(rtd, ch_maps->cpu); - codec_dai = snd_soc_rtd_to_codec(rtd, ch_maps->codec); - - if (snd_soc_dai_stream_valid(codec_dai, SNDRV_PCM_STREAM_PLAYBACK) && - snd_soc_dai_stream_valid(cpu_dai, cpu_playback)) - has_playback = 1; - if (snd_soc_dai_stream_valid(codec_dai, SNDRV_PCM_STREAM_CAPTURE) && - snd_soc_dai_stream_valid(cpu_dai, cpu_capture)) - has_capture = 1; - } + if (dai_link->dynamic || dai_link->no_pcm) + codec_dai = dummy_dai; + + if (snd_soc_dai_stream_valid(codec_dai, SNDRV_PCM_STREAM_PLAYBACK) && + snd_soc_dai_stream_valid(cpu_dai, cpu_playback)) + has_playback = 1; + if (snd_soc_dai_stream_valid(codec_dai, SNDRV_PCM_STREAM_CAPTURE) && + snd_soc_dai_stream_valid(cpu_dai, cpu_capture)) + has_capture = 1; } if (dai_link->playback_only)