diff --git a/services/usb/java/com/android/server/usb/descriptors/UsbDescriptorParser.java b/services/usb/java/com/android/server/usb/descriptors/UsbDescriptorParser.java index 6a3469c5fa249..e61542824083d 100644 --- a/services/usb/java/com/android/server/usb/descriptors/UsbDescriptorParser.java +++ b/services/usb/java/com/android/server/usb/descriptors/UsbDescriptorParser.java @@ -177,15 +177,11 @@ public final class UsbDescriptorParser { * Audio Class Specific */ case UsbDescriptor.DESCRIPTORTYPE_AUDIO_INTERFACE: - if (mDeviceDescriptor.getDevClass() == UsbDescriptor.CLASSID_AUDIO) { - descriptor = UsbACInterface.allocDescriptor(this, stream, length, type); - } + descriptor = UsbACInterface.allocDescriptor(this, stream, length, type); break; case UsbDescriptor.DESCRIPTORTYPE_AUDIO_ENDPOINT: - if (mDeviceDescriptor.getDevClass() == UsbDescriptor.CLASSID_AUDIO) { - descriptor = UsbACEndpoint.allocDescriptor(this, length, type); - } + descriptor = UsbACEndpoint.allocDescriptor(this, length, type); break; default: