Message ID | 87msjovbtk.wl-kuninori.morimoto.gx@renesas.com |
---|---|
State | Superseded |
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 110FBCEB2D2 for <alsa-devel@archiver.kernel.org>; Tue, 1 Oct 2024 01:44:14 +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 7A410E65; Tue, 1 Oct 2024 03:44:02 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 7A410E65 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1727747052; bh=3g/snjlfb2XSX2dfRWXRD6mShHGLmwed8aThlrMzShI=; h=From:Subject:To:Cc:In-Reply-To:References:Date:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=NkftSgDTnEAm7czWVA6yM+7LtKDCWsu8+bECEykElcC4vpy4Pe6XBBVbAwG11J/xK uY2OtzfAnH1xnyAmJNx6S49oJAquGfOf8CJ0jefG0LbKoYLbZ2ub81OE/gE9gneDIy pSZ09cue44GRffoLrHGsBjisggCR/UwwnB+03Ts4= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 97858F805E0; Tue, 1 Oct 2024 03:42:13 +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 D25CEF805F1; Tue, 1 Oct 2024 03:42:12 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id A1C93F80693; Tue, 1 Oct 2024 03:42:06 +0200 (CEST) Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazlp170100001.outbound.protection.outlook.com [IPv6:2a01:111:f403:c406::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 2F95AF80527 for <alsa-devel@alsa-project.org>; Tue, 1 Oct 2024 03:42:02 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 2F95AF80527 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=TeuwCRAG ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=N+Uz8OKN9ugo6bxjKnKSila9XAOwnPx0QUK+eue9AxPSWKFX0VLtypEQl+zyIw0smDNKsECV3VXqEeCAwVXg889OaZZq/D3OujUo/V4iZbGqgoxB8q4mNIOSKCkpdu0exlsG37J6zj4+StRXnmxbgvSnR9XxjDT7iksCuThZX4YEMnwo0FZaHbAmKvWunjGGjCFXYezeMKW6sIwUlRJLJcdZFOATLctpiR11IlrDzyawVvVALoj6LLqEOznBdk+yA3BjKPoyfDUenrPl/D1FL+hHzkRlUOfKXww0DK5Olr88XPdPUMDhsWowOi8Y9gBJJeo4F1a4JeAw+Uk49S2guQ== 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=KV18HMbNeNn1nP68oRwggkr9QiSOvRe1aZ8FlAj5FWQ=; b=V1yCtViiHFin21Erba9zWYAAwSuSt6E4TSEeiOWZoFNAfPfqBOx7lxSgJFE4L/uq2PmFd0Xr9v2y+z+qAjwpGAW6VBTO2sC2yjh2O/nZT/Qxc7kIGSBifJwgOGTOis2T240fRD9UgI52GkHNDxVHM4w+bc1M6qcRckTJCIjkVSHFGNsumPz7JHsPXJb29ZkgQGa2Nn0mK/h67ojBQszo75YcUXZ9AaI/2p+Bdm2fErnmyUMlOCvd+2LVUVEByRCRppS/NNBeBHGWkXCCUlFeazMMCr5Yu3n7NPWU+tQjZPWtThhnF1CiEsyMYxts44Bvz+K06cSQvWejSdSUPerUUQ== 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=KV18HMbNeNn1nP68oRwggkr9QiSOvRe1aZ8FlAj5FWQ=; b=TeuwCRAGMyH3+E72lBclkbWwTlYUGmzYJWZdkhuTbKiC0o9kHG45vA/zXQ48puKm4h7lu3AC+1mAgZ0i6veiQZP3OY89bpLV4Rre7UgJNovio3SN8qMgwgO9Rh2yGDWiNzcOczt6vnAmVPkwplzQaIoA8UbmGCdAYjVJtoos0JI= 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 OSZPR01MB7132.jpnprd01.prod.outlook.com (2603:1096:604:11a::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.27; Tue, 1 Oct 2024 01:41:59 +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.026; Tue, 1 Oct 2024 01:41:59 +0000 Message-ID: <87msjovbtk.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Subject: [PATCH v3 08/13] ASoC: soc-compress: remove dpcm_xxx flags User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Mark Brown <broonie@kernel.org> Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org In-Reply-To: <87y138vbv7.wl-kuninori.morimoto.gx@renesas.com> References: <87y138vbv7.wl-kuninori.morimoto.gx@renesas.com> Content-Type: text/plain; charset=US-ASCII Date: Tue, 1 Oct 2024 01:41:59 +0000 X-ClientProxiedBy: TY2PR02CA0054.apcprd02.prod.outlook.com (2603:1096:404:e2::18) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OSZPR01MB7132:EE_ X-MS-Office365-Filtering-Correlation-Id: 5b276dc4-b719-4491-6d04-08dce1ba3db7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: hk7PLn8BB/tl/w4i50wwiro7laoDaRFyxWvSR62iHJ/arTwlAyoBjJZvokzHrdtvT0JWnHI+/GkiLiMbtXb2+3AG2cM7QbYk+98IYRGfhtSVfbdOKG6oJwxeIxSmvke9zvsbAWORMOvfg0jqgy+PAHFs2bE7othkT9BHCSjPXUdfb9ppUnE9GqvXzj1D/wpu5PN8IDRaxc+QkJNZZa1Vuw40Qy5LV7oWTzZ8MDAjpzSlDD0eKlh0QnMeGDG9rs5PrQ74UhFn7hrKp+YKXq44oidDMPl+JSVBBLFxAKIYLEPInzioQ/CEFIoMcEj/btRTgSUiW7w65wXxfeDNv6EJMI9cvXckdT8K9vRPiP2shLTvjrKS1Vc7CnDIQnu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prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(376014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Huh41zOQIQ+64SHZD3wy9suF3L/5LGLSP5vcHqHU4RH4GsAPCk42ZpmcL68uvP5PQDfiKtSo09lP81mk+pd0AEpN213YUZNGiO/+x7ixiJIYO+UEg3Alj8DBEKkLdBRhtj3pBBFtrYaNkr31eApHK+aVbh2J7SjJJmLagIJdSIh98E5NA1lh2zA9FAfxnSbam0HICZ3jYkQJqnTcLFzDzXduud0JSxkJ7carIa8R6udMbeGPEu9zTesY1iiiaXhud1NOhR0D7KcmXS+AvWCOY36LCk8zRpOxrc6rKa2TRc1T2jtRK48O90ijCe8BU7VkAG0seYOHjIQVz8o4Xzd7575jvmZLvZgLaCTL2FXElkeSmfJCIyHrYcIl0zHX7+V1dxdErMPMvhvE3wXCblw8lo8d3n/1F/z/z06jK81wbEK5YY6RXBWtRVa1byq9IbdAOenZFVZZR+iw+4QCXDq+TNRNnfK3xNtFcHr9+9xSMX9feDIvFKokhqWCLTNesOzNbratrC2pO4BqSkU9TUFkB7F72S8NLDzsBt41FSKewvnHLb8FR3uD1F8RIBRdxMYaPBIrOE6/StDyY0adf++iykfVWD0zm/h287aG1ZIHAcrabfm65Fisvf4o5jDLoudG6+vCdIZwQaABDgYJNkx3dCOk4+dduwwzJ1nDxL2W8GPEqMJmOkjszjalx7EnBB4uwxO3R7RSQ4JU3a977rqsb2Ky6wsljBzr/+d3gpUDDGuiljv+SDhuzrXMck8dUKC50064gmJaaNWfxq6KmOiJnYf7gSW+PmXQBG7Hvngb9sfjefw8ztZMGIXJ+Jm84PyhyggcbXld1/hyzKqL2xHiFGwJ7ZyqiKuo1Crz5x54Tp6WlXocReH0t4C/9YQ03Xh04jMZiJ+Ri0MUYgvozWlZEQ+l6fgDKMlPQCLXbKgqPbxClaZr3biaQRGxBypkaR74CszIVk8bKW2OR6LBfTfcZGraR96ZcVUyHi5S5RgthZobDw+llj30hvOqCr9J2WDxaRiU3JbBdPEyKbpK2OBDlmPlRyl+TCbWTWdMSRpLF7N43VBlWWZTPCMYKmRbAPzu3XDnzqwOTq9ouq1SkmPlRSLQJWgwiqELnk0Gd35IFIXyLFDXCxBSQkcs0bvb5zjaev3c1ESmGAjJu6cPlogkPwz9TImm3tjTOQlmVU6ODQ3oUOvJ5iJOVQuIO/YiWqPv5yWNsjX9YSd6CTod47d7LGj+MrLB6qrTEPom+5ZQ+AMz0THLkLxsp27psjlGXx54ZODkUJZREaiKIotw0mwC3g83kYhSJpvh5E/P3W/Gi761vowaAaQLbuJqlMj2gZ35ZK3lJtuhREv8OTAqTmzc5ijbF/G9OcQztehJg3g6pHDnuVH+0UK5I9aQYyKWqNpG68P5Pg5ALCHPZxCpUQxvT3KZ857+PrmY0AGcJA5K9/s68sAAccNZAEgwyn1um56cViS/HuDDmfCJ2hPc+I7YQ4tDZUeVK2gvB/nFOrp/czbEg5Nn70FGblBHe1UXtLnzdqYM/K60lbfuYoixW8ni9b29+01veGnWu6Lg/j7WIjIjla5S3eaiPVUhv9/a/Jq0gfYfUTE3aa1sUemZmbFMagav5vNJmbCmmy0uPyP4mds= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5b276dc4-b719-4491-6d04-08dce1ba3db7 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Oct 2024 01:41:59.6202 (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: OqZ4Op2eJMLyHcc7FgnL9Oe55wEKfPYfw2OhNz/wYgEmCTNqz3Lnegjo+6sgvzyZEu2DrcBmmcSLdZ178RiPCtYsAClw0gYuSvcVupnCoYgjYrYxRW9w2m91fw5rnAwn X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSZPR01MB7132 Message-ID-Hash: SXFNM7IRELVBNVLA4QE66SJFMPNTORZN X-Message-ID-Hash: SXFNM7IRELVBNVLA4QE66SJFMPNTORZN 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/SXFNM7IRELVBNVLA4QE66SJFMPNTORZN/> 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: remove dpcm_xxx flags
|
expand
|
diff --git a/sound/soc/soc-compress.c b/sound/soc/soc-compress.c index e692aa3b8b22..a0c55246f424 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 {
dpcm_xxx flags are no longer needed. It converts dpcm_xxx flag to xxx_only if needed. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> --- sound/soc/soc-compress.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-)