From patchwork Sun Oct 20 23:59:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13843341 Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazon11010008.outbound.protection.outlook.com [52.101.228.8]) (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 BC00D192B66 for ; Sun, 20 Oct 2024 23:59:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.228.8 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729468748; cv=fail; b=a/s5LWFqVfq9eGTtZlhFnmXc4dWy8ZSvpwUHFpRK/0xMXkLXZAxkJ2dgRSuDC6joNA+h0lRtyolCU+6FmaahHiflStkguAY3KfXQfjdI3RHIYhPWBgxRD1nhmEhoeKxypsyzZvIUC2H8jkuosXRLBmPXWle26bkjQW7NX4/g9OY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729468748; c=relaxed/simple; bh=3Ucwkp19BWOLUvwEfzpYyj34fSVgp7Xb5x80wBTMSQw=; h=Message-ID:From:Subject:To:Cc:In-Reply-To:References:Content-Type: Date:MIME-Version; b=ToMWVEO/oCdQkv8Lh4B9nShbwLTOij2B4q3IIZ1Ladd32GM2YslnrI/ver6owD2HUJqk3SrbzbeQcBH7Cub/7KMNOAzp1q2jwxzDsxkxjYX972dgsZIQt4gNMgoyCSRAkKcJnReV0rVt/2ZqB4uwQnTVPXxnVdKU0vyshExZi5Y= 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=c38Dvzg9; arc=fail smtp.client-ip=52.101.228.8 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="c38Dvzg9" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=H6m8ueQCY/zZHRXpBEa15bVo5JZAm46HW0g0KpRBDsLRWFjk6KQc7OHuWOexvyhdioBTHo8mumSyoJ2altZ6ESEr+JiyhxE+u+aMg+Y4f3XMxm/OQr1ndrrV1VHmgJN96MS7Cd/DUXEkryey5IgpjY5DohZcH82HOQjZvnJFvFcFWIuVyxe1nDj+8e6xqma/F3uo7WUOjGbQ1N+U9CUwM1QU19/BU447SurPMHDwlbfukCnblyJ389Xo8n53Zy7Tl6Fgi9yjWzZx/m2PWijLBDIjzriIegheaYtwrgphk5Bs2fqhup8JcUg6ge7pNZAl0BBkz6DqOFsd3YHBvKhMig== 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=J2e2Z/10bLUXv6KLrIS10LR6wlFU2KJ/Og2wMV7fWUg=; b=Xie2BKWq8VEXfEV3wLQauP95/KXGFB9fTLh9RAkWpgD1V28mO0gtzYrLxLIg8SrOyvnUtWUTdcwhdhYU/HH5ObFoNpyLUWmw4OHEPiRQj9Cc1v4sdHdVtpX8j8DbiMfwo5wztKKk+56Mo7bANbV2cnEqR5L+01IdhLc3PfVjNvtLuz0z7rcUepwldG/n3nmxGpl9ed1nBKq4CuUhcFDhjzL3C3Ua9fdRTcdMfJ5hi5hMKmVRqVFu9K+MUNaq9nF/YfOppfdHn1AfeoKYNZRHPq/Py24ZlUglhcmE4W90S3r5ZXztpqqozr3pMS5+8enS8zPC1HYlZUQGaQQkNUvbBA== 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=J2e2Z/10bLUXv6KLrIS10LR6wlFU2KJ/Og2wMV7fWUg=; b=c38Dvzg9Km0a2jBayKlKLFxKaiuStIx3tohTeS+3hXZwokpznf0ey87RRqtK89DjUsJsmoHZr8BNNWLkroV7GN2NfmoWUUNA6filz35ZBgVdhckDSAS2Fh898skqKzp2+7uPOjHDYt55D4D2yGOGIiy03KDrKgM5RqQMgQn0ywA= 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 TYRPR01MB12916.jpnprd01.prod.outlook.com (2603:1096:405:1b4::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.28; Sun, 20 Oct 2024 23:59: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.8069.027; Sun, 20 Oct 2024 23:59:04 +0000 Message-ID: <87ed4a9vi0.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v5 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: <87ldyi9vje.wl-kuninori.morimoto.gx@renesas.com> References: <87ldyi9vje.wl-kuninori.morimoto.gx@renesas.com> Date: Sun, 20 Oct 2024 23:59:03 +0000 X-ClientProxiedBy: TYCP301CA0052.JPNP301.PROD.OUTLOOK.COM (2603:1096:400:384::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_|TYRPR01MB12916:EE_ X-MS-Office365-Filtering-Correlation-Id: 321e6462-1f25-40ed-5435-08dcf1632d03 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|52116014|376014|366016|38350700014; X-Microsoft-Antispam-Message-Info: 3doB0T0g3DZyoRaQXmLlvMzieOlu+dbm2a/tMo2crwETiAjmav6F8f1kEDyBiKLbh9Oe41p680ogUBnHXTOuBF8w5H+GzpKqLBGjnUn3z0PI7FKP5cnwH+vLCG4dHXkOATikArvPFGjvQYqcic6KILnS1Cuuz5pvLtY6rsbJqdtyyI4sRs5MLgjUV2AdTmcp0GAVvIak1Dm8XJF4FvG5va6xDbLl+HlSNRwZU/SIKgVlgJnGlE8+gNfM5GjZOjGFdQKuNKLDbtMyz/Nauks/CS/4VApaGRdW7rTeh8Nvtc0Mz9wfGEK0NXv1OKAhjJRU41L91ln+WIY/1+gKymfKqrItBEhNVpvfHrmIkpJW8R8jZd8P2r8joMciwiNBZ2JXH2zczm62IZGKcSsD9h/5woZPYPk0XYkMfEXFmqa4daC4RM6D5849fek5D7SpmyhXU1l8stt2GYuihUqhHZrqYrAaQ+1wg5m0aFSxQ3e0xPAlTnynOJlKPbxkIURLw5nii6WsMhoZjT9l9x4yKLP11pGmUHM7vbESJTJoucE2rY/PbJjwHCIJsBrd2F0B3790V4XTsaqjN00dFnJ6OKcLjbj9G/iwHe3sq13D+AxiW/+BLYxMZEPJx5q0xyxLfRp21LKkns2m8exQF1vBLmRo2hkiQ5P71ue+6J46EZek6UMi8MXulAeJN5DwWJXbkLRInQOh+GTT0i6quivYEHpoRyXBGKSKR/cyg+4Xi8kvLC87B3qaVnV+CSNgO1vTxn69aD36Q0+yHXgrDKmCLisgRYx++Vh/LhnGHv2U4TQvEQH76deoutmY1CHA2KsvCwzx//5Me8kgHyC/NPF5Jr52IleUg1P/N6Nu4eETVPW7MSG1mijIGzxbouaDdSep5h6CsylDEsSzu2RTkI7xfHswPG5U6ee1weXMmvplkoF+iUm0/AnB8Lt7vm2RQYApeLu6tWsOYeXjVAwsO0UEJ88l8Xv+76BHJhA6J7utwiiKaQAftmRoXAk0Nxq9hVpKMcK6HIa/B05L/kWh85o6w+sFqTVcHjQkNmrBdWxZkajWBj/V5Zw3a65PGoVGh/31IYx5GC4IvYlcov1NlZFWjAEY2kYDfXOFD+ebxun0oKcpWJ72JFLjXfitXhxWyW8A6R8DcETeRMbXMMPJKzUgIswC0GGtbfZGf6E1DIPDzrhPseaCbnJ/IMaw2wuUyYNTJQppYJlUHZjbAfTyO7IpmGW0riK+INZqG7WdHY+VA5nP4jWM4L+VBYk4keIMk2JeeZjvCz/wpeuf9fUqn2YCVc1pGNqAHzRUTq4yQATGrND2Gt/5oOUNQKM3PSjRaS3N3uZuMJw/h52fkihjIJhrcXm1Jc9u8mTsV7+FNMO7GvEnM7U= 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)(52116014)(376014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: TP6J0jev6HIs9/3OVbrI8318em+uNJrC8DPH77hdGgxCM+bmsh6A29hDzksRBaCvupVAVfej/8ZTArEvYYFX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+nT3XsTWjGoayRrElXfaQusS84zgeWL3unu0bJv+sKOKBhMAqygYsxNWj7ROINvDCxt6+xtRaZOkbDJOwEiKdUomuPXQo8dEeu7W5EZpddT8pBH+DBrzOg7kVb/ZsfqHJ/FQESN2eiIr2GpRX/hsN/XI/0djxwNvbZXPZiHBiWGPB6z9BfJhCmlpTYo15WqC8nppWNjfbMv8vkoD7gVx9gwbDk/3hgqeZLI+wvVOSVKuYncHU9sf27dNKG82W0g3cbRcBvNjf3xYfpXt8KE1x99hIiyI/fPdkiroVdP2mDncAoG0nuLQxyOFiiQgcH1aFrbyg7Pbnw8f12rVRck5Sp+IM124LUbOZH+q6uQXyNhkHruhwPQljk/CyZNRM4c3lWiPDH1Glvn8qIz8TYqUXuEM7IrGLf6sYwQzkdoxgJpwGUoI2xLCL30R5aNtn7AJVtf1cuKVuvVpAb3D2JqzgKrZXCrXN2nI= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 321e6462-1f25-40ed-5435-08dcf1632d03 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Oct 2024 23:59:03.9979 (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: u+5bv//vEwVXeqI8zVFJGQODAGwBH6F+wK6bHx2WMJAoh4EeUcKLYgNxfaIIhu7/GlIFICv50fOfoXLfbVC4/SLnjNd/q/7OlLOG+ieKdxb+xhlrBtRpCJFe3KL9eL6p X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYRPR01MB12916 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 | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/sound/soc/samsung/odroid.c b/sound/soc/samsung/odroid.c index ed865cc07e2ef..40ac12c071455 100644 --- a/sound/soc/samsung/odroid.c +++ b/sound/soc/samsung/odroid.c @@ -171,25 +171,24 @@ 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), }, { /* Secondary FE <-> BE link */ - .playback_only = 1, .ops = &odroid_card_fe_ops, .name = "Secondary", .stream_name = "Secondary", .dynamic = 1, - .dpcm_playback = 1, + .playback_only = 1, SND_SOC_DAILINK_REG(secondary), } }; @@ -278,8 +277,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");