From patchwork Tue Nov 28 08:11:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Daniel Baluta (OSS)" X-Patchwork-Id: 13470618 Return-Path: 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 3DC96C07CA9 for ; Tue, 28 Nov 2023 08:15:42 +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 6845883E; Tue, 28 Nov 2023 09:15:30 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 6845883E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1701159340; bh=aPdwtRGc5TKzhMuh1+5CJLPX6P+M/36Ec8RMBN8lWbE=; h=From:To:Cc:Subject:Date:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=Z8PuEHyg8iJuZVvl1ix9lRx93blUkfXMZCNWbzlH/G0vMpDEgUEXYohWlJHF4WvU9 Vt5Yi1/66DRlQ/5b2hdcN0oWDAqvX+MZV5s5yE+nWdibpLi1JU3xSZB7QHVj/E1m+b hJXWxStDeMnSNA0doA5GjlmfTdnJJdd5oo2pDNuc= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 51E9CF805C0; Tue, 28 Nov 2023 09:14:55 +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 9360AF805C9; Tue, 28 Nov 2023 09:14:55 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 8185AF8016E; Tue, 28 Nov 2023 09:14:32 +0100 (CET) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on0617.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0c::617]) (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 6A44DF80104 for ; Tue, 28 Nov 2023 09:11:48 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 6A44DF80104 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-NXP1-onmicrosoft-com header.b=iQFrUm/j ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VCiAUn56NBF98iHlJZKJxAJsduO0fOIenJy+NN4Q1ZuYl+P+qdagLf0dOLqLKDP+JV6NJyyIg4++VZzjkZBuqkNmZ9STBwfAfxdMyE9Ohfz/tU01tgd8KbJrNC3l8wEGNY3mxXIwnujECvOtByREpHf6eeAOWhumuyLYIwBY9lWMQVnw/jAzISHK6B5ZYC+RCY6AVdsqHIiZZ69RKrotlnSjG13E77rtklBmSdO0hl8zHKlnvqdqe/dcO4Vql+mg9wFywwRhVVKNO7UA/RU/Lewbu7WJmFBb7mlcwCeTLL+SVVtfaInx179qmJ7Ud9JhgG1RQpsajXzGKhLZKiLCsg== 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=3VV1BPeC+yD1dfcbHRvt3ndOohr1TegIMYu5ToGVmYs=; b=fjP6c5JB+LIM8Os4HsQfl/EoH9uljv5pKEWCeZ5SUIYycuiKPtlhDQcEBI2Drn7Rq4ZZsG9S95zQJyI1EYfO6GBAW+4Z2tQr8WwrU96M5SDDQiIabobPnkdJipa2aJxVcqvon4EaRkUCwLSQEA99oZ4GUNVqhRl/b+aQhSG00KqAM/mwBzz6mDiQEzrWLfJnerjk1VCh33OKK1SbcwI56bZiFuafEguVwZD6urelfhCrbvv9LZreSNTVlDKQxB3eguFnz6lfbtGHh8CbA0Ybzr7bKhTm6ihZkRwiumOJYPp8LBYhD/EtsFer+nARJOrU4pWhFexOQSjkOIxlJ5ZRgQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3VV1BPeC+yD1dfcbHRvt3ndOohr1TegIMYu5ToGVmYs=; b=iQFrUm/jzEeRjXm/UE+iW4rKtoS3qcY/wI7cXDYscAxm0GbKLBR+i5H88TseR5I4GG+iQYL2ipozGPqxzN7SfU0SRPAoVYaC8MuFJscYdS5AHeHxAObPKDVeikSEzDcmX8NUFwilJuJgA1YmZEE5TdBDkfOvjiVseYNOMl5xUqQ= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from VI1PR04MB5151.eurprd04.prod.outlook.com (2603:10a6:803:61::28) by PAXPR04MB9445.eurprd04.prod.outlook.com (2603:10a6:102:2b4::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.19; Tue, 28 Nov 2023 08:11:43 +0000 Received: from VI1PR04MB5151.eurprd04.prod.outlook.com ([fe80::c688:1f14:2ab1:c78a]) by VI1PR04MB5151.eurprd04.prod.outlook.com ([fe80::c688:1f14:2ab1:c78a%4]) with mapi id 15.20.7046.015; Tue, 28 Nov 2023 08:11:36 +0000 From: Daniel Baluta To: broonie@kernel.org, robh+dt@kernel.org Cc: kuninori.morimoto.gx@renesas.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, lgirdwood@gmail.com, daniel.baluta@gmail.com, alsa-devel@alsa-project.org, iuliana.prodan@nxp.com, shengjiu.wang@nxp.com Subject: [PATCH v4 0/2] ASoC: audio-graph-card2: Introduce playback-only/capture-only DAI link flags Date: Tue, 28 Nov 2023 10:11:17 +0200 Message-Id: <20231128081119.106360-1-daniel.baluta@oss.nxp.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: BE1P281CA0084.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10:78::11) To VI1PR04MB5151.eurprd04.prod.outlook.com (2603:10a6:803:61::28) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR04MB5151:EE_|PAXPR04MB9445:EE_ X-MS-Office365-Filtering-Correlation-Id: 4b150ee8-ca67-4bab-9fc3-08dbefe9a3f3 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cO/eVZ9bvkSmmNb1PIpC527u7hdpcn3PG9bJqBzBV9l5tZ60ymSTwBbfr6DY3mIquJ4OjgKKKJeiJs1YWWs22nAiXf1oRV7EwYxXS1apWcyHazA7AhPZPi46yL98aLH0c0wYfBmmsmoxwsKktUEycfSYWtgTLvpp47XS2Hk/RxCFVymnRINzw8VoGkLNM42gCgkC4vMKMjPAYU7bHI6wZ1F2gYjqBbnuG0sOdMXwjBcGokJf063ujHyAwfoSAzdV4/AgKhPcP+hOiU7UZpi9ry3pxdEwb24Gy9IKHj6ktvgdnp0Miq9/Y+EpCbWwxg8bTeYmPr/i40G5yg/PtNE4MAIW/odocLcV8x71mqpQRU2lH8NQ2H1kLn/QQq+2QH5LzLndjwP5CdqeQLU/Rec9+P5RbdcRbwy8a1jz69ZlxGWgGrKF1LafadJLUxHmPUb6DLDPIQNsOPKZm+R1G9UMEyt2YBx4DzNMRIYC/VkQ4vo1oKvl6+X0xAYdR5Stdkh6VT/Fh2AQpWamcjyLN22M1A3itQt40RGQqnUkL+O3DVw680e5XyvHvDv2ZDRTLErbjSIffAkzErAcFqHqi2Aqg/k72mOJIXloVgB6jaEoMAs= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5151.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39860400002)(376002)(366004)(346002)(396003)(136003)(230922051799003)(1800799012)(64100799003)(451199024)(186009)(38100700002)(2013699003)(86362001)(316002)(66946007)(66476007)(6486002)(66556008)(966005)(478600001)(41300700001)(4326008)(5660300002)(44832011)(8676002)(8936002)(4744005)(2906002)(1076003)(2616005)(6666004)(6506007)(52116002)(6512007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: lbPOQ0LQqjMxhCTL9e0FUF4+H/pMpVdir1CoeW+XuGmklYi6W/yxsBXlwWr45evLWysXA7nt3ZzuJ/dBGd1tWpMnP7ScBZkTaYCF+tpemzFvk9hlE3A2ITlH4EbGr3xwBBjxe//aFJJQHhHLlG1yA6rBk77Ryw8l4K4gNzDU2+f0VDmCLHkJ2pV9GloV98GdVL0VPW0JhI9s70UsASKpqhadJuh3NIfTNFGXIksTfjxOFirmQnZS/AIrrKWTVxfFbpi0ljEPLDSlHIUYRS09s5pZREyN4EZ0rVkTpf+RnYjAbht8h5M1zoUdpPO+71Xizl9AYijNe+q6wWvphufVTLbtwXv2mRf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D68aW7UhwiL20lUP9biZUjHFdvrN85pv67nCmQHfuSQ3yeFockxu5n/nAFouqUEov+/0qXOKxAwVzpMulwYr2eYEvP1KfKuiMkwDkE6RIo8gREkxtVA/ql1/+Rfh5jgUqA678WJDKuhSAZcHJcNAFxnPtuuzksMeyPBhadt9cj0+xBrtT1kKkIRkkTLmmtYFTjDz72xRFHQB8bH0aPjXFwqFBsuaezGBE76PyyNSb+mrOf5wk085OQHws2a+B4cq8FgA== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4b150ee8-ca67-4bab-9fc3-08dbefe9a3f3 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5151.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Nov 2023 08:11:36.4114 (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: qAgDfVyH9AppvJr0PWLnR8vsRhFKYXVkb/Fe4e2L9kHHrfou2LA79p0SxMyW/NF1M+fvaHl481ny97PL1qdkoA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9445 Message-ID-Hash: Y4ZSRRWGT5GZOJWQHMKSWGG4LBDHS63G X-Message-ID-Hash: Y4ZSRRWGT5GZOJWQHMKSWGG4LBDHS63G X-MailFrom: daniel.baluta@oss.nxp.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" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Daniel Baluta This patchseries allows users to specify a link only direction with audio-graph-card2. Changes since v1 - https://lore.kernel.org/lkml/20230801082433.548206-1-daniel.baluta@oss.nxp.com/T/ - used audio-graph-card2 instead of simple-card as we are deprecting simple-card. Changes since v2: - Fix device tree binding error reported by Rob Changes since v3: - Add signed-off-by line to patch 1/2 - Enhance commit messsage for patch 1/2 to explain why the patch is needed. Daniel Baluta (2): ASoC: audio-graph-card2: Introduce playback-only/capture-only DAI link flags ASoC: dt-bindings: audio-graph-port: Document new DAI link flags playback-only/capture-only .../bindings/sound/audio-graph-port.yaml | 6 ++++++ include/sound/simple_card_utils.h | 3 +++ sound/soc/generic/audio-graph-card2.c | 6 ++++++ sound/soc/generic/simple-card-utils.c | 19 +++++++++++++++++++ 4 files changed, 34 insertions(+)