Message ID | 87jzlhudmv.wl-kuninori.morimoto.gx@renesas.com |
---|---|
State | New |
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 A2E7CCD1284 for <alsa-devel@archiver.kernel.org>; Mon, 1 Apr 2024 00:34:06 +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 27C9CEDB; Mon, 1 Apr 2024 02:33:55 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 27C9CEDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1711931645; bh=YgTWv1vhfUdk2t+lbs/HS8Ry7stgMNoX6aOctFEpjRk=; 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=bBAWp1eo7UpkPHWkxBJig0u8BoX9HpbvtncL+LcmEcsTdd2ykfc7KQjX8WSAtfLKs IquntMTpoK5s/j14Is2dInR4YL6F9WsrQfxvkSawwwME0qxzI2gPZSnqU14LXlEnIW LQ9lyHVN+24PQnYgdfcrdHIVT7yCNntRjPTDtnoE= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 39E4FF8060A; Mon, 1 Apr 2024 02:32:15 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 5B4E1F8060A; Mon, 1 Apr 2024 02:32:15 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 6629EF805EA; Mon, 1 Apr 2024 02:32:10 +0200 (CEST) Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on20701.outbound.protection.outlook.com [IPv6:2a01:111:f403:2019::701]) (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 124D2F805E2 for <alsa-devel@alsa-project.org>; Mon, 1 Apr 2024 02:31:57 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 124D2F805E2 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=L1ZiQmR3 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GEJjANlZqAMUDLel1ao1JcooJG3UO2HnyAyJgZGp8h9Z9o63t5b7JE7btoLxQHsbnigHA85c1jN/RQQWnhhusiZvj51bF/Ex8x2tMjKDyT3YFBNiJZtRFiMetnUC7FZMbWsvKGFFYo5lUo63flEZmxZuUy9VsRL+RPAYuaJbVe2jhLUvJhaoFUjylSJ4h1tRZ6N9Zb+w7eEMD7jN7VHCrVNua4lu5IptPLVeVMwM9PgrZfbhmMccSOnOpgiU+VbN0TrSGP+N50qKxVDCK9esJN1igsHlM3s3bwsPBd4G8mjwzYxodzDcwkB7vDPMVuXm1XjdkrufYTAZb4BFiZX/TQ== 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=JqhqoTJF+tm8QauwvluMseFaT1V2WJovxDaDwefjuKM=; b=V4h7PB3JxDTs2gOY8WLP43wXnWtcWy8kF9iQ2N9zXo/pn0sCG9uY26kIXB+7Nwy/LE6qXzpXnezNu+a0Hz+P/wNVhEE8z87O27/OkrUVWBRyBRxNzp+O/obKt5wY7y3w5VIWlz3fA6UaprDfMgr7NzoflcouG8dEXeMuaI/bQNttk+s3xngdgM9ztOK70rv+92M1ss9XT+WJfQVbY4xqT5dzM8PTpKUKFZ9PFGInoZ3ue4URqG5pETj2/ksIq0yz0ZAeiYfgpcSb5jmIiBijqiM0aoQEvnL07TlZT0x0e5Wmb8mC8exi6TDsbFIuhwa1iH8+6cl1RBu5uq0xQRI+Qg== 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=JqhqoTJF+tm8QauwvluMseFaT1V2WJovxDaDwefjuKM=; b=L1ZiQmR35sXxt7paCoq3tCjYWCc32DKdvhEJAEG/CUdk5LAHvrWmQPF39rMCkuBBg2RzZ3cQ4DClWdJDkH7JvNd5wBUKm3xvPH48+9wDCD4twgxAP/PTyjlhJkyp1VYTIAv2tE0zkdjE6uNIj29mD8DaK/Yq2JnUCuU79ZqAWJQ= Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) by TY3PR01MB9964.jpnprd01.prod.outlook.com (2603:1096:400:1df::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Mon, 1 Apr 2024 00:31: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, 1 Apr 2024 00:31:53 +0000 Message-ID: <87jzlhudmv.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: <87zfuesz8y.wl-kuninori.morimoto.gx@renesas.com> References: <87zfuesz8y.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Subject: [PATCH v2 11/16] ASoC: soc-compress: Replace dpcm_playback/capture to playback/capture_only Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable Date: Mon, 1 Apr 2024 00:31:52 +0000 X-ClientProxiedBy: TYCP286CA0194.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:382::8) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TY3PR01MB9964:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8NVOZS33X1eE2acF3xt3FBiD9PrFJz6jV8USY5L9qeKRdg0JHkXsxLrWvqrJDiIjQ8B/b9foD1T7cbETFDcx7Bd5Q/2olPWht3Cc0kPbeaK6swC3S7LXtvuqXOkfplHiM0PNc/m+GGz+Q7xXqE6xr37OCyksKYpujuSCNuK6RWLR88oowAtNG2ZfPz3m+CMDEwLBaZvQP39n7IdOUEz8AxqGkcM1aYbf8/gFdx8vViFLkyozLEKYrOwNgz5G4PqSlHxtGE+rB9kyrz5PNvCR9av/4PnZ4E8K6GJKQxtDkh0qwuPIVTBcH+5PU7fQ3vrvR1H+J4tTlQPpZEMIAXpmAWC3cNMAkQ6ASYob7tRoj8HarxI08VRjY7lAMHnZcZ0zG6kJNnIdv3Od5umiNTOS73ot71lt0ktXCrTbQMpN0ci2A+i5Otpw0ckV/eoDGRsNeGziA5iK4FNYFd+sDC8KvCTISBxC15A0uZUDKtdFpZwBJrtmY8/C+Lw6WsXAAKSjFbGoh8EZL6vqVSoLHy69RcNBqtJtG7skY4DcAqprKvwwa4bR9AQeMB1wiO7wbiKzE62PqThTRpqGySBhZyzihccT2ryw0OLBWxHfKuliy/zX8FJJx7/OE6OwoRQkDpta2VdV/xwHG7kvQhG8oKFafNRSyKLpTgCisk9TN9rWwQdCWI4NnxYpNpifBYiTmG+MqdlTzOLGCTaFyjSn1cGCc9EUm4W230z83gIhR5KWZZk= 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)(52116005)(7416005)(376005)(1800799015)(38350700005)(921011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?iso-8859-2?q?g6YixwG45lkokqYva/gCJu4?= =?iso-8859-2?q?4aCtArNgS3qtQSxS9N/g09z/CwMlvTvq0Mx5qB/9il8nbJbg1etW+AAtimZH?= =?iso-8859-2?q?Ww46OdIDNx0/E4TIxSzoNwicQZOGkB5bUHeLhASJONWt3fTJKQNIcW8cKasJ?= =?iso-8859-2?q?kYDkwnluVtFynVUrzXanJqZ1Mi3QfGnB4cgoRYPX11qGFsy5MY9yHx6FDMhy?= =?iso-8859-2?q?CS22G2/3NEr2DLIj1ZOk3GRXqrkViabop/H0lICpfDnF8g971p/HnYwgedQt?= =?iso-8859-2?q?zHRIVXSTwIdzPFnnR0V74CDVP6zcJ1+p2k5ohvGHyx35kYS79JF9fmImWMls?= =?iso-8859-2?q?zcJgCY8HcCmQdTsau80qSB/rTrgnxPEVyAV6xeHscL7OfwN7QVhwDR29Ho7+?= =?iso-8859-2?q?vnYHkDPZaomkQnHA2skteMVO77hjTeii1giUgSWF6mxiaLZ4jr3ptBMc5w1/?= =?iso-8859-2?q?Oq0/QnIUlOBpd+nCiGpeYM5tFfgX+fnCnxbauTD2BMJS09FXIN1bDhq2NYQA?= =?iso-8859-2?q?N30QvwfZRYxRyuZlBiieofBhHzZ6rQ/6dVahBECjhtJxYIU/KO+sOQdZv1IG?= =?iso-8859-2?q?wIFa2YedE33j8YD9UZ/pExC9uXQxByv48yTTbs2zlIZS1Ol+zfm9uuAkVF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CjJHfF1CGvm3LKGBigvx+MRJs9X97oqaAioPT+xdryn/6teyCGEB8?= =?iso-8859-2?q?up08qt2j3p61eCqx7qnmt9o/7BtW+dv95REBzQp5PWs4MVlzjYrJJ6r54EOF?= =?iso-8859-2?q?G5UplhnQWF828WLLBDuiygqJrZNv9XNsX3fVkJF3tX+ueK03siCY5WrMKMg0?= =?iso-8859-2?q?=3D?= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 10e1edde-8d1a-4400-8879-08dc51e320ee X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Apr 2024 00:31:53.3003 (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: 8Wr52+d67jU3ftkmnnShvKuiSrwk2/NAShK+xClVx+0c1FhQLhHA1bpwIcwXtDezVBYRyHmKGr2GP5RCBuUXPL4m1i7xzpEKAIfGuut1SrtzPGRFempG4dlKV0rVjlGc X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY3PR01MB9964 Message-ID-Hash: DQR2JSETUIAPVIBTCZWKEUITRLPVF3UE X-Message-ID-Hash: DQR2JSETUIAPVIBTCZWKEUITRLPVF3UE 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/DQR2JSETUIAPVIBTCZWKEUITRLPVF3UE/> 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/soc-compress.c b/sound/soc/soc-compress.c index e692aa3b8b22..b861c2bc62e4 100644 --- a/sound/soc/soc-compress.c +++ b/sound/soc/soc-compress.c @@ -606,12 +606,14 @@ int snd_soc_new_compress(struct snd_soc_pcm_runtime *rtd, int num) return -ENOMEM; if (rtd->dai_link->dynamic) { + int playback = !rtd->dai_link->capture_only; + int capture = !rtd->dai_link->playback_only; + 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 +626,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 {