Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: GitHub pull_request - edited <github@alsa-project.org>
To: alsa-devel@alsa-project.org
Subject: sof-soundwire: es9356: default the DMIC gain to +12 dB
Date: Thu, 26 Nov 2026 15:05:46 +0100 (CET)	[thread overview]
Message-ID: <18eb9d65100a4200-webhooks-bot@alsa-project.org> (raw)
In-Reply-To: <alsa-project/alsa-ucm-conf/pr/914@alsa-project.org>

alsa-project/alsa-ucm-conf pull request #914 was edited from kannoy2024:

Point the ES9356 internal microphone at its hardware capture gain.

### Problem

The ES9356 DMIC gain control (`es9356 FU11 Capture Volume`) has four 6 dB
steps (0/6/12/18 dB) and is left at 0 dB, which is too quiet for normal
recordings: the recorded voice sits well below the noise floor, and the
internal microphone is unusable until the mixer is adjusted by hand.

### Change

Add `CaptureMixerElem` to the `Mic` device in `sof-soundwire/es9356.conf`, so
PipeWire can control the hardware capture gain directly instead of UCM
writing a fixed value.  This follows the pattern used by other codecs (for
example `codecs/cs42l43-dmic.conf` uses `CaptureMixerElem "cs42l43 Microphone"`).

| file | change |
|---|---|
| `ucm2/sof-soundwire/es9356.conf` | `Mic`: add `CaptureMixerElem "es9356 FU11"` |

### Testing

MECHREVO WUJIE 14SAH (AMD ACP6.3, ES9356 on SoundWire link 0), kernel 7.2.9:

- `wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 1.00` → `amixer -c 1 cget numid=10` → `: values=3` (max gain)
- `wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 0.30` → `: values=0`

So the hardware control follows the PipeWire volume.  The coarse mapping right
now is because this tree still has the old TLV step (0.06 dB instead of 6 dB);
with `412a061ebf8c` ("fix the capture gain dB scale", in 7.4 and queued for
7.3-stable) the percentages map proportionally.  Recording still works.

Related: https://git.kernel.org/broonie/sound/c/412a061ebf8c

Signed-off-by: Zachary Huang <zuzhenhuang365@gmail.com>

Request URL   : https://github.com/alsa-project/alsa-ucm-conf/pull/914
Patch URL     : https://github.com/alsa-project/alsa-ucm-conf/pull/914.patch
Repository URL: https://github.com/alsa-project/alsa-ucm-conf

  parent reply	other threads:[~2026-11-26 14:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <alsa-project/alsa-ucm-conf/pr/914@alsa-project.org>
2026-11-14 13:27 ` sof-soundwire: es9356: default the DMIC gain to +12 dB GitHub pull_request - opened
2026-11-26 14:05 ` GitHub pull_request - edited [this message]
2026-11-26 14:06 ` sof-soundwire: es9356: expose the DMIC hardware gain GitHub pull_request - edited
     [not found] <alsa-project/alsa-ucm-conf/pr/913@alsa-project.org>
2026-11-14 13:03 ` sof-soundwire: es9356: default the DMIC gain to +12 dB GitHub pull_request - opened
     [not found] <alsa-project/alsa-ucm-conf/pr/912@alsa-project.org>
2026-11-14 12:54 ` GitHub pull_request - opened

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=18eb9d65100a4200-webhooks-bot@alsa-project.org \
    --to=github@alsa-project.org \
    --cc=alsa-devel@alsa-project.org \
    /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