Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp389248pxb; Fri, 3 Sep 2021 04:38:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzX7IdxTlno/7LLNIgjneqslKDd0Tkca1PoXymo7jxZEaaMIQhA491aBoeoYHavW3Woz6f1 X-Received: by 2002:a50:bb68:: with SMTP id y95mr3557856ede.231.1630669123590; Fri, 03 Sep 2021 04:38:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630669123; cv=none; d=google.com; s=arc-20160816; b=qL41ROfM5wFFxbxZSKoHAekcggQGYWpEqCF4PJ/gzMD0DOjyALVYAVpuH2Do+N5l8j CnSloAwos1tN2GtqPl6uSwBlLAICeDfcoKJdmMq3Rtu7bUDCq0MTSbFgxd+R0nJZ1WjD 1qBlWXCTLKKWw2F/yD/cJYJiNe6V/EZ3vWW0j7KkBLVbSI0QK2GluYqzor0G5qF2ztes ktrzbFRiDREfzD+9z51DOblroFdZO187/lb07kpcURcJierBNZyOBsJ21xR3mn6OY9Ta gShPjKKfqrzbdQCEDu14V9YMUrf3oFsxJAChlBP13hS7FSwFAix0L4laOKbJmxCYOO+H urUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:in-reply-to:date:subject :cc:to:from:user-agent:references:dkim-signature; bh=tSBoI24rmmAo/WWLDhLND6YxNYncWnjj1r5sALynAJ4=; b=S2OYUCyywxpECUJxbKkPJzFHRA8ZHiRV+UsIrUIoTxLB5GzOvU0uXD32wvJaqrHJwD 4J9izPVx0ZaZh5mvGmIWS3OCWMD+RBZA1oOmWUIxjyTTv1XS1/KLudYZcdYoqU2ttwYs oyh6PAPleqvlSpsBSnUAHwLeWXJjhZVmdlFu5QkilFscKV8+NPVLi84aC8v+NpmqTd+w WXKUKT8M3ge1jrw6GE4jFrwyQIG4j7Mbnrf18xkxjy8kYkG488THU28M/YHyZoyyOswV BPfJIaqLkSqyKjCcW723m+LVukbq1kib/pA/53p5ItSTEJVKuW5SWoSdHimxbumN/fXy Ys1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=K4wGE5iP; 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 bc28si5069393edb.505.2021.09.03.04.38.19; Fri, 03 Sep 2021 04:38:43 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=K4wGE5iP; 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 S1348277AbhICIbp (ORCPT + 99 others); Fri, 3 Sep 2021 04:31:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348229AbhICIbp (ORCPT ); Fri, 3 Sep 2021 04:31:45 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AF05C061575 for ; Fri, 3 Sep 2021 01:30:45 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id m2so2982803wmm.0 for ; Fri, 03 Sep 2021 01:30:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version; bh=tSBoI24rmmAo/WWLDhLND6YxNYncWnjj1r5sALynAJ4=; b=K4wGE5iP441yxWa+TAQZ1VZZMZnv6OfvJKWEzE+MCQj7K2oMTS8aHeDQgL7IlCV5+r II5rICDjfU5wlQZmioHZXxoVszg5g1wTZIPmZf+V7KOVQKYfmuoowJ602eTn6HBmdjhR 40Z5W0mxAnYB/D/m3H3U18iiaEtRB1XAs6OsSrvD75MTsAFVEgpJuvIWB45lquL4eZPg WHGJylo9CiP3ELxpw7rat1Y5lK4ARxd2H5aZyiP/QOH5s9LmA5oPmoO04VDfHoMMtTxu mwZcDDhHJY/GZrwjRiCTfmJmArcJ97MVfnRwjnpryjB2B5p2fewYpM6VuJPJjmAlvb6U L/FQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version; bh=tSBoI24rmmAo/WWLDhLND6YxNYncWnjj1r5sALynAJ4=; b=LoZ7oTtsVt2Zf3gJ/DqxEtALohjShM+geBvqo+EUww58dxKwa0rm0Krry52/USPhUe 0E8WG1U93gAF2ZcaWO98lc2IfxejqnhPoP0B51PX6gmsFmT+ePZAFbVI393gz9ObiqrX BdtB908+pDeW4nYIW59N5hDrw5UwIS+EAlVicyiZECCxeHTyQf/sPi+tCH0wvceinO/Y LYDjKQ7Y2pz3WB8pbDYYAvcFO8PE6cEJPGku7Mye6VBynEcX1hjcAMprgUHxXuH4cMMu fCfKb8OnqGvZ0kdfAg4jo5HZQfpmQGrRiMuhpNMUbrgTdFxzIed0WBbQiFw9DtjDmOSb VZ3g== X-Gm-Message-State: AOAM533Arrx16olhK3aG8c/DwW+3I0xWzU3ls6dl4TbKiK2eZp/TqIKW JT+CxYYD0qHiI0g+lW60/gzvMw== X-Received: by 2002:a05:600c:4ece:: with SMTP id g14mr2177689wmq.6.1630657843920; Fri, 03 Sep 2021 01:30:43 -0700 (PDT) Received: from localhost (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id r12sm4323542wrv.96.2021.09.03.01.30.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Sep 2021 01:30:43 -0700 (PDT) References: <1630562033-13231-1-git-send-email-spujar@nvidia.com> <1630562033-13231-2-git-send-email-spujar@nvidia.com> <1jpmtr5egi.fsf@starbuckisacylon.baylibre.com> User-agent: mu4e 1.6.5; emacs 27.1 From: Jerome Brunet To: Rob Herring Cc: Sameer Pujar , broonie@kernel.org, lgirdwood@gmail.com, thierry.reding@gmail.com, jonathanh@nvidia.com, stephan@gerhold.net, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org Subject: Re: [PATCH v2 1/3] ASoC: Add json-schema documentation for sound-name-prefix Date: Fri, 03 Sep 2021 10:29:37 +0200 In-reply-to: Message-ID: <1jk0jyt617.fsf@starbuckisacylon.baylibre.com> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 02 Sep 2021 at 14:25, Rob Herring wrote: > On Thu, Sep 02, 2021 at 02:47:27PM +0200, Jerome Brunet wrote: >> >> On Thu 02 Sep 2021 at 11:23, Sameer Pujar wrote: >> >> > The 'sound-name-prefix' is used to prepend suitable strings to a >> > component widgets or controls. This is helpful when there are >> > multiple instances of the same component. Add relevant json-schema >> > and is inspired from sound-name-prefix.txt documentation. >> > >> > Signed-off-by: Sameer Pujar >> > Cc: Jerome Brunet >> > Cc: Rob Herring >> > --- >> > .../devicetree/bindings/sound/name-prefix.yaml | 35 ++++++++++++++++++++++ >> > 1 file changed, 35 insertions(+) >> > create mode 100644 Documentation/devicetree/bindings/sound/name-prefix.yaml >> > >> > diff --git a/Documentation/devicetree/bindings/sound/name-prefix.yaml b/Documentation/devicetree/bindings/sound/name-prefix.yaml >> > new file mode 100644 >> > index 00000000..b58cc9e >> > --- /dev/null >> > +++ b/Documentation/devicetree/bindings/sound/name-prefix.yaml >> > @@ -0,0 +1,35 @@ >> > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> > +%YAML 1.2 >> > +--- >> > +$id: http://devicetree.org/schemas/sound/name-prefix.yaml# >> > +$schema: http://devicetree.org/meta-schemas/core.yaml# >> > + >> > +title: Component sound name prefix >> > + >> > +maintainers: >> > + - Jerome Brunet >> >> Since this file is referenced using "AllOf", am I going to be listed as >> maintainer of all the drivers using the property below ? I'm not sure I >> want that ... :P > > No. That's not how it works. You're maintainer of files that list you as > maintainer. Thanks for clarifying. You can ignore my comment then Sameer. > >> Maybe it would be better to drop the above ? >> >> > + >> > +properties: >> > + sound-name-prefix: >> > + $ref: /schemas/types.yaml#/definitions/string >> > + description: | >> > + Card implementing the routing property define the connection between >> > + audio components as list of string pair. Component using the same >> > + sink/source names may use this property to prepend the name of their >> > + sinks/sources with the provided string. >> > + >> > +additionalProperties: true >> > + >> > +examples: >> > + - | >> > + analog-amplifier@0 { >> > + compatible = "simple-audio-amplifier"; >> > + sound-name-prefix = "FRONT"; >> > + }; >> > + >> > + analog-amplifier@1 { >> > + compatible = "simple-audio-amplifier"; >> > + sound-name-prefix = "BACK"; >> > + }; >> > + >> > +... >> >>