Files
kernel_xiaomi_sm8250/include/uapi/linux
Pawel Moll b531f81b0d ALSA: usb: Fix Processing Unit Descriptor parsers
Commit 99fc86450c "ALSA: usb-mixer:
parse descriptors with structs" introduced a set of useful parsers
for descriptors. Unfortunately the parses for the Processing Unit
Descriptor came with a very subtle bug...

Functions uac_processing_unit_iProcessing() and
uac_processing_unit_specific() were indexing the baSourceID array
forgetting the fields before the iProcessing and process-specific
descriptors.

The problem was observed with Sound Blaster Extigy mixer,
where nNrModes in Up/Down-mix Processing Unit Descriptor
was accessed at offset 10 of the descriptor (value 0)
instead of offset 15 (value 7). In result the resulting
control had interesting limit values:

Simple mixer control 'Channel Routing Mode Select',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - -1
  Mono: -1 [100%]

Fixed by starting from the bmControls, which was calculated
correctly, instead of baSourceID.

Now the mentioned control is fine:

Simple mixer control 'Channel Routing Mode Select',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 6
  Mono: 0 [0%]

Signed-off-by: Pawel Moll <mail@pawelmoll.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-02-21 13:55:12 +01:00
..
2012-12-21 20:23:36 +00:00
2012-10-16 18:49:15 -07:00
2012-10-31 14:00:15 -04:00
2012-10-16 13:36:58 -04:00
2012-12-03 15:07:36 -05:00
2012-11-15 10:13:52 +01:00
2012-11-16 10:15:35 -08:00
2012-12-17 17:15:22 -08:00
2012-10-22 15:16:06 -04:00
2012-12-09 00:30:55 -05:00