From 7e867dd12a79af88fea439130593b0ed04659b1d Mon Sep 17 00:00:00 2001 From: Peter Ujfalusi Date: Mon, 9 May 2016 13:38:10 +0300 Subject: [PATCH] UPSTREAM: ASoC: simple-card: Add pm callbacks to platform driver Set snd_soc_pm_ops for the pm ops to make sure that the ASoC level of PM operations are going to happen. This is needed to get suspend/resume working correctly when the audio is using simple-card. Change-Id: Id0355673bc89456fedd3d035cbfd0f7f8f51d1da Signed-off-by: Peter Ujfalusi Signed-off-by: Mark Brown Signed-off-by: Sugar Zhang (cherry picked from commit 7c3767115a04bc7aa87bdbd3352d1801d4bbeea4) --- sound/soc/generic/simple-card.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index ff6fcd9f92f7..dc971a02443e 100644 --- a/sound/soc/generic/simple-card.c +++ b/sound/soc/generic/simple-card.c @@ -645,6 +645,7 @@ MODULE_DEVICE_TABLE(of, asoc_simple_of_match); static struct platform_driver asoc_simple_card = { .driver = { .name = "asoc-simple-card", + .pm = &snd_soc_pm_ops, .of_match_table = asoc_simple_of_match, }, .probe = asoc_simple_card_probe, -- 2.34.1