From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Trent Piepho <tpiepho@gmail.com>
Cc: alsa-devel@alsa-project.org,
Omair Mohammed Abdullah <omair.m.abdullah@linux.intel.com>,
Ramesh Babu <ramesh.babu@intel.com>,
lrg@ti.com
Subject: Re: ASoC:Question rate constraint between the dais
Date: Sat, 17 Mar 2012 20:31:03 +0000 [thread overview]
Message-ID: <20120317203102.GA3315@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <CA+7tXiheVO6FAypZU-yRuT=Cg3iPAgHeQOmVpZ_zJF_T5JdORw@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 2257 bytes --]
On Sat, Mar 17, 2012 at 03:49:06PM -0400, Trent Piepho wrote:
> On Sat, Mar 17, 2012 at 7:48 AM, Mark Brown
> > On Fri, Mar 16, 2012 at 06:01:44PM -0400, Trent Piepho wrote:
> > > Since the constraint is based on the current configuration of another
> > > DAI, the two DAIs need some way to query each other's parameters. The
> > Since they're both provided by the same driver this is trivial.
> It's not that trivial with the sub-streams in question aren't in the
> same instance of the driver, e.g. playback and record. Say you had
It's very easy to go back from the DAI to the CODEC, there's a direct
pointer.
> two WM8988 codecs, how does one codec get a handle to the other?
Such a constraint would be machine imposed, not CODEC imposed - the case
the Intel guys were talking about was a constraint between the two
interfaces on a single CODEC. There's no way the driver for one CODEC
should be doing anything about another CODEC.
> There's no global list of codecs in the driver, so you have to add
> something like that. Or change the device tree binding to give the
You're talking about a totally different use case here, there's way more
issues than just the constraints getting multiple CODECs on the same
link to play nicely.
> slave codec a phandle to the master codec.
No, that wouldn't be sensible - this should all be handled at the DAI
level. Adding explicit code in individual CODEC drivers for this would
be an awful lot of duplication.
> Does PulseAudio handle it if hw_params fails? From what I've seen,
> most applications just fail if hw_params fails.
I've no idea what PulseAudio does; I suppose someone who's interested
could look at the code. Most applications do just fail, like I say it's
exceptionally rare to hit any of thist stuff.
> are in state >= SETUP, verify that the hw_params are still valid and
> if not, update the constraints and return an error. But it is not
> until line 455 that the substream has actually finished getting the
So long as the driver takes care that only one of multiple concurrent
hw_params() calls manages to successfully return we should be fine, once
the hw_params() call has returned we're committed to flagging success.
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
next prev parent reply other threads:[~2012-03-17 20:31 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-15 9:53 ASoC:Question rate constraint between the dais Ramesh Babu
2012-03-15 17:53 ` Mark Brown
2012-03-15 21:28 ` Trent Piepho
2012-03-16 19:25 ` Mark Brown
2012-03-16 20:00 ` Lars-Peter Clausen
2012-03-17 11:41 ` Mark Brown
2012-03-17 13:00 ` Clemens Ladisch
[not found] ` <9DF50024A2F6A5439EBFE2E74F4E9198055254@BGSMSX101.gar.corp.intel.com>
2012-03-16 10:05 ` Omair Mohammed Abdullah
2012-03-16 19:22 ` Mark Brown
2012-03-16 22:01 ` Trent Piepho
2012-03-17 11:48 ` Mark Brown
2012-03-17 19:49 ` Trent Piepho
2012-03-17 20:31 ` Mark Brown [this message]
2012-03-18 6:22 ` Jassi Brar
2012-03-18 21:27 ` Mark Brown
2012-03-19 16:12 ` James Courtier-Dutton
2012-03-19 16:32 ` 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=20120317203102.GA3315@opensource.wolfsonmicro.com \
--to=broonie@opensource.wolfsonmicro.com \
--cc=alsa-devel@alsa-project.org \
--cc=lrg@ti.com \
--cc=omair.m.abdullah@linux.intel.com \
--cc=ramesh.babu@intel.com \
--cc=tpiepho@gmail.com \
/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).