All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: mediatek: mt8195-mt6359: Use snd_soc_pm_ops instead of custom ops
@ 2022-09-22 10:35 ` AngeloGioacchino Del Regno
  0 siblings, 0 replies; 21+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-09-22 10:35 UTC (permalink / raw)
  To: broonie
  Cc: alsa-devel, linux-kernel, tiwai, lgirdwood, tzungbi,
	linux-mediatek, trevor.wu, matthias.bgg, linux-arm-kernel,
	angelogioacchino.delregno

It is possible to use the standard snd_soc_pm_ops for this card:
remove the custom mt8195_mt6359_pm_ops.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
---
 sound/soc/mediatek/mt8195/mt8195-mt6359.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/sound/soc/mediatek/mt8195/mt8195-mt6359.c b/sound/soc/mediatek/mt8195/mt8195-mt6359.c
index 961e769602d6..23bdde6acd1c 100644
--- a/sound/soc/mediatek/mt8195/mt8195-mt6359.c
+++ b/sound/soc/mediatek/mt8195/mt8195-mt6359.c
@@ -1532,16 +1532,11 @@ static const struct of_device_id mt8195_mt6359_dt_match[] = {
 	{},
 };
 
-static const struct dev_pm_ops mt8195_mt6359_pm_ops = {
-	.poweroff = snd_soc_poweroff,
-	.restore = snd_soc_resume,
-};
-
 static struct platform_driver mt8195_mt6359_driver = {
 	.driver = {
 		.name = "mt8195_mt6359",
 		.of_match_table = mt8195_mt6359_dt_match,
-		.pm = &mt8195_mt6359_pm_ops,
+		.pm = &snd_soc_pm_ops,
 	},
 	.probe = mt8195_mt6359_dev_probe,
 };
-- 
2.37.2


^ permalink raw reply related	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2022-09-23 17:08 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-22 10:35 [PATCH] ASoC: mediatek: mt8195-mt6359: Use snd_soc_pm_ops instead of custom ops AngeloGioacchino Del Regno
2022-09-22 10:35 ` AngeloGioacchino Del Regno
2022-09-22 10:35 ` AngeloGioacchino Del Regno
2022-09-22 11:26 ` Tzung-Bi Shih
2022-09-22 11:26   ` Tzung-Bi Shih
2022-09-22 11:26   ` Tzung-Bi Shih
2022-09-22 13:30   ` Mark Brown
2022-09-22 13:30     ` Mark Brown
2022-09-22 13:30     ` Mark Brown
2022-09-22 14:10     ` AngeloGioacchino Del Regno
2022-09-22 14:10       ` AngeloGioacchino Del Regno
2022-09-22 14:10       ` AngeloGioacchino Del Regno
2022-09-23  4:39       ` Trevor Wu
2022-09-23  4:39         ` Trevor Wu
2022-09-23  4:39         ` Trevor Wu
2022-09-23  5:03         ` Tzung-Bi Shih
2022-09-23  5:03           ` Tzung-Bi Shih
2022-09-23  5:03           ` Tzung-Bi Shih
2022-09-23 17:06 ` Mark Brown
2022-09-23 17:06   ` Mark Brown
2022-09-23 17:06   ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.