Message ID | 20221021190908.1502026-2-nfraprado@collabora.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp862552wrr; Fri, 21 Oct 2022 12:15:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4t46bQp4e4x+ud+NN3qYasX5CaRgbwBV3kLNcgZRzRqHNP2+puGZZdFH/3OCJ42Uv9dD85 X-Received: by 2002:a17:907:7e9a:b0:796:7a21:1520 with SMTP id qb26-20020a1709077e9a00b007967a211520mr10826811ejc.236.1666379700959; Fri, 21 Oct 2022 12:15:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666379700; cv=none; d=google.com; s=arc-20160816; b=OWJYw9LXSFMe2u/567SxSJJQp4aFTEttlW0s+jAs6ENJ0q32jdjBD4A1j3k/KhIybG QgRIW882NuSRm04TgHUEX6yD3xSBDfU86lQhcwwW2xHBITaj09eJHkgsef1rzi7Oz6Hk 7JffpQttBm6sZm0ApUhRmCTmXfHMcUKuZ1DdUQdf/BJlCaB7aIdKTG9Iji489X0k0T3q s7QUldkC9q2fBCCHoEQPzo9i6vmWGK0H8kqC70C8HjvkbvqeV6yat7Ff56HZ2QPSB4ch hcUJBq81BEHtx3/OFe49OpY0nggKDXyzleGxMYfx1b+4LPrzHiR6yKUXEVGr/gV/buMq sq/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=k8GjHr4OQOBhv+qt4rW2/TDRYdMpzGEAuMZoUoWGo/E=; b=KfkHLTcB6CjpsQv/uciUyuNKc1oDypS7b8utcAJE1C7BidUNTWnoPk9SGz56rFlF0r BIW2/Z0p06wAhYAeboeDQDTHGp7O5ze5zAB+eNm0hhEb70vAR+KW3zacGlvmFJ9oBS6Z fAxFeDf14BrwwmrwwTa1+5Jeg8mRgRtxvR/12t97qHLX+WwK7D6Lrgc2e8COIcSQftPb 7xgW7vrCq1JqtZYg+Bi2YZjNBm8RSAb1e4CWPghx+BDIwhHurQYXPWJuzBkIk0QIIVEP Dd7OYdarvNODY2MYiZHN4PSbmukk9xHSJfVTd6Y80RWwTpfTPZQLt2xAMw15U2zKZFCU 1NuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=iu0jAwwG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b23-20020aa7cd17000000b00457c6a2a3f8si19009873edw.68.2022.10.21.12.14.36; Fri, 21 Oct 2022 12:15:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=iu0jAwwG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230312AbiJUTJZ (ORCPT <rfc822;mntrajkot1@gmail.com> + 99 others); Fri, 21 Oct 2022 15:09:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230305AbiJUTJS (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 21 Oct 2022 15:09:18 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D71D82958FD; Fri, 21 Oct 2022 12:09:16 -0700 (PDT) Received: from notapiano.myfiosgateway.com (unknown [IPv6:2600:4041:5b1a:cd00:524d:e95d:1a9c:492a]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id BEE05660253A; Fri, 21 Oct 2022 20:09:13 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1666379355; bh=ywauAsdLjkUJQdp0DsPF37EGmMMhN0y3N+sXyQYS3Qg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iu0jAwwGrKbqJzEzPiKUlOya7r6lOCskEMWFOVGoIzf/0Y7zjRuxwWsHvs8VPDIAR 1aPXxUaTwKc3rthrwR/k6jEs1J74w5Uet7EHlnItZNBs4SKUgNerZSxQuWDWcRaVyb djtz+Toe9r/ZwCyOJsztGqOreeuC+qrb95HBpPLxqmDArPj39ryaBRzB+Jwxht9P1F Jjwx1J9n8oCVFShIQRxzCh+j/n825V6z1jryXCbI/aA/eM01c1GRVIxFWSncFpqzFg HbLoX3UYi4M8enWCq4jEAlnsx0pixO2hI3eEJp71gftL6KjfB6zprKWRTy2XZAUMrf Y3T34Z9UTdS8A== From: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= <nfraprado@collabora.com> To: Mark Brown <broonie@kernel.org> Cc: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, kernel@collabora.com, =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= <nfraprado@collabora.com>, Derek Fang <derek.fang@realtek.com>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Liam Girdwood <lgirdwood@gmail.com>, Rob Herring <robh+dt@kernel.org>, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] ASoC: dt-bindings: realtek,rt5682s: Add #sound-dai-cells Date: Fri, 21 Oct 2022 15:09:06 -0400 Message-Id: <20221021190908.1502026-2-nfraprado@collabora.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221021190908.1502026-1-nfraprado@collabora.com> References: <20221021190908.1502026-1-nfraprado@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747325761283912522?= X-GMAIL-MSGID: =?utf-8?q?1747325761283912522?= |
Series |
Add missing dt-binding properties to rt5682(s)
|
|
Commit Message
Nícolas F. R. A. Prado
Oct. 21, 2022, 7:09 p.m. UTC
The rt5682s codec can be pointed to through a sound-dai property to be
used as part of a machine sound driver. dtc expects #sound-dai-cells to
be defined in the codec's node in those cases, so add it in the
dt-binding and set it to 0.
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
---
Documentation/devicetree/bindings/sound/realtek,rt5682s.yaml | 3 +++
1 file changed, 3 insertions(+)
Comments
Reviewed-by: David Heidelberg <david.heidelberg@collabora.com> On 21/10/2022 21:09, Nícolas F. R. A. Prado wrote: > The rt5682s codec can be pointed to through a sound-dai property to be > used as part of a machine sound driver. dtc expects #sound-dai-cells to > be defined in the codec's node in those cases, so add it in the > dt-binding and set it to 0. > > Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com> > > --- > > Documentation/devicetree/bindings/sound/realtek,rt5682s.yaml | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/Documentation/devicetree/bindings/sound/realtek,rt5682s.yaml b/Documentation/devicetree/bindings/sound/realtek,rt5682s.yaml > index ca5b8987b749..ea53a55015c4 100644 > --- a/Documentation/devicetree/bindings/sound/realtek,rt5682s.yaml > +++ b/Documentation/devicetree/bindings/sound/realtek,rt5682s.yaml > @@ -87,6 +87,9 @@ properties: > maxItems: 2 > description: Name given for DAI word clock and bit clock outputs. > > + "#sound-dai-cells": > + const: 0 > + > additionalProperties: false > > required: -- David Heidelberg Consultant Software Engineer Collabora Ltd. Platinum Building, St John's Innovation Park, Cambridge CB4 0DS, UK Registered in England & Wales, no. 5513718
On 21/10/2022 15:09, Nícolas F. R. A. Prado wrote: > The rt5682s codec can be pointed to through a sound-dai property to be > used as part of a machine sound driver. dtc expects #sound-dai-cells to > be defined in the codec's node in those cases, so add it in the > dt-binding and set it to 0. Drop the entire last sentence, it's not really relevant to the problem. What if we name compiler not dtc, but ctd? It's redundant and actually forces reader to read unrelated stuff, instead of focusing on the root problem - this is a DAI provider. Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Best regards, Krzysztof
diff --git a/Documentation/devicetree/bindings/sound/realtek,rt5682s.yaml b/Documentation/devicetree/bindings/sound/realtek,rt5682s.yaml index ca5b8987b749..ea53a55015c4 100644 --- a/Documentation/devicetree/bindings/sound/realtek,rt5682s.yaml +++ b/Documentation/devicetree/bindings/sound/realtek,rt5682s.yaml @@ -87,6 +87,9 @@ properties: maxItems: 2 description: Name given for DAI word clock and bit clock outputs. + "#sound-dai-cells": + const: 0 + additionalProperties: false required: