Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp976896pxb; Wed, 3 Mar 2021 23:13:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJxwtA+hSW+FtGP9eSD1XmarGbsknXXI6ZRg3FAtpoR64vc5Y6mlyPfdCYlAr5IHzmYdUEvS X-Received: by 2002:a17:906:f9cc:: with SMTP id lj12mr2648065ejb.544.1614842017878; Wed, 03 Mar 2021 23:13:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614842017; cv=none; d=google.com; s=arc-20160816; b=l9UJ+8G+uHFCfug1Nd9qigs7IoTre+ZQ1sKfe3JSpXNdK31QYmw2JgJUoss5x/REz+ zTUUHQZFjV1NYfmksSLXmvrP3R716DbEs0JNnN5yxcro96DCiNMNCE5KgREbbcRtFkqV WgibA91igzbn2PzPWBzsLJlmodpi8AmlBBWfg0ilPVPfgoOsXYF0CfAqNOuuKuFAkxdA l3mmmIZjpf80uVBRbdhTWNhSqVp0pG+ZCN4AzUMS3r4YkFhsBqtWPywGKv2tRjekzdbU 1ikSbR1wZLkNXYZHerctGFT5SREyDKrO1trHHe1OZkxyGWFDDJiy4bTjzdEX38TrNwW5 tgKg== 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=IOlKuu8GeJ2YLZYdliWZ6t3frIslg62E8iyX7TFyByg=; b=OhFaIsdH7f1pSW9t+RDs6wm+rP0rpii11G4rM5vjb8a7Ql6IdwzR6BTd42whsS7t8u pfccHw38vYonZghYneowUcpFFfitGOIODC7vn7v7iag3gazrw1RLc1MlQPxh/OXGoIhf H64K9yrrFnY6/58wMiJjMTZGqKKtyo3j2OTsQ2NZSz9dvAUMEDLlSTpQJllx4TEQnPK6 wGBbKVskh9tDNxFh7znlxsFzGamhODRxHbbTnyGdeqXRWc2wiu798QwfxLT12vQHWAdX +nD3zBqrY7gsleJgzzU3QRDLaPFG/ij4dwCK4ugRrj3HlnmXFhjYcNC8Dje0bxySh1fL HoNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DYcBHc3M; 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 r9si8718504ejx.201.2021.03.03.23.13.15; Wed, 03 Mar 2021 23:13:37 -0800 (PST) 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=k20201202 header.b=DYcBHc3M; 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 S2359901AbhCBWFF (ORCPT + 99 others); Tue, 2 Mar 2021 17:05:05 -0500 Received: from mail.kernel.org ([198.145.29.99]:40458 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1836078AbhCBThF (ORCPT ); Tue, 2 Mar 2021 14:37:05 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id E719664F25; Tue, 2 Mar 2021 16:33:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614702816; bh=xuU9oMOeaz3Es42maf+w61Cm4/OCct29YfV5FhwR8+8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DYcBHc3MSnXRinTI9QTMqPu54FjYbHx8k1uXD7SgUcEGwI4xZOvlFKknyaomFzdIQ ggitlEo3cO5iw2hdnUSiGZcCOhDpV5SshdBk53X4K3Hv/wGszqyaZDzS/rIG3MubKg qKrgL0R/ajRpiFPEFLaXELfh/rmNU6tQxiTaH6vhMlFqP19xHu8wgbK4+tsFwxYEPw +fYl8rCu48D0aHTwp87IOd/A3ASFF6bhuGCpAosno97hXg1yBpcXF3rvnL6qVRYlp0 YdIuIe3VpCL3EIUBkTX2Opz0H2x1Z6+6BXtH2xxqQ5UGbwuRVRH6jrMjshYMw/NFyF pGkrQXjdyl6hA== Date: Tue, 2 Mar 2021 16:32:29 +0000 From: Mark Brown To: Shengjiu Wang Cc: Shengjiu Wang , guennadi.liakhovetski@linux.intel.com, alsa-devel@alsa-project.org, kai.vehmanen@linux.intel.com, stephan@gerhold.net, Liam Girdwood , linux-kernel , Pierre-Louis Bossart , Takashi Iwai Subject: Re: [PATCH] ASoC: simple-card: Add dummy dai support simple sound card Message-ID: <20210302163229.GN4522@sirena.org.uk> References: <1614254912-15746-1-git-send-email-shengjiu.wang@nxp.com> <20210225131533.GA5332@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="F4+N/OgRSdC8YnqX" Content-Disposition: inline In-Reply-To: X-Cookie: Friction is a drag. User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --F4+N/OgRSdC8YnqX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Feb 26, 2021 at 02:05:29PM +0800, Shengjiu Wang wrote: > On Thu, Feb 25, 2021 at 9:17 PM Mark Brown wrote: > > On Thu, Feb 25, 2021 at 08:08:32PM +0800, Shengjiu Wang wrote: > > > If sound card doesn't need specific codec device, just > > > dummy codec is enough, then we can link the dummy component > > > directly. > > This is a big red flag - what circumstances are these? If it's a simple > > CODEC with no control then the general approach is to provide a driver > > which announces the capabilities of the CODEC and can be bound to as > > normal, the dummy component should never actively be used. > For the DMIC, SPDIF, HDMI ARC device or other > similar device that there is no codec connected, then dummy codec is > just used for registering the sound card. There are logical CODECs there, and we already have devices set up for those (like dmic.c for example). All the above cases have at least some constraints from the spec for the interface. --F4+N/OgRSdC8YnqX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmA+aJwACgkQJNaLcl1U h9B/agf+NuZkSLk0hEvuBLZfN8yHn0Pdiykp2X9jERm3iqFpvGWqNegsoouoydfm GPnSAmiaz41sqB5B0F9JKWXBKTQ1aJX4Enptx8zIxoc4E/vRi2V2vq7TI2egODqV OnPbth/fcTuva5m345AtS8uC4PQN7QvYibNVos1ZOBnLqxWuSGVP96fdQ0dUzQ8c 6ArphB631y2Vv6SJZ88UU3PhJmfhU1wBsTw8ww4YoLl1C8N77bQw6u+jIfyy/H0X C5gRJTlLzMAWSXPCjOhPJyReEvkgiN24H50G52+gs9F/bPyMudjK6uZO/F1LCFWP ScAb6CP4dkWqHs+uIqFYVRRKNx+XJQ== =XYXx -----END PGP SIGNATURE----- --F4+N/OgRSdC8YnqX--