From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
To: CTLIN0 <CTLIN0@nuvoton.com>, broonie@kernel.org
Cc: alsa-devel@alsa-project.org, Tzung-Bi Shih <tzungbi@google.com>,
WTLI@nuvoton.com, KCHSU0@nuvoton.com, lgirdwood@gmail.com,
YHCHuang@nuvoton.com
Subject: Re: [PATCH] ASoC: nau8315: add codec driver
Date: Wed, 4 Nov 2020 08:51:08 -0600 [thread overview]
Message-ID: <da9232f9-15c9-01ea-44cf-107ff4dd6c58@linux.intel.com> (raw)
In-Reply-To: <da4d4666-3c91-16d7-926b-b339ae4e39be@nuvoton.com>
>>> +static int nau8315_enpin_event(struct snd_soc_dapm_widget *w,
>>> + struct snd_kcontrol *kcontrol, int event)
>>> +{
>>> + struct snd_soc_component *component =
>>> + snd_soc_dapm_to_component(w->dapm);
>>> + struct nau8315_priv *nau8315 =
>>> + snd_soc_component_get_drvdata(component);
>>> +
>>
>> [1]
>>
>>> + if (event & SND_SOC_DAPM_POST_PMU)
>>> + nau8315->enpin_switch = 1;
>>> + else if (event & SND_SOC_DAPM_POST_PMD)
>>> + nau8315->enpin_switch = 0;
>>
>> And even if this variable was useful, for symmetry should it be
>> PRE_PMU/POST_PMD?
>>
> Yes, I agree with your opinion.
>
> From the above description, I suppose you might want to point whether
> the dapm widget of EN_PIN is redundant, right? That's a reason the
> physical hardware pin is set to high/low in trigger function point of
> snd_soc_dai_ops, it always occurred after dapm event.
> If yes, from my current platform of verification, even if the dapm
> widget of EN_PIN is removed, the result of sound output is same yet.
> Maybe the first version, I should submit a simpler version.
The model from the Max98357a seems to come from 128f825aeab79 ('
ASoC: max98357a: move control of SD_MODE to DAPM')
It doesn't seem like this additional EN_PIN is useful at the codec level
but may help with machine integration.
I still don't get the POST_PMU/POST_PMD. This was changed in
04a646ff5acaa by Tzung-Bi Shih @ Google, wondering if there is an
explanation?
Not pushing back, just trying to get what makes sense for amplifiers.
next prev parent reply other threads:[~2020-11-04 14:52 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-02 2:32 [PATCH] ASoC: nau8315: add codec driver David Lin
2020-11-02 14:42 ` Pierre-Louis Bossart
2020-11-04 11:49 ` CTLIN0
2020-11-04 14:51 ` Pierre-Louis Bossart [this message]
2020-11-05 2:20 ` Tzung-Bi Shih
2020-11-05 15:02 ` Mark Brown
2020-11-05 16:21 ` Pierre-Louis Bossart
2020-11-06 3:31 ` CTLIN0
2020-11-06 12:20 ` Mark Brown
2020-11-06 14:57 ` Pierre-Louis Bossart
2020-11-10 9:58 ` [PATCH 2/2] ASoC: nau8315: revise the power event of EN_PIN dapm widget for symmetry David Lin
2020-11-10 16:02 ` [PATCH] ASoC: nau8315: add codec driver Mark Brown
-- strict thread matches above, loose matches on Subject: below --
2020-10-30 5:01 David Lin
2020-10-30 13:25 ` Mark Brown
2020-11-01 5:59 ` CTLIN0
2020-10-29 11:33 David Lin
2020-10-29 12:46 ` Mark Brown
2020-10-30 5:00 ` CTLIN0
2020-10-30 12:56 ` 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=da9232f9-15c9-01ea-44cf-107ff4dd6c58@linux.intel.com \
--to=pierre-louis.bossart@linux.intel.com \
--cc=CTLIN0@nuvoton.com \
--cc=KCHSU0@nuvoton.com \
--cc=WTLI@nuvoton.com \
--cc=YHCHuang@nuvoton.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=tzungbi@google.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;
as well as URLs for NNTP newsgroup(s).