From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15F75C83000 for ; Tue, 28 Apr 2020 16:27:17 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 8AB7B206D8 for ; Tue, 28 Apr 2020 16:27:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="VU5S8kNW" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8AB7B206D8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id E82691677; Tue, 28 Apr 2020 18:26:24 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz E82691677 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1588091235; bh=kMng+AwkDmTDwrnD25h1KdCKDTWUZBj20a01fhB8du0=; h=Subject:From:To:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=VU5S8kNWXjvzhrJqKj/T6Jtl5qgdXeC2iCIuFmooKygLxS2ippJV3EBhruin5OKt4 QgdS0Sf+Y6Cu+xccbGok3VHj5AhEYS1ONel5vqfzMOudSRcWjgQXCdX+SuY9CjfBoQ lPp5PuI104T9z3JshCc+MlXdYcFSvf8S/XQSICig= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 7F344F80136; Tue, 28 Apr 2020 18:26:24 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 2A9E3F801DB; Tue, 28 Apr 2020 18:26:23 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (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 0F5BCF800D2 for ; Tue, 28 Apr 2020 18:26:18 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 0F5BCF800D2 IronPort-SDR: 8pDJd5sloQm6c06V+73L86aWcmyiBMfjV0seObG1pUzR70D2nPtXglXIPiTO4fUhUkq+sPCL15 quhrrf0En7Wg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2020 09:26:15 -0700 IronPort-SDR: nbIz+cLa3O2I+M2mK612cHaZx4cpWICdUe4+sDCrInYNGh96jZg6SwzLIxuE+ECCdKQyKKvLxW k+yizM4S4WZw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,328,1583222400"; d="scan'208";a="302752501" Received: from thtang-mobl.amr.corp.intel.com ([10.251.151.171]) by FMSMGA003.fm.intel.com with ESMTP; 28 Apr 2020 09:26:15 -0700 Message-ID: <71d8350edafd266eb1db63709e8c3ea7075b3566.camel@linux.intel.com> Subject: Re: [PATCH] ASoC: core: Make sure component driver names are unique From: Ranjani Sridharan To: Mark Brown Date: Tue, 28 Apr 2020 09:26:13 -0700 In-Reply-To: <20200428161451.GK5677@sirena.org.uk> References: <20200427193306.31198-1-ranjani.sridharan@linux.intel.com> <20200428114044.GF5677@sirena.org.uk> <20200428161451.GK5677@sirena.org.uk> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Cc: alsa-devel@alsa-project.org, kuninori.morimoto.gx@renesas.com X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On Tue, 2020-04-28 at 17:14 +0100, Mark Brown wrote: > On Tue, Apr 28, 2020 at 09:07:04AM -0700, Ranjani Sridharan wrote: > > On Tue, 2020-04-28 at 12:40 +0100, Mark Brown wrote: > > > I would not expect driver names to be unique, you can have > > > multiple > > > instances of the same device on a board for example when two mono > > > speaker drivers are used for stereo playback. > > Maybe I misunderstood your comment in the previous thread then, > > Mark. > > https://mailman.alsa-project.org/pipermail/alsa-devel/2020-April/166665.html > > Did you mean to say that the individual drivers should do this > > check > > before registering multiple platform components to make sure they > > are > > unique? > > That was in the context of a single DAI link, not the system as a > whole, > and only for platform drivers not DAIs. Ahh, got it. So, maybe I should add this check when adding platform components to the pcm runtime for the DAI link? Thanks, Ranjani