From patchwork Wed Sep 25 23:36: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: 13812554 Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazon11010068.outbound.protection.outlook.com [52.101.228.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8EDD215B14B for ; Wed, 25 Sep 2024 23:38:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.228.68 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727307490; cv=fail; b=toVeJiSMcZYTQCAcISRW7T6L2AxAuN9hM/ePewHn27kc+F046Orcl75MiPaE0m1W8Y5h6bp67pRQP8fYXiHZwAKCZEV7pc7HE3lanWbwYwBF/Q4NQIyZtPXEg5dW8/iK7tfeSzMBGCWOZ0rf/0vyLy8Y6T6cQcW5BhuJ4xvGpAw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727307490; c=relaxed/simple; bh=KwbRFUYELC4Pf9m8x216R55WQ/yk0VdTLaKEmkeV+QE=; h=Message-ID:From:Subject:To:Cc:In-Reply-To:References:Content-Type: Date:MIME-Version; b=WWASCCLNTi/UayYNsbvmTwIqFR5MZDWZieTPoyS/4M5UeoVcAdys/s/cFm7IPrnayEVnpvcPgtSHkn2LXOIoLt/k7n9R+KHOyAGW8a8ejVXafmahUxMxgQlXH3/BvRaU6Z93wZuP4C4E52M/ON4hmcAhnlVt5e5+B7KH5pANaVE= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b=licUs3SB; arc=fail smtp.client-ip=52.101.228.68 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="licUs3SB" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=SYsZ3uU526N94691sC7y8pGsrUAZqcXxrrC4nEWCSmveCbYynPWTKH5WXoK8aiASX/ONrxsxmFbf9EFZa+EUHAvhBITEMr/bzyOYM8or/sRNQANxWRrrXQGXFExm2QQzylXkCnLjwKa/OchYxqfIIRDiP0pVABDmCatCMaz1Nlp3Dr9bSj6sMdACz7l7fTuYISp01iAz1jrZxqbC9krGiljHqpF7d2qgDiQ0TdYDV2OVmLb4rjqXRwIloREGx5IsEFk5WLfL3PRjsWyD0k5UfogJT/xSSwqzzBXXoLu7nXj2hMPeepim0O9oswzVq+ppWGDu1EZj4Mwu+7nH3J5yBQ== 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=8CXx41MjWsgOAv+6Mo9TpisGQAqREkYWXI6nCgFBTBQ=; b=dcR55WFMgAFl8uIoN2AMBeoGazke1vqMIhIz7yGUchBraVSn194OKkUW2xbp/+HwPbUv9zxX77GNe4Vu5NWM7dLjh7lY6/r0G//r+THEPTmXkceBAdMkDcf/uw3GH7t74lSKZ5jTtJgYca2Fj0jtBN07RDId+vmM8FbjD9C4lShIFwXQvsOOFmHMC8RalZ2FJCFrRocTRCsYIeJJK7HOCeXz8RRwT/x9ouSwpomC+qjy57WwzJeMfvH4XtcJXMwTGDWZ9/YZA637fEt5ga/c80J5hTfu5REuNX+5C+H63W4gdCY7iHoSGHuikf8eSmFQYwnSx09BBFeQsniphKurgg== 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=8CXx41MjWsgOAv+6Mo9TpisGQAqREkYWXI6nCgFBTBQ=; b=licUs3SBgl95zl9sGb+hA5yDeQcIudd7ptRZEZI+rvixOemxmHv+hFF+7hrSjgvcF1+EKQB9mAi7MTF52mq/NDWO2UEgot9dFlWhEAM3lSKWs72kBJxMA98j7IyTIVA5SJ+VBiJM0zZSBJshs1FkeCClqqrMSakEg8sJ6MZEtdM= 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 TYCPR01MB10634.jpnprd01.prod.outlook.com (2603:1096:400:292::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.25; Wed, 25 Sep 2024 23:38:03 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%5]) with mapi id 15.20.8005.017; Wed, 25 Sep 2024 23:38:03 +0000 Message-ID: <87plor9ugy.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 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: <87r0979uhx.wl-kuninori.morimoto.gx@renesas.com> References: <87r0979uhx.wl-kuninori.morimoto.gx@renesas.com> Date: Wed, 25 Sep 2024 23:36:30 +0000 X-ClientProxiedBy: TYCP286CA0346.JPNP286.PROD.OUTLOOK.COM (2603:1096:405:7c::14) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB10634:EE_ X-MS-Office365-Filtering-Correlation-Id: c9c1ea82-aa16-4480-308d-08dcddbae1d4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: nhBmL7LkVog5dTuoA7FDEIJeLLl0wg64WbJHbpYjKq+N1edPwm+ITkpLf6E4UKxdnxS7Cc0tNnIiaG3BysMw3otRpMrPx6exawDYBpsNBLOF75Qubc2J8AN0iV++i3T4Ink5iRKfmsVJ4P2Rx51Q7qrWDNKJq0+ynYM6VT6cFdJ4ySppQ6RAmHCLWXsHUCwltLRVRHm2B9Uk9ZZAbSrytNvhU4VpQ/m0dUq1c5Ddg5wfQpAunvIiXt+nJfuxPUMDiAeY/7GaFRYkFVGuKoVT6o/jU77nICJDQNekHAQ/5p/BcZ6/HdvDdssO2pbEnt0GuqKha/H1EVkTRjKdXhVz7+P1e1iklL55WvBuabGhQUaeFjOdhOK7WzPN2zNVdZNzwMbiydgzcc89ZwAgW+mJk0e8o8RdDx5da5idFCO22x19CRj3WYw11rn+gaYRcB32/8nHypC2r1hY3aITB36TJkxYWNBg97D5O1mtxuQPFfnggDZFAHunRMSQNb2fMJGT27KO8bKXo0GGP4OQKB9Igp7riNm9ZDJKAVQAVlqoSgk+KtE6zyOwezIZV0oS33pyxYWZWtowByZrxbV5XXIlfY/dBm3C+FLNpSI3mI0sW6BT9CUzoI6ogoT+rth9UxAMFuJfE3wvLSFlGXjdhhQ3mFK4qeR6xJ2RoBdqeZhVcsqLyHOPaXiKjugE4Dg8iQWzQIneoi8kGfJ5vHj1688iaII4wJOMtD6I2A8Ejkgo1EQbioHGnGuGTCf3ddMWZXNWVUj9iFC3lJwFgIm8sbNxD4nuC5IbUVr1NMoaZqPMddZ6lW1kMHP5l5AcnptItgMroRP/aUvqu7/9D8MbE7xhYI6of/kFDcNldwPsTXwk+cb+eLaXDYb7p1mCXhXYnJyfHHbswCQerH8az3I+aEBl83cqT7mQAXrPRMzvCw5T2dtoak6KmuAZHPAVrpOiZXUrO2haSwj3RFaIvfx/MG+Am8HAw48OuLU7DeuFBfpocM7EUYl5xXp2V0zwASCxroj/t1HWxyNyrfVItskGjjY6CEuLLDXT6itlS5X/GZ9gj2LdI9/L8CKaY9xwf/CWBx1vNzi1JrhOmCVKi85uu2fT9nykcPXZgRqKNGh9WgVF1eXHfpgDT+QYvBUhCvzccZ8dQ1StukfLnskTAH03oGbCUILWCsR7Xt2a0Yd1vcYMG4YSd2ksY0JYX/zIJuzD2E7GHx/nrwWxRXbxa10qKKvh6xSSYJ33PfUsnQFfEZ+oYFMgvIhl37FnIvvo9mGp/j6Dgt/0dOLTMQ6aLeSxgKDTqAcSiyUl6URn8GIhz/QKuPhIVwFaoO6vrFVaVfQLYdhgOHbphiCQyJz6F44EhHGduA== 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)(1800799024)(366016)(376014)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: yjNJqypX0AxFLAYyUzQf3L3OUSF/h5kyUIVNYD8qu+Sz7ayKIiM4cQpXFbqiI2RozLXdfhAcHGMxyeZBkghrWRrbO/hZITQHfJBFQeiq4jdvGB/ThxRX8h4XnCIlte1r2R4vaZD9kE1+khpkDXrrGsABjKILR/L2HMkXmrxywmUAigtnkOGYp3oZJejYnGG6HFuzBMawQcKNCI2TJfkAbWJInMwcaY0H/Y4z9vi/VEx1v3CwFmhc0Y4vGakJIPvTWbD78N0M6cHxWttPV7n4v7jBUKpgZhu0toDs+Eg9Lh7pXhNoWXJ+ifbY//6tJRX6n5/cEO4B3Hq+6a66Gt9xoj/oeuv5rljA8JTajfdy8GMSWgWn2KtjNTeOfBcOc3jMiRopjd41Czq6m9PHeqGH3u4aI/QXXLRT/M8GEUkGlPPPsy1lL/JPTNkyuPeFuTrzITXhHqq3ghdS8fy7cE/xyBOjfRRyds0OQCAEEZ/HbQmSvBB5CCyKco8+s5jY3gOFZxqdxT85zBfJnd04m8Mifr/AupTLSqlOaw9i1zhhAsEMyUj0Zch0bddAPH/AcK1P+oIExW8CGzavaMOj8SxugSunPcOu2OBkcfMnarAciui97ULsiNMGMXA4GOxKCb5m+6dgilmcHgoAijFmSnfwFr3SghM8kZoX9uq0GdbzYraWQE7UT27Ch6RfTNWeTr5UB2vlgEEABX5rRg4xxLBzEZ3JACT6bSyzyMGswRC3rMVRPw8LIcPkZe3MJtimqnu8tNosRMlycUUGdqXyel8vuzfUZDae7850kBd07VD5WOZD41tkAM7ONwtsOTy0G0hnSspx0SnKXFAk0Pz/L/ssVZF42tLIEYkG72lg+i8kUgaNe8LLe/EF8ieIiIjxgtNTcihfntMQmkCsOHefGpmE+N1kV1W/5kqjYy519yc+eMp63RNcZQbpHGtFR8ugy8DDKi+vZEHnyWjdT/wd0Fo1WuNCnhjMHIIidwyXONyjRPdFksLPUTqSNASoO2XTQJS+IV3nlliOAO2h+7yurjlE+VDEUQsroLtntiHMC5eC4N/LO3ctqJqmSTWkNdy6D25WEaPXMQJviJJ8hvnu7CVa4Wr3s5QfKQQy5ioe3Q9Q/VB9OxcDdvGk3NZFsOoG52SsngoysLXrccZJ5v6kCixjXrMGDtEqUeS/Q4VBAkqmgUxoCDGEw0DUIq7e+bS5ocV1dWTIkZgNTa3c2ZJHN24FQlPs1dLO5Z8gpSYJoF2xAsKlaKRjKR5CAHRYBaUn0CAeg/QF+k22EENx9NCyerzgW3Mmh+dX/4RFJvgOxqvKAJzpzcz/9qINs2pN4D5n6bf2hgrJxT8ThOks6gyQMI8m5T+lmdghgVx1skEVV6GhLzrxq7VKlzo5Y84m2UGD6hlo7Z5OBf20o3T2vlP5RxkF7GLKIordQTXMiE3hXhd8JbxPtw+qJfMvTuWmDHepCm2cLBvE4E/Xej+OaQei038MyODHjNoJEKk8S1186EvDrkix1qTFCIMRnMHKBgdBwxLYqogyREVi0XRevgxKuxim1GnN+UQMRyYE/JoLP1NlS9MJXuDx5+0630ND1ifZ3hUuIqQQLlFni2eA3X4JYHR1ZEoExjLHR3Ks4+1/prY+F5Q= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: c9c1ea82-aa16-4480-308d-08dcddbae1d4 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2024 23:36:30.5479 (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: mpajQXnE4KqLNgihAl03sQl9s7F2iRhCtjttThNuxkazFV8z+drTao8EhOglz9ScGEG27XgFgrQmQE82JEZqB48+zjkuBVzLsgYWrb6WpBv7lcqySZYSgQeY3JiVhyFV X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB10634 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 e9ff4815c12c8..aa38104b27042 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; @@ -1657,8 +1649,6 @@ int acp_legacy_dai_links_create(struct snd_soc_card *card) 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; @@ -1686,7 +1676,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; @@ -1724,7 +1714,7 @@ int acp_legacy_dai_links_create(struct snd_soc_card *card) 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; @@ -1774,7 +1764,7 @@ int acp_legacy_dai_links_create(struct snd_soc_card *card) links[i].num_platforms = ARRAY_SIZE(platform_component); } 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 Wed Sep 25 23:36:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13812555 Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazon11010068.outbound.protection.outlook.com [52.101.228.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1595A1A3A85 for ; Wed, 25 Sep 2024 23:38:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.228.68 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727307493; cv=fail; b=BY8kWdsmmZ6CT1JntBcOq+Ashp0lANLPdUkN+OaVWjaBq3Fql04wDLn6K0h31N2IsdtVzCptl3yQtQZiC63aDcDXS5XCT78XCryNg7FAJ3wCLVk872GkYicLe0+hlnN4kxf3IsMknsYiK21rsonWdFNEqP2jxLk33+FiRAgg7Pk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727307493; c=relaxed/simple; bh=E8uRcDIYfYQ3yNKQ9ccPMOVT18z2G83yqd3OOxbR08A=; h=Message-ID:From:Subject:To:Cc:In-Reply-To:References:Content-Type: Date:MIME-Version; b=gdC2GCMeTnPiK4fEcjzI74bVHJYW1QY8bq/lXngLQShKhsNVm9qZCeukWdytlVwN8ts7p4kC70Tyw60nKFO7kBBlmqHumJOjudE0UwNOo81gngGF5Vpj9PrcpeDlchTE/x3YoFcStQH+HJLdaPFytU+B6yOv7ZdqN1lh8REijY0= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b=ptckQZcc; arc=fail smtp.client-ip=52.101.228.68 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="ptckQZcc" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mgnDythq7qp0sq1301/pIkRx8RfrDvZIYK3P16TjspRNOR9PpXG0vCi32H+qHPvKpe4eazBaX7ChXFnkErUtvXxT0XQvn7jStxkRyvNvLAONYvwFSU0Qu/d0p7JTIQi8YcKzsMbRrtFoBEWZkSvU/YzpAX17gsl+jYjEABbgIpQG99G16TiFt6GILj3n4SJAJiIACOJAKSYHXQK3Q/vPO3K8g2/NdSngohTJtW5qQFP/wFz91+CoeVpITOdKeJE1RPr5BnzxAwQ9qujlZFmrkm9FuJUaXMCjQPUmiqGwtVrBhmXVLFnGKh8NQvjOzAtnl2lft2XsoKK7kqpuXtXMzQ== 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=kdqlVGjn7/8vAeXOmkLE4hLk7DgXCc56AgZdATXFRY4=; b=ylc0VN4cxtMSwzhyOdft3akMGvFX4KeP9M342g+Ut68lcP96hesu7R3vku4VcJOPjq14OYEyNAEiDUyQjdjUsU6v4QPCWU5BovOxc1id18kF72qxWzNVdOD+3wu5zFq1Aa9+uc/tUlhEjb1KYD/L1Ca6XjIdzE7DLzzWTgHU0ZShfZCnmgBRF6GMxOUzjd4c/NLAsDdncofTJBDMJkN9lsll9G28XASlItP+7X8P36WooH4htfpb5EvJxV4lrsruB5pmfCXBzL4edCO7bkM8MiMDe/mgj7i4paEKclsXIFWOv0h6GPLluE4sy0sqJ0Nql9icD+SNQGOjmxdL/n/WPQ== 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=kdqlVGjn7/8vAeXOmkLE4hLk7DgXCc56AgZdATXFRY4=; b=ptckQZccMBqMfObZ+zBAHuNBqd/6PVuWXQAbrf+/Fb/VCGWwKMGrv5KZKOGfwnI08W3v4aPvb03zmnRa1ig9f7LsnRFAYTRH4MbswZl1fBmmM6mBa2z+YofoKxhUT7ChrJtW+S0Pr/dHcK44/Y9o0wynqeCQDEruzfUukhcEjas= 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 TYCPR01MB10634.jpnprd01.prod.outlook.com (2603:1096:400:292::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.25; Wed, 25 Sep 2024 23:38:04 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%5]) with mapi id 15.20.8005.017; Wed, 25 Sep 2024 23:38:04 +0000 Message-ID: <87o74b9ugr.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 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: <87r0979uhx.wl-kuninori.morimoto.gx@renesas.com> References: <87r0979uhx.wl-kuninori.morimoto.gx@renesas.com> Date: Wed, 25 Sep 2024 23:36:36 +0000 X-ClientProxiedBy: TYCP301CA0011.JPNP301.PROD.OUTLOOK.COM (2603:1096:400:386::14) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB10634:EE_ X-MS-Office365-Filtering-Correlation-Id: 608c68e0-568f-46bf-a672-08dcddbae5b9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: IlCar6BR8IicynzAyieu3Kc6I9RZTdKvmqaUIPAMDP66Kk94aNmUYLFnr5j2QB+PxV1VG/LS1cTwR81zTKKLVgXmit+7lYVLmZdCJzs9gzKatMz0rWs71xT89s53yUFE0vtndPbuFJxP2WYaby67cmS/5rHXwFvKHThUNNcJcc9Eirfdxdg1ywe83/6M8TESdesG8zw3BSkf6dDMEd7t1se+ESxmQHbTKKnLJb2NRjJtB2bKpbi3SqVx7ZihyrQHHTeubycxAen7VRoqTO4ovDoENqqaU/55uC9+39LnfHKYFwKbpiOKVyRHE2SHBn+jxnG9azWVFceSJbdC2PoS1Lsi/Z27gwh9qTNZeVm2r65k5ym0JffaqfymOlQXgjVQEFUHcqxIqSfZfyMOn8dX6HJbamWEkWZqQC63SMdQYaSGH/oOh/8N6wnfBc1xAPYped7JPhtQ1QtB6YNq25VLrLW3TBPceA242BxNuKrMyKM8Y1QGkbDeKSjl607IVSUYtQH4s5lNq0P30a6ebZO18g8TeMucVldnTUAXXoCVQ/pTkTUBXJay8i9mNOUhV2+hWhbZ7wEzff/IZLH7/HvUSrnvCfo31PDh8iLfg3bgzh0ff8tVMwuTj6M1qC+JgPQT34UbpYsWPmdjA5e/FZu2ifTvnhPbPpAtt9jVAa6E+44lYXuZSkuDDyIFkoZVdSvL5CDidGfBoKfeHQIyWQntf8Wx0ltvCEXQ323caPkFj4AlYZm5JvW4LDHHkxoSP5GYBY6GPCfimq3vOKGm6zsmA6O+qVKiTFKQWYBhwjzGo8IsNwdDeyU2jN4AkpXeLRlE7swuTS2x1opS4qiTtlsAEF0P+VZwqCI5Fmq538YDIRqJsfDbZ0gbfT/Ud0aKooUa22r8EY1MwvEsXIqlEx5y3MlVAEhM6ADuw0TR2jaKZfDfq0u3X63TVjxo04tLkneJeiX+XOx3I9DVGF69hjyjUPdu+kW0ITP2digSEtIK326UqmWZXHh7xnx36ILGVyoRzy+VbErFCHVcwx4OQd8v91sejQro/4FNWZeMd82P3QlmkShhDu/OmWDMOn/V40SBYUDyWcRwERAlsEwtA7gYjPzgS9IxiP0SvbYe/dFjUNW5gCAQep2eQUhgxit+EhLEbtM8KfnfioNvo7XMAUb8xKpEP/wEoyl7piDpihehGZJTvl0p5adoPNLKuWcFDxwiqtXDRaKhF8pXrZd5UcIMiTNxj80HG0u2UdE7kcSmqDwdtLhLaez1LfZB4ciQQ/+WTvHlX37miH4gOOArh/ObJ/Kn7XSrasbawxPAubXtJpo7gd2RWfAC0SBnCXaRJguzkadIF6m5A56sV1hS58PSuA== 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)(1800799024)(366016)(376014)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: eA6E9Xc0TzBPza9BBy6kv7YvfB4m8rqA4BfwpubEphXkMw9dgW1TwwASotduWfoPJUONggxQ+ix4z2wIxfR4Tco5sawGQ8pTV+xiAqOWmdspnzKiiW9k7nuAViVpfQa6FX5QkEmkNtDpwyOsp6Qv/UFOr+/a+0lCqBdSM+i4G+en9poembrtliHbMCTrUOwO2JTV/4Sr/dxt4Uaq5s8U7MnMdlPNGcQhf7NXbKGg52M7PaUP6yPR+rCMaGLfk0JF46SqWs3S6UjbTxP4dVARWIfaaaDfxBLyP7WIK43TKRxeaNSRVJTVqE/+ZiIyhF90ft5mUEWZ3LImrDxf2ZxJKV8qtJWopIYUBHSLuomENlnL3i6dus/9BvOxaWtHvlvFmjISooZzzO2v4KxcwOUNewH7HwVzI3ENiis+iD8USj/0KOtqiKnexpLBERWC7ypcElQlCkU4517/lYDQYCeCWvFPddFK6hh6SQN0IaQULZ0j5oBvrJXuCYbxjWdGHS7wG4v0aXbiUKPWE4/uOf7wcFB33NKgw3/Vk0x5DPC4uvWakJWPe96fMa8SX2pc3PvgHOpJtgOy9LxT0HaqEfFmxO+NQtIp2rH9oQH+3bcpPQpl3WanGBYheKOsUgcshN++JYH56uLIPMhymCJyP0u87Dt9AEMgFIvjzCvmkntdvEV3MnFMgfOQGHnG1SrmxFu2qMwG14qGAEFg6xRhj+E/Um4ElknViACA3ItkA4Ei2zNe2H7N+Hf4kcFXNPAaMip2wy2CUbCm+J5s6mq+3IrHETAvwSMbXGsOUlyyr81yvl6oBcp34C1xBVcgbmMwiQ/Gi0RL3VuyFAkzGofT620BdXb+gfI+ZgWKlG3F8qvo2Wei52BiP4OiomhkgoA7JsXNfi5giRix8JwF5rcUgFzxlaNxb2R9brgFARhhxqqb3GGKF3vkv05GfUsGstVp4S8U4EDffV4PVVuU7krCB81fBwtxMnEqHK/xyq98IZvyZ0JddNist0GUjdkYBmtDqWq83HWxLC/3prWWiyc7V4E4pQAn5oJRmURw81V4r1fh542llzJvZR6XiUxpICNx8sRS5NOxZtibtwYvrzXgUcdjwiQpm5Yhwgs+LNklI1VpxjEJj/Zm1x2uKxcrFssNDF7yeXEXq1aVyAYK0B/WSBwe+U4xgWPZFcBiHqkFRBsz7asXRcPCxpjfvpylrTYKHNJe7EJpxOl+KHjNYhMIIgV5iIY5WftHmkjvIgAUhqmZ4dIHasinLTzfF77IXXQ1pX3FpGdTNJxmWSSMk6gQIxFEeoC3zgOJLIFCoYga/n/Mu+Pl6ZHo5dQ9DChaWvCANQBjgposLJpOVm+9inoZDAFk6lcAG5Qk4t2iXKd9jZly8rhdcR2up5w27Ur+xTTWvjuuZJLtp8OFkWQs5pBoDpFoVzPz/PXYDWTFbQE+awTYkY2muvFja6qaGAYH+zJnzQjmQND3lZHMrp0tLlJ56Vq3L+VSb1RJLbqvnykQJPHaoH4oVGUf9htKRw8V0B5GIbyxSIYp+h0sjnr22xo4rFX7EJDIxMjXBCStsC2PL5hUalw59Z1TJp80xUwEBqBDfYSo6gAglokTVX/B/kmqL8/bFfsDehadF1HHNqFNJ2EDdAo= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 608c68e0-568f-46bf-a672-08dcddbae5b9 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2024 23:36:37.0417 (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: XYFLAWMYcKcsTPA+i7cTSKDtf7x/DOGI7ixiN9SyGErG297Qv5XQJd1mgw9mryi7MYjhvTmewbYrBBIDNK7qQRypDEt7mP2EtsssnrTatyUbznaauodk38+qugCDdthe X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB10634 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 f6c3aeff0d8ea..82ca137621cbb 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 98b37dd2b9013..c4647ba912a63 100644 --- a/sound/soc/fsl/imx-card.c +++ b/sound/soc/fsl/imx-card.c @@ -814,8 +814,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 Wed Sep 25 23:36: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: 13812556 Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazon11010068.outbound.protection.outlook.com [52.101.228.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8EA5B1A3BA6 for ; Wed, 25 Sep 2024 23:38:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.228.68 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727307495; cv=fail; b=M8u52nFTjPMaHp9kjczjGI75pFGg1dk3GAw7CPHFeqQ2ECOY4N2wRGtshLW6gMn33gHpjPR2eJ8UQDsOTTmOlzdmfI0qArxN0x1oUSx3RoRcQT58WsTeDFAAhW76B8601/sih9DYzlLysQ4XQHw1r8lBNQaeWSANuO5ljAPt97w= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727307495; c=relaxed/simple; bh=HZ2bqo3ksv8T6EmUIGCC37GT84zN4xE4rRT2errJIqc=; h=Message-ID:From:Subject:To:Cc:In-Reply-To:References:Content-Type: Date:MIME-Version; b=m6UPvPh96ljLYknZm1h5yTkLtth0gR8llWr+uIsuRUkNs7N43sII5W31unXjWUjx+muKiDO2MzdvL7DvOhPhepO8XxnzRHf+9H52UObj83Cq+uRoahHYmfCmvB2NBhBF5toGCGLbX89f+XbFTU/ECQ/A3l3SSFIXfybByNJMuY0= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b=OXbXmOOe; arc=fail smtp.client-ip=52.101.228.68 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="OXbXmOOe" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Ed+/E1R7zjgiMCOaZ6TuKdr+NyKrZ7RFDIXMcJIOa/YEGdqwp/IwWQqm+6+Sq0zxk4Z3bjjhvhJEI9uaHU9gL+d1RWDvubwsUnIAMvFGPQzyLAC5L0LDqwxxRQDWGYQvk/jDwx1HbzcX+wq+FxoKUJ96/5GUq9OiEVhlEwP6FJN2F6SefcLsOIkW/H0tduovOpffPadyuLPiUxl+OdfNg0lGKEV5+fnrT69HI8xpniuXdEUOxewWmUHnRhEptctmHB9hGaKzfDYVbsxcmrsQLuuR4qj1dWeOWCtfTHSjXum+Uam8ogITHBAQMysmPZDXRkGY0c/oJQfLhNiquLafxw== 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=rI6P1L8Jm1/UeJH/CANI3T0jC80jDYfZjGdDvVOhVLs=; b=K6JDoo7GilfKm6EgbY/neRnqeIvgjxYNQSdu4EHMTLPH49RDmlYFUaxMLZdsYf6gTf5QRasMfUm+7U3Q+NeOUA7VE2R3spau1KWDRYOt8+VEVhV2V8K2DE3ARUHdr5gsyc9LlfuTc5ZPOnESReh/OEuAVB+D/Uq0yqDlU9IjQTwPQyKl0ss4gdvMSjKXDXrC3SD/9Kevlk4OqKYWiXuiyBC8KETr9Iy+ZD8R6AL9f8fXIES+81ezdZipva5K5qUWP8W5OpVCvPgbxlt5wkKU3DSI7gdWWMgQ6NwSxEBOSht8CYZ8kKGnfzmPiOxVvYiN72wtHWFudtd0sFsldK8Jsw== 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=rI6P1L8Jm1/UeJH/CANI3T0jC80jDYfZjGdDvVOhVLs=; b=OXbXmOOet1DpuMDsD7LcSFtGm+YJCRU+dbkPdzMSvtlCFDA9eJGPa8S2T2QCs1bPnWuvmqB1+gsSF+Pa4ikV1E6F6WxAn8N4SUvFwjQwZQdGH2ksfvnn7ZmPNSUFPFF9r4DMyNNvhfe6aRbeFZv5+frwCd017ELYSS7XrJEmOjQ= 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 TYCPR01MB10634.jpnprd01.prod.outlook.com (2603:1096:400:292::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.25; Wed, 25 Sep 2024 23:38: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%5]) with mapi id 15.20.8005.017; Wed, 25 Sep 2024 23:38:05 +0000 Message-ID: <87msjv9ugm.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 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: <87r0979uhx.wl-kuninori.morimoto.gx@renesas.com> References: <87r0979uhx.wl-kuninori.morimoto.gx@renesas.com> Date: Wed, 25 Sep 2024 23:36:41 +0000 X-ClientProxiedBy: TYWP286CA0009.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:178::7) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB10634:EE_ X-MS-Office365-Filtering-Correlation-Id: d7a5513c-08bf-4669-1d5c-08dcddbae8c9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: eii9VMyUaL9vm/A/22kVr11nWFkcI1apaTacmSbuQq8JsyPV+kesEG5FpbuyuNDYDYcTgTCZfL5FFOmR2E2n1ypZIHC/l7C3m8AKgOPqn3a5zB5Kp9W94AdZ00vOKnFvzE/sj6Hpt/Rvh0Zsp7VQa+ouU3GYajFLhb9KdySmlBAUNb2V851xMoCZtFZGXWC+QK6nqOQBKSKlOrUA9pfmd970jq8JHgqr1cBT7lV5sdPH31+Pt0fb2Zn1GPqfEA5sjkRBP/wX3Gr7ue0kwhMH6pAvTSwOfk7nnvOHHTX2E958FIw7tCUKtb4RWnRuF7MkkQ1Nkf3n71xmztxuXHGIh3iPAjtrwhEHbkPf4Fu6zQHdj152wdAQN/xDudgUNNv0sNzZArpoAs4e4GFbupyMAjbhyqz/mPSglD8+N3WSaQrdwENF7q+uE2uhrv82aERtuX78TWKITOXOPPEIGLIv0E/xG0uvmpH9HPO4P640c12kYExUS1TJfRZlOkCcvLXqELI/KhueRnsdOCRDPZN33OZkA96kWViTJ/jLtkN2kyjSKWD4Pyeed7Q3lFQ+9/g6eliUte1kBBbK8xcINB6l/E6XSFO3aWjwqPV9fbo5+cL5t2cz0+tu8UZYZB4nEFUGTHmSDYs4JpOLHvUAWp6tj325x0fs89KKG/0UCJcAg8YcnI9+5rAR+A7LdXIEM/aIgmeE96dF/WXXaxy6r1AXrs+Iw2+3toIsRM5exBYz1Sqhh7gmZ99OYgeOY1enPWLrJ8aXsX+VAlMmgo4UrM9GSq7wC02Uk8dWpkU1LXFSZmDcKdf7WPLoLlOmtOYLaUA9cF4hTacSvtF209P7P1AaDvlOp16NtiWp5Q7fB4+DS0drqiY1HWozz1uz5E10I/gTf87/m8uO4TvFOblqrJ83XMnCFOn0dUAqX9W6d2ljX0+SaFJn9his2nqB9/lcSRyyCmq/impCE6ci9+lUWaO6H7tIeuRBdkZFkotvGksYIkVinPtn4gVn1IIgjzagDrb6dj5lYhlU1CJ0aoxaz57hQAv+rAq/IfN7KF1L+XKaDoDf+gLVsH6njv4Tv8uGaccY0xApinHr6hRQvUkEqEZAPoW6EkpzSxO2zWnB/OAcD5NitZ9kj5BVGLiFBxyAspGWchotXDmTLaRNoauIY/Lx3sZNxaLoZI7K13IBPmq9BERA3I9npUwrDlWY088/76nSD55VH2zFxKrWqs7gL7aJDJNahKwHx+dQCKJc/foG5fEXaKJi/3JNU0mNBbN5nFRhuYN/Jn9XispQ8cGgFgmHJ/n4QGTrSkNrS5O7gmqCnQ7BhQsN/ku3fRX3jvxwhh1LfBSVZtODMtiwBzwAdgE2tQ== 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)(1800799024)(366016)(376014)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: mhEQZpxewQJcR6c6+s8kO0yBfd6VEyaHm+aYQI/D2No6j1T8yrnxFys/qZQwEmxV9gby+zPRDETnOWQmfcxoMlAeEdgpEPejUaVFR1zWG7jXHOP6oD1e3KYYhABV0TbFbwyVLx8P9eTnBJmz1YO2hLRUwtR6uppgpFxE4FOmUDsQP9IFMvpvqciclg48Zy+UL+YFjgeKuwApi02zKgVZnSPsvs3wH0UN0Ry0JowxQm/MSpoUWoEsdQl+fcVt1qOlDODPXQMwLiKtCCxDwlKCr2pyCGp+lEELuDHowkMF8AHYNK+C0hHJyMiAIW0nNIwuFA9e0jp08NyUIIq8+qdkXAvyQqmOChyEYkrTRAeuZ6SSjJYYVi8H9mP5Ue58+vRgDXCIoJP0LWJlAVh+Ab6Q/sLTlSp89v3OJerwYQUh4+qiOXkBAuQAsJaNvlmdcSbRj7CSoDwE/VjA+8BaNtXfx9YYZKpyZpX4Ie8q3gSl2RWxjVjHuHtZZpjVGmbhyXr725/yQfLyJvNrbSvtoBlodxOp2WmiG0hq2UGok8+IR3wU/rMAL9w1MzwBZnztmgEtpvk+tD/DgD+RYq5KhAgEFzSD6HsumyB+yz0STUKc3fQQ4hbyK5dDvE2+0p68Yfou+JS3EyuXQZyoCqjDzEo/NxENqq/krmWLGwhqdtcn2n/FqoMPY6+suvZujF+LnvDGmYgoOHAQcKFBbj9H8pb1DqV+/dqqk6huQebISH2wEQ49SGDZsxRahvH2OZjOOP+Ab437h/FciMaQbP4ui/zTJv4iotr+rXBFOMxpdFNrhJ1+GdyYuwaf+Zgn/ot7TMsfB7PjUwlKcIylr1cYQ82msyIn0iaNXwVe8DZTca1FEMymCqVcy1x8HyNrvIXRoe3u72161rqU4f3D5fGNHACAvVbSRqOvEUFtdmlnVN4ymx5EZGIsHMbhBqphu8U62qJ2vBgENFzqTH1BpugyqdN/TRsS2fsDgHUUlaw2xX/tY1hqvF/5MFoqDOA4N1GQGTibT+2y4juwntsLSUdDkjS3ODvcspvO/uMLCsCnCR0ugL7s1cz8xFiPrzcWCgqugvCLj0lPmnteJhGCdcUJnK+8Gy8WmLzzmsuTBfLhF7W23em2W7tdxDJTmSjpNyd8abjUd5RPK8AeUr+TFfNM3Bjn1NPIq2oQThb2rZ0uIGR/PmK/Wx0Plj1feYuBW4bqbuu/vKEsQVa/E103gzc1/CJgNeGkSraen6rhHsu5OJKIVTBQBVMYzLWPtyt+qcBoi7p0yINpwgOaPjNPeuEHf6AKZXQcK57O2eucSKbh9owZGeO4i3dcgHE22zXHhGtmUPnXVQydWd7R5JeATh11TZErT2RAuRxF/6/FWNJqEqYDy+9mrTltBtwDoMdAowhuTAb17wNUsfenuApi5kBfTxvwztXtGxQQo5mOy/4VOvatILX2oK9PAEvOMPHb2OhJaPfAIRGeRc3b5uoGyiTdr5pCGM+5Xx1RQQ+s/GRU4iAj02BnLPnfgfsYKJEuGsZQyd7SNVd27CkLoR9NGOutUFM61vDJ25TGA0jVeJLxn97BATRMVepqTG5qKLUVOWF8vzSxeDXd6j3ndLEYEIzJDKmvqhHnR9Gkm4HqYRILexoeNEo= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: d7a5513c-08bf-4669-1d5c-08dcddbae8c9 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2024 23:36:42.4655 (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: Af9irRMCzarq5JNTvzKHoo0KmfGvFhxZmc067Q1//el7n+ygixDJfYFgkXZZGSZRUorps+E9y8Nhj7SJuhKhU/iQkcMga8Es3T+D69s5uJKhoqBU+Zz4oINubnnXYwei X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB10634 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 | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sound/soc/sof/nocodec.c b/sound/soc/sof/nocodec.c index b12b3d865ae30..d59cbd3a69964 100644 --- a/sound/soc/sof/nocodec.c +++ b/sound/soc/sof/nocodec.c @@ -55,10 +55,6 @@ 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].be_hw_params_fixup = sof_pcm_dai_link_fixup; } From patchwork Wed Sep 25 23:37:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13812557 Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazon11010068.outbound.protection.outlook.com [52.101.228.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AFA371A3A85 for ; Wed, 25 Sep 2024 23:38:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.228.68 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727307497; cv=fail; b=QyXYEbF3DO9GzlXS/eHKNGRXmNn536H7jzy4FydPXozaJQNG+s8vmBVFQwb3hHFsZhJYIRLmCIyrEhDQa2Fk7hghY8CqfdA28QdVDv9bg0ECwO3L0U9ChEOexMG44kQ/kRMkX01ZjaiKDKsr7PKe+WJ7QKjwd4bvXYfdRxYxMN8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727307497; c=relaxed/simple; bh=t1oZFar5gexZhHEda3sj7dtfzjQIQuke3UIXtKqTauc=; h=Message-ID:From:Subject:To:Cc:In-Reply-To:References:Content-Type: Date:MIME-Version; b=YaoeeKOLhim9TwB0czhj4uG7kgOAZbOtCt7mahlXMVyxVDLPtvuSbFxar+jch6zHGP6DcYAlGPWaLvscjC+4XQSzg8/71lP+XeYy+jCaPzlfuRrPp2PifASJzAxcrDyvkGCnSUuSUjmeTbQ5K9cHJY8G615w4EiyAh5yN+pWqKU= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b=heGgPfIJ; arc=fail smtp.client-ip=52.101.228.68 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="heGgPfIJ" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=aSFEdt+sDDUYh3aX1ic4R8myIcpFzjMW8r0wLxyFiygbgcnQVRKwra8/fs5wt2ZLhkDpxPmiD1zmUdN2KfRI9y0LF5kdh/EF0QsLv9qBqp9yjYIxIJP9QofjZHeZ9IZeFgDHtAYfLTwnmeeeP14mok6Rh7PpzP02IVKBTlDmxps7BbFOREwllXEc9wShUpmeisWupjMV8+5uV8jpgWFTU4sR75GqRJi5/nmvtOwUQlO1bqCQXcYAyvYc9xmWNTT7wBwstTz6PDFUTRaz0OdoTKpDaMN6/n8uBxXL6ovTyktNil+WqbGNcE4mBurj89wdLsXbiKT2rieKO2fuOzowhw== 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=f3qang2WhH3LXg9um+rVOUh0Yh3YMZZyQNp3750xo7E=; b=STBVBzB+f7Il7zYugdmR0v6Y+OWnNg0jac9+IS3c4Hn6VSc8cVqxJuJJXruoQ9D6CuGvKAnqp5dZ6YeAwx5FM3+HWqd02cyAkFWWy3Zke7Z0c6FHWxBDz7yW8OQzs3AyCGFiZ76rCx9XumwUlVsMWfgKTBL9CWXUsjU8mTdsBRNu38IpxCXJBfGKBKLrB+ejxwP0uta7b3NAYFtIUKjn+sySyu76QMCnq8tm6pmqT8kdlKU42nwtAowGhrXPf0h2zyszFX7hPEAytXULZme+n8MOBt63Iru6fLhTkCsrfRN0CSznGrLx1VXfi4NnQljqYWS0ii0x8IlFrpnofxL1/g== 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=f3qang2WhH3LXg9um+rVOUh0Yh3YMZZyQNp3750xo7E=; b=heGgPfIJR57JfYXMCDbq/ziBN2CpgIlHvMCt8lwuFukF90PC9flI3JwArHd6bQYgxCw4bmcXBcPkWeylII3lT5Vz/xYze+OMmSEgtucS10r2tp/lBpNoeelEtxsKyg7+eZE+qvuGw9+/CKC430s/CDJETKBBj7qWeI8nvMJvSOM= 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 TYCPR01MB10634.jpnprd01.prod.outlook.com (2603:1096:400:292::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.25; Wed, 25 Sep 2024 23:38:06 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%5]) with mapi id 15.20.8005.017; Wed, 25 Sep 2024 23:38:06 +0000 Message-ID: <87ldzf9uez.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 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: <87r0979uhx.wl-kuninori.morimoto.gx@renesas.com> References: <87r0979uhx.wl-kuninori.morimoto.gx@renesas.com> Date: Wed, 25 Sep 2024 23:37:42 +0000 X-ClientProxiedBy: TY1PR01CA0193.jpnprd01.prod.outlook.com (2603:1096:403::23) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB10634:EE_ X-MS-Office365-Filtering-Correlation-Id: cf337a11-b9a1-4d5a-932f-08dcddbb0ca9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: UbJUoR4zDEL4+Jvmf8cQFmaPHdBb+r4UpFqebUK+ob4NA0H5FnBxoIoTVJkwf0T6Q9kvv9lTj1DoCbj4JAOjW4QA8Tfz94A6eTR/Newrr7X0k6LRELRteqpRdmEKvycu9o6DGxX2u9k7lDc59+LwH9LxFsBo3qgE2s1L2ll1ZOgE0kpS0qiP8HQIxxAyH99D2WHsv6HXcHJ/Oh1GtCz2u0d1G6/ddynUi2u3rbxpB0Gz2D50eEQnJo2g608gmXYrX+s4X+pytSX+KB40szhJ4Rub78/Ixa46J8ggb6CL0EHAWRRy1IsnJx/qrGM2SLNrDPRIKZh/vYL8rTdVZ9pr+BPnzDJCixxcfmRN0wtgesIMVcvzbz0dcEDD/YtHw8qXq4akklTXUR/W5a0XL86IGfbdff2H/kxXnmqcnhMI7MNQVgN+GpMg98B0lLEjpuEKVzwGnjsKnXAeFPm2nMpM8g/NmxUS9HuS5mmYwA88+7JzmswC+5fMDXIAcXnCliOL2jk1IOc27dQBLyil0mVm91zrFIk9/qltzECGuWIJIh1T8fGshwJ8r2AfIOqAYVOEYsH1ftWrM0HsgjO4EKMWfCWba9gAXffjiV/HtG77bthdE6P4PsBCOZeJOnzrluHgcqQdiSvyWOgNZOyquKhOgpjW9hlwe9PaJU9ZEhYQ8nSkmePb2HKluaaRpHNBE5lqpuAk3AALR4U8tbuZjR5eoVjchiNBXfz/aT2AaE0hC8Ugzb26ctHOTMGDqoikcJJ54FFho+x2BCEeAy1z7O6YiMaZdB9ounrPr6BdxwIh8vLmU0VP/YTMRwBxu1Wys9et8Mx3UgciU7IyCQSBr+fpkbXi+OxtTHWlIZO1vmPQ9txEhe040Hgxi4xfwCBrOeUPTmQ5MJ4OLIsOLjeHoAugCEBCqRiobJAzecZETf81tFIDSfSYF0g9AU3ajV5DGJnpUYynGyAY9lp3eMs+Yr9tPlnmwX10bqAbYQTfo63HkF8iM+IkpYt+TdHcOMm36eBTff+SrFMWcj40HOMWjAn1vmpRXXNCqulzTgV4+AdyULzhmlrujrxnlWxH4bEgkC2Q6ij+1m0pggSIqe9tvkTEk4f/j1Qwrk7fsQU9e/lmkFCdkHONPz52THBY60TRQpVIbBjWvEfbEwQK9Jbr4EzJXd4CeD6dPxUk5qBIw5fi9po1eg67X3ZpmHbfBrQ/oCyBZMtPKDeSrtl61ra9oYEnxOxjmEBzPj2OiKh5UjyhN8Jna1IGhbuKgRpduhZ9+OYVR1xalJD1vnEBNYjVQZ8/iDWlfOFaxctM1xZ7He20bQDTR+CCqFdVp2WWhsu6+aKJgfwa0q7xQS3y/Ekm268EDw== 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)(1800799024)(366016)(376014)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: F1PcnlvawosIF1lSxsPB5wRBlUNQSOkSOIC/SWDf2nYcs140npUQOYKJgEWb1Uf6+lLMrZTG8BvZDmUsvQBGWXhhlU/b3JyAkwpf/RVYcWojCmcwk0Wq9Xhv1PN5yBMSgjpA4lHMjdcHMLOdHP29HJVC0bTBkdzx6BSwf4qguR2VKYcnk3I8MZjEmGEVImdXjOqd6I+hpcHG+BEV0uPGojgRiYcTh+Lv5LyhDEaCrLSi28lninUQ6WG7QWt/h7Y+dN+TmegNIdXYzys+qEP9z6LBkkTA3p8GToH/ckQH2mF8cfDOx7co+/lUC+9XoT0G8dQAyjjuzmKCD4JOusnJGBWcM1kdfMzObGS8W2U1+u5ZptVPEaT8uu2CeIA6z7lAY4BL4rBD8d/MckODzcxlgpBgfo0j6x79Is6PUxaYfm+YiLaWQ7rT1oxwFdxKZxEjS2SE5VtYgsO6Zkj4KJtBeW2Kt+8SHmdFSdgJFJ7uYipLwf7PDV8sXhydOi1dmkvtZ3jWAZWWvYL6bdodpNA5F+dujwmh3ISywMiRB6pNLojdSlD16P/4r+D2qswqiTrThaxT4X40QMic0IsKUJd83Qh++nkrZQTGaARoCmcZIiQokoL/pGls1EWX06KtdkVkzH4g1WmooHAiaZb0z6TZkNGrZXJtQ8k3P8czyj77IaqupdO2dgcEVqoM533eJInl6aTl+pB/i6L0v/ywhj3YXNnfThbjDe8zrcpewA30lN2rlDkbENQbfX24PL7y5FpL0hHX7Lk5r4L6da96FFthJ7+p4uBSe/+oW1HcslO9cgMY86gzmoCDclpmGBbyzA2HKE5jyfsBUjHx97GVarZLGTdPqK7eNhylgFkm0AbenW25Gnl+gYbQSE+arAt1WCLEiKtUCtQIM7X5ZaxBek/Y78BC7pqua/ykewDV9FFqL6RL25q037kQI92eXBv7pPSiGFbjoO9+URkCBCCOKYInt5Xt/guMWShGWraA2b4Mvmh7sS+5lVXmb/jKwGx2RqQPAgyu2MXnkteVCu9JlrICrA9skdSouEub69ujfAJgezFeKZ6DwM/i+nKypGVqvLUvxeJhP5kV72x1DKL3gAycbrRndkztWBEBdOU93+/SP+NSPyehYf9/3lp6e7nGxSXyayNwwipq6bRXloCOKjQE2IMG4boLZzkJ2rlT41Jwh2NOCpFsEOQgHFsHMIhvV4LYIcT9JCOIPPP/EwrBJ6lBavN/dc8ffT1ndHN2NYjLD4v95a6IxFTXzEfqmjd6W+ZDFGpq20qJR4HueLJQcCvcV1stx+28k/+mFw2hRcUIl1czK36VtAkAAQQ8dhxbyEdChUOt3IYIiOF0+PwVxphzCuEsPHDKa43Jn9go8jSXqyJ65kr3wG2CsBrUJ4ine70z+3LCHBeqtbypok1gNrFwUhLxaQ78xcWS7lgBVBnkXM6oze9tLevGyeg2lC/arzUPrsY8zGOBBoPBrfBm27r/LPr+stKW4NWXZSv4O5+putwju/ENiAdykK63SM3xSoqRLsSeLq72fHmF7J481+Xe9yexnWs4MHK5Tw8WeQRlwSgpXn5B4h8lRZlVFE6So5sw7R62lXPqvysLK4LiTgb6/g0ZBGzHRkgKvLA/9WFFthk= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: cf337a11-b9a1-4d5a-932f-08dcddbb0ca9 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2024 23:37:42.8778 (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: LEWoCFuE+eYJ13E1enjtRsx7fRGQcEKq7Nqa+/86CT5L47JaGq07dHppLmoBX/HTj7MliVr56LwlFdhGZafxz7Q2nD4EDehf9aUIygoCM89gvq/dFtw3vkHocn1kkT7E X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB10634 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 -- sound/soc/intel/boards/sof_board_helpers.c | 2 -- 17 files changed, 4 insertions(+), 34 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; diff --git a/sound/soc/intel/boards/sof_board_helpers.c b/sound/soc/intel/boards/sof_board_helpers.c index 24f716e42d6a3..ddbfdc6f88e47 100644 --- a/sound/soc/intel/boards/sof_board_helpers.c +++ b/sound/soc/intel/boards/sof_board_helpers.c @@ -496,8 +496,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; } From patchwork Wed Sep 25 23:38:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13812558 Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazon11010068.outbound.protection.outlook.com [52.101.228.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E76C21A3ABA for ; Wed, 25 Sep 2024 23:38:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.228.68 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727307499; cv=fail; b=LN/vBGRL6GyVchy5iSPRD4FhbYJNyNxcDvuwI+T6dhsGHUX7gjOHb51wGRGvD2w4/+RQZlUo1gBa3isBEYSzuhNQByKQaiLWI2K57KYf35k1ZmJH2GE06CglkfVmeMBm+THO2yQAnzmumDM+tY2Bwu9rEhbWc9q4175uCmRU4Z4= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727307499; c=relaxed/simple; bh=+3iOY++1gWaDouYT9bhhdLFKqUAA/eCCpStrVxpCZ78=; h=Message-ID:From:Subject:To:Cc:In-Reply-To:References:Content-Type: Date:MIME-Version; b=cCXolb2/F8U7ZTXxDl0z+V+o87H4MImFMx1W252Q89M0dMgqioXP8gpRanFE8V7roRRK4/KsgsXaPNmePoYnrEEhGEMhXtZ3hAa1r+eSaTadulc9qXP+JEyH3W5nAsgIuUrx4GguwE2kBfC5xpIIdhtBDx5VAoPp+US3NGEJ7lA= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b=CJBZl1zc; arc=fail smtp.client-ip=52.101.228.68 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="CJBZl1zc" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=kESRaMRK33nIODyH4XVCP9MvDyelxCQxEvT6m2U0SAoSi2heqpkNGkUMY5rraAbsxDrUOLd9YXDiYq/Ww6BzN3FfCYy5UdDOWhfG3Yrqb8vbQEfv3rfvzjIEq+6J+/N4jB0CGhiQ0GCHzvsDTRbZCYT41DwGBPTW9RsoWCTaktHkYaCocco+x/RX/q08Ez9qv4YmwqC6LAbmXt8jA+L2PDbOBTrBH58uoJVLMApkKGPvFT87vp/K4gza0ddccdAEh4cOj8tVm7gPbdH3MRrQJ3yXDusFZJVKFKY3IxNqqKu1tHbB+P8vfwYhab/Dp9mauUGUfmW6A7G6IoiiHuO/FA== 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=g8IYrgY9xh78y2T4eCk8GzBBZNoigkoAW2Bwpep5bUK9gSEto1p84YzoDDHMTQMkPpH4Ri6BTKRpmrEZr7nWsElvuZXM1/7JTPxe2FXjnQzxD+8UPlnaHhoocP0QX41CKrM7VNh6Un0IGzgtQxzJRUokjQ574Alhirwu26W0HdeCk+0xpEAeEWCKuxCYqT8DJQtVyKH1LG58ZtOY1LX9VLy5lmIwkYxwbtc4QMWEtsEiig9cOFlRAmoHO80ZoVtcj4TXY5I8WoE1qlPrBe7geF82kLK1WncnZ9cYcuZN2FRzfOLjEvuwEv1PO2qNUTZAzPywDFHSzzg+vB5D8pJG1Q== 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=CJBZl1zczZHcjW60KPDZ+oYBZPZiwHU2Jfxb67dLfxmcCUJpllHJb+AEYg5dV11RvXVQtA2OzvFxn3lAJ0X8LuxPvMfmdc95wiQdDWvnvTIwVJzxGdVcEeCeuj3UCUpEIdCv4Pf8+NPhfY9zqtNq887hC8a/B6XIdjA6UwIumvo= 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 TYCPR01MB10634.jpnprd01.prod.outlook.com (2603:1096:400:292::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.25; Wed, 25 Sep 2024 23:38:07 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%5]) with mapi id 15.20.8005.017; Wed, 25 Sep 2024 23:38:07 +0000 Message-ID: <87jzez9ue9.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 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: <87r0979uhx.wl-kuninori.morimoto.gx@renesas.com> References: <87r0979uhx.wl-kuninori.morimoto.gx@renesas.com> Date: Wed, 25 Sep 2024 23:38:06 +0000 X-ClientProxiedBy: TY2PR0101CA0040.apcprd01.prod.exchangelabs.com (2603:1096:404:8000::26) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB10634:EE_ X-MS-Office365-Filtering-Correlation-Id: f8ee95f9-0124-4b0d-1929-08dcddbb1b8b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: M3C0lbg/ZATTWLnuofuo5CUPlcBXy7nK2WcElp/uirQqnFUnSO1MZcPop/mI+plj/1uqRJvlg+8rU3A5RvSeBJH5OHSfmGz0/8/4EswJBbR1Qry7zzitcMBW84msa5T33bii3DOmi/V1SAr2E/REexFG1rLFBkQ+835sq0A1QYKnXKHC4Pza4Uknt99f9Ylo4LqP4oLy5HPV2+GBrZmnq4dstGTQonHxIP1T2zqjuSc267Cdp/DIrEf0hy5nzDcGBGnLFA+CNK3FYIWGvbAaGIFPQaZYYYbA7TqPkX2jWJp0COBuxASFjmBHojc3vHooQxkDpzHgvEc90O54KMxpFTGtRtt/IzH1rFNEb1vWxgfJo0DH5yxei972RzdE1UmQ4RbVkf9QYTu3VMwCPFFaExo8AJnDVEpR1MaDKZx2ypWh+eoMBqhsaAIE37f8BRY59bKRzQasEA4vSq1MyWdeOmWbZCdKW2MdpUnELDoVUJxEAK8+9cZArxkp+4qMXTznRvKWLlncm60XUgVMeQbR/uzPJ+TWg1U8o00503eapaZoIqz2/DQ7QtX5u80Lyfi8/7FTJbe5ODSm92ndoIJU+p4FXb3K5k8dEDEi21jZmcxiOLkFPfXC9dJEDDePFA1QwPAceacv0HZHUqANlwm1uWACwmErcQv5ffhjGlv00xpZBd8VOCTzqEIqjmFRdyy4Y8MbwfqdavqgcGZjLHY94hQuZ+8zZbFgPxHY3CZ88hX1weIcZAC8Qfik0zAyEnWk3UrQ9xesfPzIo+/vmp8CPt8dCFYhm4Od4fRRzguiIv1DKovM6TOI/07fBoDKzhDm2TM4vsCKSIo6Z5BoXIMkaOO3VWDpkQSHM3FNJkP2+cL6YBAeWEeOrgk8WKlV+vurHRTiX43BX2WB09LT46yFcr0PebqQyXXjTF5b/3LBQRZ3fUOVdAfqJB8tnWLrpEjJ/4PRYaD4kYnX40/p64By0LJu7ZRxCDWy1ysnHrWHBGBcriQBcSa1NbKZZyqg1e6EOMcbOV6YQR6Kfd8OIIFZOFNBIQ3npeglapNsuch+VW7QkUFDC2RVUQ8K2jFg3OjbhqEkeqGRBfpc2KMZ3LO8ItDvODTvZk6Touy7BvNFu3Exl25fcikfuT4LC6L8ldJTK8g6LCnujRU7A0Wq0svXvfaGxXkbOWHkv4PXLCblaOsFaq4EeJpdcYfxVsIsvH6TxzId/wb2i++hwIEG8iDIF3I//GPR0HgJGfsFcghC+PS3Dcqtw4yYA6N//3ary6hQ4xsDK7eCtI+/38m3WMykjMCQL7nGSQqRoPUQ29X4KPvDOB7CX5I1O9dq8Jv7DxKKFw3xxwa9YVJ/P3x0V9DkDw== 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)(1800799024)(366016)(376014)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 6vRTDn52baayCujtr+L9VzQwWswq2CVqy0BJ1+Uga1znyqI54HBTxmdy+qWj4Ier0/ldCyEmIKIu/q98n69yoX8SjSR7kndr3vtyFKkaecxrgojZOJyjdaUqC9bks2Vz75HQa7gK1gWhjYcRZDfxTK87fhNKFAqunaCI3vpSF26bALzSBgJr3DHYzRmoUDGVBnDUr7vra10tzO4AUuGjK4LBU/I8trEr1kcHBmBLvkGJcktd0ElbqMdcdiq1qwtJqAe4wEAKzIUKEHzTtiw0Nk0Qu2o4IfZxllTh5S92YATAJAEKjxi3+DBMzBc48QB9K6d6yXczQIfcAl+a9g00glFt+Ngk3uMIe5d25j4DeYDFtGi6xCTA2flLOCtzJonC6k/TpqtaT60t7a8Wdx93rO5HljSjd6XJ97mFJIaAjqDqPqn6GO1S2Zq4W4tsu9LCwV6wWTCjL+nYxKj1AHvXW1b1vfa8WGRrDYSezq5IWOwjS+pgLsHwMIzRsNAcb+r0ENJ4wrRgv8PbfMEjcISs6KJoTo45GxjdavB1BsZk2cYRZl8lQGI9hxb3nUSUkd6w8jgbEWFJ+Nyuzc3dxVUDyKXpU2fL5u86hEu3J7LQeFljxlfqqm4EpIoOTWv3iD+dctXAxCbG50SaH0yYJcqHshEXxOhHpNbr7zfX123dA4eUZpoTbYLnwMmO5hjxgXdP9VlAcjNDFEM+1E+Gbm/Qf5DXMvSH7PLJ4n1zoJTD14WrVs7Lyfoqv6u5M4ClbXdZd8Renq2wyEQTmKw+Rtw/7mXD/9KH88LA80qlxVvxQgsNehZ/rZK9zBYk4+BohtIz7yxcx86u6BsFjIs3MPQuytuch7tJhLqhEP6ydT2uUNm8B/Y5NoZR0ySFcegcuDc4wI+5a/D2c5cP5lIqbPcV6b56hyPVFIxR+MWiy6ZPkc02umENZykvvPnpflj2xAZvR++cdekxPi4fiImyUK3V8QxlrYFqxvuFtbqT6EVsbZ/tkEqI2Rl3I78/tnVsMrpVckhntuqSYdApKmc0tSkX14gQ54x7yuhg+eo8tPSwWURe6Cf3SF1gPv4EK01MhyMHsPAESYDIdHyvUCbjYUVzl1qejJEZF/qNdmhEM1rivsR5qIVbY5E7/8vgYpN0bhwTWRI93DaorTsLFjKzNcuzx9XsgFcRRxO85JPaSuBiH95jDpFSoInfqC3PthOKG0ULndO8jrAXMO9cE1mv15UE+1SHcGTDuFkA0ftIIzFsZmHJpPNue19b4yljcP9RH10vtQlGhLpnj9WwFKWMTnK6lIOe0Bmh3cYRDIGJRAAfeMXaHjDF9q40Zb6irbm1SWEJQagZE1rxO7T/s0b8+38ivTx4SRb0eCanWwhpZlenzz8mUr2zldKre0m2ijJvS2Vex9Hu+hrbsHC0hnOkT3cATR9FHO1EYibCfipEJesgji2GPpkJE61j8ykNm9dz31EEpyrLvVYH+NVA9ShQfU2o/hfLRJx0EiGpZOIb3uHiWsrxDr43GKUvPR5foQpbip8SEfAKrFCEEUd8kzGuVDlMdgKwxbP82GN5m52ZQIC2FT2lKNGpl7AOo90QqV3VzI7no8/16lsoleaoPoCHRERJHaEkJSwAzZLgGFsIyRR8PmY= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: f8ee95f9-0124-4b0d-1929-08dcddbb1b8b X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2024 23:38:07.4631 (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: ojWPBvekseMhPXU5bw/g5nQSL1uc6UeQF7+kLvoox+087ZcR9jj6PxAsWznbT/fLmOA1mNBUKnnvm3G+JoKwdb6sQE31bQrQPXU3yF48myjEwbACdUeKVNdftw5yAjJ3 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB10634 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 Wed Sep 25 23:38: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: 13812559 Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazon11010068.outbound.protection.outlook.com [52.101.228.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D384A1A3BAD for ; Wed, 25 Sep 2024 23:38:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.228.68 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727307503; cv=fail; b=UGp3CD+36qcswgdTyjjSbsCbgVWuTl78rxKhEvy3ivTDpOry2F3cxo3WxIS649hpByNaSLeDLT7gOKiFICXWpZ7w2ukXTQbb/OTA7BlIB0nEEl6x4j4AFZeYE/Pf+VTy04+gaFICeNBpDb/F6Ut/Xbz7PSKws/ZFW7qoKA/fAXs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727307503; c=relaxed/simple; bh=pQkpjcmPEcGj2ip7jg3igqlrRArmCPbx8KHfvymo0BI=; h=Message-ID:From:Subject:To:Cc:In-Reply-To:References:Content-Type: Date:MIME-Version; b=dmYW9sReUb5if9vJp1myHLnjWKjnWWHAXzj68ywK/7tdkGnwuUQ5yzZ8mcEg0ChxH8T1VE5982zluEQmBxwCdcQ1Gj7QUvTEM5zg5UkFeKOKl5XrbRr+sD5Y9kkqs2LXe7yedvXApoI0ln2yO/y8HEd/LD0iLB/aarGc/XxRqO4= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b=gMCTnRoI; arc=fail smtp.client-ip=52.101.228.68 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="gMCTnRoI" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=wGoNxJhk8pWPnG626bHM+MfWTgCUq8QY/wDOsu3aeAuW/3ldSxw2M19mFmdrd9as0xzZzO7sKUesktu+Z3wvWwHQl70Q3AsjEyYCYfNBHJEuFHUgUKbMH376RDi1A0l3J2/crpH0buXVtTHj5VsleLIW+MrWO3jOdzMhEJILraUBNUocrcaBPrPcsNg78w+xJ1Px6XjJ76oNlOHBh/3P+iygTueL3QJowVHDxETJzjFcbl4Mwvmkh+/4LTdE6BlrwP+NAa15uVW11WNfJeFxPSvTGL/YAqVgKksLFRfnMV1oEjUdAtmYsE7q1szJbeddXysvQYhlFvpXG+y/iqfTZA== 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=R6tpbEIxuKZukiDSwyxxVO5pM8zOO32Pd+HK4M1M343MJi2X7ZK8ZJo3rww192uwo/Ej8fh1oADPEkx4EVRVb0d1uq5iZCLQ7sXUDCN+qjPF6PffZczJd3J4qcs8vpNLQrs3GVQbEbPADTWFxcyF0Phcetln4R4m2YzY4G7S5Vkn2nBgEPDRXYsGasgd0MUdRGcOA1RVCLW3N/oqatw5FNXuC+RIgQ4UJPqYU2zN3fJp1ITMTshikuY8XamcEtze4TDPQ+26awXJ3CXTVpFcu+SGm9nQxL+ZZlQz+dRlYAl07L3KHQ7ohLckpobkmlAVysnEjWvi9Pfj609m0b44Kg== 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=gMCTnRoI92mwfrQJBoLA31/N4oV9b3zGnXXFL5FufD82PLL1PoBEyjjo3IlayTxGvcmpasVmBgU93oeDV99PC3U+if9fOUGn41I/0tFm1SQ5nktrfCQOH1e0bJuxjHPIqLCVrmHeQFG8307L1xhDMyTNpwxAAQfXZUh3T8Danbk= 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 TYCPR01MB10634.jpnprd01.prod.outlook.com (2603:1096:400:292::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.25; Wed, 25 Sep 2024 23:38: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%5]) with mapi id 15.20.8005.017; Wed, 25 Sep 2024 23:38:14 +0000 Message-ID: <87ikuj9ue2.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 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: <87r0979uhx.wl-kuninori.morimoto.gx@renesas.com> References: <87r0979uhx.wl-kuninori.morimoto.gx@renesas.com> Date: Wed, 25 Sep 2024 23:38:13 +0000 X-ClientProxiedBy: TYWP286CA0026.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:262::15) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB10634:EE_ X-MS-Office365-Filtering-Correlation-Id: 424a354a-7b77-4a08-8cd8-08dcddbb1f94 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: yftp9nq99EsAN5OEOwb9IT85RgUd15445FBYgv/v+AfvJC49zhJ7B3YVqmtPTHdRhehp2w97Mx+9EhRcqqL/3y3Y7J32lFR7K8WWiAFHZCbiAdDzTwE/momCfXkqdfBKn0WjNf/jhRwJD/HI24axha83TqyswD2jx1/3fF7KBpuRwrURDIlC+7A97ywbcxlonpOwoHhivG8KulsZiw2XrHNP+3VrYLxXLlbq1+dXmHRROEjrdeMrYeJZzUwMEzBoK3vDNW9TpyIDp4NS98UhEv5WIksiGhevGvK/4/AdBHUKjOJr4xbSzSw92Rwq81cPow+d81fD8iFw20o6ZeCssSL/HlGkNLBlmag7kmsWxW4gAx3amUzCOu75xRwl4b5C2e6vKerY3wUO+9WYoV1tBUW2COR+GcMeYltUDuroG1EX7Z5JYi1bGNCa+bKR/vE8EA0LJIc/0VMQc7gdG6wWdORJ9UU67Htb2TIPMkQb0P66d62zXCWSoId0VHRaYsK0rl9QJa0q53tCSpyYLpFDRmJhFaFLP+dbLdZXiRd2oV20tL3C0GqbHPBybhxK3pq/gnvcxlzIePcnHUUdGDIONgqBHVNuo5ebhO8Ygqyjvm3mNx+xVOvoYmmxnyFcZviuK64lL2LPv2fgrT4VFkuD/mlWCA3es3kbjDX6lqG2GskB6BoZVgo8V7QLGVnZnth9J8wqfKDuVH6uYeTGCvsk4gnp/SmGwylamxrAjeN4dAYhul3pSVy7KE6qww0xWzm7fULOJdLrKIO+20y7Ogeto2hKdJV3LDK3BoaBiCpGlyeDcogVws5ZBrpHfjHkSNCXKiG/xl7opmcLLr5DfAncLO5N3eBP8WaVrZdgQOnZldvRDV01PLNsiM6lOAADPq1XAauNS1EzyTahZZx2xewwXhIpBWgXgK28z9kSmMI1StroIQe/QEDcz4aIc8LgRcuT5iwS79rj//+61ZZ3Y2hq/DxXb5zNxCEX4xX+/NW3UUEXBdvLmNU+XAzyi9bdqWEnpCNFXWwbEQfBc0/z91nX0+5IWHUE4Oj/Xg71bqv+jj8EqvhRKmTxeT9XS6L08KQ8zeBqp1PVeVrgDjMZm8WBXGFOCVg940iyUFEY6by1i5lVZADSTZXTWRM2c67BbmFS1oBv67MlDdg7hOCpDwyrrnuDELtacvTUX3LVs1ZCmR+a0k3oGPH0uyEjrv7QXToks1Dvi0GGL2mor5/KrSvnAJ1UuYK1I5l3Z4gS+Hve1G0gnAteOOboj7SjTdJeGQQGdS8jyJiuyqrHZFTlKfg2fsMPJRpTIovS4hus2ASqj8B3oGJkTrvtDv3F6miPwHZCkioZ+ejKsPG4e4vil9zUQQ== 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)(1800799024)(366016)(376014)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: nSnwVNNQDHwXd8DEKPNRSypQ3eAsgyMmMI5bJk3TQRhej4Z6qUvzRJUzZCDelu4Dttfk+tLwtr3YXWAysqRPiFOwU9lV2rnJRjnLnOTq6KtVbVfCCvS8jpVQb0fElWK4gfvNqSZNzgA3btNh+QGG77wc4+RRJ62qsxNkJmsTSOnjhX5U105SfjEUjnyh1wbXnV3QLC5GHoNYrBexHauFIAnHH1t3kD0LSgwrZfR1vVNhiJCxlUmr1sRAPJ1L+vSrFI+AD7WLIHh45gpRRN7ELE6TjAP+CNQmjHKEZod+j6jy9OJ5YmbchMpJGKyEuapEA0PA3mxTOnS5MZdd763cXNOwrs8QNGdqSAIdVThjCqN6WWh1R9ISirQDzW6yP8lIOy2/82U5D3tdoO1ap404kgTmWV51GwZynS9V5Gy496A05LI0eNAvdugcJLsQgyteP4UT9bjxx8WX9zB9Zpt3Pipq2e6XIGI3fj2TOHzEZT1s9M99sWGBZ6lRAZqvgekrRF+rXxlDZNn1KCzPbEk9gyljOblme+4oLwucufojATNFAKM7/XHPi0KtZUUxpU40kW9xvTuGPNHT6Vs9ud3Ei1PjQkF+pceYYOveS6PjKWuheXIThuTlP7IItHgk5BfHpUfj+lkkpYtXzIHlI/16L2W7Y35uizX5EvMm+k02q+ntqleOfkE1pnpyxytj2/qWST8c9aMg6qbT4R9VEeLxnzEpQFOOFVrb6pEkO3TPZf7JbAPZh9ZF2HHJSrYp9MeZv301giJ+xkTJzlUaM+TzpsyG9BykSiWEh8H4PB91951L6qEfSDU7u+W+Eg0Yv0umJsCktt4OSYSqQL+iSA2SE/x8/nbNEypRD4Gny01+QvT948nU0i76HVmpw6UQut0mmINBYlAkfY9+ZVrmciw7CCrUaE4x+aiDQ8U5m0DTczbq5aj4hOYDSyjqhfXqeoXT4S+MbL8avSFecmz3gU12iP7Jrax4Lv+doR4Rjri9/PWrUCG9XeBretYtCN5yhwKUmFaQbUX3noJ5GIZfl1W7brIm21ZdI51wkVRwxlJ3t2Ps8Tx+0+j2cLgkfNqWuzPgpPRpOs4n/ULuFx/GvHHFh2930A7WZUchl/ieZeIaD4k/jChAtDWsjq9hZ5SMjjWcjVQvPyUPho3bzdZVbo9uMCN1yWQ4rKJ1bmPmxI2AX2e0kNQ0WuPJ3YOlvwBywT/TTsT9ix/US1W3ZCo2cj9abXsvmkNdfyQzwYGlbcU+Ol+ylG01jGDENlJ534DwUj44ps/yCOGprhm1YqhCOrctx1cVGIONbTGPEaKg2BoGGoYUSFRmpW1ffa8CppmRUU9jSUByULd1u69tJReDPAQoReVmwBFFnjDNkfDSuFspeA4Jg8Zhu6mgrwUcjXWCsoYcoTw1i1N/Qu1+MZ1QbhN9w09i1smcHf3n9X2bQkDntFkkT6w7tAR9KxQwywuKddHDEVGKjZpNpmLk/6oYDbPERWl2/PWJIFr0VblBFk1qMkvC9hqEdaW0rjbDqHnGgZXDWKCuNYTVt77gg2GMtPKLXPyOOM7vqtT9OXlGjQC3ijFX/rn/nFIUfuWkNmP9I4Ni8YEwX/jdzHKY7NaStQkiRir7s+BspX6v8LzPqARj50w= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 424a354a-7b77-4a08-8cd8-08dcddbb1f94 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2024 23:38:14.0118 (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: +TFAH69MGSKn5xtKIgT6JnUDoswrXmDcCjXybQX7rcOfLKarhRA5zLUd2mDDLpFQYwzRBDttPLTPbvv3q2uVq3pnc3dwmRMPWvkzCtlm79FZLZbSOrUpXBoayY6OfxTy X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB10634 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 Wed Sep 25 23:38: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: 13812560 Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazon11010068.outbound.protection.outlook.com [52.101.228.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9005A1A3ABA for ; Wed, 25 Sep 2024 23:38:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.228.68 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727307505; cv=fail; b=sb5aYvFV48Jthgj0s6RLyNSlZKEOeVdy1C+ZEKBp2ny4cWyWR/PWEcbyAJRTM0NNLr8SCXghJEMhcMJUuvvEv5urtwJZHPEDwmJmlfgnr+sEQHbkVfRcTyMt82r45TnDrhjNsza9HpozuQY6cxtgwjwd2jMLPmDq8NIB5uv5wdw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727307505; c=relaxed/simple; bh=n7fERorHze2JmC+6AyjZBH0qej2nC8phi50bjVYRW4E=; h=Message-ID:From:Subject:To:Cc:In-Reply-To:References:Content-Type: Date:MIME-Version; b=GwgGTEpfuqe8qXERF1xCPe6Xmgi9/+EozjXqFB9bKRbdlBVtL+YhlauWxX0SLUC26Im1QYtt7RMO7cEzLTqef/BZfN8nKxK0xEr+eJ87hTgIrn2ppd9deRS0C5j4Q9WmD3LNzZ0/Mt+C9OzwYKjgj8vdyAUAXngC7EEzwLpDJbk= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b=dN12aOh/; arc=fail smtp.client-ip=52.101.228.68 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="dN12aOh/" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=vxqNfnS6izJUZOp38BNBYamnzP2tdjR7zNyWb3zjz0A2qn9OO+3+n1kk+hVzm2nqRWvPKKHWhx18VkU3BcNjoXiaMJF28cNocQYHubcLOGBkAehuTMBGDXPXKxy4sWovLhOueaWPr3/pc4oD/NzAOIlSqpqaeV5VA5jEkX7hL4M7K4vzs+Hq4LqDGIw8Y06wADTaKwO3W/YZhA0F63pPfY9JxaEGx1uN12HttjI/MbKTIqxkR0lUcz1ekpMvr2d/HyFcw8ur1e65x9D+4VBmkjDdliiXlrsUu97NLuuPkUhtdc38UQWkfqTd4MGwtTRbUfMwLnmIwbEg/CZpBX7STA== 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=uBCu45DWjY/2dQWNnkdlMijwKtIwNWGJvUe3UeaHjFmrx6+TkCiGThC3h0CRMcwaSXyytxWK27JGVPDd7D4RfAWB/X15NE0xro20H3quIQgK3jCTQfAfr37i0SyWv6ADPHGsoajWWVClN0UPov5S79LazrLcQTWnYkRIcTcsLPg6Ui9mKFjjf/fWWXOTdEZT8AZv0j1llnglYt3nMk8av/q80ss9JvjR6sHVhkW4SRZTaa4QGVcmNhGQkaeMZvfl7Vwy+c7chwRX4s9ZCyW0MSIuoO+PwwxMCYngFNhozdpwvjnLWaNqPdguGv2/Czy5PLhAjueIxkw9IDjOSLlKtg== 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=dN12aOh/W4Wm4Jc/tHhUeZba/7ImNTCVlKcLDSU0oB3KOtxYrpaAjkEJYZ07/NfDZzRLlda9us4PzvHkPHGC+mtenxuebmoVkgEhSjRll0keD4QfPIOG8ONQ/Un53yTkiqzTI2BP658xhJSaLwPm49Hme2mcNhi7xz6Iha921UA= 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 TYCPR01MB10634.jpnprd01.prod.outlook.com (2603:1096:400:292::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.25; Wed, 25 Sep 2024 23:38: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%5]) with mapi id 15.20.8005.017; Wed, 25 Sep 2024 23:38:22 +0000 Message-ID: <87h6a39udu.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 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: <87r0979uhx.wl-kuninori.morimoto.gx@renesas.com> References: <87r0979uhx.wl-kuninori.morimoto.gx@renesas.com> Date: Wed, 25 Sep 2024 23:38:21 +0000 X-ClientProxiedBy: TYAPR01CA0028.jpnprd01.prod.outlook.com (2603:1096:404:28::16) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB10634:EE_ X-MS-Office365-Filtering-Correlation-Id: 446b8fed-bd1c-4c05-3649-08dcddbb246d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: SCDkC9NbN1aHbhgSImvOj9zZeErr1kMrLfOI0ECoue9vkHCquyY+858IE+8NDKLLtUwJ8obWGl6Tge5XaBQo4daNlXcLK0rVixHKpw2aMIJrjNTUJPus2dVm9EZAoH1ld0dwUVItrV/8w+nSYXpImpyf3AzwRsP5gq1mK0O7uCeS0tBp896VEa0z+qiO5SCmvvhzSXanmJRsv1IRMhT9VT+J5vCNmJmVwzfvyXml8Me04ukFNxlrM6p6WsnaS15XpaVlqFat+tU2fj1IFFY4Rz3CznMDVpoElTMwFLFD6X31bMhh06LaBT5yqDA/o9Ot6Wa4kIfy1Hwhndb1+K8vVTpsChmwUyhVGfQ99SZ5sM3nxDGJ01zn99eIHm+OPGKAjVRuHkcM3lb0KTD5YrEmjkcIhRVeMZlz1R4Q6xscZrcSh93dzFcdBQ0Vu6AIXeNbsCHSlsq+MSMX6GMdqhKxi4d0Dc7bf+gj21y4M9KNrCITM4RJvW8q5aisfbkTexu154ixiz2H2y7zlWyyZL1Tpg/FxMFldOqq8QnisxJOoOlepvqZ9QuNE7O864vQtDhukTU2HKHgeaWzy99W2sqqRKF8R3zG3a6VG4v/LKw/rb62bbin6bLoGYEBYOA89pD0xo8yYY1QoEZ8dVUYT9DR4cNr7K+W3zWzREEuL6uQ/1Hsf5qoTQ48HwobgvqqI+3j66TPyfNE7Ji10cDrVq9S61eqC0OFzckNgRvXEIFSR2zFqc9ecPbXIocu0i6izYYY0njzNBrkTnMQQ4sVRhpbTxNOqJviRMuc8NWaAGkrpTQnX68Awnwc2PyuMsdYcc34EuqfMsTBwPi36cVuUjdH0WSbzq55miDanH9OubWYKNbtF5L4QkDzc9thV7HyWQmxXNIYhKrOQk6x6VYb2hGwmy/0HQrYD1NmenlSJ/gW/PsAXD58FT8XRv2DN9K860AIBakcQPLLJZ6iz13dP9EotE3wwxMd45sJULlpADw52q6891L3ce0ql4KGLqwrfaJlBcqk1jmspH2Yq+okMHKuvG8Cu4TB8dP/VVdvLJu9ycO3dkFk8WyOiBiOR/H/kxAC4whKqbE7eysdl2DO7CSRLd+Aff9HSSBdzTPigHKbtEJP/+MrBXzZAzQ6hLwy8Tmjj+LSxvnigKIVortPfLJrcgwK182wtXi7A20DKEhMeZETbeYzGzyufcxB4Fluht76Qp7UrDMd6OiYrTI2m63PsKBDKvN70ES0S0P0X5yDpvJFYToU3G2BMsYK/6C/mzJN25CHfza7wdDkIBrVZloWFMDt9QTwZ2gQRl/3Bon7fdyJWU7e32EPjqNBHwATeAtKMbNtk+B6oDq85uocTpFs8Q== 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)(1800799024)(366016)(376014)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: tCg5Lto+xgdgA6ykJ5jNC+i1quI5ckrifLs7NAXrS5hZWCn2UyYlDu4ALvxqcOMtBbEj4oiADDIcxPFMUjaeFz0ZxI5sPvQHvIEzuYsTkSm0bw4VM6+c1kRION+YBxBJNq2d4PD2yTO9QBxytjjGyFOTrn3eNCYIchu1QzJhwuFYV6ID1TeLleTuOZpjt8bCxawZgXNsHPBqvxp/gNgUd+8M1KwFQPFHY1BzPltJvO4CQWREp/eBnWDs5X1UHUPBi9IUxDZA0f/scDu6SRJzxJ+5mCz2DH/Qd4PdqK/AmbGHyIp9J9qf0dXWhnIp4fozwYbgbxVyMphSDU4A1N875Y4IEdQ+sZ8thfgBF60f1UcCJOuykFES+JwcActUQ/ox8yqHmky8Gw+6XzBMMHI3Uwf6gZB9i9NyqhcBxrtMLxIyivAeKNZSnC1OBhoBbd9ye3Z+xiSjGbeo7Cg506wy6xQUicHoQAcmStwTyuHGha4eig9pCTLOQb1RZq93pOe9e7xorYZ7X/qEyetk3eV292W+uqVgTS/iRCmS3VPf9pmK8IXCI9SUCZvT1dKN+P73qLKv319AXEk7kGOxMWkQ4JtTt6EwN1Thpo1492+X8hC3hPCGUcqnH++LlLQrab9LeoWEqyU9y2b1DVJeNkw2/E89ERSbTZW2ZH7nDBT/G7gyhF2iOPs72uDz9YO35AycN0mxZZYX9r2PSMsznmHmm3GJhCUM7zM2ZVb/ShGjbRmtN3ARO204x2UkXA3l5s1ebBPAW6Gm7XWmvlCavzPq3S8/9tTIOzDP1m0/728ds5fT7aCIDukr3OERe1WObA9YZbIjHVL9pnlAd/R7AqSEHVa/egyt7Y7Vv70L8W2PEig7YYq9E0a9YveRJkcNwxYpIM0jiDrMZ9b8/IFBKOAPJwCpE2O+kRqUNgZD9t3JVUCwQgdcdxNfUL5b9PNhSJcCr+45JjqwKFUOxpV2JKknoX/JN1sN6t5au9XnIIKNez6ZKr3XnGNBsb1/1KZZrdROZxB5FDSM+cNR54n9fE41+X1bBlRRl1HYgd6YBq++OQx5viBuKMAlKz4qNCvbN8rE1IBTnIOMg+7UPnIHPa0BozqMf+D1TvCgRDpMCqilIeLHQq6IbSTZzorqhaQuxa/F0MzTo1j7AiHIf2z6IwHJZaRZHxSNlhQgN6B4dHTmxBRYxAgsKsam18Aic7flW+EFHVFxy25x4dJiohwIQ2HckBmB0qevBhdGF1BXTNqVwZZJccP9jSaGPfhdzFLNrFusTuXDDf4+KJmBhygTHh6bIY3Nd3e5kS4BxqduN5aNe9Q7QUz0+BtFMtAqn/Zlz655xN6KPPLG7qh/0AhxYyVanyoFlUR8SGJ06735L4jPeLD5JYXvk/I2X8Clddtsb9J+dedbKwAca/nwJEJqzVNBSuytREPCswnE74y5R6SybA0xRKmkDrWvk1Ff90EJZZPmaa4+G6ohS4wvVArTbZSm9YznqnAjdEIK+iTzSSYd/y8vsztQauUdkeeanC2ZEdkkmJVPc0uHllvuyjE0y4wNTXJdbs7AtQvCkDjyrGN7GnNZ+RPVJp1kQfuW5SdV5gOi29hKdKGixe4F22/lgIj38P49wNRqZXdsLk/1inT6fDo= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 446b8fed-bd1c-4c05-3649-08dcddbb246d X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2024 23:38:22.0645 (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: Vd7uVwylaxzBcPkIl+o8n+hGuqjbP9asDlYt0tSzkYJpVrNGM/rX8j8/R6Bl2Y308/JeUMTaqSWGWNW72yPCeSluo4Bt8KRmfbMa+YGYmO7LbZyDEa+02MV+gGckQF81 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB10634 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 Wed Sep 25 23:39:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13812561 Received: from TYVP286CU001.outbound.protection.outlook.com (mail-japaneastazon11011045.outbound.protection.outlook.com [52.101.125.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2FF1F1A4E74 for ; Wed, 25 Sep 2024 23:39:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.125.45 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727307573; cv=fail; b=Pisrg82z14WmSWivdu5teYdNqovCpiH7iIxu5QDyxruSo573rLyQ0fJ9gFB2a43kbjQi1/Ho3+O0m9ye78EQnsfQ6yfEFjdZrZF6yFfL5TXfCiJUNtBBRky98EbfMNf2EhydUkSC+w+oR1Id3o8XnIoJ9X0fVTOj2AYsOfu4O38= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727307573; c=relaxed/simple; bh=dWJ9aiL0KPdEdwUWlUtMQzWpBBRw5tjhFlKXxKwqj90=; h=Message-ID:From:Subject:To:Cc:In-Reply-To:References:Content-Type: Date:MIME-Version; b=gaTBqtxI3xWYplMXPtgr7ooBzTh7gTSMgEPWzzP7uPOt0txcMyRxFKvHkzEw17YOMLLR5/84zTKDFgOui3+k1tHcpALx+k+X8r8yB4ucmKRZSM3Mygs8uT39sjoYqhjR3I9hEfpDk0J0aXu214dumtizehBPmTvlYxiT6KuH6j4= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b=me2ojohv; arc=fail smtp.client-ip=52.101.125.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="me2ojohv" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=K14QpK5TjHQFfmMTDlGYUoX5HH2U+09CpaTe6NyEh1ybQtjX07K0HCaand7EHIEGpdMumR3iL+MZGAJePP6aPsC2ha3UT3lO2RN5V/deTsbEp+i9zjYjknhzVDkeLesnjIaC71pulEMFmI1yb2aJ0rSCNeqvSnh7pPhke40Loi35ZxImuwDDY4YcGyDgvdM0Dm2/9U/vxJ/oXWS5IMDbmkDPKCIH3ElyxL3ACyYBGKPGs42MDn5krCTtTEHQpRF+fi9Tx2uRnQh5tzTKoiuXrTkkkLMizlWaWYzIEhW6a8foMrjyJOf8OUQfqCiff2bJatLzhWfjosYzDSeVnASGsA== 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=dnjM3IVV8qCL8Bzbpb73mA2QAioCy3b3q/loPYHkNU/j8di2/R89h24Vga5y8OdEv3lV+CEUJfieriX7HeVvquhj0bs5bmPnYJhZGhtkletRkR3zb5AR9z+MR3RTsJRsZnlThPIUAsQj1UWT9oWx0c74Suj4xdbdQ1m4Zzgc0xQV5h8iP9qJoC0rFvpOf03ItDM/jq/w4L3f7YlAB9tBvKSW09gjUjeBrOa4hF+BjAwF/cB3LuoZyqw1yYU/ZDCKMTgeOywNRyIBiqHCaQSICTiVij2CtWXonf8ErLjvIQExbV9bjI12mjd/njYyczwEOUezBVqy4F10sUjzQH7pyw== 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=me2ojohvCbo7jni4sMRm0psGCqzX7Hv3KRwcO4/U5x3xF3ECSxBAnZ1LGd4Jt2x898lsXlmW8wiemKWH7yxrhD27tSAam0rh9vGCZ1q7pC2n1tfKVZb6Upswe1XUpvP5veEPLhL/fNVnj20atODnFFWw8VOkPKD8leR2icI+Q9M= 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 TYCPR01MB10634.jpnprd01.prod.outlook.com (2603:1096:400:292::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.25; Wed, 25 Sep 2024 23:39:27 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%5]) with mapi id 15.20.8005.017; Wed, 25 Sep 2024 23:39:27 +0000 Message-ID: <87frpn9uc1.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 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: <87r0979uhx.wl-kuninori.morimoto.gx@renesas.com> References: <87r0979uhx.wl-kuninori.morimoto.gx@renesas.com> Date: Wed, 25 Sep 2024 23:39:26 +0000 X-ClientProxiedBy: TY2PR0101CA0039.apcprd01.prod.exchangelabs.com (2603:1096:404:8000::25) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB10634:EE_ X-MS-Office365-Filtering-Correlation-Id: 4f61af7e-4b6c-4007-9586-08dcddbb4b35 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: xbSipLqRRR7CC1VRABYXauTnRf8Ffy8psxjCv1MSDQeeagEFyCm1oQGjXcbOEuK8EMHin0j2BOFXd9i2g3YpPlRLSUn+3H/qxJIdfQce/BtsB2toZ8MDjqpE4IQnptPEiRnSKM/ZBhPXCDZZBXRgWUPW0gC+BoMqTM4TBFo4tqfq3jkDU1Va1lzSYLYEsiHIEuLAl4uWvqkyAAD/TcaS+gM8yl6ivio5wY+poEeqgBHGzFbexPxyfPbnNK7MBJ9dpxofFjJxWlUKPhWMtCRTLluK9DMnce1kCynVOK5KqKQI4fXwoZRsqIS3OQWWKRGurnA4O1Ec1P13bEniDb0gXG+zdFwpYh4vrvV+rdt7VUM1MQOO3EjsASpt2Tzj6gbpDRg+tezCuImdDmhNitfQ1/JDIxATZ24nNlEtRkiK229GjWg9ZmygoQx6RZMSKPVTAxAHpSzyCjFV/D1VEmb7mJKzBYjQmqVs7BzEwcLlbSRYUbKiwCgYXI+6uwU+DU3L7T70LAZQqk5NsETWlTsdguHPvsRQg90cleYYyiOW+TeU39bH5R8YkxZ6c5tNb8ZYUlQ6d71mqDWzaPk1S1+Bkv2ELr7eILNS0zsyXpBeTF1hqlF+4grZ0HmMEdxtPVm05DkHmvd5XrBf3uAqK3szXb2dHzZ5A+DW3PP2GIWWUjIQ1byZUSSupI1cbkO3WhAuGb3Vaw6b7+Y1ghhM3gusdlTJYggVRxQI4EiRaM5ZxEZwOCBbcJY2/WQkBps8Y8C/b//Liq3rKUsCLDwdT8CAqrlBMj62+s98KtynUMSQWJpQJIUa/DLA+BokKdxuVJOAH6ly/NJX4vyOIMQAglBkigYLmelF7MRDe9sZNurcCy0s6j32AxRNur/pE5ETjtwfr0ouC2AydFba1zVZBUuHkmsezuvW7QD0r6KilYOAQTw3V39k/d9dJlmvHXCNWFvT6Q7mQF9YmwadweeBHBBhCmHJNTww8HdRA5w9e9e+rVbz5VqBymmbQzi0GgL7L4vVn9XVsDNWoxhaFM9Gh8Et0etZdUbXhK4BTqW6HZgB8Lr+7+Psid+GyubTNocQgC5oDigtRoUpskw8cDlHDZA4pSehdTz6mM8Y7qaUC7mUdZL5AObpgifBZveq84msRN2+aYlLTDOsTe9RBMYglVp8qH2z++aRrGcxqSEpjr+X8PGimGDezt16dk5OXx0FNrsIo43WPyfp1Y4v4M+VWwWPhxbsv2zKVUn628n/wUdH7v3Yb/SzZNttri3pU4XgL2TGyi5AMxeSHvtgt+gUVFTktMP7vhD13DHT8BwQ3kz6oDDnlCWM4HuIJb7y8syp8AiQ39oeFZwhgydU4IsnYEjt+w== 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)(1800799024)(366016)(376014)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: uhdQ0CBb9ugxphcYKzcsWbGTIe0e2r2p/0QNHv/+NMdnQ7rdO4yYbrPxxIxPU5jc/7oRbBtxywagMrvFs3cMRdM4io9QusEynan9vCOKMrASNUEapVVBylB15bnexA1wnRt3gYZ55gHoukMyaxSBjiqsdn/9cs3S8s4SsvFqbZ3+hO+wvn5RnyN/j0hY0uFF0OYMBLlC4PRHV8iASqCkM6U2gfNqi1/WwyoML2EsRzmIqXPtBrYR+YP/4hMsEpj3yWSoKb9wImRpISqyWsz0BI37yAoecsBoWaR1MdLOqovv3Bv6Lh/jtzK2e4Jvq8x861pIBzgtFX4DPAlQiCKLYPp/CckmVkIyRB54kdMZadwiFSkFeNREq5ropy1+hi9+92/fXl5lmKwNDnM6tzbRarnv+Z0Pqn9T16Rp0wtgtADcXaDgr7/fYS1z84E2ASFIUjCAvZbhnEC5YX1goYcPMcnV8ypabnPAK7y6e4mM1Gh+99BVDfecyFqexcZua0DpcOFa7f9Cf102Z30ILz0l/6a7FZJXpoDD/be4M4NdFybRANdlmuAD7Hr/UmPm9BR7O8IZnf6ZJOFlYB3A0x6s5Vd6NFwNjGN5u7pQb637RGFmpdaraqJIHcj6f4873/+wtn5tUhAF1Me4kEy36ABzHoq1ucW8giYyyV6G6WVsfwQnGJr5OvJWYh9Jz4fKUk5SvfCCRy9itLImyDm1JCsVica3ZIcel+DmNB4iBz/Hc3dO8ARwnqLBzpL2ev/kRU2LTDHF0BVu69BjYSndCvCJJ4e7YF2Jm6aYXXmn2CpyOdi7iUegZgylOLCiJ+cNrP2T1X5ilMeWA1ReyIPB73NkgWSX84bIP3zHsGTHypjwOYxkET5xSZ1HETcg6YZ5QYo9ae5IfjD91Ao+M+wG/OjZjIokz1+w0K3zpic9Gf+CLZ3GNGHpodSZ9gXWXqKuDQBAaGVpAOBl5CZUhLMYdYwnEWgslCgDOTB5Wey4w7SdT3OuTMHif1rn+q19PWD8cv/3KcqfB3c9gVPAd6kWFRRoW51dR6Uy6ZBtmak8an2oJH2Dz9aceGsIAVvbeD3vl6SRBQTWy+8tIz0j7/HWi420FAhebtyXRL482PJLVhM7EKbjfeSizvrMrJIbW/EaQCA1rLssues1QNxnHDmu3h+qOx7SDX5J75e101+90k9h+HnJvXD0A901ser3PUdKgDHHP4tujcHdZCnkVE3TJkt8hvUtIGBe0q773XgMrKWZDBVqGcCzwPqdMVniRkjCcWTefcZiXX+rAplXPE/4H+gZS+gSZO3/pUc3IDGoVBJkcbQORSOEYWrGQ88eaFWRsPUUaFvmEJKMljcAyGP72Kjr197UTzVOCtZCXm1egE1f5swpnS4U5yNzZyZAgbmy5CwVnhIPBLyXEwx9bocXeahfAmRIiq08ZZf6cW/nW4b8iU1+um6GQF1rkk2CWt6ja/aXzEHXjSzhT/6L9RQ/qXntpxoneqgYeHtOwgoegJf8FusAgqEU3x1Lyv8nfgM4peHJD9ohBjOntxHKGa9QNmLO5nigiskHmKlh/A8QrMhBrHwclZ/yJzgGl1TamnRZ7/hbnA5dZRJAR0g4iC4ZHiwShqJcNjiso+wLIWRtZkoEwLA= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4f61af7e-4b6c-4007-9586-08dcddbb4b35 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2024 23:39:27.1237 (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: y9lCDoikfAKqCdi0udcKJgmuMx8Ah+8Y6xREcSMi6WWE1fO4ESGmQHAla7oK1tXYq9sE7VFrMBt+SowM4nWBzSit3dCT6dmtXQAPtYeEr5THFE0VOk459mcwpY4eFhz/ X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB10634 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 Wed Sep 25 23:39:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13812566 Received: from TYVP286CU001.outbound.protection.outlook.com (mail-japaneastazon11011019.outbound.protection.outlook.com [52.101.125.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7E0591ABEA4 for ; Wed, 25 Sep 2024 23:39:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.125.19 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727307580; cv=fail; b=YgmIMXjIbJiITd68Hkv4YuuTArNZtYYuJUVEUbVzo/eaM44pgNIOrFTS/3BMuS5FnH31ZEcrgOrxom+wP4fqlT8Do+LmubOw7lmJKs8ULLYDI5QtrATmWs/ExXV/a1K6g6VQk8h1KVMslqMwE40WaMW+f0lPKvrv3r9OE5t9nA8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727307580; c=relaxed/simple; bh=vjNpnhzqDXKnDqxEBw5ae7eG6dClwdQsA+gJ59PpyqM=; h=Message-ID:From:Subject:To:Cc:In-Reply-To:References:Content-Type: Date:MIME-Version; b=WRtcQYnGhd/M4PGlSIhXJsvVICc+WPgx/WSPOMzpRFCaoUBRgUNB9esFxY0guD44nBJdr27EDgXj7VrEdB5wM7bvrS7lKvTZuYpNfVNlRdJFqO/xsv5sV63FPfMgIU/xpDFcHpuMClOrPI1Sx2pZwAPb0mD2tjcpiO3wiNLLSwo= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b=dp/yBblG; arc=fail smtp.client-ip=52.101.125.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="dp/yBblG" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ND2fevMVh6k5DI1UKU78nrVRbkHy1kIt7bRO1Q2tMBFHTWRHapulwWvuX2lSx5aLv9Xfx+tsfYiaX6ut5mPB01HEpbDS8astsc1a1PjAwjzngAVyUfUDkxk8H8Vd1isPQZDOzxmNPR8TLhz61y5p5IwVzl3ghNLWRI2HQjbMC3poHuji1SiItcGDffolLZ9ocTx1j37Fv/HTYPEb+vaQWufqxXJSfHeZFJJP7tzXJa1+cqd2slOGA4ZQ7ske/v+7XZDn0jfGK2affvSGWHz1QDPd6xh5F0b4UuIREFUbwahKMaGdRjk1Rm7eA1ehaf8OPBpVPSuhPz+M1tyldz+Uqw== 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=0qZznr1N8LMHa3LmfkvpMN3i4ohaD3VbMCuyex1GicM=; b=gcWhrDFZiBm4jJArP4uLMuslmRkaDTfBOjddQG15EhBpQSbVZmeocefJVGRNeiHPLABh1M0Gnj2FNijGKzOwXdCZUNvyTlxSn+Jr1cZMiIG14loTkDPB0Tyvgdp8cfL+cwGSkZwm3eiALIAbsjudTl5uha3qvK90Rs+SI3QbGCLmOV25kQczEjJFc4N3uuXHL/uuWsYKaff35cMPgqGnXcIjqi0cbG0xK/azdw5SM8XAu/IOl/ZPeUJUepc7Ws+G3Wa/LCL7qEtD65sVBl27Vq9Q6g75SAllvZIZS1Lt86kmmcN7vFjQHBS0qtRvZm49Li21NhdxO+83xfF4agRkkw== 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=0qZznr1N8LMHa3LmfkvpMN3i4ohaD3VbMCuyex1GicM=; b=dp/yBblGlICOvJsKLrsCEKYDWXfKFkl2+JfBxfloO0vixtvpE5RLLu07yJUb88/rxx3tc797/40e/l6zWeX8/sLtIXw7I2WYJSgJiCcPv7YlmE4698pVNEcRnknNQWut8eiC5ejkGqUsYymNQIUFs6Fa2IkwsK0yeQZboMBbtck= 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 TYCPR01MB10634.jpnprd01.prod.outlook.com (2603:1096:400:292::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.25; Wed, 25 Sep 2024 23:39:36 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%5]) with mapi id 15.20.8005.017; Wed, 25 Sep 2024 23:39:36 +0000 Message-ID: <87ed579ubs.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 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: <87r0979uhx.wl-kuninori.morimoto.gx@renesas.com> References: <87r0979uhx.wl-kuninori.morimoto.gx@renesas.com> Date: Wed, 25 Sep 2024 23:39:36 +0000 X-ClientProxiedBy: TYAPR01CA0102.jpnprd01.prod.outlook.com (2603:1096:404:2a::18) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB10634:EE_ X-MS-Office365-Filtering-Correlation-Id: ef2961a1-cb4d-4ea2-e7be-08dcddbb50b1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: RIl8ghBG4g7cBizq1oPHeCyZbn63WuASK7ApWpJrLguVELTCQ30footlRXqDYmbDhrlw4x3guGFwTgyUuAw/KbFYFuKYfrLgqSBz092CfIKbL6z8/HjvPDAHVqz9iROJBezDcIHKBA92G1HdUxmHEIYpCnKPbQLSrvYEh5QkWbdhbX2z3EsD7pAI3jk6Rp9t6onTWIGvWEjxnaxZ7s2agP65c9e3K7iXK27HaP9ICa+7exeAbNAfjZtIPGKDug+bOkEZRkZITWENlM3JGlM+3qGMTzizeCP45JYdgwlUFLm9KHxD7p9/oz4ZVMGgxZ7NFAxdZWenoyrsVC3beML56RQQRtd3Rl+7EasgYcKf4mVaEjQqGoQ+ZpO1UIY2ojbEuyPm0qQBBUPeHgtN8CBhpK339bnKQRQ0R3GN5s9DyAaIkQBp3Fl6fg6foDINuyQdr7lrjN0oPntivaTbY9NlVqdXl4c1G6adspr9V3cxDcjEsqAFMfZMwKf6rs4EanNh9UtyW2/V5gjdjIUzMDraOEObRbpNXihsmVFGX3a4Y01d1DujhkY7481pwra9O9ZxuOFo3QAJZdSWSI4Enwuoengw7robsCStfkl/W+Kq6ovJhStsTv9xK4YrAsA5RKkCo13lSr5iyc28xRT0x+nKcjMuUDpvkA1C+atcWzSzhfw0Gy/QF+x7BrQGAnD9Y5ehv3RvIbOhw/zuj0IHv/wjBOGcsKCg4bEbmx4BnJNT0gJgmOYjqMtz3o1VfeOip041bd//LVf/I9/azhSUHFKUOFLX1W6yQ6ZsZX9BQj3HYKwkP7ZSLIJXRkxQZ2zY+J+1zbE0ua3mGowaWdXSRlEnIXOHvkmzXS7CBMS0NALvY/sV07hFepDRqfDOO3eIbn6ZYKWGsWrCBCbCksMsMKPt6RXaRjC+U/xn54E4D5Za7owq2gDU4VLuXUndPtpjPl6t8NJJ0GOwac96DMkWVJJHxvjtk/Fw+tuhws5ehjcNiBxD+Yu8KaoPIpzaiVuKchcHOMNXlWdxGQX70fQwg4R3jmPAuqtCQPhQ0cCQWmE12vRspx89Nq3C8IDfFIrpOk7H3Zc9Em4ep8YXfb1TIWKir/TIq3uE7Q93i6MC8Ph2Nw+SgMOtMICEhFbNv3gXBIln6eJIlJpfPMxPf5GxA3kWG8v6R5U/ot3aiPwxNxk7CuIobewiqM5jXSd3WTPhCdpYUH3dv53k/zSmL9zc072vACaLAczLEA3QQYgpZSuZw4yxGPvjG16I0O7XcykULprE7XuiTzm2k/40mSsJ59xYW41hI6Zk5RT91BMsAAYaC4BGsVsa92Y2njn9QAL9Vp3TiOuxSOw7xcfLs5UavklKfg== 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)(1800799024)(366016)(376014)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: i6G24ZZnJgofaOZWeTbkbXQMctEsxpS3kzpHTGZ0Mm20LNSDbWI1Bq5lbcHk3V9pT3V5Ri78xnq+LR0hTRTgWKlpFGGy97Ivc0OtlTpWBTajWmqBHOJ39aJq5tEXburJzWa7iFzNbyMfdFHDdXpFz2GQLV8Q72o8iOWVfLFwpsLg+8Z5apgaV2GptoJ60eeBHEVLF4lzY0sybRv0NbleIcXyx3xIzfaW7XtxKfMEc8/RqjmValFp1XTjcYt37ld087r0IiHNIeV7eoyGUeGQJB4focPED7msY16TvVIKxV8/muJj+RYsLyLdcMzLfvKcQHd2+ewYRoiq4HZdJO6qr5/XcoqFGBO649VAeEzwAc3lYEKIsItBolnsikd/hIKi35614IJmD3d7UWd5p/jwd38jaeOGu2Te0ZeHhZb3whlb8Y7pu0MpwOwfENrVxLqtiza/3+v0Wg+4o7LVl67ba07SKddImAqACqv887hdyGy+FkW5yxsRnM3klE4QUIU41eLxpovLX4SoPZpl1B5zzaYYsF9bRQHmjSeBd6o2f5IqV7E8JcL2T4GwdVD2hpUcx9GTDVopb3Akr72UxNjxXhVvCYSLx9laoQkIthsTikS+380dwUZFOWwsWBvCWn+/8obtYl2qh/EK1IFR2C38nHPnddZnXwAd2m2hOAP5LO8dPgadmzcWiycEkx2j6Jk0AXolSJGU0AHL8Aegx6lB6Sc5T8jK32VSC7aZEpR7jXwDI7AxbgBDg0jjnGC4ddcjXrRFY/f+yc76tMIoI233cfL6SUpSptD6z1Sv8loPfE9wnfTGtGN8DO03cEamot+pohiXCX450mo9fTJ/d60r2cvZPl13xoyObaH5AhUoq0SgDuBIqHSehVizI24x0KeC0v9DO9uBfPdO34r32rH44iNHgnD+zJmc/i3z1+jZQqmXKHN/HR5GH1VeHpo533tb4zGZzC4tWLF3TLm8XnVPs4w32G2s6Hh/bufzYxC8SxidSqaPYURNeIEoiixfyZEchMIJlFtssN0siSNHIvoKz8+QETU2ZxRm2wlwn2/YsQ19fIRhg+xasezga7pjjih3N68tvnLxM15CajIwJvmMYwqc9XRAbd0i2L5rLnzCSKPJ16OL+kTc8CvIHVF1H3OzbIFlH1BMYZd1dHwtYqUNkmEPbadg6ZerXigWV8m8/Y6vvhZn+wusbw5gHo20cRFGx71LqrwzuYzUDQGzX6fmf0VxfEYBPaXZ0Y6j6WPh1R+oRleVFfGUeJAK7IrFzKuvvbL8zsPee1RF23crGh4N5Kx9VWjo3LPo5GjoBfhxmc10ZrpcACdW8ILLmLPZD4j9QSPwVj3i5mk6PwW8d3v87JHjPilC7Wjl1wHFcySPTexxFKvbRODyqeuebuUyYkpj+24y1487zGZrzwDWFPFclNXLWQ+FzJuRN3Py2GrJHsScZJBKUEQ9EsyOtiEx0yPRxjxNXBBUuW0X/v3eYvpBHM3MeKL16K8VDDjHYgsNHU3NJG8PXMbtQN4TjM11WIhtqXjkQOE5oZkB3wLS2T9F/RuIKhp8QrplqGdfgLpqFzwRynNFy99JS9IUkDjmpuObtU65AX6QYimf2ovY4WjGkurigN+SQSTjgVM0CURUx/0= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: ef2961a1-cb4d-4ea2-e7be-08dcddbb50b1 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2024 23:39:36.3167 (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: ZpC0gJMdIM33OlR0oInQkqeSi1k5E2HKe4NPOgXdiFeI/FfdFKyk2Cqs4JDo9qQyFdtBGa4uYXTvA1aYw5Nza0/3sJh9/vQFjYesCGlH+BkdpjYq+91mBcz773mXLoSh X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB10634 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 af3158cdc8d54..93d0ee68059a6 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 Wed Sep 25 23:39:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13812567 Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazon11010054.outbound.protection.outlook.com [52.101.228.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B92851AD415 for ; Wed, 25 Sep 2024 23:39:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.228.54 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727307590; cv=fail; b=AXHwstRj65wC9Np9JoCawV2AIocsz3GPYriTNdqid/RUTeLMTs0LmY3a55AMfbZqu3q6oXEDgzkMrw4+mV4RLo23GRJ27c5Md6fGJ5a2LGSrbR0b+w1Pi88dugPl7wa8E7kN2yuX31fDY7zeulRE5RPCeAOnFV9DpLmpw+hTPk4= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727307590; c=relaxed/simple; bh=3EdDFuwjXVZTaOgoWqxmC1LMZLxkATdr2C6I9E1alkY=; h=Message-ID:From:Subject:To:Cc:In-Reply-To:References:Content-Type: Date:MIME-Version; b=s2pk3OOcgV7KluQ/ETEHxKQKc8wRoMWoCJ8zROBrYiJW3k95YALGqLmVXyQX4nroxDp2NcCzw0hi6AYfJ1RaKi/XKs4/ffLqLu9ofebbVbOoq0cZY7zLAAP7YpewWm+mxJ/dQXIVVmx/oAHXCVRHoIWtuTLMNTeAPkcpU98UJiQ= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b=OtzWvVkW; arc=fail smtp.client-ip=52.101.228.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="OtzWvVkW" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=feHMJgfZEbxY/mqngseCTae+GpTzrUA696parZw2jaGE0PAJCtGyJaDEX7DWmbhYtfQ3vFBxL5q4aF6fE00VoLj6+4qnSWf9LmMUebCBMyxw5mAZuq4KTWCQmrU7dctH9IQhxdiNQza0BnfMSLYNBsT0P6Q8963ngUxsKrxjmGfL2TS3r793He26gltFR1GtE1fLSBvky4E+ReK1hKOKK5LKriX2QMxUyqEZuC4gywtPHyefEGDjLSFcuSpGJgtkC2+soo/vMxTh8iNszwt4aAjL0j4aWzGVCxUrcQp3fLVo+IuySnM+DJiN2JJnNWRWUuCyyeC5TWgFUYzVg6+Tlg== 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=VC0jCFhcydMSFs6/gHpEFjzGIzzbYoKkHXhGZRIR1bY=; b=JeUSiYvwkrSFXJgDMeeRogYDLmCuByV2ZzvgQb+B7RmHHIqJKChNDiqggZI/CSEKadQxx7C2JTnyrOhzwcqXoPIQezZ3b1imViDadfwxvH0tiyI0R1EJhUe/MIjrqrUaNQqiHjmsetTBfkgOIy1IlzBGDaNQ5iN0Y33l3id7OL2G1/tZmVaRFd1h1Q1THze84UOTKvVPyCZ25rA9CyWwgzPE3au/9zsnkiNpS7xMqLZSXFvAtRIo1/98MYzEzNd6shALv6N99B4zPaNk7qqyEDFG+gg9x2JZVQz8UWf3UiMC5+Mu+H1c/RQVCijdp8WL7mv9p6zaiECG+zHjhIZpVA== 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=VC0jCFhcydMSFs6/gHpEFjzGIzzbYoKkHXhGZRIR1bY=; b=OtzWvVkWYDj92Q8pMhWA6T5NOl70Qr+FJE/eNl4qXUnpQ+M8wBfJLAPOqtWoFGegh3YQgKL0e1azNPjuHf1BkluOUIlBnfJvHb3hYdPYNcEsLU5E9HLqZ7elebzyMWjzM34kjHO/gVPgXwAmEl7fbGp01SDUYZLfZHNRxZDY4cU= 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 TYCPR01MB5759.jpnprd01.prod.outlook.com (2603:1096:400:41::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.28; Wed, 25 Sep 2024 23:39: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%5]) with mapi id 15.20.8005.017; Wed, 25 Sep 2024 23:39:44 +0000 Message-ID: <87cykr9ubj.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 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: <87r0979uhx.wl-kuninori.morimoto.gx@renesas.com> References: <87r0979uhx.wl-kuninori.morimoto.gx@renesas.com> Date: Wed, 25 Sep 2024 23:39:44 +0000 X-ClientProxiedBy: TYCP301CA0049.JPNP301.PROD.OUTLOOK.COM (2603:1096:400:384::13) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB5759:EE_ X-MS-Office365-Filtering-Correlation-Id: 6b2a840b-b0b7-436b-9b80-08dcddbb55c4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: KsU+OCrycYTvnHKTjL1SYFVHIxmuG5IchadffBeZiYj7rvAmZ6hQAgVISX42dHIA7xDMy78s6o6ZgAv5hiI2goku+wY2qhz7FdZyVIb/qjZmgwVS46L5c8PTvV5k0KPVIvEIjov7wn1JDqxJwaQC9Yr+lhQntPWEMzfqbd5SnasrKFq/Y2S+xv9rqjA9IdJKFAxJStryj4edaSIoAeV1PSVweF0MsvxIXZgsFvj2l9vzMQ/v/IT97ILuEE1/MPuG/XrsqAUDkjyaahUZAG8ubNVsMfLfkaA3zR9yot/6x79Mk5PzxtMr/xwR3BBhrDw9lhQR98r+rwGlyuEn2FnIzkU4yWDnGM3oGewOurBDshFgwyAsUIQu3G/xzPgcN9k+xnFz8+T6cX6/Sv8M1jW/eeVycP0AupDNz2OXSO8jQXwAU4Y+7tfpG3z+U6CGpdDXJgo+GFFJHXJyZNv61YhazJ7zpjep0iXRf3UUY45v1G5t4qKnlcbEQCSxQMRvP8XtALGhyVv12dl6j2OkshO5KfTWGjFYYDM4WxZvlvC3fCZHHP3GCRl0bmC8/0EmLW0jkqEPw/JGaBjEACPNFlqdL1mSAVKQ43EV2kquKq0mtAYZW4fgNaHtvx5CIMztdLLs0A/PIxSy+bAZRBM9AeK3R3AuiIT9LVxuJzxrY4mmc7C1fICKNuXOTAlFqA73AweuA5A8CJ3tAsCQ+hBXjdp/Z8B+1Jas1NejyrteV63r+0JFeKudnKhqoN4yqg86dWvE8M25Dc7I3DEdEzis5TJVhuVXtxAPhcUPl6d9EvagL9FfZPTgpdMo3Unz9wTHYX+c5MUcOCEx8/x9+Bv3l5lbdX2kHG2+OYMVPsf44uromJWX4mBsEmC+nxKEY88M9Qb/yqRQCLAyWN8nYAdwc58Cc05OoA+5KYY7pub0nJTGkjM00+1VfZ8JeKecO8eyT3/5Mt1p7L2IQdHEubaYmmjFe9a3yXg+CWjLARYEdkfGtTYk6/wlpZLRoWpvRORTIUx+wti/69iaenabWWmOcESy/JjcaMJ+EgiPhHpjCynwSL++piLoXN16WXx/JDibtt0Ku0tP8Pwv8JpFz2bglftXsFSOXcyKCoYYWtQbekLsDyg1DzWndraaG0JVfg/IfsJrrayrRlogV/BA1/6KAWaz6uNaeU/lVAp4Ex7dwg9CWZ0GJPvR5PME4qoJLT7/rU0Afrj+oP6gc3SLS1UcVZSLzatmYxfyDWCFeEicG8fs9R3B79dk5dcLFjgtV0saxtzrC543tyytqftfPRWqZiwgiKLPoN4Vea66X2AI6PAkol3s47ceAjp5XI7+C/y2h2itIDNUzEW4jJpPXiW1Esd9tA== 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)(366016)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: YWeO6KqtfGXI78Yo1edkoA/2uiNJSRHsnNy37+8utK8IiDE031vGxXod2H5duEsfNO2Xdl801N2f2zGspuUTXtUMxA9fqwVbv3sYB9CaDnaM0nSF9gAeAVURDlkKdwQSNgFTHF23VEfgNjp6emDLuTRRQgdQiEWbxzvUCexZ0T4d5tCaZzwJhFKDUYrDygNMOD6wxdKsekq1Ag61utfwFIDGXOH5zXeynsDJbsQSLGjeK3+GLnw+lg3S7KIycApi27SjW5eLTH3p2CVRXUhVOjjwNVC19bC2gl30/ae5wRYNBtDGDN0acC9CXmRf/YIpuJHR+VcVHTserwTRSoWWUhMp1ZgfO1Q3RvtqNjc2jwhEcYcMlQbqKr/+lyyDiWC9qUQGuKtzcmQIUE/hB6lBjufqY6jgVT1bTKuOI3+tx/L6Z5Qgo1wtaS7zgbY6RAovytxVll/Vgeyhx9O2kV56vFM9uBpjXLd7drGjctZRlyvtXeLtoOrbM9Ek/9F383FLIrHOCTEPip8vL1rJa/E2xT0yULYhLOpO9ZpLiWtpCnYi173I/ahEtN6aMEsadc3PDnlAhO144ZTLgKAWwJrTqcslZJM+kN2n2WuJzdVKBcw2cACID6JLYf6n3TNYYoUve6RaHp26DGcGZb428izI6vMgG1WNFk1xxBkUQze2xkm13jLf/rcSviRXRYYi8cN6tgG+h8P/ZknXVmjZ4hvuq0yBePTwidRfTBEr6MKIKpK1sPbfxpCrd9uFgfhqkGYkPeQGUhnR9CBIuB5AOLLNMozhHJ2YF7HfOdltDXLghmCY7x9T94s/GxYAanqmLZwF0XSjVX69ED9TnkmRMkXRFYbk1Mo2I7jmvn0mrWVop1rqOBaY7+YoLghaqZjsmjmJv8/YxHUBOJpeB4T3VA8DlRPLpd81J2sOw4LzHBjkZlaZC8DfNOjyWIkJHGRkUrfZgvRWjRO0/KmHgNGOn5LKuOAVUvmIA0oPD3a3m0W0xq+NunH7KPIqcteurRwtUPFJAEM28UZkEqiwyZH9YHK4hiOxfWENqIPjLZDFsSab7d5tXaUFWjEIfabEeNtXttnKUhtRrBcPw1zpUwOzm7bRYJP/bP4W7aoOvu4LgPE7EJV7ScFVH3/K1SD9LpCr7lSs+LkxQOtc8vhKzl3FfTrSdsoizA+gdhfi57z71xhalbHasEc98h8qEkqpFO+Z/5nyUnNYb3H1dhtL/+4pAV9KhdSY/5I48Gs15AOc78Z5UQN8NRlgiFQ3holqJmOmA/iuHLIadLkMgFC1LCw6sEdMstWDXOSr3YeBmr2DVW5Wx4CLFcVo6XETqhPTROIVY8pM3it2P7LEOASGgDkQBIIDQ/UVKa4ZEW8mCQiXJCRNaAHeH7ka9YGiOqPSTOR2euP9JKYM102bC+iP2qbVbplxvG5oUwJ09Ae7guLlKw+RT/gF4AMFoaH46UKoPZnjr6GWoPd51a+ipIne6HLwK4oAmt7fztgORsEx9TCc30jzu5pbP+bOt0eNCdNfhPYLxPrgr8h2L80N+O9cjHKeL8BZ7YD2TYJtztoL8BJ7ZwxFNrzWvXSErhNoLkKRPU3xKCji9ttiqapFKlM8oSP2Zk4z1rFnYitxTSB0mRSGohB1Tao= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6b2a840b-b0b7-436b-9b80-08dcddbb55c4 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2024 23:39:44.8708 (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: vpdyCUGpm839ctzCnMO53RzLv1odSCwy6XUiWrDir8wIR6R+IUYjTKYUGH15vqGjtGOYFA8Og3fTxTGy4RLccqOGLzL3p6pUtUvaSqgFVAs+eG+WTSmPyxYfwBxAwMwu X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB5759 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 | 13 ++++--------- 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(+), 106 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 ddbfdc6f88e47..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; } 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 Wed Sep 25 23:40: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: 13812568 Received: from OS0P286CU010.outbound.protection.outlook.com (mail-japanwestazon11011020.outbound.protection.outlook.com [40.107.74.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DBC1F1A4E8D for ; Wed, 25 Sep 2024 23:40:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.74.20 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727307617; cv=fail; b=Qxw3CwxgdNduCBXgAmPCV2zRvGlSglHO5kXTNpuKR/gdANlWNtsC8AJqUIA849zpGcKe1I4DDG6RX8dPYVsrKe6Bb8qVFnm3Qx6xcQ27EDJzGra9g9eA3Z/RcANPO3niKU+3ER4/vd1Nm0E9n5wpi4rP5t+dU9D07pd7S1nkiRQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727307617; c=relaxed/simple; bh=G6O3FbFLkZiAkNzy3cz47yXID6ka4yLo1YV64oO7Gw0=; h=Message-ID:From:Subject:To:Cc:In-Reply-To:References:Content-Type: Date:MIME-Version; b=dXwFtXI7fyKlfK1ZHtu1aMmZloCQ3mpyCfULhxEAmWVGq3W4IDOUAKUKQ1s0szzfhoQtFZONGTZOEk9GdBZNegFBoeSFwQv8rttL6FydGQ2C8tdvNZgZg+aC7Zcf+13z+94yabUfNIj/dVzyhCe7I8MYOefGwbR8eVe0iBBTd1c= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b=N0BA0pSY; arc=fail smtp.client-ip=40.107.74.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="N0BA0pSY" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=nvOzUSM6GrFzpy/ovLbH9c0OA0XhuG5Enn+rlvGSGkWGaWMQjZj/IgJhLY0O/cm0wL3o86I0KJnkiCTcfYrtCLuLqB3Q6qogN4Lt6r2eCCcCnJPcIoB4SJo3j1SO9JliPNRaczUMGBDbjfz6EQz683cufS7LJWXYX0/9MUA7tpRZ6AEb+QxSpaqemKw1KDMtZ3zesjwW62NGsXeCG+Qov/8XKd1pEJs0KY7qoYZC2JgNmq/Uv21f94Sf3gyQF6BYc/J9NNVD4uhjVNU9Uh22vjEKV6s10nXUPQRUWqATrd9T+NWqzomS8HcQUf1PrDKioC5WjdVQV6F3axl6aOO4iQ== 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=Ny7esTQ7AZ8Tsps+hiZMEALHbMR22hEbtqpz5oHRlXav7Gj/gV9wVEMDrygQV0s9yS4fJwTWF/LJA32oB6CB5ZCk8CMbpsg75URL7hsaOhLmtxqqW/SAbRYdiqQuJsfF5IJDj07FF4rl7a3gBbLuSVzn/lu90KxlIR5EcUKJMV1scmqMSi3W4NTNWAKhIIHYJkp4kQ1EnhYfaFpzn0JE111J9y8S1uEK73BXmBZmhGv3ufhN+bB26FS5oNmzTo+lWFnXxNoH5zLt0a0yQsGq2jBa04ubeTAIv43FCqhjWvZ45WUslRDzmcmVxIbfZO1mRBE6wSFk9orKV7lW0zjq0g== 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=N0BA0pSYJ2T6W4qqvP3T2bgWR9iEneWJQWMjSzOTKOFdFJTcrAlok4FfbXnHN4OFq4r30wc65BAe2SVxMW2VTNIlY7bU2jsgbc+rsYr4i0jzne1JBL7kYPsc7axjafMu/CQQ2/v0z5HmAdtqP9BrelcPgsbTQeifbSKxR/T2cFw= 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 TYCPR01MB5759.jpnprd01.prod.outlook.com (2603:1096:400:41::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.28; Wed, 25 Sep 2024 23:40:13 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%5]) with mapi id 15.20.8005.017; Wed, 25 Sep 2024 23:40:13 +0000 Message-ID: <87bk0b9uaq.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 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: <87r0979uhx.wl-kuninori.morimoto.gx@renesas.com> References: <87r0979uhx.wl-kuninori.morimoto.gx@renesas.com> Date: Wed, 25 Sep 2024 23:40:13 +0000 X-ClientProxiedBy: TYCP286CA0048.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:2b5::11) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB5759:EE_ X-MS-Office365-Filtering-Correlation-Id: 8392c0c5-b6b7-4b4d-39f6-08dcddbb66e6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: K7Av2jK5wfLUaIaXEVQgfCFWyl3hoxyAoVsbGO0GGY6jnNy5KKvcEhOzYcudaeiA5jrICJ7uSxOgdHsDAi3zBcrirJBHAljKCpJPKB9lu5EG+zoj/tPnWEvd85OBAEBTOKHp+ijWt4K2Hbmo1dX0pQ1VlstvLv0zXzxClBq7EYDge4Cbru4mDqFh8yix2U7WWFjx81YasF0azVdpWYpn6dWvhnke2v2LBbGN+oSoC3B69BWEiybCGi0tbbSLkk2I8X23sfSqppz8ZaRlJ6r+M5oeoc2jXp5KPDYdvK4RYlliJYl4/TmGs3VqR48yYvelj/oBCafdPii79Fgp9VgMBll7NQpHeGYipTUzs8IQUfBZP09HjZU2522UCvUaKVYgvAYpHEMFSA2xmfHp44qqd9z/aqp8Qdj6t1ObYQ3/nWxlibNbHk/qvXGdAvrLGhuAZO1yDMg8nrHts+SnwZMUmGTGGQaVT69iCB/YCg+hYmICA45rLJ4FBy6h2Sv1024OcwPD9ttJZqnO65mjf2GGqyq0s1SdprT14rSmzx3yik7CR/gABJgWdWQeU+pbB5AzrV3aSKcwl7Jdqi7m+XzEYC9bx7nsRn2++MrCt2b9XtRG4g67QJBsStMez0CkH6cgY3EtgBVUMIwZ6yERT7LoM3gO7GfqOAb7n7rC5h7OT8fkYuttyPInzB2yCGW89dOtF3U11IuCcWcl3ukugky8sQZLVFyCrGfOPY2+KpP0XVIJqE8N3hnYHE9aquVkcpjuvUtBpSDfX2flI30NETuyRnuUt7oBDvLFOts3AN1OpEqoVIERZXsATVgiMr/rmh2u1sFqpAikIBopfqACirCVhsk5WHtBlLM4g0w/voFJw0oY6WyrT5+OhJKRpo+sDN1C/LlhmpsGs6MxDA0F1KIsffKyvQsI4A0dK9LNAok/vSkc+X6iuzE572SneWcPqmLrn+3Lu9LLlnNvK6N/b1HY/DjzFf5rhg89l6RhwJoU6ImCsjSA80jBW97qwNPWkT7YjSYR27F2dv3I5Kj5rmfqLFNtnAcHNrSutvERHettZAOnvNEVi5MLdD5dv01fZeMV92yjL2aSzzqqATiLl86S7cNs+qGPiNHfrx21zuKbCPowri2RBxCKXuUip/eSeCl1g5UUlcefQXBghH7dXSNre2cZc3C20vMaWpzEbZBgcqOFcFb0Gzil6wjqYk71byOMPD9a9Frk3fXp4tENMaZFpVA3OC7L0XHgUUPTzAeNN5xDkHUYI2VC5imiAT/ofPprEYHjku6Rsr1dIUEJqWzjQwE+W4pUadhdPqx4J99ZVFow153gvOpj5dg+l6yyDye6GJrIfesU4K7TINExaXhkow== 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)(366016)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 4y/hgieXCenN3eEC7MOowx55l8fpUCXQT1wW+bRY5fyRnnUovqD2SVPotDPKYpOEa3Y5hBW3o6KQzHiNlNe6mWShPyLtDg0HpyS+dk26iFEiLdt7BomviDtWwClqkSIDuX0jYkunXv/k4Z4nVmustIzuldnVsEET/S6qzSCauBPEI1jvytxYnwQKbi2iMci0mmKC1TO2etCX2XBwtgILqIN+p0JI7+NyIhpc6XhbygjyMpK3hy+sztIrvEFhUMTDdKjPHtm3vsubjVrs20ZNxV60YfGCwAm5y9DP9ZqROz4cDsI/jCNaBF6ITXGNHl+lyIylyAxQ0ulqH34JZqpdEA+XXbNHD2KFfxvdpBkNbobWL+u4M/w0le3EbviNG5uTPxWPX3+qpLGysJt1Lqe6LmDWWm5mO6J8mp9rdxETY4NtXZBcDL0ihiJ+94RiFvoaLtJ4NTQd6lOsfVqLn7JOU/Me5k5WMNPOcyUFMqK1FuZQoetQNGGiMt3MUDixa32Os0IvfDEhksH5NwqbtAAAPx1QEdKNb2dL2VEFI9WXJiuyqRcluI9pkFL4Sl/0Y+nBk9E4aCOm49Vt2iecgzv7gMkg3xmCtcYIqxc3ZqBaH9MGtITS3FknzgS7tZsrhdjSRMQg4tpU4lk/bCbaFjXLflteyUeEOOO/515FILH3CsnaSGt+FxO8+dPg8GxiEMBhKp0LSaojQRXrL4lMLwdn+ikG6tczSOhWx9wSXI4UEvxXmLgZhzO7/AZhueZArW+aOuQzyJGO9t1VzS1nOiHohjJ8iEnD+X6BacGODNwTe8kPWWGi4LYNh4kgx22tTQd0S3g/LmyOD35OLm7054HqvpBQjm6ILdomehcQuwhVGNaTQf38CKudb2Lic89vpB3EBlaySYpYDawreLPikh4mJ+dqCthUBGTlqgDHY+RVizJnl3EDI0fYvL4BaUAivDFbMFc0y8SXdJhbjHoMG2xgBQ01qwJgWJvK4lNxYkxyyB5L5ILRodhlyih6gQgX7tuH2sskrGXRlLufEtD0m+ljZZCzmVQPsbQ/FNSl5JXeyhDoJjye3jF+qkUWiuOxbrtXr3PKWhlwKNn0j7l7MXOzt0oMUz8iFqEdjht/cr3m8HOSQJZYRqJxYRIEvCM4bX60BBtZgoihOfi9LCCLykw8eGgWs6sFap5WvvE8vELvxYnm9fzRynRqn1Tc5mvW6GC1VBzwjOqvcSoYSdRU7qcwUJAKrkAc3dlbyhtpKTa5OTP5O53GT3n+pbECHs3yxhsGATgJU9Kqm0+2elUl2XkFdNz6Dn6SBPlHci5zTULXSfLJ3CB2+P40aP+mRgcOxE0ry/XSxw2wK3cEhYbKBkr1RCN/tUT22YW2uE17c6NRQcdFFr/NP9zLCvXW+haIC8aBj2vkGbAsYrnt168RnmTseH2/ehRhO+8PC+VLUaTCD4rcxvABOtIKrQHhy7xj8Xd6LLRoxKvy3FTMOHXFxVp7pqwiGsYlaFaCvE9PelNSfCAP912oG6VrxIa0dbOSx1LUqyyGGatnRjoJKir/G1AO9SZnU768SAndnspktIxy0gj3d3Ny+fmLHciY8n9ReTaVlEHkh5F9C261weuFokwXgFlMQuyxTwIjnJvgH2kNUiE= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8392c0c5-b6b7-4b4d-39f6-08dcddbb66e6 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2024 23:40:13.5812 (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: x+ElTokUVnlcmKY6tp66cvUTrVKpLLvtrQvkCQ5ANGdQtHldVABY9PppsX7f7xKF5pYQto3cD43codPDgFFqRRbBDqKfhiPbFJzabjyxQbuiB1WcQVf1LCH5yhpjcwvK X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB5759 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 Wed Sep 25 23:40:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13812569 Received: from OS0P286CU010.outbound.protection.outlook.com (mail-japanwestazon11011053.outbound.protection.outlook.com [40.107.74.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 94BA31A4AA1 for ; Wed, 25 Sep 2024 23:40:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.74.53 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727307624; cv=fail; b=o2OFDWo15vd2ZIaSF+ObjLTOhLky0LfWkEmiNJJGqKx/iKbtLqnGjUc8po2RneffaVH2QOidvmv7KTeqX8QbF2KT930i48P7k34SGEyIGnceWj0FsEyX0hNAIwDCiyrDzUpHIVCmrcrgaJqyrNKQFJ31Rg184e4rkBGMGCmdcAU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727307624; c=relaxed/simple; bh=gb8047m6aUcDhBvJPYS6TSjIVhl4bb/0b9SN+1QCZQc=; h=Message-ID:From:Subject:To:Cc:In-Reply-To:References:Content-Type: Date:MIME-Version; b=V+FAlfI5mOKJwKtK/b0lvQ/3+CYsFcYo1TJvBwcT33VTSTWJKI+7Ji93beKWLkv5MX4a1vr+cQycmhv49jgRi/DiTMDLNp8H/PTMmYuqbY2DHbveDXx1fdDqRAeIDsW5xrntwinAVtOVbFddZ+mIzWdHjMynqk7/vHe1qUNhUck= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b=YOjP6+g6; arc=fail smtp.client-ip=40.107.74.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="YOjP6+g6" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=NtsyArgRPepwmAkvbKLeD5K56dQcJpLintrzN1N5dcX9G62nEM66YDYW9/RsRJ+ajWZelNBq5yRzavmiyD4gII60RG9NwFZyyTiRMbzi1LqrrNt4UkQg3CQxCWrBdWWytwUjLDua2Rkz1QZqsPIgNWtOXrKK/OT0Oeiz2w0uYvxm/J74Op6tei7nI5AjafGYQLVdTQ6cL3puLUCduJgZsSVKBiny0Ka5FBSzE6qlFNVzB9xYVuZuDzinuYPtwbcM2xW2Xv5TjjB/vmCuWlQA2b4zRkwKRczyTfSzRuQNBjAh4hjkhb94ugvm8BGW2Aqc4crLTNSuJAjo4bx86UENpA== 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=j+6ePy7e8HVN1qWmaPB1GxUh0PqfcKOR4JXx6HbvkkkVigd4GmphWjv3fVVn+dKE6ENNaTN9cTybNmzjLFv8LPQcZbL/zaHvZcTmAivLtNM/8hzbxFLK3dysI6vvytS9Aha5E7876yrosxqzm4i5rodOPpezpWUXs0jYcKHvBhZkESALkeEoP1GMAYKzYvl+gxQQfQY+zS7Ms4qkQlXJLoUwyI57BBFTytEqoqilO7ZbwA9R8OGY6h0gcspjFTuxxItWuITI8CAMUmmGIAmxecRjZTk98hdn4OB/p3sSUjKJR6PMI7mJGmBkpFa3tLI3NgLPy1JdHY4yOpxQYp4goA== 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=YOjP6+g6GT6zeu/g7FgV/lPIuKaQFO474gJQdNpuiAOCjao/LbHRjnYkLebfnLZWih4UNKkjtp3cwLTbJ65CCQdp08CpalVFhV1Gs4ElxV/dRqprQ0bBWG6gznurK3Vazqdh7mm5K/tS0qEt8ff6BGCuBwLZoQSFTcsGu/6n66U= 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 TYCPR01MB5759.jpnprd01.prod.outlook.com (2603:1096:400:41::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.28; Wed, 25 Sep 2024 23:40:20 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%5]) with mapi id 15.20.8005.017; Wed, 25 Sep 2024 23:40:20 +0000 Message-ID: <87a5fv9uaj.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 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: <87r0979uhx.wl-kuninori.morimoto.gx@renesas.com> References: <87r0979uhx.wl-kuninori.morimoto.gx@renesas.com> Date: Wed, 25 Sep 2024 23:40:20 +0000 X-ClientProxiedBy: TY2PR01CA0012.jpnprd01.prod.outlook.com (2603:1096:404:a::24) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB5759:EE_ X-MS-Office365-Filtering-Correlation-Id: 30d1be95-f850-4394-a8ca-08dcddbb6b08 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: VT42xYixZdILca+x2QHeb0HpC27YbfwBea6rStjzGjZbp1jQOcAkPELj5VK578oeh2uE6nG8K3nbD0yTp7GyYHludCYu4ag9/oKaQBE3zfUBszealiCQkM/uJkbaHyhMI4YvT8ECEVNnBci6Ig0W+HqOBG0eXA/QFj5CRVTSH9hoGNN7pcDUL2aPebWtphKLXeqZ2cKSM8f7RdYhjjBezhvR2z+hN3Q7tS/UXJwBBZFR6YgXQEpr0RjrnLos5mLKtcohBgky6pp4MNk3xp3XUJ+jJD3w6kO1zUTB5hXcKrH75A52F5JdLACqknBrBAcgM9CkxQUzsqzRoluJ06LxbLxEbSINpr+49jLY24Cos8EkjkRgS/7AqbNWzecAZS5fUwatfhDS0X5ghxxIlfMTlu3+S2Xnu8sKhGapJm0eXB9HWX6D5GaElW0r7Q1AuduBKuvtf0ia7FIswp35tVNI0maPlCRrCbOFMkTnRPhpi26ijKl4i/COX+ZTaI/tvfFDbYQIJP4k1v5H35I/lBNPXei9UqtUw4RM1ByIQASw+TZ9JsWl7n6/Cr8AQOG65FhZsES/+6aoEJGO0IXIN9OMf6OM/2+OixU/SG/QExG23oURD8epD4+3w3gNsdBXoe44DeV62L++fabKHLRTf19LdHF53KbIqYr0g5T4/6mzbtQ3IhXUrDZIrbGBlm0dqrIW/IHXEVTTRGHPbF1Mlg8Eg9IMKwOd8JQO7FduCiUkDN5J/GFYgTR5w5mq1W1yx0GxUVdo8eA/C62VAFIruF83pCERfSBF3yAk9QtIB6FOetkuG6mc35b4mcsRFhVtAF8FeCtY1yWZAJZXdJB1e0okG1aZeFslyjykVvRKmPnzGinwxYJuELbsBkBi4joEXWLBMDK5ajPr963PFMZApjxORjgDBdLyBrYHXsjf0HTa3oNi4oJCqkmsdBZlGatUQ5CQzaT86rwI72qBSNm8WPgZRNoxHvHFpuQDQJni7+el4SEcrvT3EX3dXtDN0/gQORyWwDNDkHe0TeVr3BqSfhWDH5v4m+B0sFjMU54ZOTALVqK8EM/jS/LTvYnc8EzIz51jnliRBKJy7cXRg7i5+aq++vjlRUJq11V93qA1PFFKNTGxlY/iqRUo5cPpnWh7ammQcSBtixMNYHKCnXdfAACsyq7DkEDyPsIPm2O6/jHWTDle7chxx/mzX72nrwUTSWxZANr8RLzzwH4LtIhwvYWSQQjoF9G1gj5B6WSCeIH4y6D0CHxVw5FhlBzWDmsEIflPJ8pfk6Z1JARvfc5Q6cYZqF9z+kcAsoNWlmlG7BDhNTIzG48Y1bnWxY5SkJDR75+yrJuwWMuic6vILZ1Exefokg== 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)(366016)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: y3axYIo6es4IkUBnhgRbdLxdwzQC6A1BmaeTPF6vMFJ8TMhkCCaoa5vAT/M9RsmuhVwqVJ+VCVSqrg8m4R0S6411ADJsXt0LonyCQ20YE362WaoZHAiKAsik5ahlfTyUVM6dtIHh3OTDFYN+bLyRCFpJ+pml90eUTRkcWta4CFRDORWfKVclHb513ZXs1tLKyaFEo8zZaEmRYrfBP/rIbfr5YGNlsf9JK+/d/HgdhBOmDfehGgNqtFU1mmIm7/YWCXHDZyM2Dn9BusKCXuJBEne5gnjELL7tzLIT9BVCrbKqh6BK/Rczm8CpEO8dnRYmqDMAoELRK6OoILwYj07a3PPRLlANCeLszc6k1sEpAKVYuCL/P3f4xoOF0pFvpTmTNlOtyMN1yYlXsa83EUMp9B0yTRi2ODPxU2iYG9KjXn8r8aLJ0VZPgyuajIjlC0InuxF/ERo1EUzziagRtX2eHoKBjn2uTgWitv3OjMZPAf+4hyUEQbHl9+SqLJV7bjY5TPVa/vY5ZaUdCPmxvAF5YFr1FAH0s8mSmHNxYNjmo6xV7ENUT5cSUHrDxz5k26U4KeklEdlSKqXxbDWm+SvaTqjMPj8XhFSStIP9JXO/3BraepVMEc/gflfQ6131B8vdiZC1LJwk/3C4NLJggv5JkuMvpJhvHfnpnJEyvO4K7GfWw/Q9dwK7w2uxOU4SNyM58bKjzU8chxVtJFl1QEKb86/lqgxAWpyYeG01BrECt+XwUuiOAbqKJ0T3HLkb7OIPZ2/a8F6IlgvyVeU7EPMI4240FYWAzaZeC72OFHLrgIy5Orod0NwNbDSX4jeVIkGWyZfQKwzpnOtQWre1TsScmkQoKlw78L3EmUc9OrdMF2dTFeJOfo/Jt3bK264in2ex3tsoJkoHvVYKbYjEe/nDchGwEuBRj4vR4Jz+nSxU/yWMc1soKIK2SkF5aIKOL7EoSxrEQqSPfzpnPjRG+5i1D79recMqyXWiKW/Cn+DR3/mWkj22onrcyOVgdNHmVxVbb7C5J6u4o6pIrazXbHWiYMMwmCLucjeYYUO474N/FZgfTStAacitLbxNzhdc84GnVCaIFY/X44eRRQMLOZCiCy3dU5wqm/90YO2DSjGAtV5RrkM7j749p0ti2l9TLRXb+geX3cQO7Y6ndxx4cDkuxyPVPnp9FTwVGz7jSoM7KQsfKR82YWS1uyfXyCSAC38rVKPvb3U37uL+fvtLrBUbMNivj2ZK4tbvSqOfca4EfdykOvuptzShI1jQYahNYBVaJ3SSmi4xlMB5VSR7aYjRsoNaNheSVCq89+Flyws0zqJerOuiMQbxCnd3OH961Xyksv/qMOaDC4RERhp6ht5tjzGdN1G3ove3yKEC2umr8xqTNXfU/X2VnRCOMbfh+VrhgQPGHnZKBStrrBahi6KZjuA62wpTxhMgXF33GtvZ6VO0mIunBx6PXuFhuiv/3pJz8hp9RuD1o2LETBogcKd591PtzCBhPbksT5Js3orR39j4KlPux7DXw7uajkPZrh+04IKSn1TdV+NzZQ/PH+TIgWHD4SN3ztv/VFhte5yxxgSxz9odyMCKfipA+nPbPWuSusjPZNsU3BRX1ZAIw+nm2I0UWerNvW5gIvhMRDymOQs= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 30d1be95-f850-4394-a8ca-08dcddbb6b08 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2024 23:40:20.5181 (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: a73z3at2KrDaMC1gJXifzk/rP01PZdyNPVedohcgAEiEEGeWECwcrLJuNMFbmYYtNXt2FxDjwFfArSg0+RRTW1WpcgmC9OoraiMlYFGs6wIv3fr+arDSlaofiE7SUBXM X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB5759 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 Wed Sep 25 23:40:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13812570 Received: from TYVP286CU001.outbound.protection.outlook.com (mail-japaneastazon11011033.outbound.protection.outlook.com [52.101.125.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 100161A3BDA for ; Wed, 25 Sep 2024 23:40:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.125.33 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727307628; cv=fail; b=EjfNREpWbqqE1bAiQiD/eip825BCG7RiEEjjOWXz67gGLCxUveQvRi7tf5omt9pge8KZPBaX5kgFF7JnCY4Mx8OnLgAsEm/M23Oe5SYtuOWVkHqYpvMrKbW9jYzhqHjj45mCT8g/YEnvM4+JLOSnVGmJdD3l1lOmufesngP4xxI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727307628; c=relaxed/simple; bh=Vw2xYdXdckIo0v/pRr6zwYaapVl4vL3esBItTt93teM=; h=Message-ID:From:Subject:To:Cc:In-Reply-To:References:Content-Type: Date:MIME-Version; b=tRfya/P6n+nCuONK201glvYcEQCegDa3iiWu9Kq5XHfObX4OXhu0v70bPf5riWT8bG0k2Mk0UkAQnmUvZlTlkiBkgHLXizZvmjmg1gGHrvmWG4yQaHEKYQ+STHLF9E9ICwbWEaiX6grVPMI63DgbkwUCh1v4EDgkkBSmDCW6+q0= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b=GMcg39m8; arc=fail smtp.client-ip=52.101.125.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="GMcg39m8" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=XyGc5zXINXG4J82nozvzon1rC2GhHNJ+zqS0DKfWVEwcTAArvTpIQYRvdabpUgSjxBvr/NhZAEzCKk8CeJe9yw/kaeVVhhgBQnw7bzOjElsdB0l9mJ1SMwzTOhAw5WmY+DdlIpfx0km8i9xhSgVznKBaEuEeVxzedm36ZtU1wQWXtkvv5AncV5NyK1vQdNAzneU9OEbiop1PYGvxQvslsp2r262ZzAmPoh0IdpLXK5Dx/pdbX1CGk+IF5xa2SwK0sbW+Ps7p/tM4q9sTjUgiodXpH8DwPi9tJudIMCNh/fxxe6u7zgNO5i+7uIj0E16U6h4zsEfXOEFjZvfN4PRRag== 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=ax4kasyB/qPNqEPRicXUvZDcNQ/tOs6v+0e0D8OduCYoemKKQiyK/lAiHbFM8TP8rzS9pb4B5glZd2CZcX+RNTGYpicCBYz0pOzODI8AfyC+XbGxIvNiCip0ioyPX+QfcnE6azJbiLFLFDNEKjPqe52ynGqMzyxh9YVfW1SrWzF6oAELDV+3Iz8370pV984h5Wd3zD9XROW35qzroIsd+Uu7zvwXSCuO2IOdMa4MVBgw+eCHuJD35fwZEsfv+3AMVNvK2Cq8cWtD8DV2GSFCNx3EIf1cXUhTPJb6V1f4XW1IGb102wW7L06HELH8tNIrUkiY7yy55sVnRabx2j7nHA== 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=GMcg39m8is6QC9ABzrLAmQZdL5l/x6fAqN/p877MV2UWB6+2qt0nC6ZIzodiGB/Nt4s0rsTE5FCVj7z1FI1JzhyoBPJRyaYOk6b6dWndqrHlEDjvOYX2Raf1uMfzRK5y9lR1dMePgDrvV5VP0u0CGaojJ2SULPhpsWt+UuKqS1c= 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 TYCPR01MB5759.jpnprd01.prod.outlook.com (2603:1096:400:41::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.28; Wed, 25 Sep 2024 23:40: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%5]) with mapi id 15.20.8005.017; Wed, 25 Sep 2024 23:40:25 +0000 Message-ID: <878qvf9uaf.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 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: <87r0979uhx.wl-kuninori.morimoto.gx@renesas.com> References: <87r0979uhx.wl-kuninori.morimoto.gx@renesas.com> Date: Wed, 25 Sep 2024 23:40:24 +0000 X-ClientProxiedBy: TY2PR01CA0002.jpnprd01.prod.outlook.com (2603:1096:404:a::14) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB5759:EE_ X-MS-Office365-Filtering-Correlation-Id: 258bd381-d3a1-451e-ce0e-08dcddbb6db6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: 5zwjGjopT9qlzvaAT0UpJLp3r3SxMYxV+Pr/zXNIMqKTOSZ3UDU4kqakKgZGc9YTpx5AoehI7ZWBFqu2HwUSzrLuI3GhvP/cwq6WL3YXCBk4UkrRKZ/hxgz3waytufSw+JKD/r0n7Qdt5cUC6G+f+qWSbucGejM0QaILaYZFe5VVOtpIEBe7a6iWAJAlsY/9M59LFXvkUnWHDO3IMkf9Eo6sFqpAKUII8lYata+d2LEdunMRSIGYZA668s/MB8LqZBjcicV9g3pREhJi8jSMIAAR40MDuRmh7tk5ho8d7h5J7IHHV1meFniQv7grwplAdJ7v62SVXLwDI+hnu8H0hgRXD8E1rGvUz336gFASVc2+fyt+nofTJy+oHcYp0+NeFxj/AqxDzhZsYmirAJjwWoylMhdnJ1Be0nbE+MQcqgNfEPYCJqjgT2ayJS9KMVxf1XcpE0fxDzDF2+vPFeMht2RWmDxrE1lgYGyRSAZHMQeBApRVhI5RfcST4iXxPgq9Fwx5h6hoyfn9blPGqGv3zSHzj4xGPyu978ubZ9GIR9JQlgPf4ASXTWBsPRfscbaxXfh4Si9KX6GSvVUQG6qw179qwwiMiU3F64rSIXNtDIdI/khNJFUsZtyTfvz2jk0Zcgd7tKXC/kK9W+R+BMTuD5zVOO0EslWP90+1DiKzVoQsdonWfeqiWHTv7eUO0kFKlkOrcBHxV7LDk+wLejzau3MsY+mIauj2Z28MNOHkrejkeAooZVGYmx2BLIeWlAxn+mvSx6HAYIsku2D2ig3QNNqCVSxM2rIjBcEVPMF1iBrMKkcP5QSUsyXntDA+2UGkjVlcIJCKFbUvtHG8ity9ZOYdqM8l833Hi3pd5x9xdbYg7KrwcUaUXy40ExB+xYhtYq1G86+WgR5Rd2T61G8sqzjc1egppPm63D6sPimSedMLIWW1wl7kQgxoNsd19kT2lrvwVuHOAdyDCKhYGfL+qpMsF1Zizd3XM/BZsG8s3sD00rIYTPGSOfGIVl6yVEtj7w15pIDYaHUZSBgHRdp6W/jybChKYhx+19Eao0jjy67ZefiTa8c5TsY+0+rQwrRzW5XJ1U9solxvVTOQjmhv0FMQcsqqDllxlmEB+QkY/p6VYt2KhLRVnj3Dper7bWMV0ROJvRZpDTKnhwdysEZPqrOj3uw5eL72JewdS4Ly//y6wTDXIoyDbFakXlLBTK7H42xpCV0tLbyIUjKacqma4idQW15jIkNhyMNZ62jLm93w9UtrPmuVzTEio01TDnA0L7W0+kHZxRVaQV2bGrsb43G4esdZl7dlxLlZ0HAcrA44huRqmoNF9dC74k9iV+eUXtJ52F4LNjz2uFuA3DeBFw== 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)(366016)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 1xuS+qXtXyqkAHY0cGBt6pp1dxklwNVp4S7oL1d9dNzdJhKgBbmGK0GR9uTlUnNbqveiVZ8XiQQdBnr4N8lvZhcffbj+9vz20zCRt99zVeEHmwvrCgblKMCnLENzKNe5atXz+rMPbcsctUThqM0htL7TlB9wSuUeGZSSK2ZBB1a69UoXbDNR/9o82IOYB27DwpwOHPMQycnTCF375p/w3wKE1gNQpf+y1Uu65mmXvQompcHLAgz+SpIbPxoRaewi0x6QNj2Abb+fDqwPUzvj4W/3BEY3HCoscBw4xqQ6j/bj2L7Z21aNbv8iiE3uZKweL4MNJ2MAnB7z81vMUSmKHeNe7VcRvHxWB29sHQRsGx4juwJF0DYuFFypR8IKdVlshw/rV6PuXDCYQKMCytNuOtTeloaYPdukfSfY8QWmnza8XHL23GgKEbOff7j1XAqabYcMq00aVrzMiZmXIf884WC6woBomuW4vA76sOYhlVm2ugm4Q+VuEagyas10hT2+peI/Zw4cgqpcsbEsvLrjg5NUbl4I82ntd/jMc6oRr8S4sGFe7l7U5Ajm7ZW9VKvHJe116LZciCwWNnQfLiHUBTqx+xiGDKwxdU1Cq9q8TdiRhK70QXFFA4ctK9igxQX81hdnSTiFtr7qv4usG3WZLsbgA/Aatv2w0AcRzyBLfP61KqjCFKyZPFqRNk3FlXE0xfgkJR4dUYGV7RK41Ae9hVBjOtuDg5Z5k74KUKmXXw3ax/tPtCCLsevfojdK5sTVtVWmq/WmO77RXCzbmG7z0YovpAdtD54UDzkQmuLvn/9VLbmpjRcbUBEE7IgR+HsC2G+w88Xv/Hq4wTZIBSEJkb9HkXbE6YMhNBLgTmxOiIyqSbJL+Iz8yXmslbM25f1GjFYFhyX589RtpM2r7VZk3p4BnzkLE3cMa8CVKp9OnvdUxYRsgHO6tz3DATGSR9xArzR2vjMiHZHl2WBbiuqjB9IT8GUV1MUGuTX6yq4iogeo/C/x3lV+dUX/LVdJXEc1l1gedurH7V2uEag/henHyKBaV6YOIDqt8NYcPg4D0/z9BP18eHIjNI/63o+QxcEenv6jY6emMtQ3T+N+6WTbzBkJ3nPORNQucbzk7RIt33FNLXKPtGaCcP05moemVW7XJWvNlmUcr3E+UltwaH9tKta7xbikpla+jzN7IUwoKv/P6NCA2IYuzFdSAoI9AhAuaDsy/Q5SVk36c/diqGnx0v5dUpdPJNTr5EaPaIUs1t5nvxk35x3WNeukJMrfVIxRurookAErwZCSqKuPP8CaxZakeFqc//asoKTQ9ntEYiypYdazJXZJHFKiAEpzOqXeYmhKDJf5FIifCazVKsaNnxBkDUzKshAhFjt/Yim0VO5yJCQVxHGDloaB4PjlCQktbw8i3ny3vleG1pjwl/6yqIrZzWkPf4ClQNdDyleud1236KwSVqXqjzcWN65lm4GADL65QeLZNaUfE1vPbwAj7Nfa1uMSIUBZgm1mIATUi5qNI1klesooh6vNok2ZorK0A920B7DCwskJCMkBt7v2UNOJolZ4id8QpbA6dyY3Zb+/kKduMbIsVug8YBckWC0GALzOrSt+4QZTUtdl+kXLQcF5mfIU7MYudxK1wnLs+t8= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 258bd381-d3a1-451e-ce0e-08dcddbb6db6 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2024 23:40:25.0055 (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: jEvt+hwa+5Ug5vhg7tY5DS6avvLd7O7A7niLUMIanEn3xT6Ek3KdloNU+9uwZnf5SL5v+6An7PwQ3FWO1q3TlbyOs2T5oIAEHnLx3T76+6DdglBMxE30QV+zisWIWJcj X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB5759 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)