Message ID | 87edbz53mj.wl-kuninori.morimoto.gx@renesas.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <alsa-devel-bounces@alsa-project.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ACB5FC54E58 for <alsa-devel@archiver.kernel.org>; Mon, 25 Mar 2024 04:44:24 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 7282514E8; Mon, 25 Mar 2024 05:44:12 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 7282514E8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1711341862; bh=XfQ/Gf0iqHN0LHI/gSaZgk1OmFdidkxU6r9s3zicDOw=; h=To:In-Reply-To:References:From:Subject:Date:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From; b=HUx1d0IhEivqZd+vVrmT7ORLc4NT8KO6Q1OL6flF8Zzx8fPAtrPtERiPbofpsUd7g zkg4piH30sHQjw+ywdX9+z0x31JzIhgq9XFlTW/vktHbtvXZQtmg6PbHf3OOu+Wu2q WVyNqbHvBF9sjwAjfsD2c//pcgHTL4X+WK/CDHfc= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 7F280F8061E; Mon, 25 Mar 2024 05:43:04 +0100 (CET) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 485C2F8063A; Mon, 25 Mar 2024 05:43:03 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id A621EF8055C; Mon, 25 Mar 2024 05:37:11 +0100 (CET) Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on20600.outbound.protection.outlook.com [IPv6:2a01:111:f403:201a::600]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 1C503F80074 for <alsa-devel@alsa-project.org>; Mon, 25 Mar 2024 05:36:58 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 1C503F80074 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=renesas.com header.i=@renesas.com header.a=rsa-sha256 header.s=selector1 header.b=miNa/B83 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dgXCuFsBfyLRtzdwjgpSk3F+C/9KlFkfyYxQor/XODwmGXz0Jyhv8BlJTmUuv74aGcOZ8UpW+FmgJ0l86xvCZ7regxBpvsrGOshnB9bvA2SOBX8lu9PaJw+OvQjHs92n1xtRHujI7fWcsN7hHtlBAzybYL3LzBcAv3bwoCP0I3ePir00xN+lV+zhRtDITJs1TDMpoqEmcGOdHfzDUTODDBLm4WNHQ7gmTLQ9kkxRNCMEFv1joAYb79aH76NAogPKanCh0w8uzuZsevoUmk/SnrZSdWLVRcnfWR2ErcF3cDjJsaE7pJkBcQlCn5bEsC3jZDmIP+GskNVXHfBozOlJNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=c7P5eVuTinS4Z/q4ZEULSNv9I1XS5DDdnlX1GbB3ufI=; b=RPjZ9IMynhuha5FF+FzB2Ier0WhKIiRY+kHvR4r575UOJuKRdqIXdlHLw297nWBPgdeAjr3pNU8nHK5xveHdrP9xURTANJCFv69RdU1h+g75b9aVIdPm/ZTjT3G3hXqd25XnyHG+6OuKHuvJNdrzQ6nj5E6xpTFR6VmMkfR06cIB0eQmiGG+b7WKhBOvkcF4/p8ZDJfmxwAG2MViQVQwhw30L9qGP3mgugRst4auUwaXVoxBTxU5YdQxOsUryY0Q6gIWJciTNC+BrOKT7hzLh6LFgiXvTp1bOnadCaL9c0/RpSPa905I7iy1lBA0LIzcZDiufM7SzIe9USZRupeo2w== 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=c7P5eVuTinS4Z/q4ZEULSNv9I1XS5DDdnlX1GbB3ufI=; b=miNa/B83idLmWj0iklDJwN5brvuqWg+3lH3kBmMFkTQadaFdivIAHSMSriAb55cKTkaWn8MLGmeU4Z97EKe2m+01KKY2aGMltpPE9eI9278XmWRs5TbGK60RYgGzZb3bBTI/bRY/XjcxzDvoPxEbG9on+7NkBkGJbs6mgdcBwj4= 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 TYCPR01MB10698.jpnprd01.prod.outlook.com (2603:1096:400:296::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Mon, 25 Mar 2024 04:36:53 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::131e:55c0:a4a0:713b]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::131e:55c0:a4a0:713b%7]) with mapi id 15.20.7386.025; Mon, 25 Mar 2024 04:36:53 +0000 Message-ID: <87edbz53mj.wl-kuninori.morimoto.gx@renesas.com> To: =?iso-8859-2?q?=22Amadeusz_S=B3awi=F1ski=22?= <amadeuszx.slawinski@linux.intel.com>, Alper Nebi Yasak <alpernebiyasak@gmail.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Banajit Goswami <bgoswami@quicinc.com>, Bard Liao <yung-chuan.liao@linux.intel.com>, Brent Lu <brent.lu@intel.com>, Cezary Rojewski <cezary.rojewski@intel.com>, Cristian Ciocaltea <cristian.ciocaltea@collabora.com>, Daniel Baluta <daniel.baluta@nxp.com>, Hans de Goede <hdegoede@redhat.com>, Jaroslav Kysela <perex@perex.cz>, Jerome Brunet <jbrunet@baylibre.com>, Kai Vehmanen <kai.vehmanen@linux.intel.com>, Kevin Hilman <khilman@baylibre.com>, Liam Girdwood <lgirdwood@gmail.com>, Linus Walleij <linus.walleij@linaro.org>, Mark Brown <broonie@kernel.org>, Maso Huang <maso.huang@mediatek.com>, Matthias Brugger <matthias.bgg@gmail.com>, Neil Armstrong <neil.armstrong@linaro.org>, Peter Ujfalusi <peter.ujfalusi@linux.intel.com>, Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>, Ranjani Sridharan <ranjani.sridharan@linux.intel.com>, Sascha Hauer <s.hauer@pengutronix.de>, Shawn Guo <shawnguo@kernel.org>, Shengjiu Wang <shengjiu.wang@gmail.com>, Srinivas Kandagatla <srinivas.kandagatla@linaro.org>, Sylwester Nawrocki <s.nawrocki@samsung.com>, Takashi Iwai <tiwai@suse.com>, Trevor Wu <trevor.wu@mediatek.com>, Vinod Koul <vkoul@kernel.org>, Xiubo Li <Xiubo.Lee@gmail.com>, alsa-devel@alsa-project.org, imx@lists.linux.dev, linux-sound@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com In-Reply-To: <87o7b353of.wl-kuninori.morimoto.gx@renesas.com> References: <87o7b353of.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Subject: [PATCH 07/15] ASoC: samsung: replace dpcm_playback/capture to playback/capture_only Content-Type: text/plain; charset=US-ASCII Date: Mon, 25 Mar 2024 04:36:52 +0000 X-ClientProxiedBy: TYCPR01CA0144.jpnprd01.prod.outlook.com (2603:1096:400:2b7::20) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB10698:EE_ X-MS-Office365-Filtering-Correlation-Id: bd7e8c67-1829-44f4-2657-08dc4c8531bc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4PH5qF9OJd1pdtUV+9Msuv0fYVzH2ztyVIifHI1dcdfXFeoVpK4lGiQXHzac84RRn7plf2neHm+z6fdKmQ+tR4K3otn+VfqP+K0+9aoXFywIR+5+TGf71gV7NxdcsCHu2/l5aCqE2dn3m1BKMzl56YPhC9QJ4yk7ZDC6ECmed/v8Z4iWvzhsEWXipL7PE3RVk32yJbt0eC4vX4XKE8UFTNueBGlu85SYxJClTvnVHacd/TxTuwf26TfeVfupTC5vKF1Mu7gj3pCnsKpd4RzUAnUdooOaj00rl4G7ykYCaOLaKK6UmAKVZI/JxaWmjYxQFyopga6yxIDaaMJN7GatZcATtQp9r5Borg3qb1znMaldOOfcw9HT7Up5NXmjXpkPxcg7PmPPAk6pP16BGKRZCii8s2WYXVxEvdpovP00Cir1EsDkaLDdRb8EFZh/1IjscfUp+tt+UiHP7yh7tvS1MPxqGCGSUJHJvYmufvziP8QWo0pNW8FtlOIHovpoZZl4I/XdyGSI8A2lgPqdmzH2WN+T3ur6XMWnIER+yv9NDn0Fi+DbzZ0LGI1h8vpkQBxLmw5yEc2HmpY5z/07lGwNq6LzlJzQxgx2DrOwtlTVDwqGo8c/gYSYqaj3cbSZlh9QBbW0ANcodxT7Lgjcgk1wJZ5HSl+sUZCR+1YsPWX0XzWSSJKBxHkjF40nZpqquggmJbIkJO+GxMAkwYVyPz+bl/vbx9sR2dcLA8mFksvfk08= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYCPR01MB10914.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(376005)(7416005)(52116005)(1800799015)(38350700005)(921011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: mGhA957YmjevWtksHYcUaRyYPxSGtQXWfDAzXFRhiY5lxL875idhnFoiVoxJl77NOBLK9eYYWqLZiOgRjT6G3naA4I5crQlE3VZA1+UsA2n4HHn3o/hUpbeIfKAv4UAIx90C/iFppDwCGek9m0eeh02Cj/S+nQwh94jkrm4Po6ReWHZ3X3w+GG2/GrlORBBaXth+WpU2HhauIbJeeVTPMkq2i/tC92LZtDrrzkNbzlzHOjxCR5K9esc+u4/07g207FRvEKIVNVYblBU29Oqjncd7oWB/fCCXYpUcVF5TBsUVyx7aoOCFuX4403xtRMZUovYjzHiJLj3sVrXYIc7RzijwX8mUrI87KEd9/VMoY2UTEEgyNplkAcdyVu0iJwJPqyLg4AA9YuNEaRzpe8fRxkL61+sDw49zZz2yuiyiGxGlIPVwmdimWMdUYJK6n0ySi/MLr2RfqBabjlalFkX2TT5frg4f/4jRXBSRWDKELZml9vd/Nzpjg3OauUlRzAWbt2xdbiHF7VaaSRLQPI95UGm41S8XuYLg9kTlKM7zK1VQL3A5vwuWkMAcp1weifYCGJD8eyoLSfaOx89z6C2czFmcJ9TyEZvROcshUaw4zBy0tmDaLOrL/RcQLKxms/XDdDOdFFghLp9C7z4NN+QPd+HcY3hNDdobTOzDgTD5HA4aqpwpENf+qVtHupavRz4NeYXIM8air56MXf+FDZAlcsKFo5zFXwcN9zwy0VkxK/do2xyjxSWy5mZ5tcDiace/ASod0bwVyxjtc1bGrGPsBPygg31Iw/eA54PQZsIz1ULL9Y3lEHHietzYEAUEzgMdxPvbl+wG5kTeGqD+cEpoqDzjSq8QjyZ50fJjznKz4QaQbLlw3ykbB86ih2/RkPWMPWO1H1ZnZhkQ64+Ot5PXbVZZHS8/05fEcXs37s7ydsCCLx/Du1pLWe2LFvPxGre1Pa0XRjjVmvU6fJmrRnLMlZXt9DFfPiRzms4BdGaM3bqix8uu8cfJ4XfSrljTHXUY4Ht94LLzzRxKUgwsgXkw/fixYshXXz6Ogm4nbxUmiv8ljnx/SA0aq1ZvFp5yeQSbEjob7eZov8Bojtt1csTMXTUoBG8j+SWg8GgXJj9Tk12tuULmMxLed+XDNhfO357wLWTTrdOAkI5NcVAAfix1NEFL8QICkIvMpHKWgBQO78L5+H9akGdkw19XmGFDYl8UI/Va3VUKkrnr3ZH7MEPfMTrwN0IDizNFNGqOI3WeWU4LiWojxaByp1GY9IZBKHVE7x9ubLd14nA8vnFOiKfaU5Y3GdYA1Wv4erUd01clqw2UdpbS5xfVyTmIIHMoX2P1v1ixMYiqwR4IepUSrfJsHc3FCJwmQzdJd701PZu0fSAWAUyOWZ8USOEI+A9RZ6t6JW3CNVl69MHCYXCqIe/CyphkrZXgUdFmGW2RYec5JZlV6OuxKQq9EQ25xCI0N7zyTN4lDlfK0+uZ+AoPwFXIUZpzR8gGmMDva7hbyPfJwa4dumYzwXDhANr4sEuLM0riXHW4eOKZOZGogb/kauEtfCUsmBkuJD93ENUKZzoqNNes1iu5NbKMTmafx1gu7qNMQciAYYtlq7+YxOFWcXK8RRg6GzQ0GcTm1U3ofD+3ALQ= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: bd7e8c67-1829-44f4-2657-08dc4c8531bc X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Mar 2024 04:36:52.9496 (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: a42r9GdSpTtQzBg1tD7qsIK49+/PxMvNLpexEPTl704ecJf9R2kWif2V3ATHmJ/lCGv0SAKHCZIteH1FZxPiE5oAurU/LHpjUXLpqYS5gp9q5SiBeyqZiBqzyGerxjMw X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB10698 Message-ID-Hash: 5YQHHAIZD5H5SW75JZQIQBSBN6WOLLAW X-Message-ID-Hash: 5YQHHAIZD5H5SW75JZQIQBSBN6WOLLAW X-MailFrom: kuninori.morimoto.gx@renesas.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" <alsa-devel.alsa-project.org> Archived-At: <https://mailman.alsa-project.org/hyperkitty/list/alsa-devel@alsa-project.org/message/5YQHHAIZD5H5SW75JZQIQBSBN6WOLLAW/> List-Archive: <https://mailman.alsa-project.org/hyperkitty/list/alsa-devel@alsa-project.org/> List-Help: <mailto:alsa-devel-request@alsa-project.org?subject=help> List-Owner: <mailto:alsa-devel-owner@alsa-project.org> List-Post: <mailto:alsa-devel@alsa-project.org> List-Subscribe: <mailto:alsa-devel-join@alsa-project.org> List-Unsubscribe: <mailto:alsa-devel-leave@alsa-project.org> |
Series |
ASoC: replace dpcm_playback/capture to playback/capture_only
|
expand
|
diff --git a/sound/soc/samsung/odroid.c b/sound/soc/samsung/odroid.c index 110ae14dd7ea..6cea197d62e6 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].capture_only = 1; + card->dai_link[1].capture_only = 1; } priv->sclk_i2s = of_clk_get_by_name(cpu_dai, "i2s_opclk1");
soc_get_playback_capture() is now handling DPCM and normal comprehensively for playback/capture stream. We can use playback/capture_only flag instead of using dpcm_playback/capture. This patch replace these. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> --- sound/soc/samsung/odroid.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)