Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6069831rwi; Sun, 23 Oct 2022 17:42:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6WUnLH28X/3iU6y/2uKZYTOi01UrXpanJy1od6RyJowiXaR5buiIXpRyfRMCQn0ZZknWjs X-Received: by 2002:a17:902:76c3:b0:17a:68:767d with SMTP id j3-20020a17090276c300b0017a0068767dmr31078742plt.109.1666572163095; Sun, 23 Oct 2022 17:42:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666572163; cv=pass; d=google.com; s=arc-20160816; b=zO21vHlBe6kMQjW7q25bcri1u4BF3N8LAfXq3E421OV3opc/e2pz754M9T5p+HyQBW 7kcMz3yYUymlnH9kN43LvC7ApYcGQHMiWjyAqSFTVbyPjyc9ETqws10oJwKxWrhJpoY4 YhfLLhIg6wQuuJDuuXYXccnhpfU6KYPWLRjmQc1rN8XUytq4n6anTd7P6q7pkzPVCvEq f7fcGDUrFr6sVbyONoOD6wR2U3bHN9SuBWmEtQCy0dyKxaUhtr31EQxTpSYZlJbbJzDS Ar7cFq6G0YTdKZhUES9x8Zui/WfCwqit48XsOBG9LoMbuE6mtbanbY+Ieqe5WPgngyfH +KkQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:date:user-agent:references :in-reply-to:subject:cc:to:from:message-id:dkim-signature; bh=KEq4OdJK1ddoKTdgHf7BODWIeZU9bxt6gJRXYgJpjGA=; b=FIYBYNFuoaGtAMuZF1sh5qbYYp9BaFVr7eJ5m5/4XZS2JjYejF5y+bX+dGNRIZLgC4 Aq5cL0tpAA91SzFKbUO3f/BMRCFlakEfXLRGt80Q7FfAQtnzLcAmEGM06ev0l+mM0kux hNlGoxu2RTjdr+/1WwFH27PY2omnSQE+JRfCmGtfARnTlXSSlY/T51vFynN4UuXzHOLe OvorvX0Ay3qRUDfl41B3GLFuWqmLa81uKD+Tccu5PkkK7AAIe3ZgWt7Tj0tOosgBvc4S L/QcDcBM0gS6bXj73n5r5tByG2KiXdtX5OePTN+TEmHKoGe+EE062HbERpTw44z6+uZ6 VAEQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@renesas.com header.s=selector1 header.b=Y0Dk+vG3; arc=pass (i=1 spf=pass spfdomain=renesas.com dkim=pass dkdomain=renesas.com dmarc=pass fromdomain=renesas.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=renesas.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 37-20020a630d65000000b0046b15902616si35998863pgn.270.2022.10.23.17.42.30; Sun, 23 Oct 2022 17:42:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@renesas.com header.s=selector1 header.b=Y0Dk+vG3; arc=pass (i=1 spf=pass spfdomain=renesas.com dkim=pass dkdomain=renesas.com dmarc=pass fromdomain=renesas.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229744AbiJWXyV (ORCPT + 99 others); Sun, 23 Oct 2022 19:54:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229631AbiJWXyT (ORCPT ); Sun, 23 Oct 2022 19:54:19 -0400 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2114.outbound.protection.outlook.com [40.107.114.114]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAA4D60EB9; Sun, 23 Oct 2022 16:54:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mi0ysKrNhzUDLy26kB35TuFLbfSmE1+RbfYiXuJuZn3VFAA/AGDoFobHSHLZhkukafbjKLIAKRMYMnYBiypk7B7wzWAuwK9kC5j8IfsrqZ+Zrggtu+y89xrTg+gBR/Y5kMzy4wF6VFHCsJfnoZhuS8Gy2C9YBlWfG7zxo+U5GTuTf2jo7ME5q29V+rnCahXvph7I76dHCWwizJy7VwiKnrRtolEKS7U3+FI6oc/NRnRJUASzJ5Ry9T/uWJeecJ+1BBP/6Ks+6R+Y64ysoz8+Ek87F1PhZnyzBx8dUCqjDOxTvxY/xMnRLryD2lx8L72yWrNXwcnaq6Bhwzrk6mc6AQ== 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=KEq4OdJK1ddoKTdgHf7BODWIeZU9bxt6gJRXYgJpjGA=; b=cLtATLjJZypdOw+FBkgoP2w+FP5tW/y8ee6+b9NiOCuq3oxJxDaFwNiKw8E37BZhSlatFE/99dgwGsU3BDfH2U9VpSzLfXesMIMMBoowbFtv6iakigB6zqv1gnGMBUU3hE6e+LVGHDFIcMDSp8ce1D8+aR8l0PlPjeUQ17li/CI+eiwZ9n4mMqqKFfm9CfJ/YRLinNwgquAgGtHsLhbTMl9InXNvm9N52eeTxD/J5L0cFSgyUSIuEB0RQTi+GIcA6I6KVRYQK53RSE7VCt++uX+I8IYK/n14pT+Eh5LH6ZIT0kFrP2GELmRT5lVM5x/RcQuj5Y6jmbxNTt+28ypQcA== 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=KEq4OdJK1ddoKTdgHf7BODWIeZU9bxt6gJRXYgJpjGA=; b=Y0Dk+vG38ptOWIeYTBs9tTGscp6DQwWh6prjp1sv8obdFfMhkPcgqkk3Gbi9sr8zWVIDNu04NvhzRxu4tkrUOulZiUFI5YWCY5MTfEhKXRsLcjdyQzhBGl66XdoGbKXYDu7wllGidhn2BGYA4fmEc+qk0IorVRO1VsY5Nna5RDw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) by TYWPR01MB10521.jpnprd01.prod.outlook.com (2603:1096:400:29e::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.21; Sun, 23 Oct 2022 23:54:15 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::4cba:2bd5:dfd4:f3cf]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::4cba:2bd5:dfd4:f3cf%5]) with mapi id 15.20.5746.023; Sun, 23 Oct 2022 23:54:15 +0000 Message-ID: <87fsfem6zd.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Aidan MacDonald Cc: broonie@kernel.org, lgirdwood@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 1/2] ASoC: simple-card: Support custom DAI system clock IDs In-Reply-To: <20221022162742.21671-1-aidanmacdonald.0x0@gmail.com> References: <20221022162742.21671-1-aidanmacdonald.0x0@gmail.com> User-Agent: Wanderlust/2.15.9 Emacs/26.3 Mule/6.0 Content-Type: text/plain; charset=US-ASCII Date: Sun, 23 Oct 2022 23:54:14 +0000 X-ClientProxiedBy: TYAPR01CA0115.jpnprd01.prod.outlook.com (2603:1096:404:2a::31) To OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3PR01MB8426:EE_|TYWPR01MB10521:EE_ X-MS-Office365-Filtering-Correlation-Id: 6e01735e-eac2-4f6c-5bbb-08dab551e3ec X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ByzJoxNWC44EVyv51s6ZrNh4/cplTraesoAU/I8AewSRTzA+AVDvnpT0so+/Q0tY2rsUQgzxPrKkCfKTyY4jTMCOcb6NxN5WhybLpBb9NKySqX6uosWTsnOz+sjs7/yBLx9tuXMnvykVs7K+hwszX+OGjeJ9sqibbl2T0a4cdezI4iil4FVbK+dFLn49MoLmHFFTVMkZkbyLUkf8EObCRoakcSoLvC9O4Azd7b3Ql2mGVwlzI0PAUxL9CGx2zjL2EV2usgqmdoJmGrMiEyo3C4sxFr1tbdTuDH8Gu5+GQ61EVlN0KPmTSK2uePNcA3zciVKhRESSSPumzChSzYNtmoCLxbhjpXmzWVuQVLHfKV/BpVVpY0TBgSXJUwFRB1Qx0vlXcv3hgiw3bhXyWbZoi2iYWgRdfmoQNGRDQWfxhOA781WqnPsf3Wvv2PPQSVB+k6PCmKnoDr4g+0OL6Ncg5RSKC4rDe8JRy4Yx2/BfhaTs2sbfifrFAwGt9ruEc1YeUGH5IaxHf9rHPO4v56+OoK2b6E5nA9izd9M3AFau75R6QAlE8Qbahn9Y8DPLPD+lAS96hWVNvq/H8D+Wnhul+enjX9ENl2pIT6rFcLWcg7m3PCvlsP+vEaIIZNcW3VPuc7KkoWQO1/ztjNNZCVPBv2icsUrtTFVv7qi27VbJ2YGfdLtmWdtUjbfHq9tiU5ooLDQmrLE7aldcNau/G5goSQ7mnC47aPv2OmbFS0tzAbE2W0ZFEUygBreAYDpa+kbkEJLtfmKqjnROpwCo9ms2iA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:OS3PR01MB8426.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(396003)(376002)(39860400002)(136003)(346002)(366004)(451199015)(83380400001)(86362001)(478600001)(6486002)(8676002)(26005)(52116002)(6506007)(6512007)(41300700001)(7416002)(316002)(4326008)(6916009)(66476007)(66556008)(66946007)(5660300002)(8936002)(2616005)(38350700002)(38100700002)(2906002)(36756003)(186003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?BHa1fr8a4O5wPVaLf616tpIxOeTPc0isoUyzccd3EL63tYVav+Bpq2JAzA0V?= =?us-ascii?Q?1DHzovPAGXJkeU2dBjL1F0bEEoqVgs9/9Q56RGKM4jtn4avKSi98IrEeMQQ5?= =?us-ascii?Q?uNAQ33V7J9/o+XaejyXnJoGRv5MXfMPz9hRaaUmdEo3d7mk53k0i5ZJrA1iG?= =?us-ascii?Q?5ba46N09Ad3NJDvs4udm8cimTS9bEaQd4M5fAwLokAGNlYJIzhV/gGCynHy+?= =?us-ascii?Q?mCkpLy6rJ7SbZnwqRYwpNoQP005XU/eb1NW9vPoT1xjuCpZeaiAxlt7IUUh2?= =?us-ascii?Q?nqFQEvfUNWqgGb4YguDzUi8vN3O9pUHeZaJ46ZIp6EqOv41GxiyiWsKOJvyQ?= =?us-ascii?Q?VZEtHK3qDVs0hT2zd/dpBtZtv+0PDCxc91vcCFxKR8HmmXIK5Vfcary71m8g?= =?us-ascii?Q?E+MuOcEfr2yc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IAoYHj?= =?us-ascii?Q?V63GrH2teGho7Y5mmq84LVDUpRKLieUQc4/l97DWUF8jPCONwAXpKN1tyFDx?= =?us-ascii?Q?UBg+gJzIv2WynZTkvKavbzYJWWSEUy3m3a9RDQhmD4fnVhMqpftPDt1f6wzB?= =?us-ascii?Q?Qhux6dH165CoUUiIH5rIJN0eOPenbDPgeVG5CuWrNqtaYnjJINGOfrlk6zUL?= =?us-ascii?Q?oLk9hrxaHvYiYNR6ZC60GFeLA/HpRLjiiqfoKDVcDIm5SyESnkFIJvmBuBP9?= =?us-ascii?Q?znFYIMefkuY9WJwvCTNaCMqQaadO07YJBOw9kZh3h2m+fXVepab6oQQGV8yG?= =?us-ascii?Q?ztThJ/XV3LYuOnTBDip4Nqg=3D?= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6e01735e-eac2-4f6c-5bbb-08dab551e3ec X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2022 23:54:15.2085 (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: MAdBa97dwtc/XtdFB7kXuEr/uPn/BvAOyZpxJGbOKt8luy3dgctPwGXtVasp7Ikl/sjuFJND3K6IkTEqHl0SCGms1tJ/xUiAWmzP3lw5razh8u6J4R2guz6px1rQ0n+D X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB10521 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Aidan Thank you for your patch > Some DAIs have multiple system clock sources, which can be chosen > using the "clk_id" argument to snd_soc_dai_set_sysclk(). Currently > this is hardcoded to 0 when using simple cards, but that choice is > not always suitable. > > Add the "system-clock-id" property to allow selecting a different > clock ID on a per-DAI basis. > > To simplify the logic on DPCM cards, add a dummy "asoc_simple_dai" > instance and use that for the dummy components on DPCM links. This > ensures that when we're iterating over DAIs in the PCM runtime there > is always a matching "asoc_simple_dai" we can dereference. > > Signed-off-by: Aidan MacDonald > --- I think adding "system-clock-id" and adding "dummy asoc_simple_dai" are different topics. This patch should be separated into 2 patches. And I couldn't understand the reason why we need to add dummy asoc_simple_dai. In my understanding, we don't parse DT for dummy connection. Which process are you talking about specifically here? This ensures that when we're iterating over DAIs in the PCM runtime there is always a matching "asoc_simple_dai" we can dereference. - Thank you for your help !! Best regards --- Kuninori Morimoto