FX-D802 (STA326) not responding

hello
Obviously my FX-D802 (Class D amp) is not recognize…
audiophonics.fr/fr/amplifica … 10394.html

[ 3194.422967] usb 1-1.2: new full-speed USB device number 10 using dwc_otg [ 3194.584641] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error [ 3194.596634] usb 1-1.2: can't set config #1, error -71
any help or is it useless ?

volumio@volumio:~$ lsusb Bus 001 Device 003: ID 2001:3308 D-Link Corp. DWA-121 802.11n Wireless N 150 Pico Adapter [Realtek RTL8188CUS] Bus 001 Device 010: ID 040d:340b VIA Technologies, Inc. Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Thanks for this beautiful job
Fred

I feel you slightly rude…
Anyway I own a such amp and it works out of the box…
What is the version of volumio? Can you use it on a other system ? (PC)
It should appear in output device.
Do you use USB ?

sorry for my rude english, I’m french :laughing:
I just realize my last sentence has a double meaning :confused: I mean, I do appreciate a lot this work !
btw what you mentioned scared me, I will tomorrow try the equipment on a computer to see what’s happening
was it a d802 too you tried recently ?
I have an Odroid C2 on the latest Volumio for C2, the D802 is connected with USB link

volumio@volumio:/$ uname -a Linux volumio 3.14.79 #3 SMP PREEMPT Sat Oct 15 16:15:17 CEST 2016 aarch64 GNU/Linux volumio@volumio:/$
Thx a lot !
Fred

Yees ! and my first answer was rude too… But after more carefully read it, I was no more sure.
So let’s talking about this amp.
It comes from audiophonics and I use it on a RPI B, and a RPI 2. I also test it on my laptop.
I also tested it on a Allo Sparky and met some problem with usb : track are played very slowly…
I don’t know how work usb output on odroid C2…
Gé, if you read this can you help ?

I’m reading, but the error does not promise much good.
Best to start with the latest image as we made a change for handling usb interrupts, but I’m not sure if it is any help.
Link to the latest (test) C2 image

Could you also try to get more info from the device to see if it is recognized as a usb 2.0 or usb 1.1 device?
Please use

lsusb -t

Edit: could you try with another usb cable (shorter) ? What power supply are you using?
Could you also try the otg port (you might need an otg adapter for it)
Make sure you have a stable 5V minimum 2A supply.

-Gé-

hello
so I tried the equipement, same cable, on a Fedora

[fred@localhost ~]$ uname -a Linux localhost.localdomain 4.6.3-300.fc24.x86_64 #1 SMP Fri Jun 24 20:52:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
it works like a charm…

[  213.718575] usb 3-1: new full-speed USB device number 2 using ohci-pci
[  213.927872] usb 3-1: New USB device found, idVendor=040d, idProduct=340b
[  213.927890] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  213.927899] usb 3-1: Product: FX-AUDIO-D-802
[  213.927906] usb 3-1: Manufacturer: FX-AUDIO
[  214.107532] input: FX-AUDIO FX-AUDIO-D-802 as /devices/pci0000:00/0000:00:12.0/usb3/3-1/3-1:1.2/0003:040D:340B.0001/input/input14
[  214.160210] hid-generic 0003:040D:340B.0001: input,hidraw0: USB HID v1.00 Device [FX-AUDIO FX-AUDIO-D-802] on usb-0000:00:12.0-1/input2
[  214.390175] usbcore: registered new interface driver snd-usb-audio

I will go on with experiments on the Odroid C2 and Volumio, so some news soon on this thread

thx a lot for your time and help !
Fred

1st Edit: here is the lsusb -t on volumio

volumio@volumio:~$ lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 4: Dev 3, If 0, Class=Vendor Specific Class, Driver=rtl8192cu, 480M

same error shown on dmesg :angry:

[88582.690075] usb 1-1.2: new full-speed USB device number 12 using dwc_otg
[88582.849930] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error
[88582.862708] usb 1-1.2: can't set config #1, error -71

damned… I will now upgrade to the new test version

Don’t update, downlad and flash…

hello
after a dd with bs=512 to be sure that no corruption occurs on the SD, I lunched the provided Volumio, which works perfectly
then I plug in the D802 and… same story :frowning:
is there something I can do to correct that, I mean load some module in the kernel or anything I can try ??
Thx a lot !
Fred

Strange, you first lsusb showed the VIA chip in the D802, with lsusb -t it does not anymore? Is this correct?
Could you test without the wifi dongle please?
-Gé-

Apparently this something odd in the amlogic usb driver. The only thing I can advice you to do is posting your problem on the Hardkernel forum, section Odroid C2, Hardware & Peripherals. Therem have been similar reports using other devices…
-Gé-

hello
I’m now far away from my equipment for Christmas, coming back in one week.
I will extract all info from the system and provide it to the aforementioned forum channel
thx for the help and Merry Christmas !
Fred

hello
According to Hardkenel forum helpers, it might be possible to correct this error by changing a kernel option… and recompile it

github.com/hardkernel/linux/com … 0ddcdd08c2

So question : is it possible that you guys put this modification in the next Volumio for C2 release ??
thx !!
Fred

Yes, I will prepare a dev image for you and send you a PM with a link tonight.
-Gé-

Sorry, I checked the kernel, the change is already in, so this will not help.

Edit Btw. the patch was one from the C2 Android kernel, but I located the code in the Linux tree
I increased the error count to 5000 and made the dev image anyway.
You have a PM.

-Gé-

hello, and Happy New Year !!

so it works ! even if some strange dmesg outputted, I can listen well broadcasts
below my dmesg

[    9.827817] aml_i2c version: 20140813
[    9.829704] aml-i2c c1108500.i2c: add adapter aml_i2c_adap1(ffffffc05a5818e0)
[    9.930635] sx865x 2-0049: sx865x_probe()
[    9.935626] vout_serve: vmode set to 1080p60hz

[    9.935638] vout_serve: don't set the same mode as current.
[    9.938371] sx865x 2-0049: swap_xy (1)
[    9.938375] sx865x 2-0049: invert_x (0)
[    9.938377] sx865x 2-0049: invert_y (1)
[    9.938380] sx865x 2-0049: gpio pendown (218)
[    9.938383] sx865x 2-0049: gpio reset (224)
[    9.938385] sx865x 2-0049: gpio irq (96)
[    9.938708] sx865x: probe of 2-0049 failed with error -5
[    9.938726] aml-i2c c11087c0.i2c: add adapter aml_i2c_adap2(ffffffc05a5808e0)
[   10.018629] pcm512x 1-004c: Failed to reset device: -11
[   10.018679] pcm512x: probe of 1-004c failed with error -11
[   10.018691] i2c i2c-1: new_device: Instantiated device pcm5242 at 0x4c
[   10.028182] odroid_dac2 odroid_dac2: ASoC: CODEC pcm512x.1-004c not registered
[   10.028198] odroid_dac2 odroid_dac2: snd_soc_register_card failed (-517)
[   10.028216] platform odroid_dac2: Driver odroid_dac2 requests probe deferral
[   10.063299] i2c i2c-1: delete_device: Deleting device pcm5242 at 0x4c
[   10.081356] vout_serve: vmode set to 1080p60hz

[   10.090416] vout_serve: don't set the same mode as current.
[   10.093766] pcm5102_platform_probe
[   10.103907] odroid_dac_snd odroid_dac: pcm5102 <-> I2S mapping ok
[   10.219151] Registered IR keymap rc-empty
[   10.223448] input: meson-ir as /devices/platform/c8100580.meson-ir/rc/rc0/input4
[   10.229447] rc0: meson-ir as /devices/platform/c8100580.meson-ir/rc/rc0
[   10.242502] meson-ir c8100580.meson-ir: AO_RTI_PIN_MUX : 0x78019801
[   10.247765] meson-ir c8100580.meson-ir: receiver initialized
[   10.257387] lirc_dev: IR Remote Control driver registered, major 233 
[   10.277525] IR RC5(x) protocol handler initialized
[   10.277527] IR RC6 protocol handler initialized
[   10.277529] IR JVC protocol handler initialized
[   10.279240] rc rc0: lirc_dev: driver ir-lirc-codec (meson-ir) registered at minor = 0
[   10.279248] IR LIRC bridge handler initialized
[   10.279263] IR Sony protocol handler initialized
[   10.279662] IR NEC protocol handler initialized
[   10.280119] input: MCE IR Keyboard/Mouse (meson-ir) as /devices/virtual/input/input5
[   10.281706] IR MCE Keyboard/mouse protocol handler initialized
[   10.283066] IR SANYO protocol handler initialized
[   10.707644] input: lircd as /devices/virtual/input/input6
[   15.991417] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   33.983855] WARN::urb_dequeue:780: urb->hcpriv == NULL! urb = ffffffc05b7b8f00 status=-104

[ 1187.825832] hub 1-1:1.0: port 2 disabled by hub (EMI?), re-enabling...
[ 1187.827228] usb 1-1.2: USB disconnect, device number 3
[ 1188.147661] usb 1-1.2: new full-speed USB device number 5 using dwc_otg
[ 1188.523388] input: FX-AUDIO FX-AUDIO-D-802 as /devices/platform/dwc2_b/usb1/1-1/1-1.2/1-1.2:1.2/0003:040D:340B.0002/input/input7
[ 1188.529630] hid-generic 0003:040D:340B.0002: input: USB HID v1.00 Device [FX-AUDIO FX-AUDIO-D-802] on usb-dwc2_b-1.2/input2
[ 3329.817504] WARN::urb_dequeue:780: urb->hcpriv == NULL! urb = ffffffc046083600 status=-104

[ 3333.733549] WARN::urb_dequeue:780: urb->hcpriv == NULL! urb = ffffffc046083900 status=-104

[ 3378.452470] WARN::urb_dequeue:780: urb->hcpriv == NULL! urb = ffffffc059f41800 status=-104

[ 3382.404523] WARN::urb_dequeue:780: urb->hcpriv == NULL! urb = ffffffc059f41800 status=-104

[ 3385.544362] WARN::urb_dequeue:780: urb->hcpriv == NULL! urb = ffffffc04f93b900 status=-104

[ 3389.489413] WARN::urb_dequeue:780: urb->hcpriv == NULL! urb = ffffffc04f93b900 status=-104

[ 3409.140652] WARN::urb_dequeue:780: urb->hcpriv == NULL! urb = ffffffc04f9b5300 status=-104

[ 3413.099708] WARN::urb_dequeue:780: urb->hcpriv == NULL! urb = ffffffc05be37700 status=-104

[ 3425.451999] WARN::urb_dequeue:780: urb->hcpriv == NULL! urb = ffffffc059fb1400 status=-104

[ 3436.022815] WARN::urb_dequeue:780: urb->hcpriv == NULL! urb = ffffffc04f9aac00 status=-104

[ 3439.978875] WARN::urb_dequeue:780: urb->hcpriv == NULL! urb = ffffffc05b095900 status=-104

[ 3452.773286] WARN::urb_dequeue:780: urb->hcpriv == NULL! urb = ffffffc04f959600 status=-104

[ 3886.148822] WARN::urb_dequeue:780: urb->hcpriv == NULL! urb = ffffffc059dde100 status=-104

[ 3932.621209] WARN::urb_dequeue:780: urb->hcpriv == NULL! urb = ffffffc05b05b900 status=-104

[ 3937.426491] WARN::urb_dequeue:780: urb->hcpriv == NULL! urb = ffffffc059fc7100 status=-104

[ 4017.218763] WARN::urb_dequeue:780: urb->hcpriv == NULL! urb = ffffffc04f90e900 status=-104

[ 4021.172816] WARN::urb_dequeue:780: urb->hcpriv == NULL! urb = ffffffc04f90e900 status=-104

[ 4023.828363] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 4024.463696] WARN::urb_dequeue:780: urb->hcpriv == NULL! urb = ffffffc04f9c5200 status=-104

[ 4025.374671] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

and here is the lusb -t

volumio@volumio:~$ lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 2: Dev 5, If 0, Class=Audio, Driver=snd-usb-audio, 12M
        |__ Port 2: Dev 5, If 1, Class=Audio, Driver=snd-usb-audio, 12M
        |__ Port 2: Dev 5, If 2, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 4: Dev 4, If 0, Class=Vendor Specific Class, Driver=rtl8192cu, 480M

yes, 12M… then

volumio@volumio:~$ lsusb -s 1:5
Bus 001 Device 005: ID 040d:340b VIA Technologies, Inc. 

so problem is [SOLVED]. (I will now have a look at

thx a lot !
Fred