Skip to content

Commit 8410fe8

Browse files
committed
ALSA: usb-audio: Use correct sub-type for UAC3 feature unit validation
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: 57f8770 ("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>
1 parent 5003a65 commit 8410fe8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/usb/validate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ static const struct usb_desc_validator audio_validators[] = {
285285
/* UAC_VERSION_3, UAC3_EXTENDED_TERMINAL: not implemented yet */
286286
FUNC(UAC_VERSION_3, UAC3_MIXER_UNIT, validate_mixer_unit),
287287
FUNC(UAC_VERSION_3, UAC3_SELECTOR_UNIT, validate_selector_unit),
288-
FUNC(UAC_VERSION_3, UAC_FEATURE_UNIT, validate_uac3_feature_unit),
288+
FUNC(UAC_VERSION_3, UAC3_FEATURE_UNIT, validate_uac3_feature_unit),
289289
/* UAC_VERSION_3, UAC3_EFFECT_UNIT: not implemented yet */
290290
FUNC(UAC_VERSION_3, UAC3_PROCESSING_UNIT, validate_processing_unit),
291291
FUNC(UAC_VERSION_3, UAC3_EXTENSION_UNIT, validate_processing_unit),

0 commit comments

Comments
 (0)