Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2989876ybg; Mon, 28 Oct 2019 05:47:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqyWYz6sn3af8Ftnfj5Q8GNRtiiCZx99AOZc9LL84nipjUIKrFqov+CtVkPEHKneK0ng0RF8 X-Received: by 2002:a50:aad2:: with SMTP id r18mr19591062edc.44.1572266832311; Mon, 28 Oct 2019 05:47:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572266832; cv=none; d=google.com; s=arc-20160816; b=K8pI0YlzeXSfza83jEZzkCC+9aH81jq12mSkGi+h8iL6jFWi+9KU51brHCDEkQBeqj VYb4hGe0bH3YAux+lxgsXF8erSyE/adI9O5zCczHH+A26yZyB4Z7M73LqOy3pmSq/N30 PvrQwn1l8vnCvz1/Y5jqbOSjgKrueoLtLZJEMit7SC0dvojOCWj4SVUDT8//EVnT4s37 z92iEb4NtgtJenoegNero81SJancpxFgJ8GygiVPcTEC5DHBMbqOm1HiyfL3jg4iYMI/ 80KduTuj7Z7ZnOf4QRmWpQnvUzFCTfvNFL2HHk/LttVNLkm3HYs6WpGphy0zCV2Js5h9 CgqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=w7WLAChacz4cdQUuGvSzDH2SDjigryRCbt+WDbtW90s=; b=MN8+Zts/qdH/W7Jz/XP/sszeBWZmpqhm1TsFhrRPrpD/QAzTto7ngK5OmDMCYtXWLC Kj4fa1Wy/2QsUPp5kwH6aygKCj7f41l0IJeqC4GVLEq7TEoPTiKwGiAUtcc9bcy8S8Ld Uy4pwo4VKswX9v25Yj7pr5RjBuwK7pb5My6QxDk9ciBHT6fjESKZ4hfFYd4AYdrcH5ie 0xibGi9qRcUfRGEoY6qkZP8s06b9JNaZ73o9e/0+ZAh4ekG+tSgviC6GWJ6LQJ78DZR3 grtsq/AzZww36KO3RcHL5eCKZZq/ylUqqLVm+rqTHwlEnqDTn3Dg/EKoxnYh0JIWbEwr s4pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="IysszB7/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x91si4763754ede.344.2019.10.28.05.46.49; Mon, 28 Oct 2019 05:47:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="IysszB7/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729677AbfJ1Ccz (ORCPT + 99 others); Sun, 27 Oct 2019 22:32:55 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:41911 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728627AbfJ1Ccz (ORCPT ); Sun, 27 Oct 2019 22:32:55 -0400 Received: by mail-wr1-f67.google.com with SMTP id p4so8204020wrm.8 for ; Sun, 27 Oct 2019 19:32:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=w7WLAChacz4cdQUuGvSzDH2SDjigryRCbt+WDbtW90s=; b=IysszB7/4YwlqN2hIxbjmBzRqB+jb5hB3Tg+ljjzuq3A+FEhC3OFZFMovTbRT0LJfK H4qNyEspy1rpsUjibdaW/gAWpBeFZqCkQNS/a6m2giKGzWFHNCZXv+UikEp3b05qqUYQ XL2aGPYxYupmlhSDoZ4ce3ZDLKnBEnisKO4aE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=w7WLAChacz4cdQUuGvSzDH2SDjigryRCbt+WDbtW90s=; b=CUKbjv34ANCLDSYIDRw9ENif7yKFb1Wz7VEBSd5frU4ahQRmeXXiH9USGcHZpwo63G KJlw9LBxunqUPE6srOEC1gAYyR4oJEqev4WC9rtqJvnEOZiinL9/1pR80oqQBMcIuUcI cLteyE177WlqzYpJDnCcXc+40/Jgpo08I+yd4P/sBchZYGANYnLfWWlHfrqtiv5qxbrV MSq/go93iAaqgcWcJppgzf5LexLUWlTzYJdFdS2eiJAeYIGcU+Uu7x6dDvLYbpRS+pjy cSUBTHoDr/WKFG7Uwa0ZRHGivroEkDImiCga0jb3Nxh5npz/vneRWbEbYG4WGCDCJMuY uQVg== X-Gm-Message-State: APjAAAV9/6n75Pe2PVs2enwTA9aQ650ZCs/ewxNznmdbHzaQUcDfAR/s dUzMAh1NdLURqFNJ4kF8qKOlgTaLfgqsjvaL0u1DGQ== X-Received: by 2002:adf:b1d1:: with SMTP id r17mr12904765wra.201.1572229970951; Sun, 27 Oct 2019 19:32:50 -0700 (PDT) MIME-Version: 1.0 References: <20191025133007.11190-1-cychiang@chromium.org> <20191025133007.11190-3-cychiang@chromium.org> <20191025162232.GA23022@bogus> In-Reply-To: <20191025162232.GA23022@bogus> From: Cheng-yi Chiang Date: Mon, 28 Oct 2019 10:32:24 +0800 Message-ID: Subject: Re: [PATCH v8 2/6] ASoC: rockchip-max98090: Support usage with and without HDMI To: Rob Herring Cc: linux-kernel , Neil Armstrong , Jerome Brunet , Jernej Skrabec , Jonas Karlman , Hans Verkuil , Mark Brown , Liam Girdwood , Takashi Iwai , Jaroslav Kysela , Russell King , Andrzej Hajda , Laurent Pinchart , David Airlie , Daniel Vetter , Heiko Stuebner , Mark Rutland , Doug Anderson , Dylan Reid , Tzung-Bi Shih , "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 26, 2019 at 12:22 AM Rob Herring wrote: > > On Fri, Oct 25, 2019 at 09:30:03PM +0800, Cheng-Yi Chiang wrote: > > There will be multiple boards sharing this machine driver. > > Use compatible string to specify the use case. > > > > "rockchip,rockchip-audio-max98090" for max98090-only. > > "rockchip,rockchip-audio-hdmi" for HDMI-only > > "rockchip,rockchip-audio-max98090-hdmi" for max98090 plus > > > > Move these properties to optional because they are not needed for > > HDMI-only use case. > > "rockchip,audio-codec": The phandle of the MAX98090 audio codec > > "rockchip,headset-codec": The phandle of Ext chip for jack detection > > > > The machine driver change will add support for HDMI codec in > > rockchip-max98090. > > Add one optional property "rockchip,hdmi-codec" to let user specify HDMI > > device node in DTS so machine driver can find hdmi-codec device node for > > codec DAI. > > Why not just use the presence of rockchip,hdmi-codec to enable HDMI or > not. Maybe you still add rockchip,rockchip-audio-hdmi for HDMI only. > > Really, the same should have been done for which codec is used too, but > I guess someone wanted 2 machine drivers. Hi Rob, Thanks for the quick reply. I can make change in machine driver so that - The presence of rockchip,audio-codec enable max98090 - The presence of rockchip,hdmi-codec enable HDMI. With that, we don't need the three properties added in this patch: "rockchip,rockchip-audio-max98090" for max98090-only. "rockchip,rockchip-audio-hdmi" for HDMI-only "rockchip,rockchip-audio-max98090-hdmi" for max98090 plus HDMI. I will post an update soon. Thanks! > > > > > > Signed-off-by: Cheng-Yi Chiang > > --- > > .../bindings/sound/rockchip-max98090.txt | 38 +++++++++++++++++-- > > 1 file changed, 35 insertions(+), 3 deletions(-)