ASoC: mediatek: mt8183: add PM ops to machine drivers
authorTzung-Bi Shih <tzungbi@google.com>
Fri, 11 Dec 2020 05:13:34 +0000 (13:13 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 11 Dec 2020 13:23:01 +0000 (13:23 +0000)
Adds PM ops to machine drivers so that they notify components in the
sound card when system suspend.

Signed-off-by: Tzung-Bi Shih <tzungbi@google.com>
Link: https://lore.kernel.org/r/20201211051334.2313899-1-tzungbi@google.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c
sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c

index 26e7d9a7198f807911b4d54d65641380013cff96..078e58f1ad0b27b2e49837dc145e674689ce9b08 100644 (file)
@@ -811,6 +811,7 @@ static struct platform_driver mt8183_da7219_max98357_driver = {
 #ifdef CONFIG_OF
                .of_match_table = mt8183_da7219_max98357_dt_match,
 #endif
+               .pm = &snd_soc_pm_ops,
        },
        .probe = mt8183_da7219_max98357_dev_probe,
 };
index 327dfad41e3102023a15ef4778ea9850a990973b..8c8340854859aceadfd0da76b4733fadf6527946 100644 (file)
@@ -744,6 +744,7 @@ static struct platform_driver mt8183_mt6358_ts3a227_max98357_driver = {
 #ifdef CONFIG_OF
                .of_match_table = mt8183_mt6358_ts3a227_max98357_dt_match,
 #endif
+               .pm = &snd_soc_pm_ops,
        },
        .probe = mt8183_mt6358_ts3a227_max98357_dev_probe,
 };