]> asedeno.scripts.mit.edu Git - linux.git/commit
ALSA: usb-audio: Fix missing endian conversion
authorTakashi Iwai <tiwai@suse.de>
Mon, 23 Apr 2018 13:19:25 +0000 (15:19 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 24 Apr 2018 11:36:28 +0000 (13:36 +0200)
commit2b54f785b4d4894ab7ab3bf5e461e0819d221c1c
tree0e5a0425bea9f41d405ef214689c10b9a40c4370
parent2de841efaeafa9f597e495ffdf5a024079c4bfe7
ALSA: usb-audio: Fix missing endian conversion

The UAC2 jack detection support introduced the bmControls checks in a
couple of places, but they forgot the endian conversion; the
bmControls of UAC2 terminal descriptor is __le16, not a byte like in
UAC1.

Fixes: 5a222e849452 ("ALSA: usb-audio: UAC2 jack detection")
Tested-by: Andrew Chant <achant@google.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer.c