From: Mark Brown <broonie@kernel.org>
To: Jeeja KP <jeeja.kp@intel.com>, Vinod Koul <vinod.koul@intel.com>,
Mark Brown <broonie@kernel.org>
Cc: alsa-devel@alsa-project.org
Subject: Applied "ASoC: Intel: Skylake: Add shutdown callback" to the asoc tree
Date: Mon, 08 Feb 2016 18:01:32 +0000 [thread overview]
Message-ID: <E1aSq7w-0002k2-8v@debutante> (raw)
In-Reply-To: <1454654950-23091-7-git-send-email-vinod.koul@intel.com>
The patch
ASoC: Intel: Skylake: Add shutdown callback
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
>From c5a76a246989c8155d372142089ccfc9dc022388 Mon Sep 17 00:00:00 2001
From: Jeeja KP <jeeja.kp@intel.com>
Date: Fri, 5 Feb 2016 12:19:09 +0530
Subject: [PATCH] ASoC: Intel: Skylake: Add shutdown callback
While going to shutdown, we need to bring HW to clean state. This
is done by cleaning up stream descriptor registers. This cleanup
is already done by decoupling of stream and stopping the chip, so
invoke these from shutdown handler.
Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
sound/soc/intel/skylake/skl.c | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/sound/soc/intel/skylake/skl.c b/sound/soc/intel/skylake/skl.c
index 092705e73db4..06f4b2c13423 100644
--- a/sound/soc/intel/skylake/skl.c
+++ b/sound/soc/intel/skylake/skl.c
@@ -634,6 +634,31 @@ out_free:
return err;
}
+static void skl_shutdown(struct pci_dev *pci)
+{
+ struct hdac_ext_bus *ebus = pci_get_drvdata(pci);
+ struct hdac_bus *bus = ebus_to_hbus(ebus);
+ struct hdac_stream *s;
+ struct hdac_ext_stream *stream;
+ struct skl *skl;
+
+ if (ebus == NULL)
+ return;
+
+ skl = ebus_to_skl(ebus);
+
+ if (skl->init_failed)
+ return;
+
+ snd_hdac_ext_stop_streams(ebus);
+ list_for_each_entry(s, &bus->stream_list, list) {
+ stream = stream_to_hdac_ext_stream(s);
+ snd_hdac_ext_stream_decouple(ebus, stream, false);
+ }
+
+ snd_hdac_bus_stop_chip(bus);
+}
+
static void skl_remove(struct pci_dev *pci)
{
struct hdac_ext_bus *ebus = pci_get_drvdata(pci);
@@ -677,6 +702,7 @@ static struct pci_driver skl_driver = {
.id_table = skl_ids,
.probe = skl_probe,
.remove = skl_remove,
+ .shutdown = skl_shutdown,
.driver = {
.pm = &skl_pm,
},
--
2.7.0.rc3
next prev parent reply other threads:[~2016-02-08 18:01 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-05 6:49 [PATCH 0/7] ASoC: Intel: Skylake: Topology sequence changes Vinod Koul
2016-02-05 6:49 ` [PATCH 1/7] ASoC: Intel: Skylake: Update the delay check Vinod Koul
2016-02-08 18:01 ` Applied "ASoC: Intel: Skylake: Update the delay check" to the asoc tree Mark Brown
2016-02-05 6:49 ` [PATCH 2/7] ASoC: Intel: Skylake: Get node id using helper Vinod Koul
2016-02-08 18:01 ` Applied "ASoC: Intel: Skylake: Get node id using helper" to the asoc tree Mark Brown
2016-02-05 6:49 ` [PATCH 3/7] ASoC: Intel: Skylake: Add skl_tplg_be_get_cpr_module() helper Vinod Koul
2016-02-08 18:01 ` Applied "ASoC: Intel: Skylake: Add skl_tplg_be_get_cpr_module() helper" to the asoc tree Mark Brown
2016-02-05 6:49 ` [PATCH 4/7] ASoC: Intel: Skylake: Add MCLK configuration Vinod Koul
2016-02-08 16:43 ` Mark Brown
2016-02-09 2:45 ` Vinod Koul
2016-02-08 18:01 ` Applied "ASoC: Intel: Skylake: Add MCLK configuration" to the asoc tree Mark Brown
2016-02-05 6:49 ` [PATCH 5/7] ASoC: Intel: Skylake: Allow module parameter set after bind Vinod Koul
2016-02-08 18:01 ` Applied "ASoC: Intel: Skylake: Allow module parameter set after bind" to the asoc tree Mark Brown
2016-02-05 6:49 ` [PATCH 6/7] ASoC: Intel: Skylake: Add shutdown callback Vinod Koul
2016-02-08 18:01 ` Mark Brown [this message]
2016-02-05 6:49 ` [PATCH 7/7] ASoC: Intel: Skylake: Fill BE blob with default params Vinod Koul
2016-02-08 18:01 ` Applied "ASoC: Intel: Skylake: Fill BE blob with default params" to the asoc tree Mark Brown
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=E1aSq7w-0002k2-8v@debutante \
--to=broonie@kernel.org \
--cc=alsa-devel@alsa-project.org \
--cc=jeeja.kp@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