Opened 10 months ago

Last modified 10 months ago

#18779 new bug

Lightning to USB-C adapter not recognized

Reported by: Nexus-6 Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Drivers/Audio/USB Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

The USB-C adapter is not recognized at all as a USB audio device. Morevoer, listusb -v /dev/bus/usb/0/3 crashes. Computer: Lenovo thinkpad T480s Adapter: Anker Lightning Audio Adapter Syslog and crash report attached

Attachments (4)

listusb-3129-debug-02-02-2024-22-42-45.report (11.7 KB ) - added by Nexus-6 10 months ago.
syslog (463.7 KB ) - added by Nexus-6 10 months ago.
usb_audio.log (5.7 KB ) - added by Nexus-6 10 months ago.
listusb.log (3.2 KB ) - added by Nexus-6 10 months ago.

Download all attachments as: .zip

Change History (6)

by Nexus-6, 10 months ago

Attachment: syslog added

by Nexus-6, 10 months ago

Attachment: usb_audio.log added

by Nexus-6, 10 months ago

Attachment: listusb.log added

comment:1 by korli, 10 months ago

you could try:

diff --git a/src/bin/listusb/usb_audio.cpp b/src/bin/listusb/usb_audio.cpp
index 954ee3c08a..d10601b504 100644
--- a/src/bin/listusb/usb_audio.cpp
+++ b/src/bin/listusb/usb_audio.cpp
@@ -297,8 +297,9 @@ DumpAudioCSInterfaceDescriptorFeatureUnit(
        printf("                    Control Size ...... %u\n",
                        descriptor->r1.control_size);
 
-
-       uint8 channels = (descriptor->length - 6) / descriptor->r1.control_size;
+       uint8 channels = 0;
+       if (descriptor->r1.control_size > 0)
+               channels = (descriptor->length - 6) / descriptor->r1.control_size;
        for (uint8 i = 0; i < channels; i++) {
                switch (descriptor->r1.control_size) {
                        case 1:

comment:2 by waddlesplash, 10 months ago

Crash should be fixed in hrev57567, I suppose.

Note: See TracTickets for help on using tickets.