Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4129738ybg; Fri, 25 Oct 2019 13:48:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqzbReSV8XM84U5eF8e3Tsb/TDOb1HB6CTuQtGum48Plzl40nmFGjYrfOz6fCTKKQFuki9gQ X-Received: by 2002:aa7:c257:: with SMTP id y23mr6201091edo.39.1572036488355; Fri, 25 Oct 2019 13:48:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572036488; cv=none; d=google.com; s=arc-20160816; b=DXKDOvHn2bL49yq4AkqMcSePfaTacbvy1wjG9ASoXuuojHacUp5wGm/d1PZxTyO1iC U9XiRmZuUgOqcHI1ch5QFNR9V0wFxvZDaHRp6/mcixn200MkH9BDvHGXMdLE6K3MYiY7 XtQQQ8K0/TOayYXsWF+n3eJeH1/tL6IwMx1TWhAIGHc8O8LJ2Pa6o0RGY19dWCSNtdBR gkyw7tWAfoFrCIUgu3oeVvSeOebzzSL/nk5M6T/oQYQsezc/NndIDnTdHdTcioQZzWt6 7t1nORZtyJDF1G3EYbYkpF5cpracGBVc88XDAj+KfjVh9SSV2O/vFXguyMi5jHHfE3Jg lY8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=oVUutA0rZ+icxdIMRynr9YtXf0wn5/igRKm4SkAazbM=; b=bi2h2UGx5/2gFAIppNJcEz8WaxrYCBVqYjRWNlTuOWDA+FgWeI18lsTlbj3v9Qursv lQZ/XiHDHqzIeAMpaCK2JDtDu2UxJtNg0g2tLIQ04CImUg8EHYirTxq2omf8Wsp2JT4o 2GT7gZVjyXbi2kDttM1xRQVD6lAD5iwH+6NTSkF7ZqQa6qmcRizsQbLJUtb/Ut1clZkP z4aValNGJzAxZFSNc7o2yqk7BEsQiwosoTDDmcPIgmCyIk06iiEYjcCe1fFsyf5yWbfT cX5bp56D8dEnwLDddDseCNvyXNW4jvrwTUS8Nbnh+nCbidEI3n/fK/YogrO1sBEBW/tb Y1XA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l8si1811587ejc.404.2019.10.25.13.47.45; Fri, 25 Oct 2019 13:48:08 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2633170AbfJYQ5a (ORCPT + 99 others); Fri, 25 Oct 2019 12:57:30 -0400 Received: from mga04.intel.com ([192.55.52.120]:15672 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2633153AbfJYQ53 (ORCPT ); Fri, 25 Oct 2019 12:57:29 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Oct 2019 09:57:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,229,1569308400"; d="scan'208";a="373604667" Received: from davidpat-mobl2.amr.corp.intel.com (HELO [10.251.153.16]) ([10.251.153.16]) by orsmga005.jf.intel.com with ESMTP; 25 Oct 2019 09:57:27 -0700 Subject: Re: [alsa-devel] [PATCH] ASoC: eve: implement set_bias_level function for rt5514 To: "Lu, Brent" , "alsa-devel@alsa-project.org" Cc: "Rojewski, Cezary" , Kuninori Morimoto , Tzung-Bi Shih , "linux-kernel@vger.kernel.org" , Jie Yang , Takashi Iwai , Liam Girdwood , Richard Fontana , Mark Brown , "M, Naveen" , Thomas Gleixner , "Subhransu S . Prusty" References: <1571994691-20199-1-git-send-email-brent.lu@intel.com> <3ce80285-ddb5-653d-cf60-febc9fd0bdee@linux.intel.com> <219281e5-d685-d584-0d22-5dcf3ca2bec2@linux.intel.com> From: Pierre-Louis Bossart Message-ID: <618b3202-6418-a7e2-9b8e-bc32c01d46ed@linux.intel.com> Date: Fri, 25 Oct 2019 11:57:26 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/25/19 11:14 AM, Lu, Brent wrote: >> >> Can you clarify if the rt5514 needs the MCLK while it's doing the hotword >> detection? > > No, running the detection does not raise the bias level so the set_bias_level > will not be called. The mclk is only turned on then off in mixer control's handler > (rt5514_dsp_voice_wake_up_put) when enabling the hotword detection. > >> >> My point is really that this patch uses a card-level BIAS indication, and I'd like >> to make sure this does not interfere with the audio DSP being in D3 state. > > The function checks the name of dapm so it would only react when rt5514's > bias level is changing. And also the idle_bias_off of the codec driver is true so > it's target_bias_level should not be overwritten in the dapm_power_widgets() > function. The behavior should be similar to the previous patch which is using > supply widget. Ah yes, I did miss this test: + if (!component || strcmp(component->name, RT5514_DEV_NAME)) + return 0; Looks good then, thanks for the explanations. Reviewed-by: Pierre-Louis Bossart