devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: gsantosh@codeaurora.org
To: alsa-devel-bounces@alsa-project.org
Cc: Mark Rutland <mark.rutland@arm.com>,
	Rob Herring <robh@kernel.org>,
	ALSA Development Mailing List <alsa-devel@alsa-project.org>,
	Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>,
	Stephen Warren <swarren@wwwdotorg.org>,
	Linux-sh list <linux-sh@vger.kernel.org>,
	Magnus <magnus.damm@gmail.com>,
	linux-kernel@vger.kernel.org, grant.likely@linaro.org,
	devicetree@vger.kernel.org, Mark Brown <broonie@kernel.org>,
	Geert Uytterhoeven <geert@linux-m68k.org>,
	Olof Johansson <olof@lixom.net>,
	Kuninori Morimoto <kuninori.morimoto.gx@gmail.com>
Subject: Question on Compressed offload session
Date: Thu, 13 Nov 2014 03:02:04 -0000	[thread overview]
Message-ID: <85499f52ebd29581bf58b9cafbae6864.squirrel@www.codeaurora.org> (raw)

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



             reply	other threads:[~2014-11-13  3:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-13  3:02 gsantosh [this message]
2014-11-13 15:27 ` [alsa-devel] Question on Compressed offload session Pierre-Louis Bossart
2014-11-14  4:08   ` gsantosh
2014-11-14 16:28     ` Pierre-Louis Bossart
2014-11-14 17:06       ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=85499f52ebd29581bf58b9cafbae6864.squirrel@www.codeaurora.org \
    --to=gsantosh@codeaurora.org \
    --cc=alsa-devel-bounces@alsa-project.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=geert@linux-m68k.org \
    --cc=grant.likely@linaro.org \
    --cc=kuninori.morimoto.gx@gmail.com \
    --cc=kuninori.morimoto.gx@renesas.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sh@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    --cc=mark.rutland@arm.com \
    --cc=olof@lixom.net \
    --cc=robh@kernel.org \
    --cc=swarren@wwwdotorg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).