Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp973528pxb; Thu, 25 Feb 2021 22:09:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJxOadj686F2vSkL2zg8XKV3PNqhYraByjeaiyKUS9x/XQLwkJrDNlMlNk2xrONlGkTiw2qy X-Received: by 2002:a17:906:f113:: with SMTP id gv19mr1513182ejb.379.1614319788904; Thu, 25 Feb 2021 22:09:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614319788; cv=none; d=google.com; s=arc-20160816; b=FblF6UAYmygGb5Fp3GVr6hD8rMcvxMHq/vbwXacAJqAELIsO1nT3IkK4A6zhE6y9J0 sQ/PDtnzBsFLUkIy/d40vwdO0T/yNUHHauljaOAeoVp50PUX7V0PMo9OX4BpXxaI9HzJ C1aPrs4XLubfTdYuPnBqqmIfq5TLFnozN69MkkQ54xgVQm/so8TPvtQSXuGVAzcojqnf MdkZGbV+7bqGbX8iYUQ54xN0WudcQWaJ1oVlOYDRGS1ydFz4UZYV8F2suLFX2lZLcNFC mGgJUFqzPvcODZLRHpz7vCsaUxp7bDPly+nD2g6I6Nfh177ip6Qv36h0Yl2553mCzUn4 Dktg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=MYg4eVbwr39lKc3uuAMvjqg+Cg+k46HPoKOqEhnc4M0=; b=vICI/oxGf/7ydRYD22wQS8gPeIPyzSVNurQ4QTbX7bOkEUbqNh8Unz+8T65CAxGWMR AdAD6+rqLcpjmVUpyxHmZNX3IvWiKSO3Denk7mrCmGNVIA7TIQxkaISJHCKTHMGqJqVC AtmSb2zuaKCuLEkY+ZxbRGdMREl6+Xbjo7jn2iHd1H6Ws9eaX2/jBT5mLJgNcWnjA6XN qJ5t1TBzaht3GSEM4wTNZDzGTS9nfy+HBWNH7i+2rjo16CSFwCEc41on3SgdJyhRIAyx +kWIvXXf5zkEWXkpNchkrOItycSOVfw/nCZIHHdnZ8V1hihaZdd33i9lTRgvAyY5a6TG LzKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aNulaLbS; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p9si4242051edq.59.2021.02.25.22.09.26; Thu, 25 Feb 2021 22:09:48 -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=@gmail.com header.s=20161025 header.b=aNulaLbS; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229727AbhBZGGX (ORCPT + 99 others); Fri, 26 Feb 2021 01:06:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229621AbhBZGGV (ORCPT ); Fri, 26 Feb 2021 01:06:21 -0500 Received: from mail-qv1-xf36.google.com (mail-qv1-xf36.google.com [IPv6:2607:f8b0:4864:20::f36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E92AC06174A for ; Thu, 25 Feb 2021 22:05:41 -0800 (PST) Received: by mail-qv1-xf36.google.com with SMTP id fb15so4044892qvb.3 for ; Thu, 25 Feb 2021 22:05:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MYg4eVbwr39lKc3uuAMvjqg+Cg+k46HPoKOqEhnc4M0=; b=aNulaLbShHGrrGAIOIVnoMFS7GA1WPvqdgqQWloxZ36+5m+1dacki93PSG1AybZLsT ONqHjxDClQv34l5qUYtzQQIePQtqXkxIyzQ2bYGl2D0awkbMppG7O1ZbQsn8Od4ccqaC ZNWdw12Ns86zd7C15kdUIx3qfU+b8X3paOYscBqusL0VLnVxZglfkVmEnjFwOFcdoZYB zu5pAsNEoPp51XmSMrSk+n5pt7oz1OuuHPr1e/NOYu+6pOY2v6Zdn6hD1zhuFMakK49+ ZHQos4snnW6qEFGykFFv9mTwodUaPzTp0Ur9iYGt3v0yl9IexGdV0QzWilaGHdudNxBG +u7Q== 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=MYg4eVbwr39lKc3uuAMvjqg+Cg+k46HPoKOqEhnc4M0=; b=THXQFpMoyhVIP+ulPy0qHd1ISj8IWJlyOCy4IzaeqII0MlkvPRv0pOTr4bMsJre4KA SbyfVvF/04vI5KPTbNr8pqmduNXFdjD4HrBwGW3eHFOs/txatNpkbNsRnlZ6gP6i++3g rXT5EvAqjQPvxzlHe459vfs0K1NIfivpeczVnoQUx9iTkDfhoUDFgmbo5ZppmbRugJBG LzLn2C9AeJmuQwCWEblgG3VYuRor/TJQTa4A3PMDveQIfkst+DyDTF0qKjeckk/notnM +ZY6U6rfZgoSd30fdv0pSm7z2kMpLZZ6E9/pbOObn7BkMJmb4oJ33kssvdXJknF+R/C6 tw4g== X-Gm-Message-State: AOAM5316syQmdQnbe583LKLwcDBOHzw0jZlghm/zc7mTCs40df+F2kjO Vaw153LelN9aeh32iwa88TmQ3sX1tMhBmSTH6Io= X-Received: by 2002:a05:6214:76f:: with SMTP id f15mr1129944qvz.56.1614319540471; Thu, 25 Feb 2021 22:05:40 -0800 (PST) MIME-Version: 1.0 References: <1614254912-15746-1-git-send-email-shengjiu.wang@nxp.com> <20210225131533.GA5332@sirena.org.uk> In-Reply-To: <20210225131533.GA5332@sirena.org.uk> From: Shengjiu Wang Date: Fri, 26 Feb 2021 14:05:29 +0800 Message-ID: Subject: Re: [PATCH] ASoC: simple-card: Add dummy dai support simple sound card To: Mark Brown 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. best regards wang shengjiu