Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp656351pxk; Thu, 1 Oct 2020 10:36:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCUwkjLvORVd6QAZ/NVyw6Vjs/DFU/8imUjCzKuVSTHkCa+R3by0cS8ASFZXTufGkeIjSU X-Received: by 2002:a05:6402:1711:: with SMTP id y17mr9548958edu.345.1601573818540; Thu, 01 Oct 2020 10:36:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601573818; cv=none; d=google.com; s=arc-20160816; b=VuQX/iyTwgX3tZsn6krct+51+I8/E+vzsUn4XEQFZpE2+0hI6zOWzn6S4sN1q/ZaWe tUwrJwIgwKrKdKwLPgKz65mnw0fdFjOzlX4CFd3lrkiy9zGNjBpP5o4QeL3Z+/ToROtS ly7cDCJWmbyyZy7zSVMoht+cXBBV7EMVwyuV4oLqLsy6GE6s/2iXHNMwwLEfJJtX7iBJ q1DpHone0Kvltqgd2WBgkmzZP7L98pS7P223DN27nN0G8e2ljJgcD5CAPrRnE3CAsD1Z gcx78hRaows2OPejgy8GGL2wHzTeLuW0yMwxhxNbP9vv9mLPtQRGTp2Vyi9s2ZtLUylR aA9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from; bh=DUfSjxqgTyMLeILJTEcFS/WZ2++sn+Xe/SbNNLGn5Pg=; b=AYqhz8dxiL5B/aZEqr5vzMdQi06nC01+VkFkwytPV5dnbRdisHYbw45CBFHzya2fp8 DwK0Z96gUcJgouorE6UgIcB0QjYf+IWBliIkb3Q3iPpmbd4PE0TgU38+m+SRbbY1sLAx /ALEpZ4593prBL5nFSMV3WdMi4G0HYWoFSCZU48buRZbaTQava3zSIHzDuuXSOnzVBOq H8tiMlRWqS4I/igMBf9+qEbrZPiyvwvuo3XuPGB1pi47u8Lcq1kxRwFHIx880p+HdWZG q8K++ypSPLUyXDXL9QFWNF/U4OGQgBHzCkT2KYDejjerfhdrXR99zN4p/7fS6/evDJae EaEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=J48GOF67; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c15si3845962ejk.111.2020.10.01.10.36.35; Thu, 01 Oct 2020 10:36:58 -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; dkim=pass header.i=@nvidia.com header.s=n1 header.b=J48GOF67; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732997AbgJARd5 (ORCPT + 99 others); Thu, 1 Oct 2020 13:33:57 -0400 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:9954 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732876AbgJARd4 (ORCPT ); Thu, 1 Oct 2020 13:33:56 -0400 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Thu, 01 Oct 2020 10:33:04 -0700 Received: from HQMAIL111.nvidia.com (172.20.187.18) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 1 Oct 2020 17:33:53 +0000 Received: from audio.nvidia.com (10.124.1.5) by mail.nvidia.com (172.20.187.18) with Microsoft SMTP Server id 15.0.1473.3 via Frontend Transport; Thu, 1 Oct 2020 17:33:48 +0000 From: Sameer Pujar To: , , , , , , , , CC: , , , , , , , , , , , , , Sameer Pujar Subject: [PATCH v3 03/13] ASoC: audio-graph: Use of_node and DAI for DPCM DAI link names Date: Thu, 1 Oct 2020 23:02:57 +0530 Message-ID: <1601573587-15288-4-git-send-email-spujar@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1601573587-15288-1-git-send-email-spujar@nvidia.com> References: <1601573587-15288-1-git-send-email-spujar@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1601573584; bh=DUfSjxqgTyMLeILJTEcFS/WZ2++sn+Xe/SbNNLGn5Pg=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:In-Reply-To: References:MIME-Version:Content-Type; b=J48GOF67g8IwIWiaMDft3OCFD6E4u3eJCstB4b1GncdNLIeuARL9ZaH8R7XVvFxRd cKsWB1hF4boJmfcIR2Np85EWGuvAUJov1CZ9r5zouB+cLEDaicbDP1SVhxdNQtmChm eEaTaAeDNFlTZi0/pcp/2o5sh3FNUZlqgtWe58tPjgscQNup21ZbvgcNzF9YffI07Y hVyaaS/6T1TGwqKJJy2Y5KgfBi5iDpeXwnCxrXEfPpg2nJxA75PLM7AdqPIEwf9sna PU7UXLhCcEmQEXAVbUyyjefatXZvwAFgSQ7oKEC4oZyqg8CnnWEfG17Wo+EAHwUS3F fKeC91lhm/qDw== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For multiple instances of components, using DAI name alone for DAI links is causing conflicts. Components can define multiple DAIs and hence using just a device name won't help either. Thus DT device node reference and DAI names are used to uniquely represent DAI link names. Signed-off-by: Sameer Pujar Acked-by: Kuninori Morimoto --- sound/soc/generic/audio-graph-card.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sound/soc/generic/audio-graph-card.c b/sound/soc/generic/audio-graph-card.c index 97b4f54..1e20562 100644 --- a/sound/soc/generic/audio-graph-card.c +++ b/sound/soc/generic/audio-graph-card.c @@ -253,7 +253,8 @@ static int graph_dai_link_of_dpcm(struct asoc_simple_priv *priv, goto out_put_node; ret = asoc_simple_set_dailink_name(dev, dai_link, - "fe.%s", + "fe.%pOFP.%s", + cpus->of_node, cpus->dai_name); if (ret < 0) goto out_put_node; @@ -287,7 +288,8 @@ static int graph_dai_link_of_dpcm(struct asoc_simple_priv *priv, goto out_put_node; ret = asoc_simple_set_dailink_name(dev, dai_link, - "be.%s", + "be.%pOFP.%s", + codecs->of_node, codecs->dai_name); if (ret < 0) goto out_put_node; -- 2.7.4