]> git.baikalelectronics.ru Git - kernel.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)
commitdd8ce5c126aa994dd24a614d76fa29aee6525e3c
tree0e5a0425bea9f41d405ef214689c10b9a40c4370
parent29370de919bb0950ef12cbba72ed0505054381aa
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: 2bd8d922e9cb ("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