Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2373271ybt; Sun, 28 Jun 2020 17:42:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsGNmssd81c6fsYWHIkIwprKX9L1ZbPgvUd4KDX0SKll0iwfusjREyioPUOeQdWOtbAbRv X-Received: by 2002:a17:906:2f0d:: with SMTP id v13mr11448246eji.220.1593391351975; Sun, 28 Jun 2020 17:42:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593391351; cv=none; d=google.com; s=arc-20160816; b=f3LCsZbdGjAuApFMZ++10/zpditX0TpEyxJ5nV0RdVbCB121qe0Hg1xnIvgL57twZ1 zX97s8wi9/QRbxI2pggU2E4iQIviqLQFw9KK7DaRgiC32k/cFEinkSB1ppmGoi9Q34ZY V2c6r96A7XXSgi5BD4qCm7jU0zTgHKUO52l4yUUdjufLtyOJ61tZM+iJwegp9IzBjuRV YMFE5lkQQFRuukT1SuL5nLmXaMd/dP4gt1LZqXtTyXm/Ol7y8WRvJ2Fyaxj+vffAsJrM thxA+CsJVST1Cbw0FE56FKZXflOjHrvlGnzU9JcYcKXlFVHaOUCOeby5Y6lDDdy1jXl2 uZ4w== 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=rYJrNrxrFt+Zy06uG1MFYhgJyiiIPXkywphEd9xwuSc=; b=erkrEjPGfVY92q3Og6OklOetK3euNyKIlBte0SSgct5ILvOSC2b6cn/RmmOFylXqrN ribOPkTUKYGFhyE5w+FYSYRS42m5VxfXcgX/bv2wn6UadYlxbiIpUm6+D7Ylm0MGysCX Q8wLDYNfM9UnijRnMMzN4gG+bppFqP6ERDZ9zKXI5I0GR562EHgFq0w4ZJ+nWw+vD4t7 W/8zRe+qCUewZ6JnF3+CYC15Rgjr0ypyWUIJwrNMf0O19w/tSnQMMWM+SNTttFRQ6HbU qLIEyrNL6XSNK7p8HUHUW1vOP1psS/Kd5bD2NM9M7c9t5F2uDVBd4MbV95+17HRbwBb1 5roA== 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 ok24si10100096ejb.491.2020.06.28.17.42.08; Sun, 28 Jun 2020 17:42:31 -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 S1726783AbgF2AiM (ORCPT + 99 others); Sun, 28 Jun 2020 20:38:12 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:6653 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726395AbgF2AiL (ORCPT ); Sun, 28 Jun 2020 20:38:11 -0400 Date: 29 Jun 2020 09:38:09 +0900 X-IronPort-AV: E=Sophos;i="5.75,293,1589209200"; d="scan'208";a="50779414" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 29 Jun 2020 09:38:09 +0900 Received: from mercury.renesas.com (unknown [10.166.252.133]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 8B5454007556; Mon, 29 Jun 2020 09:38:09 +0900 (JST) Message-ID: <878sg61zcf.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Sameer Pujar Cc: , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v4 08/23] ASoC: soc-core: Fix component name_prefix parsing In-Reply-To: <1593233625-14961-9-git-send-email-spujar@nvidia.com> References: <1593233625-14961-1-git-send-email-spujar@nvidia.com> <1593233625-14961-9-git-send-email-spujar@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 Thank you for your patch # I guess there was ML registering magic until v3 ? # This is 1st time for me to get this patch series... > The "prefix" can be defined in DAI link node or it can be specified as > part of the component node itself. Currently "sound-name-prefix" defined > in a component is not taking effect. Actually the property is not getting > parsed. It can be fixed by parsing "sound-name-prefix" property whenever > "prefix" is missing in DAI link Codec node. > > Signed-off-by: Sameer Pujar (snip) > @@ -1111,8 +1111,10 @@ static void soc_set_name_prefix(struct snd_soc_card *card, > struct snd_soc_codec_conf *map = &card->codec_conf[i]; > > if (snd_soc_is_matching_component(&map->dlc, component)) { > - component->name_prefix = map->name_prefix; > - return; > + if (map->name_prefix) { > + component->name_prefix = map->name_prefix; > + return; > + } > } > } This is nit-pick but it can be like this ? if (snd_soc_is_matching_component(&map->dlc, component) && map->name_prefix) { ... } Thank you for your help !! Best regards --- Kuninori Morimoto