Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1138596pxb; Wed, 10 Feb 2021 00:36:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJyacsjm4JtQweKrcpNAYHCiMjl/NABocW47jAu022X47zGrNLsp7MXCAXugisqQ/km7f4W7 X-Received: by 2002:a05:6402:3510:: with SMTP id b16mr2110764edd.242.1612946210863; Wed, 10 Feb 2021 00:36:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612946210; cv=none; d=google.com; s=arc-20160816; b=hHOnNR3UnFnPDwaz9V15Fb+mynpK3tlMh3i/d5viAXlXzocZqSS/u/EV2YnRQ7niJQ 5y5R7GW7ZYnAeYlkbMMMhy4ZLGdbe75xmrt9DqhcMw+m1gr6mB1tMy4No4e8vSrFK11T U2tvlo/r2CdgoB0RNDHZH2w5+MljCL0jkBPwjYg0M4Ei/Dch61HIX7h1IMaECP1O8MNR CGQ8G0xVI9cbiQ5G+PNw8zU2/RlPol3i3SAi6YVLfFtVrVO8y1LQ2kBxTsvfxPRffD6C LEn7wR/wF6KnaWbz3BlHdSKmjSPxguK37tEZSpiM3ignv6AXg6r4afmWEPZneJ9A//w1 3Kaw== 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=OXavdBpvyb1Dd4oqB+h0ECTg4yI3fOv5ICocqflKLWs=; b=MDsL798DA6lmKJu2X78u+AMfj1/eDimAC6cnbflzt58m27bvgl8w3nKFhKmFwVmLg0 EBVdenySw/8Us9zqT7Bmn8DAJUOPhRdkxfO6asDvipbEbIMiM62YlEHeMPFM7IRY8tgJ 3toXf21o5+35M1tzP/YKqiGCO9nE8c4pbti+kZEBX2mYGR6VYa+J9eN14Y9g7WpeWkm+ vj+WCf+BOXCkaf9Gsr/iw8YYSazx0JZNijCswanRDdlJ98t8uA2MSJtFaJhaVY/MpmiJ M3RsLw1SUOz7NB+tuUVey+r7yBgp35ciLINxII1Ao266xso+YqQct2+Z7VYrCGeiaTeL /+Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=U3TeKQmh; 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 d9si975831edt.564.2021.02.10.00.36.27; Wed, 10 Feb 2021 00:36:50 -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=U3TeKQmh; 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 S231966AbhBJGgh (ORCPT + 99 others); Wed, 10 Feb 2021 01:36:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231967AbhBJGgV (ORCPT ); Wed, 10 Feb 2021 01:36:21 -0500 Received: from mail-qt1-x830.google.com (mail-qt1-x830.google.com [IPv6:2607:f8b0:4864:20::830]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5103EC061574; Tue, 9 Feb 2021 22:35:41 -0800 (PST) Received: by mail-qt1-x830.google.com with SMTP id w20so859696qta.0; Tue, 09 Feb 2021 22:35: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=OXavdBpvyb1Dd4oqB+h0ECTg4yI3fOv5ICocqflKLWs=; b=U3TeKQmh4y3CaWmZxGHT2aKYLXNMmaTMhX74o7qey2Zqpli88QlRz1Xs6iuoUXdHpp vrDeFbsUwEWi9FKGrl/Vq8lyG/053P0M7F+3caw1kPcsncgM7m+SOqRxTLW369Uj/FFq A9qAxPNoHSKxxAxQ4h6PCTAT6kKIn8aoSohjxh7M15EiZ2Qlcez9KGqofJ+nPPNs1QUx 9wUhYhnS7JNDZoy+WNsipI0nlpIZKUnH+4QuClQMepS8wOkv61BhtZ57FjpYx+xCISVn TLP+LLYgiCtBirVf4LfoqCjegiT3D+R7lUdUz6OYnOoczhRPL11mVNSvXNcSxevXYVoh +NYg== 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=OXavdBpvyb1Dd4oqB+h0ECTg4yI3fOv5ICocqflKLWs=; b=IBPyk6Txk53zbQ7VvJdSfrFz8TR7Y3E3m/l8VVxzjuPqGlP6PJHjqNFQzK3VyLMc4C w4RSLFjAnLkVsXIdeKj+nqyCi1pzSkCBF0U91AIP1EjcNhnBiu37JjoYWC7UqBXysjEQ 5I1AbuovSY6/YeGPByi+rLW8m3mLGiSs8E5bYOwh5jyVaVfZiQEUfRnWN5dx9AgMwk9/ SVkai3y5PeVO29jYOde7mT1jzb04YBstGxPWHfR5lRGuwQzE/mMc3DYi8CL27D0K0qbc j1lA8bOEty0iy/s0xCb1o95oXuG7gYUYVy9a+9zyyCFr86USWYVS3PVXkbRI8Y/F3AUo OjYw== X-Gm-Message-State: AOAM531NDFnNUCOCnSqWyKcZFQpeIiyFg9aVPDAHqO90Ddj2JngpL2s3 jl7GGwWI3HlOOIgz/832vaNJz9I2nO8HKs5gqMTZ6qe5Uwhrhg== X-Received: by 2002:ac8:6f06:: with SMTP id g6mr1460808qtv.360.1612938940598; Tue, 09 Feb 2021 22:35:40 -0800 (PST) MIME-Version: 1.0 References: <1612693435-31418-1-git-send-email-shengjiu.wang@nxp.com> <1612693435-31418-3-git-send-email-shengjiu.wang@nxp.com> <20210208115112.GD8645@sirena.org.uk> <20210209222953.GF4916@sirena.org.uk> In-Reply-To: <20210209222953.GF4916@sirena.org.uk> From: Shengjiu Wang Date: Wed, 10 Feb 2021 14:35:29 +0800 Message-ID: Subject: Re: [PATCH v2 2/7] ASoC: fsl_rpmsg: Add CPU DAI driver for audio base on rpmsg To: Mark Brown Cc: Shengjiu Wang , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , alsa-devel@alsa-project.org, Timur Tabi , Liam Girdwood , linuxppc-dev@lists.ozlabs.org, Xiubo Li , linux-kernel , Takashi Iwai , Nicolin Chen , Rob Herring , Fabio Estevam Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 10, 2021 at 6:30 AM Mark Brown wrote: > > On Tue, Feb 09, 2021 at 05:16:16PM +0800, Shengjiu Wang wrote: > > On Mon, Feb 8, 2021 at 7:53 PM Mark Brown wrote: > > > > hw_params() can be called multiple times and there's no need for it to > > > be balanced with hw_free(), I'd move this to a different callback (DAPM > > > should work well). > > > Which callback should I use? Is there an example? > > Like I say I'd actually recommend moving this control to DAPM. I may understand your point, you suggest to use the .set_bias_level interface. But in my case I need to enable the clock in earlier stage and keep the clock on when system go to suspend. I am not sure .set_bias_level can met my requirement. we start the Chinese new year holiday now, so currently I can't do test for this recommendation. Maybe we can keep current implementation, can we? Later after I do the test, I can submit another patch for it. Best regards Wang Shengjiu