Commit 7db1698f authored by Dmitry Eremin-Solenikov's avatar Dmitry Eremin-Solenikov Committed by Mark Brown

ALSA: ASoC: pxa: add asoc pm callbacks to pxa audio drivers

After convertion to snd_soc_register_card, platform driver should
reference snd_soc_pm_ops callbacks to properly suspend/resume sound
hardware. This was missed during conversion of PXA sound devices.
Signed-off-by: default avatarDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent f62aa9b6
...@@ -163,6 +163,7 @@ static struct platform_driver mmp_driver = { ...@@ -163,6 +163,7 @@ static struct platform_driver mmp_driver = {
.driver = { .driver = {
.name = "brownstone-audio", .name = "brownstone-audio",
.owner = THIS_MODULE, .owner = THIS_MODULE,
.pm = &snd_soc_pm_ops,
}, },
.probe = brownstone_probe, .probe = brownstone_probe,
.remove = brownstone_remove, .remove = brownstone_remove,
......
...@@ -329,6 +329,7 @@ static struct platform_driver corgi_driver = { ...@@ -329,6 +329,7 @@ static struct platform_driver corgi_driver = {
.driver = { .driver = {
.name = "corgi-audio", .name = "corgi-audio",
.owner = THIS_MODULE, .owner = THIS_MODULE,
.pm = &snd_soc_pm_ops,
}, },
.probe = corgi_probe, .probe = corgi_probe,
.remove = corgi_remove, .remove = corgi_remove,
......
...@@ -178,6 +178,7 @@ static struct platform_driver e740_driver = { ...@@ -178,6 +178,7 @@ static struct platform_driver e740_driver = {
.driver = { .driver = {
.name = "e740-audio", .name = "e740-audio",
.owner = THIS_MODULE, .owner = THIS_MODULE,
.pm = &snd_soc_pm_ops,
}, },
.probe = e740_probe, .probe = e740_probe,
.remove = e740_remove, .remove = e740_remove,
......
...@@ -160,6 +160,7 @@ static struct platform_driver e750_driver = { ...@@ -160,6 +160,7 @@ static struct platform_driver e750_driver = {
.driver = { .driver = {
.name = "e750-audio", .name = "e750-audio",
.owner = THIS_MODULE, .owner = THIS_MODULE,
.pm = &snd_soc_pm_ops,
}, },
.probe = e750_probe, .probe = e750_probe,
.remove = e750_remove, .remove = e750_remove,
......
...@@ -150,6 +150,7 @@ static struct platform_driver e800_driver = { ...@@ -150,6 +150,7 @@ static struct platform_driver e800_driver = {
.driver = { .driver = {
.name = "e800-audio", .name = "e800-audio",
.owner = THIS_MODULE, .owner = THIS_MODULE,
.pm = &snd_soc_pm_ops,
}, },
.probe = e800_probe, .probe = e800_probe,
.remove = e800_remove, .remove = e800_remove,
......
...@@ -91,6 +91,7 @@ static struct platform_driver imote2_driver = { ...@@ -91,6 +91,7 @@ static struct platform_driver imote2_driver = {
.driver = { .driver = {
.name = "imote2-audio", .name = "imote2-audio",
.owner = THIS_MODULE, .owner = THIS_MODULE,
.pm = &snd_soc_pm_ops,
}, },
.probe = imote2_probe, .probe = imote2_probe,
.remove = imote2_remove, .remove = imote2_remove,
......
...@@ -215,6 +215,7 @@ static struct platform_driver mioa701_wm9713_driver = { ...@@ -215,6 +215,7 @@ static struct platform_driver mioa701_wm9713_driver = {
.driver = { .driver = {
.name = "mioa701-wm9713", .name = "mioa701-wm9713",
.owner = THIS_MODULE, .owner = THIS_MODULE,
.pm = &snd_soc_pm_ops,
}, },
}; };
......
...@@ -181,6 +181,7 @@ static struct platform_driver palm27x_wm9712_driver = { ...@@ -181,6 +181,7 @@ static struct platform_driver palm27x_wm9712_driver = {
.driver = { .driver = {
.name = "palm27x-asoc", .name = "palm27x-asoc",
.owner = THIS_MODULE, .owner = THIS_MODULE,
.pm = &snd_soc_pm_ops,
}, },
}; };
......
...@@ -303,6 +303,7 @@ static struct platform_driver poodle_driver = { ...@@ -303,6 +303,7 @@ static struct platform_driver poodle_driver = {
.driver = { .driver = {
.name = "poodle-audio", .name = "poodle-audio",
.owner = THIS_MODULE, .owner = THIS_MODULE,
.pm = &snd_soc_pm_ops,
}, },
.probe = poodle_probe, .probe = poodle_probe,
.remove = poodle_remove, .remove = poodle_remove,
......
...@@ -275,6 +275,7 @@ static struct platform_driver tosa_driver = { ...@@ -275,6 +275,7 @@ static struct platform_driver tosa_driver = {
.driver = { .driver = {
.name = "tosa-audio", .name = "tosa-audio",
.owner = THIS_MODULE, .owner = THIS_MODULE,
.pm = &snd_soc_pm_ops,
}, },
.probe = tosa_probe, .probe = tosa_probe,
.remove = tosa_remove, .remove = tosa_remove,
......
...@@ -160,6 +160,7 @@ static struct platform_driver ttc_dkb_driver = { ...@@ -160,6 +160,7 @@ static struct platform_driver ttc_dkb_driver = {
.driver = { .driver = {
.name = "ttc-dkb-audio", .name = "ttc-dkb-audio",
.owner = THIS_MODULE, .owner = THIS_MODULE,
.pm = &snd_soc_pm_ops,
}, },
.probe = ttc_dkb_probe, .probe = ttc_dkb_probe,
.remove = ttc_dkb_remove, .remove = ttc_dkb_remove,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment