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 10BA1C83000 for ; Tue, 28 Apr 2020 16:08:28 +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 91D9320730 for ; Tue, 28 Apr 2020 16:08:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="oeyyyQ/4" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 91D9320730 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 E59311669; Tue, 28 Apr 2020 18:07:35 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz E59311669 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1588090106; bh=9qVvGBQNzubzxi14rCxjQcMXzShu+rEGHeHl5Yh09dE=; h=Subject:From:To:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=oeyyyQ/4xpgTGyBEmi3SSLXAcqK1bAh34CdwlbIboFJwo902zHlojgdQfKXb8/LDm 4F3duMGQ/efHO7Wbp/0DISEAOQxW4ThOo7hsZ90XMaJEUHE5S7zGxtJ+CmRT1HKMXn eIS+YURl/ihiobiamJmCNel8cjELClwqemkNGF4I= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 75FA9F800D2; Tue, 28 Apr 2020 18:07:35 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id D26FCF801DB; Tue, 28 Apr 2020 18:07:33 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) (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 49DFDF800D2 for ; Tue, 28 Apr 2020 18:07:25 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 49DFDF800D2 IronPort-SDR: 5Zg8SWSPi/izfoZ2JBMtrtJueVDAPEYGGPVhmhDK/hcDBsMlc9cuSrwLtK4MmdQlT4GVe9iBTZ 5bRsFlLdtG9A== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2020 09:07:06 -0700 IronPort-SDR: mxW/369R7S46tUoF5u1MULGWFdzNKxhnFQmuhs2VfAnoEPcK3rgyq/3kZUfzWoaJV/PWyDNfFk 2xWTuNdewkaA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,328,1583222400"; d="scan'208";a="432232773" Received: from thtang-mobl.amr.corp.intel.com ([10.251.151.171]) by orsmga005.jf.intel.com with ESMTP; 28 Apr 2020 09:07:05 -0700 Message-ID: Subject: Re: [PATCH] ASoC: core: Make sure component driver names are unique From: Ranjani Sridharan To: Mark Brown Date: Tue, 28 Apr 2020 09:07:04 -0700 In-Reply-To: <20200428114044.GF5677@sirena.org.uk> References: <20200427193306.31198-1-ranjani.sridharan@linux.intel.com> <20200428114044.GF5677@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 12:40 +0100, Mark Brown wrote: > On Mon, Apr 27, 2020 at 12:33:06PM -0700, Ranjani Sridharan wrote: > > > When registering a component, make sure that the driver names > > are unique. This will ensure that the snd_soc_rtdcom_lookup() > > function returns the right component based on the name. > > 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? Thanks, Ranjani