diff options
author | Sameer Pujar <spujar@nvidia.com> | 2019-01-11 01:46:52 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2019-05-14 21:30:59 -0400 |
commit | 92692f8a89ed74456789702a2384769663093c41 (patch) | |
tree | 264c4ed6d5be05e50c5dedaa96dc2eb129093c61 /sound/pci/hda | |
parent | 5caefea9853270c5885606d5d34f53b14e202d9b (diff) |
Revert "ALSA: hda: fix hda shutdown callback"
This reverts commit 3d636d2aa176f43040ebed0fb017ed845dacee77.
Original commit cannot be upstreamed and moreover the original
issue is not seen on TOT.
JIRA TAS-8
bug 200454686
Change-Id: I8d4749cf56addbd49b019358cfcef3305a9a2ef4
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1992677
(cherry picked from commit 7e11038228e01d3b22d1af9257919a19453e58b0)
Reviewed-on: https://git-master.nvidia.com/r/2118252
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sharad Gupta <sharadg@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'sound/pci/hda')
-rw-r--r-- | sound/pci/hda/hda_tegra.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sound/pci/hda/hda_tegra.c b/sound/pci/hda/hda_tegra.c index 806a6e24b..7b3fa2c2b 100644 --- a/sound/pci/hda/hda_tegra.c +++ b/sound/pci/hda/hda_tegra.c | |||
@@ -2,7 +2,7 @@ | |||
2 | * | 2 | * |
3 | * Implementation of primary ALSA driver code base for NVIDIA Tegra HDA. | 3 | * Implementation of primary ALSA driver code base for NVIDIA Tegra HDA. |
4 | * | 4 | * |
5 | * Copyright (c) 2014-2018, NVIDIA CORPORATION, All rights reserved. | 5 | * Copyright (c) 2014-2019, NVIDIA CORPORATION, All rights reserved. |
6 | * | 6 | * |
7 | * This program is free software; you can redistribute it and/or modify it | 7 | * This program is free software; you can redistribute it and/or modify it |
8 | * under the terms and conditions of the GNU General Public License, | 8 | * under the terms and conditions of the GNU General Public License, |
@@ -852,7 +852,14 @@ static int hda_tegra_remove(struct platform_device *pdev) | |||
852 | 852 | ||
853 | static void hda_tegra_shutdown(struct platform_device *pdev) | 853 | static void hda_tegra_shutdown(struct platform_device *pdev) |
854 | { | 854 | { |
855 | return; | 855 | struct snd_card *card = dev_get_drvdata(&pdev->dev); |
856 | struct azx *chip; | ||
857 | |||
858 | if (!card) | ||
859 | return; | ||
860 | chip = card->private_data; | ||
861 | if (chip && chip->running) | ||
862 | azx_stop_chip(chip); | ||
856 | } | 863 | } |
857 | 864 | ||
858 | static struct platform_driver tegra_platform_hda = { | 865 | static struct platform_driver tegra_platform_hda = { |