Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3195432ybt; Mon, 29 Jun 2020 18:27:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx06mPQGtlalZEqmflA9BcUa1ynmyYzpIoIKskNtKsmf9ZocuNHDIEv0pHmbY/HPVNeVbQI X-Received: by 2002:aa7:c15a:: with SMTP id r26mr19745310edp.21.1593480440816; Mon, 29 Jun 2020 18:27:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593480440; cv=none; d=google.com; s=arc-20160816; b=Ei+NI3xEJB2o0RUa0mVZD0xoMiaeIWpUk8FX3DPAkWrG733z6QESewxcb9kn7I4j0E /03giDqF3LHRTnO1WjMzy+GjAo5tjizho2XvmPiTFS5hwLa93xoL1H9EylHDHvQhwgof 5ld0HKCzoacA4CTj343G/xbCwf552Y8KdYF4tNKjCpr2TqFwsQE/ula+b+2dvAfsjS74 ngBoJcnO2M6PeEdIp4LWaGpvM4wLwTvbaO96aWUj5X8qcG/CSgKU0qYksKjADLIhYwQe kG6cyTsait5gD7FhYWWST+kTYCHdFFdXVd09/5kW+Hq9V7sk/ExHXdjF6yJ9s5JH3REs Vafw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date; bh=8HuZ2S6BcFkPF7vwkdPSTrQ73tmKo8QLUNhtnWvyFFY=; b=f7Hn3QbTJXt01JiZXAKCBq/4gH0BXHoBOmCGaduFoZFayYLSeOpaK2GdFEsXgylen/ 2tF0qN7BvvXZhNS6xUJW69zfbS6BQUxVvAuce4HW2F7ntZ2nrJDq5GcHCuZS/PNcw56u M9xIxRKwEMPqdsCtMsMA2iEeSRNd3TS96cCdRLFMGyTqYz4VCHvod89DQUVIN6+7G006 kDsf370OxeNioM462QHUhHKxtZkXfCv7JOEnj15cDDsvDDmangYewKqeLplfvY4mUGI6 TKjB1e4nAWYFgb0JT9w2XGoiyHye3YLH05XmfbzW4XubJlQgNobq3nUyCaTi4TBrLGPK aDlQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x9si751468edj.121.2020.06.29.18.26.58; Mon, 29 Jun 2020 18:27:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728029AbgF3BYu (ORCPT + 99 others); Mon, 29 Jun 2020 21:24:50 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:27174 "EHLO relmlie6.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726481AbgF3BYu (ORCPT ); Mon, 29 Jun 2020 21:24:50 -0400 Date: 30 Jun 2020 10:24:48 +0900 X-IronPort-AV: E=Sophos;i="5.75,296,1589209200"; d="scan'208";a="50677645" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 30 Jun 2020 10:24:48 +0900 Received: from mercury.renesas.com (unknown [10.166.252.133]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 668654136A60; Tue, 30 Jun 2020 10:24:48 +0900 (JST) Message-ID: <87mu4lz6pt.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Sameer Pujar Cc: , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v4 12/23] ASoC: simple-card: Support DPCM DAI link with multiple Codecs In-Reply-To: <1e0cf6d1-bf4e-8808-5390-c8a3b7c7fe7e@nvidia.com> References: <1593233625-14961-1-git-send-email-spujar@nvidia.com> <1593233625-14961-13-git-send-email-spujar@nvidia.com> <874kqu1x70.wl-kuninori.morimoto.gx@renesas.com> <1e0cf6d1-bf4e-8808-5390-c8a3b7c7fe7e@nvidia.com> User-Agent: Wanderlust/2.15.9 Emacs/26.3 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sameer > > Maybe base issue for multiple codec support > > is that simple_for_each_link() is caring first codec only ? (snip) > Ideally I wanted to remove above two lines and allow empty codec > list. But some users may expect the parsing to fail if no 'Codec' is > found in the DAI link, hence did not remove above. If it is fine to > remove above two lines it would be simpler. The loop inside > simple_for_each_link() would anyway loop for each child node of DAI > link and simple_dai_link_of_dpcm() can parse each 'np'. Current simple-card is not assuming multi Codec, thus, we need to update it correctly, not quick-hack. I'm not sure how to do it, but it seems we need to update many functions to support it, not only simple-card driver. For example, simple-card-utils, soc-core, etc, etc... I'm not sure, this is just my guess. I'm happy if we can support it more easily :) But, if it was difficult to keep compatibility on simple-card, we/you need to have new one. Actually, I had a plan to create more flexible sound card driver, but it is not hi priority for me in these days. Thank you for your help !! Best regards --- Kuninori Morimoto