22 Mar
2015
22 Mar
'15
7:31 p.m.
On Fri, Feb 13, 2015 at 04:43:27AM +0000, Kuninori Morimoto wrote:
snd_soc_instantiate_card() is the final method of snd_soc_register_card(). Deactivate pins to sleep state is related to snd_soc_instantiate_card(), not snd_soc_register_card()
I'm not quite sure I understand why this is being done. There doesn't seem to be any reason to defer initialization of resources owned by a device until the card is finally instantiated, doing this as early as possible means that we're in the state we want to be even if we're still waiting for some other component of the card to appear and register itself (which may never happen of course) so the hardware is in the state we want for longer. I may be missing something here though.