mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: Zhang Yi <zhangyi@everest-semi.com>
Cc: 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,
	amadeuszx.slawinski@linux.intel.com, krzk@kernel.org
Subject: Re: [PATCH v1 2/2] ASoC: codecs: add support for ES8375
Date: Thu, 22 May 2025 11:43:57 +0100	[thread overview]
Message-ID: <77a6952e-5dc7-4889-9cb3-2d2ced48768e@sirena.org.uk> (raw)
In-Reply-To: <20250522103548.20134-3-zhangyi@everest-semi.com>

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

On Thu, May 22, 2025 at 06:35:48PM +0800, Zhang Yi wrote:

Only a few very small things here:

> +static const struct snd_kcontrol_new es8375_snd_controls[] = {
> +	SOC_SINGLE_TLV("ADC OSR GAIN Volume", ES8375_ADC_OSR_GAIN,
> +			ADC_OSR_GAIN_SHIFT_0, ES8375_ADC_OSR_GAIN_MAX, 0,
> +			es8375_adc_osr_gain_tlv),

Probably just ADC OSR Volume.

> +	SOC_SINGLE_TLV("DMIC Gain Volume", ES8375_ADC1,
> +		DMIC_GAIN_SHIFT_2, ES8375_DMIC_GAIN_MAX,
> +		0, es8375_adc_dmic_volume_tlv),

Same here.

> +	SOC_SINGLE("ADC Automute Enable", ES8375_ADC_AUTOMUTE,
> +			ADC_AUTOMUTE_SHIFT_7, 1, 0),
> +
> +	SOC_SINGLE("DAC DSM Mute", ES8375_DAC1, DAC_DSMMUTE_SHIFT_7, 1, 0),
> +	SOC_SINGLE("DAC DEM Mute", ES8375_DAC1, DAC_DEMMUTE_SHIFT_6, 1, 0),

> +	SOC_SINGLE("DAC Automute Enable", ES8375_DAC_AUTOMUTE1,
> +			DAC_AUTOMUTE_EN_SHIFT_7, 1, 0),

These are all on/off switches so should be Switch.

> +	SOC_SINGLE_TLV("DAC Automute Attenuation", ES8375_DAC_AUTOMUTE,
> +			DAC_AUTOMUTE_ATTN_SHIFT_0, ES8375_DAC_AUTOMUTE_ATTN_MAX,
> +			0, es8375_dac_automute_attn_tlv),

This is also a Volume ("DAC Automute Volume").

> +	if (es8375->mclk_src == ES8375_BCLK_PIN) {
> +		if (es8375->mastermode) {
> +			dev_err(component->dev, "no mclk, cannot as master\n");
> +			return -EINVAL;
> +		}

Still got the outdated clocking terminology here.

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

  reply	other threads:[~2025-05-22 10:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-22 10:35 [PATCH v1 0/2] " Zhang Yi
2025-05-22 10:35 ` [PATCH v1 1/2] ASoC: dt-bindings: Add Everest ES8375 audio CODEC Zhang Yi
2025-05-22 11:14   ` Krzysztof Kozlowski
2025-05-22 10:35 ` [PATCH v1 2/2] ASoC: codecs: add support for ES8375 Zhang Yi
2025-05-22 10:43   ` Mark Brown [this message]
2025-05-22 11:15   ` Krzysztof Kozlowski
2025-05-22 11:13 ` [PATCH v1 0/2] " Krzysztof Kozlowski
2025-05-23  2:35 [PATCH v1 2/2] " Zhang Yi
2025-05-23  2:36 [PATCH v1 0/2] " Zhang Yi
2025-05-23  2:36 ` [PATCH v1 2/2] " 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=77a6952e-5dc7-4889-9cb3-2d2ced48768e@sirena.org.uk \
    --to=broonie@kernel.org \
    --cc=amadeuszx.slawinski@linux.intel.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=krzk@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

all inboxes | Powered by JetHome®