[v4,1/2] ASoC: dt-bindings: sound-card-common: List sound widgets ignoring system suspend
Message ID | 20231023020718.1276000-1-chancel.liu@nxp.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1031890vqx; Sun, 22 Oct 2023 19:08:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEQcJFMdJ4beysglQysalidZpqYXP5YYEA4tACA++JQUIdQ8d9akaXWzqpoV/0LkhrHzg2t X-Received: by 2002:a05:6358:c39d:b0:168:ceb1:ac25 with SMTP id fl29-20020a056358c39d00b00168ceb1ac25mr4557060rwb.7.1698026894324; Sun, 22 Oct 2023 19:08:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698026894; cv=pass; d=google.com; s=arc-20160816; b=gojSlf9vFhlpgxkcBxITb8aRhyYtBTViYbSsczYVNl25hhmXt4JFcXhvuFFZqfKV5E wD09dWrWWhuKZ38VhSH9VVQOEmIH/yzQ4k9r/WzuQOErunWDajmy4IpMaiGlMxbHsOt1 n6niOuIxurpWvS3fGOXFmnfsv9JHrusWIvfJY8xB+C3D9LSKB1MV+wn60oYawp1ap+I5 vHaCtSVqE1OTdd66x6Vh2LZiL6z8e1MqKrLRjykO4IlLTW80TJOyQss7j5G5XKUSt8dn dTggOKEMW/mqFuD06gLZTUFPXeKGL2Dt3WWJbPfVLPlb4UiAT3QZ5uWvhLqLluvxsm5z u18w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=f++g2rGtSQ4fZrJwJVrEOL5nHfAM9mVl1V7lXB+m2eg=; fh=GOyYGW+FL1Fi41D7XUg4GCc9TeYyeHjS9EGuJvLeQ9o=; b=zkGYD5tTsqfmw1zarMHoTl3wCgDeg9TNWiTo2VQ96u2Kw2Lw0gCpW2YPKPx9ohjD2g XkbRhhCWvE9wrJSqXWEv7Sw1ODVVQY/ueZ/OJM+qS9BilrX3KhoNnKjtjKytKzOzgsTV 4MCv2dNIqW61loU3XUHCgeWni6Txfd7k6fTz2GoxoBkCetbfzgPb1sOEuNdagvPYk7qh NOWEJ6S0Xtm4/mGjZT+DmobNTiq0SeK7y4KX2B/JjVPrZezI6QA6cPyMLEVhgwwD/i2V /DiFH4giwqiBCCUvvnZyJoJGA+BD5XyLhA6jGTdR06E1QsY4LnGqwF4lKUo/l5xc0VFp cfAA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Aeus8U0c; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id d4-20020a056a0010c400b00690fec2f3b6si5768210pfu.193.2023.10.22.19.08.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 19:08:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Aeus8U0c; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 58559805A891; Sun, 22 Oct 2023 19:08:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232956AbjJWCHw (ORCPT <rfc822;a1648639935@gmail.com> + 26 others); Sun, 22 Oct 2023 22:07:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbjJWCHv (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 22 Oct 2023 22:07:51 -0400 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2052.outbound.protection.outlook.com [40.107.104.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0F3B107; Sun, 22 Oct 2023 19:07:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AzN7aKzCk+BDfNogfjJ5OuluEnhc79327g1uqRlLu2NIINPB4O47eOEqI9pgpy2AyTaJF2d2CFNoZR0TcZPwBkJfFVa+PzRH5ATD2i9ZInV5Vi/wO9v6iWc1uBYtfZE7SWdV+Z8NnYrF1hTmM/VXYR+qhNEQ+zWgsYWc+mfjGmt9EJEuKFxQScpTm9bCHskg7NTWLUJ2xehDZj6yKecD2efGRUmWAiufQASlTamKKciA16wwwPFwEgMCWXx5H4+peMuXV40WGtUUFJNV72PJ5t05R81zrVJMbHzFh+oHukkn4Ynl3ukruLjHkRtvgBfvR/aF3x/u3qfQ2R9Q/7UFMw== 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=f++g2rGtSQ4fZrJwJVrEOL5nHfAM9mVl1V7lXB+m2eg=; b=fAMTzJbckaOM80kRiY1GCv5cjnGOuFRU1Xly3naV93y8STf8mRsjSd6+iwyveak/fXeAo4aCAR0NVm0Amv47JVcHPuQWD9ABiEsUKxGgnattFoGkUHDzXEryVgwz4FJpRJZrxXpyAW6TvFoh0yyOlXlf3uqWc3vU8BezThMd1ioQ6xbOA4ARXErpZw6FXIzHk0R9W+tyvPWsm1caTAbaCdy4Rc2VmZYYVGy+LV7Ye0v1ProrceeRJBXDTgbRsMIJoDCNiNE7NEmOuEpbJ3ykm29At6eksFRHEa+4gZ97jTy1XtSWLiYrZBictDZJc+ReJyYTkxDorhf0DODukr8Lsg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=f++g2rGtSQ4fZrJwJVrEOL5nHfAM9mVl1V7lXB+m2eg=; b=Aeus8U0cwnlk/d79eLKlgbjmwCLbyT670m+g6RUEggYibyNreZVpi/+++77fPAAXv85zEodSGcXGj/OXjYu12jh8mgZ9FDU/20n4z+gxDpAfZFP9EkKmja4/YdHnLFJdn+X7RI04hVcxpQUcefLUdT0BiK7xywl8Oog8YKEn++8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS1PR04MB9504.eurprd04.prod.outlook.com (2603:10a6:20b:4c6::19) by PAWPR04MB9837.eurprd04.prod.outlook.com (2603:10a6:102:385::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.22; Mon, 23 Oct 2023 02:07:46 +0000 Received: from AS1PR04MB9504.eurprd04.prod.outlook.com ([fe80::ddf9:e4b4:367d:bc06]) by AS1PR04MB9504.eurprd04.prod.outlook.com ([fe80::ddf9:e4b4:367d:bc06%6]) with mapi id 15.20.6933.011; Mon, 23 Oct 2023 02:07:46 +0000 From: Chancel Liu <chancel.liu@nxp.com> To: lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shengjiu.wang@gmail.com, Xiubo.Lee@gmail.com, festevam@gmail.com, nicoleotsuka@gmail.com, perex@perex.cz, tiwai@suse.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Chancel Liu <chancel.liu@nxp.com> Subject: [PATCH v4 1/2] ASoC: dt-bindings: sound-card-common: List sound widgets ignoring system suspend Date: Mon, 23 Oct 2023 10:07:17 +0800 Message-Id: <20231023020718.1276000-1-chancel.liu@nxp.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR02CA0084.apcprd02.prod.outlook.com (2603:1096:4:90::24) To AS1PR04MB9504.eurprd04.prod.outlook.com (2603:10a6:20b:4c6::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS1PR04MB9504:EE_|PAWPR04MB9837:EE_ X-MS-Office365-Filtering-Correlation-Id: 2f1c6f3b-d8e6-4656-fd1e-08dbd36cd98a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UvSp8dQQrrb/bpmiRt3iflsef2hNGNaxnH1f1Vm2k0VHneXkLLtipP7aGdcFvGsOkYN/kXPa50p3RSKDCxi8Vk4OFT1401ll6lZ0cqcveFPlekMA110Q9vdCSxa51DEdE1yeEK9AfAXhBYUN4i4mTw/InUSxEmX+VFrVKqFVdfzBHu/G1IXg/kEvdmV/++TxUkcsY/bXTYrKGT4PJtlFEgfvgoezAdigXMWpkEgzKdU2nfNJLcAKWHVbPRUrKn19zLUJrfSl71B8HdjZCVEuJtfHa/Q292xJB4Z0bwYPXvaA04tryeMZ6ECaouOEKC2AYOhDZAGIY67ZNdxV+jPRYuApOdFACzoqPcIEZjPyRezmsV3LRtgaR1sW1xQGqpQHjQ46uY6XXJUuZO1M2zCHSxSdnSfiz274ljJCgpmwFtQUMl4en08K8F4qSICs+s0nTBvda3uKYnZ4H4JA7g4sRvd0nyyzDsdjBKkLIZC127EpZ3iRAYbw+xdBGOB7XSeEa4g9MFQT670tZvTt+vJCqdfL9JtTZ9/K18qkVZgVttyO/n5JAjnDANoJ4Ibo8DxZA3M3IggbLUIjK0tDT8f7u1cB3NxvwV5xtpgMJ7JfbUl6yI47ee36dEpDd0lvySPNq46iauTm3GLu87nlxcqGCg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS1PR04MB9504.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(346002)(136003)(39860400002)(396003)(366004)(230922051799003)(186009)(64100799003)(1800799009)(451199024)(15650500001)(2616005)(7416002)(41300700001)(2906002)(36756003)(921008)(86362001)(26005)(38100700002)(38350700005)(83380400001)(66946007)(66556008)(8936002)(316002)(4326008)(8676002)(5660300002)(44832011)(478600001)(1076003)(66476007)(6666004)(6512007)(52116002)(6506007)(6486002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: nslUgNC66YvASx1H8VH+RAjT84x2+GYG4MQVPflLnZWQsysQndQiyv7H+XLHmcY8IGrLHTCu0d7TRXBDNGmf9p/DgTB2J0hc8P7lfK/rC9NQQYxIMgEyUgpiWYV6rRoEgRPDEtZpeiycvO47nMFA1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hik48VeukcSvSFlR6XgCB/XhSY2kr9jNJmF7YE6N5E7KQjxEP8uon/yZ2CA86WBk1X5aLnpbaJ1EK4AqChCfop6WJUSmpdWrHdOa/EhVL98amb5DGrIryLsCBU1UDo0MZcKRZr0d7TYp81D74j3LOMks3boYf+4Ps/RtByCqg9mfIhvFsMnAeiPEVshLdynjrrdwugbGqHLGdQZvHrW//f/qsyOM+MdPKEBhK94YZgsABuA7CLm4JvEYs3dRmQ3XNAfqOzZa0ifDYtLFhsnzquX+Sr94P+QTfPhGPHENespgZZj+J2VrphdGIs3Y14ha8f03YcBSvzKsI1As+ZX4 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2f1c6f3b-d8e6-4656-fd1e-08dbd36cd98a X-MS-Exchange-CrossTenant-AuthSource: AS1PR04MB9504.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2023 02:07:46.5656 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: GXWoSA0vSbV4lnp388CkcJz8DFvZXnXM7bsPl36Ry6SGSZ+mGr1zjdsI0FQXOqJL2CNj5F1ZXixDSTGkVbtHzA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR04MB9837 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sun, 22 Oct 2023 19:08:12 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780510248354268294 X-GMAIL-MSGID: 1780510248354268294 |
Series |
[v4,1/2] ASoC: dt-bindings: sound-card-common: List sound widgets ignoring system suspend
|
|
Commit Message
Chancel Liu
Oct. 23, 2023, 2:07 a.m. UTC
Add a property to list audio sound widgets which are marked ignoring
system suspend. Paths between these endpoints are still active over
suspend of the main application processor that the current operating
system is running.
Signed-off-by: Chancel Liu <chancel.liu@nxp.com>
---
.../devicetree/bindings/sound/sound-card-common.yaml | 7 +++++++
1 file changed, 7 insertions(+)
Comments
On Mon, Oct 23, 2023 at 10:07:17AM +0800, Chancel Liu wrote: > Add a property to list audio sound widgets which are marked ignoring > system suspend. Paths between these endpoints are still active over > suspend of the main application processor that the current operating > system is running. Perhaps it would be better to define components used for low power audio rather than the OS mode that gets used. Isn't LPA just audio handling that doesn't require the OS CPU to be involved? So the state of the CPU is kind of orthogonal. Rob
On Thu, Oct 26, 2023 at 12:58:42PM -0500, Rob Herring wrote: > On Mon, Oct 23, 2023 at 10:07:17AM +0800, Chancel Liu wrote: > > Add a property to list audio sound widgets which are marked ignoring > > system suspend. Paths between these endpoints are still active over > > suspend of the main application processor that the current operating > > system is running. > Perhaps it would be better to define components used for low power > audio rather than the OS mode that gets used. Isn't LPA just audio > handling that doesn't require the OS CPU to be involved? So the state of > the CPU is kind of orthogonal. Not really - you can have bypass paths that don't touch the AP but which will have the power cut if the AP goes into suspend and it can be a system integration decision which components that will be true for. Often it's an inflexible PMIC/MCU setup managing the lowest system power states. The pure low power audio bit we should already be able to figure out.
diff --git a/Documentation/devicetree/bindings/sound/sound-card-common.yaml b/Documentation/devicetree/bindings/sound/sound-card-common.yaml index 3a941177f684..721950f65748 100644 --- a/Documentation/devicetree/bindings/sound/sound-card-common.yaml +++ b/Documentation/devicetree/bindings/sound/sound-card-common.yaml @@ -17,6 +17,13 @@ properties: pair of strings, the first being the connection's sink, the second being the connection's source. + ignore-suspend-widgets: + $ref: /schemas/types.yaml#/definitions/non-unique-string-array + description: | + A list of audio sound widgets which are marked ignoring system suspend. + Paths between these endpoints are still active over suspend of the main + application processor that the current operating system is running. + model: $ref: /schemas/types.yaml#/definitions/string description: User specified audio sound card name