From: Liam Girdwood <liam.r.girdwood@intel.com>
To: Vinod Koul <vinod.koul@intel.com>
Cc: jeeja.kp@intel.com, alsa-devel@alsa-project.org,
broonie@kernel.org, subhransu.s.prusty@intel.com,
lgirdwood@gmail.com
Subject: Re: [RFC 3/4] ASoC: Intel: add the low level dsp driver for mrfld
Date: Tue, 06 May 2014 16:45:52 +0100 [thread overview]
Message-ID: <1399391152.2814.40.camel@loki> (raw)
In-Reply-To: <1399312908-20744-4-git-send-email-vinod.koul@intel.com>
On Mon, 2014-05-05 at 23:31 +0530, Vinod Koul wrote:
> This driver provides low level functions like sending and receiving IPCs, managing
> power for DSP etc
>
> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
> ---
> sound/soc/intel/sst/Makefile | 5 +
> sound/soc/intel/sst/sst.c | 631 ++++++++++++++++++++
> sound/soc/intel/sst/sst.h | 686 ++++++++++++++++++++++
> sound/soc/intel/sst/sst_drv_interface.c | 812 ++++++++++++++++++++++++++
> sound/soc/intel/sst/sst_ipc.c | 388 +++++++++++++
> sound/soc/intel/sst/sst_loader.c | 947 +++++++++++++++++++++++++++++++
> sound/soc/intel/sst/sst_pvt.c | 203 +++++++
> sound/soc/intel/sst/sst_stream.c | 529 +++++++++++++++++
We should rename the sst directory to avoid confusion with other sst
drivers.
> 8 files changed, 4201 insertions(+), 0 deletions(-)
> create mode 100644 sound/soc/intel/sst/Makefile
> create mode 100644 sound/soc/intel/sst/sst.c
> create mode 100644 sound/soc/intel/sst/sst.h
> create mode 100644 sound/soc/intel/sst/sst_drv_interface.c
> create mode 100644 sound/soc/intel/sst/sst_ipc.c
> create mode 100644 sound/soc/intel/sst/sst_loader.c
> create mode 100644 sound/soc/intel/sst/sst_pvt.c
> create mode 100644 sound/soc/intel/sst/sst_stream.c
>
> diff --git a/sound/soc/intel/sst/Makefile b/sound/soc/intel/sst/Makefile
> new file mode 100644
> index 0000000..d5bf4e8
> --- /dev/null
> +++ b/sound/soc/intel/sst/Makefile
> @@ -0,0 +1,5 @@
> +snd-intel-sst-objs := sst.o sst_ipc.o sst_stream.o sst_drv_interface.o sst_loader.o sst_pvt.o
> +
> +obj-$(CONFIG_SND_INTEL_SST) += snd-intel-sst.o
> +
> +CFLAGS_snd-intel-sst.o = -I$(src)
> diff --git a/sound/soc/intel/sst/sst.c b/sound/soc/intel/sst/sst.c
> new file mode 100644
> index 0000000..116522b
> --- /dev/null
> +++ b/sound/soc/intel/sst/sst.c
> @@ -0,0 +1,631 @@
> +/*
> + * sst.c - Intel SST Driver for audio engine
> + *
> + * Copyright (C) 2008-14 Intel Corp
> + * Authors: Vinod Koul <vinod.koul@intel.com>
> + * Harsha Priya <priya.harsha@intel.com>
> + * Dharageswari R <dharageswari.r@intel.com>
> + * KP Jeeja <jeeja.kp@intel.com>
> + * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License as published by
> + * the Free Software Foundation; version 2 of the License.
> + *
> + * This program is distributed in the hope that it will be useful, but
> + * WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> + * General Public License for more details.
> + *
> + * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> + */
> +
> +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
> +
> +#include <linux/module.h>
> +#include <linux/pci.h>
> +#include <linux/fs.h>
> +#include <linux/interrupt.h>
> +#include <linux/firmware.h>
> +#include <linux/miscdevice.h>
> +#include <linux/pm_runtime.h>
> +#include <linux/pm_qos.h>
> +#include <linux/async.h>
> +#include <linux/delay.h>
> +#include <linux/acpi.h>
> +#include <asm/intel-mid.h>
> +#include <asm/platform_sst_audio.h>
> +#include <asm/platform_sst.h>
> +#include "../sst_platform.h"
> +#include "../platform_ipc_v2.h"
> +#include "sst.h"
> +
> +MODULE_AUTHOR("Vinod Koul <vinod.koul@intel.com>");
> +MODULE_AUTHOR("Harsha Priya <priya.harsha@intel.com>");
> +MODULE_DESCRIPTION("Intel (R) SST(R) Audio Engine Driver");
> +MODULE_LICENSE("GPL v2");
> +MODULE_VERSION(SST_DRIVER_VERSION);
> +
> +struct intel_sst_drv *sst_drv_ctx;
static ?
> +static struct mutex drv_ctx_lock;
> +
> +
> +static int sst_save_dsp_context_v2(struct intel_sst_drv *sst)
Is there a V1 somewhere ?
> +static int intel_sst_suspend(struct device *dev)
> +{
> +
extra line ? Spotted this in a few places too.
Probably best to split this into several patches to make review easier.
Liam
---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47
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.
next prev parent reply other threads:[~2014-05-06 15:47 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-05 18:01 [RFC 0/4] Add support for merrfield audio Vinod Koul
2014-05-05 18:01 ` [RFC 1/4] ASoC: Intel: add SSP BE DAIs Vinod Koul
2014-05-06 14:42 ` Liam Girdwood
2014-05-05 18:01 ` [RFC 2/4] ASoC: Intel: Add merrifield machine driver Vinod Koul
2014-05-06 15:17 ` Liam Girdwood
2014-05-06 16:49 ` Vinod Koul
2014-05-06 15:54 ` Lars-Peter Clausen
2014-05-06 16:58 ` Vinod Koul
2014-05-06 18:17 ` Lars-Peter Clausen
2014-05-07 4:51 ` Vinod Koul
2014-05-05 18:01 ` [RFC 3/4] ASoC: Intel: add the low level dsp driver for mrfld Vinod Koul
2014-05-06 15:45 ` Liam Girdwood [this message]
2014-05-06 16:44 ` Vinod Koul
2014-05-07 6:09 ` Jarkko Nikula
2014-05-07 7:25 ` Vinod Koul
2014-05-05 18:01 ` [RFC 4/4] ASoC: Intel: add support for mrfld DPCM platform Vinod Koul
2014-05-06 15:53 ` Liam Girdwood
2014-05-06 16:46 ` 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=1399391152.2814.40.camel@loki \
--to=liam.r.girdwood@intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=jeeja.kp@intel.com \
--cc=lgirdwood@gmail.com \
--cc=subhransu.s.prusty@intel.com \
--cc=vinod.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