From: Krzysztof Kozlowski <krzk@kernel.org>
To: Zhang Yi <zhangyi@everest-semi.com>,
broonie@kernel.org, robh@kernel.org, tiwai@suse.com,
devicetree@vger.kernel.org, conor+dt@kernel.org,
lgirdwood@gmail.com, linux-kernel@vger.kernel.org,
linux-sound@vger.kernel.org, perex@perex.cz, krzk+dt@kernel.org
Cc: amadeuszx.slawinski@linux.intel.com
Subject: Re: [PATCH 2/2] ASoC: codecs: add support for ES8375
Date: Wed, 21 May 2025 13:59:45 +0200 [thread overview]
Message-ID: <a27741c1-5ac5-43e8-a784-5023f1784676@kernel.org> (raw)
In-Reply-To: <20250521104247.6595-3-zhangyi@everest-semi.com>
On 21/05/2025 12:42, Zhang Yi wrote:
> +
> +static struct snd_soc_component_driver es8375_codec_driver = {
> + .probe = es8375_codec_probe,
> + .suspend = es8375_suspend,
> + .resume = es8375_resume,
> + .set_bias_level = es8375_set_bias_level,
> + .controls = es8375_snd_controls,
> + .num_controls = ARRAY_SIZE(es8375_snd_controls),
> + .dapm_widgets = es8375_dapm_widgets,
> + .num_dapm_widgets = ARRAY_SIZE(es8375_dapm_widgets),
> + .dapm_routes = es8375_dapm_routes,
> + .num_dapm_routes = ARRAY_SIZE(es8375_dapm_routes),
> +
> + .idle_bias_on = 1,
> + .suspend_bias_off = 1,
> +};
> +
> +static int es8375_read_device_properities(struct device *dev, struct es8375_priv *es8375)
> +{
> + int ret;
> +
> + ret = device_property_read_u8(dev, "everest,mclk-src", &es8375->mclk_src);
These are not documented for DT, but you have here other interfaces. We
do not have such case nicely solved, so please add explicit comment that
usage of this and dmic-pol in DT based platforms is not allowed and this
is not considered ABI.
> + if (ret != 0)
> + es8375->mclk_src = ES8375_MCLK_SOURCE;
> + dev_dbg(dev, "mclk-src %x", es8375->mclk_src);
> +
> + ret = device_property_read_u8(dev, "everest,dmic-pol", &es8375->dmic_pol);
> + if (ret != 0)
> + es8375->dmic_pol = DMIC_POL;
> + dev_dbg(dev, "dmic-pol %x", es8375->dmic_pol);
> +
Best regards,
Krzysztof
next prev parent reply other threads:[~2025-05-21 11:59 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-21 10:42 [PATCH 0/2] ASoC: codecs: add support for ES8375 Zhang Yi
2025-05-21 10:42 ` [PATCH 1/2] ASoC: dt-bindings: Add Everest ES8375 audio CODEC Zhang Yi
2025-05-21 11:31 ` Rob Herring (Arm)
2025-05-21 10:42 ` [PATCH 2/2] ASoC: codecs: add support for ES8375 Zhang Yi
2025-05-21 11:42 ` Mark Brown
2025-05-21 11:59 ` Krzysztof Kozlowski [this message]
2025-05-22 7:36 ` kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2025-05-22 5:46 Zhang Yi
2025-05-22 9:45 ` Mark Brown
2025-05-22 5:47 Zhang Yi
2025-05-22 9:55 Zhang Yi
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=a27741c1-5ac5-43e8-a784-5023f1784676@kernel.org \
--to=krzk@kernel.org \
--cc=amadeuszx.slawinski@linux.intel.com \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=robh@kernel.org \
--cc=tiwai@suse.com \
--cc=zhangyi@everest-semi.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