ALSA: usb-audio: Add quirk for Microsoft Modern Wireless Headset
authorTakashi Iwai <tiwai@suse.de>
Tue, 25 Jul 2023 09:20:57 +0000 (11:20 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 25 Jul 2023 12:21:11 +0000 (14:21 +0200)
commit3da435063777f8d861ba5a165344e3f75f839357
tree12f967d735f81f8163264d13023c60542be63394
parentd510acb610e6aa07a04b688236868b2a5fd60deb
ALSA: usb-audio: Add quirk for Microsoft Modern Wireless Headset

Microsoft Modern Wireless Headset (appearing on the host as "Microsoft
USB Link") has a playback and a capture mixer volume/switch, but they
are fairly broken.  The descriptor reports wrong dB ranges for
playback, and the capture volume/switch don't influence on the actual
recording at all.  Moreover, there seem instabilities in the
connection, and at best, we should disable the runtime PM.

So this ended up with a quirk entry for:
- Correct the playback dB range;
  I picked up some reasonable values but it's a guess work
- Disable the capture mixer;
  it's completely useless and confuses PA/PW
- Suppress get-sample-rate, apply the delay for message handling,
  and suppress the auto-suspend

The behavior of the wheel control on the headset is somehow flaky,
too, but it's an issue of HID.

Link: https://bugzilla.suse.com/show_bug.cgi?id=1207129
Link: https://lore.kernel.org/r/20230725092057.15115-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer_maps.c
sound/usb/quirks.c