alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Vinod Koul <vinod.koul@intel.com>
To: Sebastien Guiriec <sebastien.guiriec@intel.com>
Cc: liam.r.girdwood@linux.intel.com, alsa-devel@alsa-project.org,
	vind.koul@intel.com, pierre-louis.bossart@linux.intel.com
Subject: Re: [PATCH 2/3] ASoC: Intel: atom: save FW version
Date: Tue, 8 Nov 2016 02:31:18 +0530	[thread overview]
Message-ID: <20161107210117.GO3000@localhost> (raw)
In-Reply-To: <20161104080411.12410-2-sebastien.guiriec@intel.com>

On Fri, Nov 04, 2016 at 09:04:10AM +0100, Sebastien Guiriec wrote:
> After the boot of the SST FW the firmware version is send back
> to the driver. This patch is saving the FW version inside the
> driver.
> 
> Signed-off-by: Sebastien Guiriec <sebastien.guiriec@intel.com>
> ---
>  sound/soc/intel/atom/sst/sst.h     | 1 +
>  sound/soc/intel/atom/sst/sst_ipc.c | 5 +++++
>  2 files changed, 6 insertions(+)
> 
> diff --git a/sound/soc/intel/atom/sst/sst.h b/sound/soc/intel/atom/sst/sst.h
> index 3f49386..5c9a51cc 100644
> --- a/sound/soc/intel/atom/sst/sst.h
> +++ b/sound/soc/intel/atom/sst/sst.h
> @@ -436,6 +436,7 @@ struct intel_sst_drv {
>  	 */
>  	char firmware_name[FW_NAME_SIZE];
>  
> +	struct snd_sst_fw_version fw_version;

Can you check if this is initialzed to zero, otherwise we should reset it..


>  	struct sst_fw_save	*fw_save;
>  };
>  
> diff --git a/sound/soc/intel/atom/sst/sst_ipc.c b/sound/soc/intel/atom/sst/sst_ipc.c
> index 92ffeaa..8e88211 100644
> --- a/sound/soc/intel/atom/sst/sst_ipc.c
> +++ b/sound/soc/intel/atom/sst/sst_ipc.c
> @@ -240,6 +240,11 @@ static void process_fw_init(struct intel_sst_drv *sst_drv_ctx,
>  			init->fw_version.type, init->fw_version.major,
>  			init->fw_version.minor, init->fw_version.build);
>  
> +	/* Save FW version */
> +	sst_drv_ctx->fw_version.type = init->fw_version.type;
> +	sst_drv_ctx->fw_version.major = init->fw_version.major;
> +	sst_drv_ctx->fw_version.minor = init->fw_version.minor;
> +	sst_drv_ctx->fw_version.build = init->fw_version.build;
>  ret:
>  	sst_wake_up_block(sst_drv_ctx, retval, FW_DWNL_ID, 0 , NULL, 0);
>  }
> -- 
> 2.9.3
> 
> ---------------------------------------------------------------------
> Intel Corporation SAS (French simplified joint stock company)
> Registered headquarters: "Les Montalets"- 2, rue de Paris, 
> 92196 Meudon Cedex, France
> Registration Number:  302 456 199 R.C.S. NANTERRE
> Capital: 4,572,000 Euros
> 
> This e-mail and any attachments may contain confidential material for
> the sole use of the intended recipient(s). Any review or distribution
> by others is strictly prohibited. If you are not the intended
> recipient, please contact the sender and delete all copies.
> 
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

-- 
~Vinod

  reply	other threads:[~2016-11-07 20:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-04  8:04 [PATCH 1/3] ASoC: intel: atom: Add debug information related to FW version Sebastien Guiriec
2016-11-04  8:04 ` [PATCH 2/3] ASoC: Intel: atom: save " Sebastien Guiriec
2016-11-07 21:01   ` Vinod Koul [this message]
2016-11-08  7:15     ` Sebastien Guiriec
2016-11-04  8:04 ` [PATCH 3/3] ASoC: Intel: atom: Add sysfs entry in order to store " Sebastien Guiriec
2016-11-07 21:02   ` Vinod Koul
2016-11-08  8:29     ` Sebastien Guiriec
2016-11-09 10:21       ` Vinod Koul

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161107210117.GO3000@localhost \
    --to=vinod.koul@intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=liam.r.girdwood@linux.intel.com \
    --cc=pierre-louis.bossart@linux.intel.com \
    --cc=sebastien.guiriec@intel.com \
    --cc=vind.koul@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).