All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] ASoC: compress: Support module_get on stream open
@ 2021-09-01  9:52 Peter Ujfalusi
  2021-09-01  9:52 ` [PATCH 1/2] ASoC: soc-component: Convert the mark_module to void* Peter Ujfalusi
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Peter Ujfalusi @ 2021-09-01  9:52 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, vkoul
  Cc: kai.vehmanen, alsa-devel, daniel.baluta, pierre-louis.bossart,
	kuninori.morimoto.gx

Hi,

SOF is marking all componet drivers with module_get_upon_open = 1 which works
fine with normal PCM streams, however on compressed side the module get upon
open is not supported. The module_get works when module_get_upon_open is not set
becasue the snd_soc_component_module_get_when_probe() will pass NULL for the
substream parameter of snd_soc_component_module_get().

In order to re-use the existing infrastructure for module_get, the proposal is
to convert the mark_module to void pointer (like the pm mark) and implement
matching code for the compressed open/free to pcm open/close.

Regards,
Peter
---
Peter Ujfalusi (2):
  ASoC: soc-component: Convert the mark_module to void*
  ASoC: compress/component: Use module_get_when_open/put_when_close for
    cstream

 include/sound/soc-component.h | 14 ++++----
 sound/soc/soc-component.c     | 61 +++++++++++++++--------------------
 sound/soc/soc-compress.c      | 43 +++++++++++++++++++++---
 3 files changed, 71 insertions(+), 47 deletions(-)

-- 
2.33.0


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

end of thread, other threads:[~2021-09-20 15:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-01  9:52 [PATCH 0/2] ASoC: compress: Support module_get on stream open Peter Ujfalusi
2021-09-01  9:52 ` [PATCH 1/2] ASoC: soc-component: Convert the mark_module to void* Peter Ujfalusi
2021-09-01  9:52 ` [PATCH 2/2] ASoC: compress/component: Use module_get_when_open/put_when_close for cstream Peter Ujfalusi
2021-09-20 15:30 ` [PATCH 0/2] ASoC: compress: Support module_get on stream open 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.