Audeze Maxwell headset media keys doesn't work without keeping pavucontrol open with the pro audio profile selected

I’ve found a solution that doesn’t require keeping pavucontrol open, though the pro audio profile is still required.

Running the following commands solves the issue I was having:

pactl set-card-profile alsa_card.usb-Audeze_LLC_Audeze_Maxwell_XBOX_Dongle_0000000000000000-01 pro-audio
mkdir -p ~/.config/wireplumber/wireplumber.conf.d/
echo 'monitor.alsa.rules = [ {
  matches = [ {
    node.name = "~alsa_output.usb-Audeze_LLC_Audeze_Maxwell_XBOX_Dongle_0000000000000000-01.*"
  }
  ]
  actions = {
    update-props = {
      node.always-process = true
    }
  }
}
]' > ~/.config/wireplumber/wireplumber.conf.d/00-audeze-maxwell.conf
systemctl --user restart wireplumber