Skip to contentSkip to conversation

No shutdown code in soc-core.c

DISCUSSION ANISH KUMAR 3 participants 3 messages Apr 19, 2010

lore
Share & tools
lore
#0 lore raw
Quoted 10 lines

Did you see Mark's reply on dev_pm_ops ?

i.e.

static const struct dev_pm_ops soc_pm_ops = {
.suspend = soc_suspend,
.resume = soc_resume,
.poweroff = soc_poweroff,
};

I missed out Mark reply.However i checked now this structure is not there in my code base.As i mentioned in my previous mail
the flow of events when restart takes place.
Anyway i thought something is amiss in this struct platform_driver soc_driver that is why i am mailing to the experts here otherwise my
problem is fixed by having the code as mentioned in my previous mail.
I just wanted to know the reason?Or Am i missing something probably the concept of turning off the audio driver??
Kerenl version used: 2.6.29

Regards,
anish

#1 lore raw
Quoted 10 lines · ANISH KUMAR
Quoted 9 lines

Did you see Mark's reply on dev_pm_ops ?

i.e.

static const struct dev_pm_ops soc_pm_ops = {
.suspend = soc_suspend,
.resume = soc_resume,
.poweroff = soc_poweroff,
};

Quoted 11 lines

I missed out Mark reply.However i checked now this structure is not there in my code base.As i mentioned in my previous mail
the flow of events when restart takes place.
Anyway i thought something is amiss in this struct platform_driver soc_driver that is why i am mailing to the experts here otherwise my
problem is fixed by having the code as mentioned in my previous mail.
I just wanted to know the reason?Or Am i missing something probably the concept of turning off the audio driver??
Kerenl version used: 2.6.29

Ah, your kernel is very old. I would just do what you are currently doing with shutdown and use the dev_pm_ops when you upgrade your kernel.

Thanks

Liam

Signature · 3 lines
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk
#2 lore raw
Quoted 2 lines · Liam Girdwood

Ah, your kernel is very old. I would just do what you are currently doing with shutdown and use the dev_pm_ops when you upgrade your kernel.

Actually, IME it's probably as easy to just backport current ASoC to 2.6.29 if you're doing anything non-trivial - the backport is very straightforward for most platforms and the benefits of the enhancements in ASoC are well worth the effort.