]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ALSA: usb-audio: Use correct sub-type for UAC3 feature unit validation
authorTakashi Iwai <tiwai@suse.de>
Thu, 21 Aug 2025 15:08:34 +0000 (17:08 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 21 Aug 2025 15:10:14 +0000 (17:10 +0200)
The entry of the validators table for UAC3 feature unit is defined
with a wrong sub-type UAC_FEATURE (= 0x06) while it should have been
UAC3_FEATURE (= 0x07).  This patch corrects the entry value.

Fixes: 57f8770620e9 ("ALSA: usb-audio: More validations of descriptor units")
Link: https://patch.msgid.link/20250821150835.8894-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/validate.c

index 4f4e8e87a14cd03735369d130a3a1a0bfae61f8e..a0d55b77c9941d4ba8739989dde1842aa23f6816 100644 (file)
@@ -285,7 +285,7 @@ static const struct usb_desc_validator audio_validators[] = {
        /* UAC_VERSION_3, UAC3_EXTENDED_TERMINAL: not implemented yet */
        FUNC(UAC_VERSION_3, UAC3_MIXER_UNIT, validate_mixer_unit),
        FUNC(UAC_VERSION_3, UAC3_SELECTOR_UNIT, validate_selector_unit),
-       FUNC(UAC_VERSION_3, UAC_FEATURE_UNIT, validate_uac3_feature_unit),
+       FUNC(UAC_VERSION_3, UAC3_FEATURE_UNIT, validate_uac3_feature_unit),
        /*  UAC_VERSION_3, UAC3_EFFECT_UNIT: not implemented yet */
        FUNC(UAC_VERSION_3, UAC3_PROCESSING_UNIT, validate_processing_unit),
        FUNC(UAC_VERSION_3, UAC3_EXTENSION_UNIT, validate_processing_unit),