native: disable runtime-PM on sound PCI + mount debugfs early
G7 audio stayed silent even with the full UCM chain correct:
UCM: skip _enadev=Headphones (jack-gated)
Skip unmute (jack-gated): Headphone Jack
UCM: _enadev=Speaker ok
kmsg: MX98360A:00: set sdmode to 1 (at 8.3s — amp on)
kmsg: MX98360A:00: set sdmode to 0 (at 31.9s — amp off, never returns)
Symptom matches runtime-PM auto-suspend on the SOF DSP: ~20s after
the last non-silence, the DSP idles the pipeline → BE DAI stops →
max98357a driver's trigger callback drops sdmode to 0. The existing
cmdline snd_hda_intel.power_save=0 only covers HDA, not SOF.
Echo 'on' into power/control for every sound-card PCI device so
runtime PM is disabled at all tiers (SOF, HDA, generic PCI audio).
Also mount debugfs unconditionally so audio-diag can dump the live
DAPM widget states next time — before this, /sys/kernel/debug/asoc
was empty because the mount silently failed.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>