These patches implement UAC2 jack detection.
This allows USB-to-3.5mm adapters and similar USB devices to report jack state via alsa mixers, using the reporting provided by the UAC2 connector control.
The first patch fixes up the function used to query UAC controls. The long lines in the table are unfortunate but keep the table readable. The long lines elsewhere in the patch were in line with existing long lines due to current code structure.
Andrew Chant (2): ALSA: usb-audio: fix uac control query argument ALSA: usb-audio: UAC2 jack detection
include/linux/usb/audio-v2.h | 4 +- sound/usb/clock.c | 5 +- sound/usb/mixer.c | 168 +++++++++++++++++++++++++++++------ 3 files changed, 146 insertions(+), 31 deletions(-)