From: Rob Herring <robh@kernel.org>
To: Stephan Gerhold <stephan@gerhold.net>
Cc: Mark Brown <broonie@kernel.org>,
Liam Girdwood <lgirdwood@gmail.com>,
Srinivas Kandagatla <srinivas.kandagatla@linaro.org>,
Banajit Goswami <bgoswami@codeaurora.org>,
Bjorn Andersson <bjorn.andersson@linaro.org>,
Andy Gross <agross@kernel.org>,
linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org,
devicetree@vger.kernel.org, phone-devel@vger.kernel.org,
~postmarketos/upstreaming@lists.sr.ht,
Paul Cercueil <paul@crapouillou.net>,
Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>,
Vincent Knecht <vincent.knecht@mailoo.org>
Subject: Re: [PATCH 2/4] ASoC: dt-bindings: qcom: sm8250: Document "pin-switches" and "widgets"
Date: Thu, 16 Dec 2021 12:02:53 -0600 [thread overview]
Message-ID: <Ybt/TagtH9iDv4mu@robh.at.kernel.org> (raw)
In-Reply-To: <20211214142049.20422-3-stephan@gerhold.net>
On Tue, Dec 14, 2021 at 03:20:47PM +0100, Stephan Gerhold wrote:
> Some sound card setups might require extra pin switches to allow
> turning off certain audio components. There are two real examples for
> this in smartphones/tablets based on MSM8916:
>
> 1. Analog speaker amplifiers connected to headphone outputs.
>
> The MSM8916 analog codec does not have a separate "Line Out" port
> so some devices have an analog speaker amplifier connected to one
> of the headphone outputs. A pin switch is necessary to allow
> playback on headphones without also activating the speaker.
>
> 2. External speaker codec also used as earpiece.
>
> Some smartphones have two front-facing (stereo) speakers that can
> be also configured to act as an earpiece during voice calls. A pin
> switch is needed to allow disabling the second speaker during
> voice calls.
This all makes sense, but how that translates to the DT properties I
don't have a clue.
> There are existing bindings that allow setting up such pin switches in
> simple-card.yaml. Document the same for Qcom sound cards.
And that description is equally as bad.
> One variant of example 1 above is added to the examples in the DT
> schema: There is an analog speaker amplifier connected to the HPH_R
> (right headphone channel) output. Adding a "Speaker" pin switch and
> widget allows turning off the speaker when audio should be only played
> via the connected headphones.
>
> Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
> Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
> ---
> .../devicetree/bindings/sound/qcom,sm8250.yaml | 16 ++++++++++++++++
> 1 file changed, 16 insertions(+)
But nothing new here really, so
Acked-by: Rob Herring <robh@kernel.org>
next prev parent reply other threads:[~2021-12-16 18:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-14 14:20 [PATCH 0/4] ASoC: qcom: Parse "pin-switches" and "widgets" from DT Stephan Gerhold
2021-12-14 14:20 ` [PATCH 1/4] ASoC: core: Add snd_soc_of_parse_pin_switches() from simple-card-utils Stephan Gerhold
2021-12-14 14:20 ` [PATCH 2/4] ASoC: dt-bindings: qcom: sm8250: Document "pin-switches" and "widgets" Stephan Gerhold
2021-12-16 18:02 ` Rob Herring [this message]
2021-12-14 14:20 ` [PATCH 3/4] ASoC: qcom: common: Parse "pin-switches" and "widgets" from DT Stephan Gerhold
2021-12-14 14:20 ` [PATCH 4/4] ASoC: msm8916-wcd-analog: Use separate outputs for HPH_L/HPH_R Stephan Gerhold
2021-12-23 19:39 ` [PATCH 0/4] ASoC: qcom: Parse "pin-switches" and "widgets" from DT 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=Ybt/TagtH9iDv4mu@robh.at.kernel.org \
--to=robh@kernel.org \
--cc=agross@kernel.org \
--cc=alsa-devel@alsa-project.org \
--cc=bgoswami@codeaurora.org \
--cc=bjorn.andersson@linaro.org \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=paul@crapouillou.net \
--cc=phone-devel@vger.kernel.org \
--cc=srinivas.kandagatla@linaro.org \
--cc=stephan@gerhold.net \
--cc=vincent.knecht@mailoo.org \
--cc=~postmarketos/upstreaming@lists.sr.ht \
/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).