Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Charles Keepax <ckeepax@opensource.cirrus.com>
To: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org,
	broonie@kernel.org, lgirdwood@gmail.com
Subject: Re: [RFC PATCH 0/4] Initial prototype of DAPM sample rate domains
Date: Tue, 23 Oct 2018 15:36:53 +0100	[thread overview]
Message-ID: <20181023143653.GB16508@imbe.wolfsonmicro.main> (raw)
In-Reply-To: <bd222042-50e3-4626-ef7f-5d5692cba650@linux.intel.com>

On Mon, Oct 22, 2018 at 09:27:13AM -0500, Pierre-Louis Bossart wrote:
> 
> On 10/11/18 11:28 AM, Charles Keepax wrote:
> My feedback would be: why limit the domains to sample rate
> definition? we can also have additional criteria such as number of
> channels, channel maps and bit depth - maybe also audio/non-audio
> for compressed stuff. It'd be interesting to start with a non-scalar
> descriptor from day1. To some extent we'd also want something
> similar to .info definitions, with domains defined with masks to
> allow for flexibility in the conversions and easier bridge
> implementations. e.g. it'd be interesting to have a domain
> definition supporting more than one sampling frequency (8, 16,
> 48kHz) with the bridge doing the relevant conversion to adapt to the
> connected domain (fixed 48kHz DAI for example)
> 
> Thanks for starting the discussion!

I don't think there really is anything about the way I am
approaching the code that will limit this to just sample rates,
it's more that is the part I need at the moment so is what
I am implementing. I have basically a "domain" structure,
that gets assigned as the groups power up, this is in no way
specific to rates. We can just extend that struct to have other
properties and add new ops on the domains as people discover
additional features they require. Currently at that point in
the code you will see a TODO which says to consider using a
hw_params struct instead of just an int for the rate. I think
based on your comments and others at the conference I will
definitely be switching to that in the next spin. Although
implementing the additional callbacks etc. is not something I
can find sensible use-cases for on our devices, so someone else
might need to pick up that part.

Thanks,
Charles

      reply	other threads:[~2018-10-23 14:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-11 16:28 [RFC PATCH 0/4] Initial prototype of DAPM sample rate domains Charles Keepax
2018-10-11 16:28 ` [RFC PATCH 1/4] ASoC: dapm: Add support for hw_free on CODEC to CODEC links Charles Keepax
2018-10-19 12:26   ` Applied "ASoC: dapm: Add support for hw_free on CODEC to CODEC links" to the asoc tree Mark Brown
2018-10-19 12:34   ` Mark Brown
2018-10-11 16:28 ` [RFC PATCH 2/4] ASoC: dapm: Add support for a rate domain widget Charles Keepax
2018-10-11 16:28 ` [RFC PATCH 3/4] ASoC: domain: Add sample rate domain support Charles Keepax
2018-10-11 16:28 ` [RFC PATCH 4/4] ASoC: arizona: Add " Charles Keepax
2018-10-22 14:27 ` [RFC PATCH 0/4] Initial prototype of DAPM sample rate domains Pierre-Louis Bossart
2018-10-23 14:36   ` Charles Keepax [this message]

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=20181023143653.GB16508@imbe.wolfsonmicro.main \
    --to=ckeepax@opensource.cirrus.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=patches@opensource.cirrus.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox