lkml.org 
[lkml]   [2022]   [Sep]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] ASoC: mediatek: mt8195-mt6359: Use snd_soc_pm_ops instead of custom ops
On Thu, Sep 22, 2022 at 12:35:02PM +0200, AngeloGioacchino Del Regno wrote:
> -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,

snd_soc_pm_ops[1] sets some more fields. I'm not quite sure whether
it would introduce any side effect or not. Perhaps Trevor could
provide some suggestions.

[1]: https://elixir.bootlin.com/linux/v5.19.10/source/sound/soc/soc-core.c#L2150

\
 
 \ /
  Last update: 2022-09-22 13:27    [W:0.054 / U:0.524 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site