Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4121703ybg; Fri, 25 Oct 2019 13:40:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqw9gpQTIInHARqI+FGZEHALz0UIwhOO+LDXTxQu7SIGcCB/48xvWuGtj56xXsZdDMFEhyrG X-Received: by 2002:a05:6402:304c:: with SMTP id bu12mr6020350edb.230.1572036025392; Fri, 25 Oct 2019 13:40:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572036025; cv=none; d=google.com; s=arc-20160816; b=FCdd71UiTV5yIS8gvlsdAS5iTmpUSuGlbWc+IQPl72B5ivPzd0uNTbchowgyhQHLFJ uEXJO4LgUALgfuVuXr5eNmxRaCLkQtxOK9LKUTE/1y2F68o4upfkYtZnGqe08ULqfFEY 3XKDlrzDvlz9gyAE4yLwL9Erv1PIp7N9Vz2Hp6xI5riN+ZeLKWDGkdNFPkxHdFP7YLgc hAxAJIbA4hsbRoobIQqNlmWtm24cppO6uY8QtBigPjScUKSrzqMndyGUGW2t6vV2qpYs 7tMH3j6g40rM8W+ZI93TBrQ3xw57+XeDdFuKfbtUHUyVp+gefzdzj2ekyAT0M07rcmYM UsLw== 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=+hZJUN3u26LlLVXGwXpM2YSpaGtYyNpHOnFhaDozIos=; b=nc8onZlXrbpTD496gRm2YObU5y35EPU+8HWrV7p5E95NAMQ1HX3S0vvmkGLPmn9XEY q9qlQFynVRzs8V6AP0hMjH6zly/K1DCKLoHj5Zq1P/W/4cUkKCXs2hR5RRnXDsq7jE9Z OnqJvD1u249CTqgZakjFDToOLW5YWDkhGxaysYdmRQWQglCUSp4JZIf3iHLcW/wrWIG2 G0pcqQ+TMcn7nPl4bxz/sdnO2OotowZpAOi1oTxTqKoNeu7XnJBEwSNPoFunK1/EAbBf 3f3CyNUzsqTtlJPAr3+8dPnKlJ9IPIaajTVPMHP9lqdffJUEQ5BCI4xTC5U5fGoze1q0 DVrg== 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 t8si2535949edc.387.2019.10.25.13.40.02; Fri, 25 Oct 2019 13:40:25 -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 S2395250AbfJYOs2 (ORCPT + 99 others); Fri, 25 Oct 2019 10:48:28 -0400 Received: from mga18.intel.com ([134.134.136.126]:61585 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389921AbfJYOs2 (ORCPT ); Fri, 25 Oct 2019 10:48:28 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Oct 2019 07:48:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,229,1569308400"; d="scan'208";a="223940563" Received: from bnail-mobl.amr.corp.intel.com (HELO [10.252.140.167]) ([10.252.140.167]) by fmsmga004.fm.intel.com with ESMTP; 25 Oct 2019 07:48:25 -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" , Liam Girdwood , Jie Yang , Mark Brown , Jaroslav Kysela , Takashi Iwai , "Subhransu S . Prusty" , Richard Fontana , Tzung-Bi Shih , Kuninori Morimoto , Thomas Gleixner , "M, Naveen" , "linux-kernel@vger.kernel.org" References: <1571994691-20199-1-git-send-email-brent.lu@intel.com> <3ce80285-ddb5-653d-cf60-febc9fd0bdee@linux.intel.com> From: Pierre-Louis Bossart Message-ID: <219281e5-d685-d584-0d22-5dcf3ca2bec2@linux.intel.com> Date: Fri, 25 Oct 2019 09:48:24 -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 9:43 AM, Lu, Brent wrote: >> On 10/25/19 4:11 AM, Brent Lu wrote: >>> The first DMIC capture always fail (zero sequence data from PCM port) >>> after using DSP hotwording function (i.e. Google assistant). >> >> Can you clarify where the DSP hotwording is done? Intel DSP or rt5514? >> >> Turning on the MCLK with the BIAS info might force the Intel DSP to remain >> on, which would impact power consumption if it was supposed to remain off. >> > > Hi Pierre, > > It's done in rt5514's DSP and the interface is SPI instead of I2S for the voice wake > up function. > > There is a driver rt5514-spi.c which provides platform driver and DAI. User space > application first uses the mixer to turn on the voice wake up function: > > amixer -c0 cset name='DSP Voice Wake Up' on > > Then open and read data from the PCM port which goes to the SPI platform and > dai code. Finally it uses same mixer to turn off the function and return to normal > codec mode. The DMIC recording (from I2S) and the voice wake on function should > be mutually exclusive according to the driver design. > > In the codec driver rt5514.c there is a rt5514_set_bias_level function. It's expected to > turn on/off mclk here according to Realtek people's say but our ssp clock requires set > rate function to be called in advance so I implement the code in machine driver. Can you clarify if the rt5514 needs the MCLK while it's doing 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.