Linux Sound subsystem development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Zachary Huang" <zuzhenhuang365@gmail.com>
Cc: linux-sound@vger.kernel.org
Subject: Re: [PATCH] ASoC: es9356: fix the capture gain dB scale
Date: Fri, 06 Nov 2026 15:55:46 +0000	[thread overview]
Message-ID: <sashiko-outbox-201745@kernel.org> (raw)
In-Reply-To: <179398005797.39773.18432202435074682955@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] ASoC: es9356: missing Fixes trailer for commit 5d9cb740cd38
--

commit 52267100487603f3acb6a660175cdbfe55292773
Author: Zachary Huang <zuzhenhuang365@gmail.com>

> ASoC: es9356: fix the capture gain dB scale
>
> The two capture gain controls are declared with a TLV step of 3 (FU33,
> analog mic) and 6 (FU11, DMIC).  The TLV step is expressed in 0.01 dB
> units, so this advertises 0.03 dB and 0.06 dB per step: with a value
> range of 0..10 and 0..3 the whole controls appear to span only 0.30 dB
> and 0.18 dB.
>
> The hardware steps are 3 dB and 6 dB, i.e. 0..30 dB and 0..18 dB.
> Measured on a MECHREVO WUJIE 14SAH (ES9356 on SoundWire link 0) by
> recording the same signal at all four FU11 settings:
>
>     FU11=0   rms  523  (-35.9 dBFS)
>     FU11=1   rms 1007  (-30.3 dBFS)
>     FU11=2   rms 2011  (-24.2 dBFS)
>     FU11=3   rms 3794  (-18.7 dBFS)
>
> That is about +6 dB per step, matching the hardware definition rather
> than the advertised 0.06 dB.
>
> Because userspace (alsamixer, PipeWire/WirePlumber) derives the volume
> from this TLV, the capture gain currently looks like a control without
> any usable range, which is also why the default setting seems impossible
> to raise from the desktop.
>
> Assisted-by: LLM
> Signed-off-by: Zachary Huang <zuzhenhuang365@gmail.com>

[Severity: Low]
Should this bug fix include a Fixes: tag for the commit that introduced
the driver with the wrong TLV step units:

  Fixes: 5d9cb740cd38 ("ASoC: es9356-sdca: Add ES9356 SDCA driver")

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/179398005797.39773.18432202435074682955@gmail.com?part=1

      reply	other threads:[~2026-11-06 15:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-06 15:47 [PATCH] ASoC: es9356: fix the capture gain dB scale Zachary Huang
2026-11-06 15:55 ` sashiko-bot [this message]

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=sashiko-outbox-201745@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=zuzhenhuang365@gmail.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