From: Mark Brown <broonie@kernel.org>
To: Matt Flax <flatmax@flatmax.org>
Cc: alsa-devel@alsa-project.org, lars@metafoo.de,
lgirdwood@gmail.com, pierre-louis.bossart@linux.intel.com
Subject: Re: [PATCH] ASoC: snd_soc_dai_set_fmt add substream independence.
Date: Mon, 30 Mar 2020 17:31:42 +0100 [thread overview]
Message-ID: <20200330163142.GI4792@sirena.org.uk> (raw)
In-Reply-To: <3c00bf93-04a8-04af-e0b5-d0f76f5dbb06@flatmax.org>
[-- Attachment #1: Type: text/plain, Size: 2051 bytes --]
On Mon, Mar 30, 2020 at 11:28:26PM +1100, Matt Flax wrote:
> On 30/3/20 9:32 pm, Mark Brown wrote:
> > On Sat, Mar 28, 2020 at 12:58:31PM +1100, Matt Flax wrote:
> > > This patch is aims to start a stronger discussion on allowing both CPU
> > > and Codec dais to set formats independently based on direction.
> > If the DAIs support completely separate formats they're not a single DAI
> > and should be represented as two DAIs.
> I understand, however having two DAIs produces subdevices and pushes the
> overhead of managing registers to the end user in the form of two sub
> devices.
I think that's a swings and roundabouts thing where it really depends on
your use case - for example if the DAIs can be organized however people
like then people can come up with creative ways to wire things that
don't pair things in the way that makes sense for userspace. Ideally
we'd be able to match up any playback only stream with any capture only
stream which would help a much wider range of systems.
> Is everyone firm on the concept that a DAI's playback and capture stream has
> to have the same format in the same DAI ?
> I can see a much better solution (then the one I posted here) which is also
> very simple to solve this problem in the same DAI.
It does push a requirement for dealing with asymmetric setups including
validation that nobody did anything that can't be supported onto all
users to at least some extent, even if standard stuff were factored out
into the core (which didn't happen yet). This is for a *very* unusual
requiremenet.
> > having an asymmetric configuration. You probably need to represent
> > these isolators as a CODEC and do a CODEC to CODEC link and even then it
> > seems worrying.
> I like to think of isolation as innovative, not worrying :)
> However w.r.t. the codec to codec link approach, I will take your advice and
> not go down that route.
No, my advice is to go down that route if you are doing this. I'm just
not convinced that it's going to work reliably since this all sounds
rather shaky.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2020-03-30 16:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-28 1:58 [PATCH] ASoC: snd_soc_dai_set_fmt add substream independence Matt Flax
2020-03-28 3:31 ` kbuild test robot
2020-03-28 3:44 ` kbuild test robot
2020-03-30 10:32 ` Mark Brown
2020-03-30 12:28 ` Matt Flax
2020-03-30 16:31 ` Mark Brown [this message]
2020-03-31 7:40 ` Matt Flax
2020-03-31 11:13 ` Mark Brown
2020-03-31 11:52 ` Matt Flax
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=20200330163142.GI4792@sirena.org.uk \
--to=broonie@kernel.org \
--cc=alsa-devel@alsa-project.org \
--cc=flatmax@flatmax.org \
--cc=lars@metafoo.de \
--cc=lgirdwood@gmail.com \
--cc=pierre-louis.bossart@linux.intel.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 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.