# Disable the XPS internal digital-mic capture node on the SOF/SoundWire codec.
#
# WHY (2026-07-26): opening this node hard-hung the SOF DSP. The kernel logged
#   sof-audio-pci-intel-cnl 0000:00:1f.3: ipc tx timed out for 0x30100000
#   ASoC error (-110) ... Failed to setup widget PIPELINE.5.ALH770.IN
# on card3 pcm4c ("Microphone"). WirePlumber then blocked forever in an
# uninterruptible kernel wait (D state, ipc3_tx_msg_unlocked) — unkillable even
# by SIGKILL, which took the whole audio stack down and killed scsynth mid-set.
# Only a reboot cleared it. That is an unacceptable failure mode during a gig.
#
# SCOPE: capture only, and only the internal DMIC array. SOF *playback*
# (speakers, 3.5mm jack, HDMI) is untouched, so Firefox/system sounds still
# work if the default sink is moved back off the USB interface. The headset-jack
# mic source is also left alone — it uses a different pipeline and was not
# implicated.
#
# The real monitoring path is now the Behringer UMC202HD (separate USB driver,
# unaffected throughout the hang). See task #39 and memory
# reference_umc202hd_interface.
#
# To re-enable: delete this file and `systemctl --user restart wireplumber`.

monitor.alsa.rules = [
  {
    matches = [
      { node.name = "alsa_input.pci-0000_00_1f.3-platform-sof_sdw.HiFi__Mic__source" }
    ]
    actions = {
      update-props = {
        node.disabled = true
      }
    }
  }
]
