All of lore.kernel.org
 help / color / mirror / Atom feed
* Question about snd_soc_card_register()
@ 2020-04-16  5:52 Sridharan, Ranjani
  2020-04-16  7:04 ` Takashi Iwai
  0 siblings, 1 reply; 7+ messages in thread
From: Sridharan, Ranjani @ 2020-04-16  5:52 UTC (permalink / raw)
  To: Takashi Iwai, Linux-ALSA; +Cc: Bossart, Pierre-louis

Hi Takashi,

While working on implementing the probes features in SOF using a separate card for the probe DAI links, I noticed that calling snd_soc_register_card()  results in
incrementing the usage_count for the device that registers the card by 2 and it is not decremented until the card is freed.

Is this the expected behaviour? Typically, we register a separate platform device for the Intel machines which in turn register the card and none of them ever enable runtime PM. So this has no impact on the parent device's runtime PM status.

I'd like to avoid creating a separate platform device just to register the card if possible while also enabling runtime PM . But when I do this today, the device cannot enter runtime suspend at all. Could you please shed some light on this?

Thanks,
Ranjani

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

end of thread, other threads:[~2020-04-17 15:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-16  5:52 Question about snd_soc_card_register() Sridharan, Ranjani
2020-04-16  7:04 ` Takashi Iwai
2020-04-16 13:18   ` Ranjani Sridharan
2020-04-16 17:34     ` Ranjani Sridharan
2020-04-17  9:11       ` Takashi Iwai
2020-04-17 15:50         ` Ranjani Sridharan
2020-04-17 15:54           ` Takashi Iwai

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.