Public bug reported:

## Problem and evidence

An AnduinOS user reports a click, near-full-scale negative transient and
distorted fade-in at the beginning of analogue microphone recordings.
The same symptom occurs through direct ALSA capture with Audacity and
EasyEffects closed. Temporarily changing only `snd_hda_intel.power_save`
from 1 to 0 eliminates it immediately and after several idle minutes. A
persistent setting was subsequently verified after reboot, with normal
playback also working.

These are results supplied by the affected user; the reporting
maintainer does not own the hardware. The installed OS is AnduinOS, an
Ubuntu derivative. Reproduction on an unmodified Ubuntu installation or
Live image has not yet been performed.

## Hardware and software

- Motherboard: ERYING Polestar H770.
- Analogue codec: Realtek ALC897, reported as card 0/device 0; rear microphone 
pin 0x18, VREF_80.
- Microphone: Comica LinkFlex AD2, connected to the rear motherboard microphone 
input.
- Onboard controller: `00:1f.3`, Intel `8086:7a50`, PCI subsystem `8086:7270`, 
revision 11, `snd_hda_intel` in use.
- Other HDA controllers: NVIDIA `10de:228e`, subsystem `1043:881d`; Intel 
`8086:e2f7`, subsystem `8086:1100`.
- Initial OS report: AnduinOS 2.0.4, kernel `7.0.0-42-generic`. Workaround 
tests reported on `7.0.0-43-generic`.
- PipeWire 1.6.2; corrected WirePlumber version 0.5.13.
- Recording application: Audacity 3.7.8; package source and selected 
host/device are not yet documented.
- Original `power_save=1`, `power_save_controller=Y`. Only `power_save` changed 
in the successful test; controller setting stayed Y.

## Reported reproduction and result

1. Start a recording through the rear microphone input with the original 
power-saving setting. The startup transient occurs, then the signal settles.
2. The user's direct capture command was `arecord -D plughw:0,0 -f cd -d 5 
/tmp/alsa-mic-test.wav`; it produced the same fault with the higher-level audio 
applications closed.
3. Set `power_save=0` at runtime while leaving other settings unchanged. 
Immediate and post-idle recordings become clean. A small playback thud occurred 
during the parameter change itself.
4. Persist `options snd_hda_intel power_save=0`, rebuild initramfs and reboot: 
the user reports value 0, clean immediate/post-idle capture and normal playback.

Windows capture on the same hardware was reported to work normally. A
Linux kernel regression range has not been established.

## Request for maintainers

Please advise whether a codec resume/de-pop fix or a narrowly matched
power-management exception is appropriate, and which additional
capture/codec diagnostics would distinguish them.

The previously retrieved Ubuntu source at tag `Ubuntu-7.0.0-43.43` has
no `8086:7270` entry in `power_save_denylist`. Its lookup uses PCI
subsystem identifiers, not the primary controller device ID or codec ID.
We are **not** proposing a blanket `8086:7270` entry: that identifier
alone is insufficient evidence of an ERYING-specific match. The
successful runtime workaround affects all devices of this driver and
does not establish which exact upstream quirk is appropriate.

## Evidence and remaining diagnostic gaps

- [Original report and direct ALSA 
reproduction](https://github.com/Anduin2017/AnduinOS/discussions/482).
- [Temporary 
comparison](https://github.com/Anduin2017/AnduinOS/discussions/482#discussioncomment-19568477).
- [Reboot, capture and playback 
verification](https://github.com/Anduin2017/AnduinOS/discussions/482#discussioncomment-19579355).
- [Raw PCI output and Audacity 
version](https://github.com/Anduin2017/AnduinOS/discussions/482#discussioncomment-19657282).
- [Matching Ubuntu driver 
source](https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/resolute/plain/sound/hda/controllers/intel.c?h=Ubuntu-7.0.0-43.43).

Not yet supplied: full alsa-info output/codec dump, DMI board and BIOS
identifiers, capture samples, exact installed kernel package revision,
and an unmodified Ubuntu comparison. No measurements of power
consumption are available. The separate Lenovo report is supporting
context, not a confirmed duplicate with an identical root cause.

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: kernel-sound

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2174688

Title:
  [HDA/ALC897] ERYING Polestar H770 recording startup transient
  disappears with power_save=0

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2174688/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to