From: Mark Brown <broonie@kernel.org>
To: Stephan Gerhold <stephan@gerhold.net>
Cc: Pantelis Antoniou <pantelis.antoniou@linaro.org>,
alsa-devel@alsa-project.org, devicetree@vger.kernel.org,
linux-arm-msm@vger.kernel.org,
Srinivas Kandagatla <srinivas.kandagatla@linaro.org>,
Matt Porter <mporter@konsulko.com>,
Shawn Guo <shawn.guo@linaro.org>
Subject: Re: [PATCH 1/2] dt-bindings: sound: Device tree bindings for the apq8039 sound complex
Date: Mon, 22 Jun 2020 12:51:29 +0100 [thread overview]
Message-ID: <20200622115129.GC4560@sirena.org.uk> (raw)
In-Reply-To: <20200619214126.GA1251@gerhold.net>
[-- Attachment #1: Type: text/plain, Size: 2591 bytes --]
On Fri, Jun 19, 2020 at 11:41:26PM +0200, Stephan Gerhold wrote:
> Hi Pantelis,
>
> On Fri, Jun 19, 2020 at 10:38:30PM +0300, Pantelis Antoniou wrote:
> > Add a yaml device binding for the QCOM apq8039 sound complex driver.
> >
>
> Nice to see some activity to get sound working on another SoC!
> Thanks for documenting all these properties.
Please delete unneeded context from mails when replying. Doing this
makes it much easier to find your reply in the message, helping ensure
it won't be missed by people scrolling through the irrelevant quoted
material.
> > + function-definition:
> > + type: object
> > + description: |
> > + Functional configuration for the sound complex via a
> > + simple control. allows fixed and dynamically constructed
> > + function selection.
> > +
> > + properties:
> > + mixer-control:
> > + $ref: /schemas/types.yaml#/definitions/string
> > + description: |
> > + Name of the exported alsa mix control.
This does *not* look like something that should be in a DT binding, it
is quite clearly OS specific.
> > + system-list:
> > + $ref: /schemas/types.yaml#/definitions/phandle-array
> > + description: |
> > + phandle(s) of the default, init and shutdown functions
> > + Must be one of the declared ones in the function property.
> > + The default function is the one selected by default on
> > + startup (after the init function's sequence is executed).
> > + On shutdown the shutdown function sequence will be executed.
> > + Typically init and shutdown are the same and it's purpose
> > + is to initialize the sound complex mixer controls to the
> > + all off state, and be ready for a regular function selection.
> This looks much like a replacement for ALSA UCM and userspace audio jack
> detection coded into the device tree.
Very much so. This is use case configuration and completely
inappropriate for DT. DT should describe the hardware, the way the OS
intends to use the hardware is up to the OS.
> If you want to discuss ways to integrate mixer enable/disable sequences
> into the device tree, I suggest that you post your ideas separately as
> [RFC] with a more generic subject. That will make it more easy for
> everyone interested to share their thoughts.
> Right now it's quite hidden in a patch set where the subjects suggest
> that it's just a simple machine driver to glue some codecs together.
Indeed, I agree entirely.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2020-06-22 11:51 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-19 19:38 [PATCH 0/2] ASoC: qcom: add apq8039 sound card and bindings Pantelis Antoniou
2020-06-19 19:38 ` [PATCH 1/2] dt-bindings: sound: Device tree bindings for the apq8039 sound complex Pantelis Antoniou
2020-06-19 21:41 ` Stephan Gerhold
2020-06-22 11:34 ` Pantelis Antoniou
2020-06-22 12:04 ` Mark Brown
2020-06-22 13:32 ` Pantelis Antoniou
2020-06-22 13:41 ` Mark Brown
2020-06-22 14:04 ` Pantelis Antoniou
2020-06-22 16:43 ` Mark Brown
2020-06-22 11:51 ` Mark Brown [this message]
2020-06-19 19:38 ` [PATCH 2/2] ASoC: qcom: add apq8039 sound card support Pantelis Antoniou
2020-06-19 21:58 ` kernel test robot
2020-06-20 6:39 ` kernel test robot
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=20200622115129.GC4560@sirena.org.uk \
--to=broonie@kernel.org \
--cc=alsa-devel@alsa-project.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=mporter@konsulko.com \
--cc=pantelis.antoniou@linaro.org \
--cc=shawn.guo@linaro.org \
--cc=srinivas.kandagatla@linaro.org \
--cc=stephan@gerhold.net \
/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).