Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp509256pxu; Thu, 15 Oct 2020 09:15:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4SnsVvNgXutCxAjTlNcKxXuTE5uXHr6BMhtAUiE5Q2ruEafZW1K60iA3vBemkIDQEEIfy X-Received: by 2002:aa7:c259:: with SMTP id y25mr5027950edo.249.1602778552071; Thu, 15 Oct 2020 09:15:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602778552; cv=none; d=google.com; s=arc-20160816; b=0DuxhVXkiJXATKEeAOIDDV6w16qu2Spb8fVqTdqtWaEty1SsO250CuWlvMWXmhpQIj wqXdzsqs27ralB6jdLVTG/g2AJ9Ciz/xl9oGQCqpSA0EfV8fLbeCoTNCt7pGcc9TEnhB QNmi5GAULAcwg+el3sATag5MLhwA/Hw0grH2oy9t4MSyJ6znfvAzfT1Pf6isnlG8du4F EFzBCfSKPiBS2g1K1V7dbHerIzfDwuc6szaJPrcdVP0XKAcWNxbn3qfdHa9NMVvoct2G BGMDABMK89wS/hXghKDck1ZkjLTkm87Xq0BLXCOb3UtEXCvlB32gSg3FfoH2lNrH1Wys dtZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=mFqGu+8DDVcf2tSCgdTTn8/a7M8nkFwzunz5p6symYQ=; b=aoSVqPmO6hHkS6U9pOtHsJOFPvzH5wZqK4HQ8W58vAOKMAaYeRFGwZj6+HOdqHM4Jl BmwfOseKIhwHEyA93DjHtgE13iIdym8LLCeY14rk4/SiHZKYxt3JslQrueks8hqPyNsI wne1rUVBaompJpX11TDMy7QwXtjfYmlMBtqNlK7dG2s+VgDwvF3F2M7Z7GocGMVvJFbJ zKvLFsx0eAun0sfAQqodAKMR5vb3PLw7qKJ56fDhF550dD9OR1MWeWmIHUAR9lCnfAOs P8MyHCq73nB028BpERgAxlfnwrBZ0cn/L2P34V4VNQOpnrTR3Ct5+0DliUQx37KsQrVF 8uSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zv64p4zB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dr19si2618246ejc.46.2020.10.15.09.15.20; Thu, 15 Oct 2020 09:15:52 -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=@kernel.org header.s=default header.b=zv64p4zB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389359AbgJOQNA (ORCPT + 99 others); Thu, 15 Oct 2020 12:13:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:48910 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388461AbgJOQM7 (ORCPT ); Thu, 15 Oct 2020 12:12:59 -0400 Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E68D421D7F; Thu, 15 Oct 2020 16:12:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602778378; bh=wYeGNA65xooghznt1NdP+AJ2P2uDRvjHr3QQlhRQdJE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=zv64p4zBHeZ3PPxAhPoimJW4wUmg5nR1YqruXK6ydTfrKj6gxgDs/npmBfiBUDRPJ nsmJobGaaDVM4rUT1Y/GTiitd3qgAuMtyxsJFK1Q7wbh8egz6TfyLLrxay9FmUCqOf RgqjlfejcNXGsg3/jrusuIfun2/skkP3Alzhz6xA= Date: Thu, 15 Oct 2020 17:12:51 +0100 From: Mark Brown To: Cheng-yi Chiang Cc: Srinivas Kandagatla , linux-kernel , Taniya Das , Rohit kumar , Banajit Goswami , Patrick Lai , Andy Gross , Bjorn Andersson , Liam Girdwood , Rob Herring , Jaroslav Kysela , Takashi Iwai , Stephan Gerhold , Matthias Brugger , Heiko Stuebner , Srinivasa Rao , Doug Anderson , Dylan Reid , Tzung-Bi Shih , Linux ARM , linux-arm-msm , Kuninori Morimoto , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , "moderated list:ARM/Mediatek SoC support" , "open list:ARM/Rockchip SoC..." Subject: Re: [PATCH v11 2/3] ASoC: qcom: dt-bindings: Add sc7180 machine bindings Message-ID: <20201015161251.GF4390@sirena.org.uk> References: <20200914080619.4178587-1-cychiang@chromium.org> <20200914080619.4178587-3-cychiang@chromium.org> <7bdc0d63-27b1-f99e-c5f8-65f880733d16@linaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Pgaa2uWPnPrfixyx" Content-Disposition: inline In-Reply-To: X-Cookie: Neutrinos have bad breadth. User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Pgaa2uWPnPrfixyx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Oct 15, 2020 at 03:59:26PM +0800, Cheng-yi Chiang wrote: > On Tue, Oct 13, 2020 at 6:36 PM Srinivas Kandagatla > > > +properties: > > > + compatible: > > > + const: qcom,sc7180-sndcard-rt5682-m98357-1mic > > This information can come from the dai link description itself, why > > should compatible string have this information? > I think dailink description is not enough to specify everything > machine driver needs to know. > E.g. there is a variation where there are front mic and rear mic. We > need to tell the machine driver about it so > it can create proper widget, route, and controls. That sounds like something that could be better described with properties (including for example the existing bindings used for setting up things like analogue outputs and DAPM routes)? > The codec combination also matters. There will be a variation where > rt5682 is replaced with adau7002 for dmic. > Although machine driver can derive some information by looking at dailink, > I think specifying it explicitly in the compatible string is easier to > tell what machine driver should do, e.g. > setting PLL related to rt5682 or not. These feel more like things that fit with compatible, though please take a look at Morimoto-san's (CCed) work on generic sound cards for more complex devices: https://lore.kernel.org/alsa-devel/87imbeybq5.wl-kuninori.morimoto.gx@renesas.com/ This is not yet implemented but it'd be good to make sure that the Qualcomm systems can be handled too in future. > You can see widget, route, controls are used according to the configuration. > The alternative approach is to check whether "dmic-gpio" property > exists to decide adding these stuff or not. > But it makes the intent less easier to understand. OTOH if you have lots of compatibles then it can get hard to work out exactly which one corresponds to a given board. --Pgaa2uWPnPrfixyx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl+IdQIACgkQJNaLcl1U h9Cs0gf/aR5zd1VPFM/nOmIp2Or27oiqOMSopuxWeT8ZLdCC0srj7gRTUI8522lz izypzvOW3riGLBh7X3uPWB5LyKHA80pa0yhNrAdJLBzmW0V5OlJ5Wt9VBz4V+qyq oIfmqS/jhFQ4pPGdKQDPhV2NPLK7NT40qcSmCuqrCPR49XcqvTUt7PmETCp1LuqC p5vUj1AqXOHLBRbmy6yc7svns2YEGkH3bxd5MED59nadECZl8QmCVWW+VHERFMnf r5J8EW8FiPMaE6WRwmzf7KdPDHmfFJrRbCGjq9SiwS1qGre7qUdXm0lGagA3YUIq KhE0K1VXxuMUGRohRmQ/sE555zuDBw== =ZOAb -----END PGP SIGNATURE----- --Pgaa2uWPnPrfixyx--