diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2017-08-22 00:56:44 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-08-23 06:18:59 -0400 |
commit | 7b828a35ff834e45e5758a8a3f9d11db0526f9e1 (patch) | |
tree | ad4f16c624a9768c17c0085b45a9aa5e04e80900 | |
parent | b4e0180306f10a9d808b855dd77cdd0d7ae4f3fa (diff) |
ASoC: audio-graph-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 audio-graph-card.
Reported-by: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/generic/audio-graph-card.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/generic/audio-graph-card.c b/sound/soc/generic/audio-graph-card.c index 105ec3a6e30d..63048915efbb 100644 --- a/sound/soc/generic/audio-graph-card.c +++ b/sound/soc/generic/audio-graph-card.c | |||
@@ -325,6 +325,7 @@ MODULE_DEVICE_TABLE(of, asoc_graph_of_match); | |||
325 | static struct platform_driver asoc_graph_card = { | 325 | static struct platform_driver asoc_graph_card = { |
326 | .driver = { | 326 | .driver = { |
327 | .name = "asoc-audio-graph-card", | 327 | .name = "asoc-audio-graph-card", |
328 | .pm = &snd_soc_pm_ops, | ||
328 | .of_match_table = asoc_graph_of_match, | 329 | .of_match_table = asoc_graph_of_match, |
329 | }, | 330 | }, |
330 | .probe = asoc_graph_card_probe, | 331 | .probe = asoc_graph_card_probe, |