ALSA: usb-audio: Fix parsing descriptor of UAC2 processing unit
authorKirill Marinushkin <k.marinushkin@gmail.com>
Mon, 19 Mar 2018 06:11:08 +0000 (07:11 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 19 Mar 2018 15:43:41 +0000 (16:43 +0100)
commita6618f4aedb2b60932d766bd82ae7ce866e842aa
tree52c29818ea4929144265c47146029864ba5c7be8
parente40bdb03d3cd7da66bd0bc1e40cbcfb49351265c
ALSA: usb-audio: Fix parsing descriptor of UAC2 processing unit

Currently, the offsets in the UAC2 processing unit descriptor are
calculated incorrectly. It causes an issue when connecting the device which
provides such a feature:

~~~~
[84126.724420] usb 1-1.3.1: invalid Processing Unit descriptor (id 18)
~~~~

After this patch is applied, the UAC2 processing unit inits w/o this error.

Fixes: 23caaf19b11e ("ALSA: usb-mixer: Add support for Audio Class v2.0")
Signed-off-by: Kirill Marinushkin <k.marinushkin@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/uapi/linux/usb/audio.h