diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2016-05-09 13:38:10 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-05-09 16:24:16 +0100 |
commit | 7c3767115a04bc7aa87bdbd3352d1801d4bbeea4 (patch) | |
tree | 4e9058ce0152965c285798c80eb180e1e4c483d6 /sound | |
parent | f55532a0c0b8bb6148f4e07853b876ef73bc69ca (diff) | |
download | op-kernel-dev-7c3767115a04bc7aa87bdbd3352d1801d4bbeea4.zip op-kernel-dev-7c3767115a04bc7aa87bdbd3352d1801d4bbeea4.tar.gz |
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.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/generic/simple-card.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index 2389ab4..466492b 100644 --- a/sound/soc/generic/simple-card.c +++ b/sound/soc/generic/simple-card.c @@ -643,6 +643,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, |