From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeeja KP Subject: Re: [PATCH v2 1/2] ASoC: Intel: bxtn: Store the FW/Library context at boot Date: Thu, 12 Jan 2017 20:41:30 +0530 Message-ID: <20170112151129.GA27495@kpjeeja-desk> References: <1484195084-24446-1-git-send-email-jeeja.kp@intel.com> <1484195084-24446-2-git-send-email-jeeja.kp@intel.com> <1484208681.2604.66.camel@loki> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by alsa0.perex.cz (Postfix) with ESMTP id 02997266AFF for ; Thu, 12 Jan 2017 16:00:29 +0100 (CET) Content-Disposition: inline In-Reply-To: <1484208681.2604.66.camel@loki> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Liam Girdwood Cc: tiwai@suse.de, patches.audio@intel.com, alsa-devel@alsa-project.org, broonie@kernel.org List-Id: alsa-devel@alsa-project.org On Thu, Jan 12, 2017 at 08:11:21AM +0000, Liam Girdwood wrote: > On Thu, 2017-01-12 at 09:54 +0530, jeeja.kp@intel.com wrote: > > From: Jeeja KP > > > > Store the DSP firmware/library at boot, so that for S3 to S0 transition > > use the stored ctx for downloading the firmware to DSP memory. > > > > Signed-off-by: Jeeja KP > > --- > > sound/soc/intel/skylake/bxt-sst.c | 55 +++++++++++++++++++++++++-------------- > > 1 file changed, 36 insertions(+), 19 deletions(-) > > > > diff --git a/sound/soc/intel/skylake/bxt-sst.c b/sound/soc/intel/skylake/bxt-sst.c > > index 15a063a..7762d5a 100644 > > --- a/sound/soc/intel/skylake/bxt-sst.c > > +++ b/sound/soc/intel/skylake/bxt-sst.c > > @@ -50,33 +50,47 @@ static unsigned int bxt_get_errorcode(struct sst_dsp *ctx) > > return sst_dsp_shim_read(ctx, BXT_ADSP_ERROR_CODE); > > } > > > > +static void sst_bxt_release_library(struct skl_lib_info *linfo, int lib_count) > > +{ > > + int i; > > + > > + for (i = 1; i < lib_count; i++) { > > It probably makes sense to replace 1 with a macro here to indicate the > first non base FW ID number. This can be done in other places too to > make the code more readable for library management. > sure, will add a macro for the non base FW ID and will address this as a separate patch as this is used in other places as well. > Liam > > --