devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question on Compressed offload session
@ 2014-11-13  3:02 gsantosh
  2014-11-13 15:27 ` [alsa-devel] " Pierre-Louis Bossart
  0 siblings, 1 reply; 5+ messages in thread
From: gsantosh @ 2014-11-13  3:02 UTC (permalink / raw)
  To: alsa-devel-bounces
  Cc: Mark Rutland, Rob Herring, ALSA Development Mailing List,
	Kuninori Morimoto, Stephen Warren, Linux-sh list, Magnus,
	linux-kernel, grant.likely, devicetree, Mark Brown,
	Geert Uytterhoeven, Olof Johansson, Kuninori Morimoto

Hi All,

The Question is for the compressed offload session.

For a generic codec driver during the startup function it will set some of
the hw_constraints rule similarly like this.

        snd_pcm_hw_constraint_list(substream->runtime, 0,
                    SNDRV_PCM_HW_PARAM_RATE,
                    &constraints_12_24);

pcm_lib.c will try to add the rule to the runtime structure by accessing
the pointers which will be initialized during opening of the session,
as The Constraints added by the codec driver will be updated in the

struct snd_pcm_hw_constraints of runtime structure which will be part of
substream handle.

But for the compressed offload I do not see the initialization done for HW
constraints, as done in pcm session

2092int snd_pcm_open_substream(struct snd_pcm *pcm, int stream,
2093			   struct file *file,
2094			   struct snd_pcm_substream **rsubstream)

most of the existing drivers which has the hw_constraint_list code will
not be applicable for compress offload session, how to solve this?

Regards,
Santosh M G.
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora
Forum,a Linux Foundation Collaborative Project



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

end of thread, other threads:[~2014-11-14 17:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-13  3:02 Question on Compressed offload session gsantosh
2014-11-13 15:27 ` [alsa-devel] " Pierre-Louis Bossart
2014-11-14  4:08   ` gsantosh
2014-11-14 16:28     ` Pierre-Louis Bossart
2014-11-14 17:06       ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).