public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
From: Conor Dooley <conor@kernel.org>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Mark Brown <broonie@kernel.org>,
	Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>,
	Bard Liao <yung-chuan.liao@linux.intel.com>,
	bard.liao@intel.com, Conor Dooley <conor+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Rob Herring <robh+dt@kernel.org>,
	alsa-devel@alsa-project.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v3 4/4] dt-bindings: audio-graph-port: add ch-maps property
Date: Tue, 17 Oct 2023 11:04:56 +0100	[thread overview]
Message-ID: <20231017-darkness-jackknife-5cf32246a079@spud> (raw)
In-Reply-To: <874jirxul6.wl-kuninori.morimoto.gx@renesas.com>

[-- Attachment #1: Type: text/plain, Size: 1529 bytes --]

On Mon, Oct 16, 2023 at 12:46:29AM +0000, Kuninori Morimoto wrote:
> 
> Hi Conor
> 
> > > Some of this explanation needs to go into the binding - someone reading
> > > the binding should really be able to figure out what numbers to put in
> > > there without looking at the code.
> > 
> > Absolutely :)
> 
> Indeed :) will do in v4
> 
> > > > ch-maps = <0 0 1> means, 
> > > > 	cpu0 <-> codec0
> > > > 	cpu1 <-> codec0
> > > > 	cpu2 <-> codec1
> > 
> > What happens when you want to convey that codec0 & codec1 are both
> > connected to cpu0 & codec2 is connected to cpu1?
> > How would that be described in a DT?
> > Or is that not something anyone would even want to do?
> 
> In such case, ch-maps is from codec. it will be like below.
> It is judged by number of cpu vs codec. [PATCH 3/4] has both case sample.
> 
> 	cpu >= codec : CPU   base
> 	cpu <  codec : Codec base
> 
> 	ch-maps = <0 0 1>
> 	codec0 <-> cpu0
> 	codec1 <-> cpu0
> 	codec2 <-> cpu1

That seems like a very unintuitive interface. If there were 32 CPUs and
30 codecs, then it'd be very inconvenient for a human reader to grok the
configuration. CPUs were to be disabled in the DT, could the meaning of
the property invert?

I am not really the best when it comes to audio (or media) bindings, but
I am wondering if a phandle based approach would be better, where the
codecs have phandles for their associated CPUs. Maybe Mark, Rob etc could
comment if doing that sort of thing is not feasible.

Cheers,
Conor.


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  reply	other threads:[~2023-10-17 10:05 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-12  1:31 [PATCH v3 0/4] ASoC: makes CPU/Codec channel connection map more generic Kuninori Morimoto
2023-10-12  1:31 ` [PATCH v3 1/4] " Kuninori Morimoto
2023-10-12  1:32 ` [PATCH v3 2/4] ASoC: audio-graph-card2: add CPU:Codec = N:M support Kuninori Morimoto
2023-10-12  1:32 ` [PATCH v3 3/4] ASoC: audio-graph-card2-custom-sample: add CPU/Codec = N:M sample Kuninori Morimoto
2023-10-12  1:32 ` [PATCH v3 4/4] dt-bindings: audio-graph-port: add ch-maps property Kuninori Morimoto
2023-10-12  7:53   ` Conor Dooley
2023-10-13  0:33     ` Kuninori Morimoto
2023-10-13 15:41       ` Mark Brown
2023-10-13 16:12         ` Conor Dooley
2023-10-16  0:46           ` Kuninori Morimoto
2023-10-17 10:04             ` Conor Dooley [this message]
2023-10-18  0:34               ` Kuninori Morimoto
2023-10-18  7:57                 ` Conor Dooley
2023-10-18 18:25                   ` Mark Brown
2023-10-20  1:13                     ` Kuninori Morimoto
2023-10-20 11:58                       ` Mark Brown
2023-10-23  0:08                         ` Kuninori Morimoto

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=20231017-darkness-jackknife-5cf32246a079@spud \
    --to=conor@kernel.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=bard.liao@intel.com \
    --cc=broonie@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=kuninori.morimoto.gx@renesas.com \
    --cc=pierre-louis.bossart@linux.intel.com \
    --cc=robh+dt@kernel.org \
    --cc=yung-chuan.liao@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