-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moto M4 Soundcard USB Disconnect Issue #4116
Comments
I also downloaded the latest Boot-ROM formware from here https://github.com/raspberrypi/rpi-eeprom/releases and flashed it into my Pi4 hoping the VIA USB Code may fix it but no success. |
Tested same system on RPI2B got this: |
How is the M4 powered? |
It is powered by th Pi4. I measured the power it needs and saw 400mA which should be in the range of the Pi. Pi has 3A power supply... |
The Pi 4 needs most of that 3A power supply for itself under load. Can you try attaching the M4 via a powered hub? |
I ordered one yesterday and will report as soon as it is shipped. |
Little update from my side: |
Tested with external power supply, no more disconnects! |
I wonder why the USB power of a Pi Zero works and a Pi4 fails. Did this make any sense? |
The Pi Zero has a direct connection between the power micro-USB socket and the OTG micro-USB socket. All "B" model Pis since Pi 1 B+ have a built-in current limit of 1.2A for the downstream USB ports. It's quite likely that the device disconnects are due to transient overcurrent (overcurrent events <~5ms are not flagged as a fault by the USB power switch). Using a powered hub is the solution. |
Would adding a capacitance of appropriate size between the 5V pin and GND pin allow the Pi to cope with transient overcurrents or is the limiting factor some power conditioning circuit inside the Pi4? |
P33M, what you say is quite reasonable :-) I already thought about this. PeterPablo, thank's for the tip with te capacitor, I will figure out how big it has to be. |
It's not a bug. It is documented behaviour of the USB power switch that we use, specifically to prevent brownouts of the Pi itself. The recommendation is the same - use a powered USB hub with sufficient downstream current source capability for the device in question. |
Soldered a wire from the USB-C Power connector directly to the power pin of the USB-2 connector with no improvement. Still disconnects. Will try capacitor tomorrow... |
Let me report about the Hub I got: This means:
Dear maintainers of the USB controller firmware of Pi4, now it't your turn, I cant do anything anymore. Here the list of lsusb with Hup and Motu m4 connected WITHOUT Hub power supply |
Even unpowered hubs are not passive devices - they provide a degree of electrical and protocol-level separation. Previous problems with non-compliant devices have been solved by placing a hub inline, so this may also be one of those cases. |
One more and final findig. |
Phil, There is a bug in the USB controller firmware of the Pi4 and I (and probably others too) would be very happy to get this fixed. I hope you admit that it should be fixed instead recommending a workaround... |
I found a solution to the issue. |
Describe the bug
Wenn switching Motu M4 USB Audiointerface ON I get USB connected, disconnected, reconnected, disconnected and so on for ever.
The time of disconnection is random.
Once I made it to see the device in aplay -l and even amixer -c contents. Looked good until disconnection.
USB got disconnected with USB3 and USB2 interfaces.
To reproduce
Expected behaviour
Actual behaviour
System
Which model of Raspberry: Pi4
Which OS and version (
cat /etc/rpi-issue
)?Raspberry Pi reference 2021-01-11
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 21090519d85bdaa1615d5d5057d37b09368ea5d2, stage2
Which OS and version (
uname -a
)?Linux myPi 5.4.83-v7l+ BCM2708 I²C driver stops working sometimes #1379 SMP Mon Dec 14 13:11:54 GMT 2020 armv7l GNU/Linux
Which firmware version (
vcgencmd version
)?Jan 8 2021 14:31:16
Copyright (c) 2012 Broadcom
version 194a85abd768c7334bbadc3f1911c10a7d18ed14 (clean) (release) (start)
Which kernel version (
uname -a
)?Linux myPi 5.4.83-v7l+ BCM2708 I²C driver stops working sometimes #1379 SMP Mon Dec 14 13:11:54 GMT 2020 armv7l GNU/Linux
Logs
[ 25.582988] Bluetooth: HCI UART driver ver 2.3
[ 25.583000] Bluetooth: HCI UART protocol H4 registered
[ 25.583052] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 25.583251] Bluetooth: HCI UART protocol Broadcom registered
[ 25.958291] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 25.958298] Bluetooth: BNEP filters: protocol multicast
[ 25.958310] Bluetooth: BNEP socket layer initialized
[ 95.546761] usb 1-1.4: new high-speed USB device number 3 using xhci_hcd
[ 95.677485] usb 1-1.4: New USB device found, idVendor=07fd, idProduct=0008, bcdDevice= 1.02
[ 95.677504] usb 1-1.4: New USB device strings: Mfr=1, Product=3, SerialNumber=2
[ 95.677521] usb 1-1.4: Product: M4
[ 95.677536] usb 1-1.4: Manufacturer: MOTU
[ 95.677551] usb 1-1.4: SerialNumber: M40000067238
[ 98.297013] usbcore: registered new interface driver snd-usb-audio
[ 113.883669] usb 1-1.4: USB disconnect, device number 3
[ 114.185755] usb 1-1.4: new high-speed USB device number 4 using xhci_hcd
[ 114.316461] usb 1-1.4: New USB device found, idVendor=07fd, idProduct=0008, bcdDevice= 1.02
[ 114.316480] usb 1-1.4: New USB device strings: Mfr=1, Product=3, SerialNumber=2
[ 114.316497] usb 1-1.4: Product: M4
[ 114.316512] usb 1-1.4: Manufacturer: MOTU
[ 114.316528] usb 1-1.4: SerialNumber: M40000067238
[ 116.386086] snd-usb-audio: probe of 1-1.4:1.0 failed with error -71
[ 116.388053] snd-usb-audio: probe of 1-1.4:1.3 failed with error -71
[ 116.388553] snd-usb-audio: probe of 1-1.4:1.4 failed with error -71
[ 116.389992] usb 1-1.4: USB disconnect, device number 4
[ 116.695724] usb 1-1.4: new high-speed USB device number 5 using xhci_hcd
[ 116.826393] usb 1-1.4: New USB device found, idVendor=07fd, idProduct=0008, bcdDevice= 1.02
[ 116.826412] usb 1-1.4: New USB device strings: Mfr=1, Product=3, SerialNumber=2
[ 116.826428] usb 1-1.4: Product: M4
[ 116.826443] usb 1-1.4: Manufacturer: MOTU
[ 116.826459] usb 1-1.4: SerialNumber: M40000067238
[ 120.028561] usb 1-1.4: USB disconnect, device number 5
[ 120.325642] usb 1-1.4: new high-speed USB device number 6 using xhci_hcd
[ 120.456304] usb 1-1.4: New USB device found, idVendor=07fd, idProduct=0008, bcdDevice= 1.02
[ 120.456323] usb 1-1.4: New USB device strings: Mfr=1, Product=3, SerialNumber=2
[ 120.456340] usb 1-1.4: Product: M4
[ 120.456356] usb 1-1.4: Manufacturer: MOTU
[ 120.456371] usb 1-1.4: SerialNumber: M40000067238
[ 122.545871] snd-usb-audio: probe of 1-1.4:1.0 failed with error -71
[ 122.547832] snd-usb-audio: probe of 1-1.4:1.3 failed with error -71
[ 122.548322] snd-usb-audio: probe of 1-1.4:1.4 failed with error -71
[ 122.549708] usb 1-1.4: USB disconnect, device number 6
[ 122.845573] usb 1-1.4: new high-speed USB device number 7 using xhci_hcd
[ 122.976339] usb 1-1.4: New USB device found, idVendor=07fd, idProduct=0008, bcdDevice= 1.02
[ 122.976358] usb 1-1.4: New USB device strings: Mfr=1, Product=3, SerialNumber=2
[ 122.976375] usb 1-1.4: Product: M4
[ 122.976391] usb 1-1.4: Manufacturer: MOTU
[ 122.976406] usb 1-1.4: SerialNumber: M40000067238
[ 125.025803] snd-usb-audio: probe of 1-1.4:1.0 failed with error -71
[ 125.027740] snd-usb-audio: probe of 1-1.4:1.3 failed with error -71
[ 125.028232] snd-usb-audio: probe of 1-1.4:1.4 failed with error -71
[ 125.029159] usb 1-1.4: USB disconnect, device number 7
[ 125.325534] usb 1-1.4: new high-speed USB device number 8 using xhci_hcd
[ 125.456258] usb 1-1.4: New USB device found, idVendor=07fd, idProduct=0008, bcdDevice= 1.02
[ 125.456277] usb 1-1.4: New USB device strings: Mfr=1, Product=3, SerialNumber=2
[ 125.456293] usb 1-1.4: Product: M4
[ 125.456309] usb 1-1.4: Manufacturer: MOTU
[ 125.456324] usb 1-1.4: SerialNumber: M40000067238
Additional context
Also tried with 5.10 kernel which I got with rpi-update. Same behaviour.
I know that Motu M4 is not officially supported but it is said to be Audio Class2 and therefore should be fine.
Sounddrivers work and I could see "amixer -1 contens" once before it got disconnected.
The text was updated successfully, but these errors were encountered: