All of lore.kernel.org
 help / color / mirror / Atom feed
From: GitHub pull_request - opened <github@alsa-project.org>
To: alsa-devel@alsa-project.org
Subject: ucm2: sof-soundwire: fix TAS2783 and RT721 volume on ASUS ProArt PX13
Date: Fri,  4 Dec 2026 03:11:12 +0100 (CET)	[thread overview]
Message-ID: <18edeb0d8c84b800-webhooks-bot@alsa-project.org> (raw)
In-Reply-To: <alsa-project/alsa-ucm-conf/pr/941@alsa-project.org>

alsa-project/alsa-ucm-conf pull request #941 was opened from cathay4t:

This series fixes the internal speaker and headphone hardware volume/mute
on the ASUS ProArt PX13 HN7306EA (AMD ACP SoundWire, RT721 + 2x TAS2783).

## Problem

The UCM Speaker and Headphones devices only mapped their playback PCMs, so
PipeWire's ACP fell back to software volume/mute controls.

- TAS2783: the two amplifiers expose one mono `Speaker Volume` control each
  plus per-amplifier DAPM speaker switches. There is no stereo
  `Speaker Playback Volume`/`Switch` pair for ACP to bind.
- TAS2783: `BootSequence` used `Left Spk`, `Right Spk`, `Left Spk2` and
  `Right Spk2`, but the actual controls are `Left Spk Switch` etc.
- RT721: the Headphones device did not map `rt721 FU05 Playback Volume` or
  `Headphone Switch`.

## Changes

- `35a2d19` `ucm2: sof-soundwire: expose TAS2783 speaker hardware volume`
  Create a stereo `Speaker Playback Volume`/`Switch` from the two mono
  TAS2783 volume controls and the two speaker switches, and bind it to the
  Speaker device. This is limited to the two-amplifier topology; one- and
  four-amplifier systems keep the existing behavior.
- `148f822` `ucm2: codecs/tas2783: fix speaker switch names in BootSequence`
  Use the real DAPM control names.
- `11845f5` `ucm2: sof-soundwire/rt721: expose headphone hardware volume`
  Bind `rt721 FU05 Playback Volume` and `Headphone Switch` to the
  Headphones device.

## Testing

Tested on ASUS ProArt PX13 HN7306EA (AMD ACP SoundWire, RT721 + 2x TAS2783)
with kernel 7.4.0-rc5:

- `alsaucm -c hw:1 dump text` with the new tree shows:
  - Speaker: `PlaybackMixer`, `PlaybackMixerElem "Speaker"`
  - Headphones: `PlaybackMixer`, `PlaybackVolume`, `PlaybackSwitch`
- The TAS2783 virtual `Speaker Playback Volume` maps left/right correctly:
  setting `150,160` updates `tas2783-1` to 150 and `tas2783-2` to 160.
- The TAS2783 virtual `Speaker Playback Switch` toggles both
  `Left Spk Switch` and `Right Spk Switch`.
- `rt721 FU05 Playback Volume` is stereo, range 0..87, 0.75 dB step;
  `Headphone Switch` is present.

## Notes

- The TAS2783 remap is intentionally two-amplifier only. Four-amplifier
  systems keep the existing software-volume fallback.
- The RT721 `PlaybackSwitch` is set unconditionally. Systems without the
  machine-driver `Headphone Switch` keep hardware volume and fall back to
  software mute.

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

       reply	other threads:[~2026-12-04  2:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <alsa-project/alsa-ucm-conf/pr/941@alsa-project.org>
2026-12-04  2:11 ` GitHub pull_request - opened [this message]
2026-12-04  2:12 ` ucm2: sof-soundwire: fix TAS2783 and RT721 volume on ASUS ProArt PX13 GitHub pull_request - edited
2026-12-04  3:16 ` GitHub pull_request - edited
2026-12-04  4:09 ` GitHub pull_request - edited

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=18edeb0d8c84b800-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.