Page 1 of 1

Problem with USB Audio Adapter

Posted: Fri Jun 09, 2017 10:24 pm
by cioralut
Hi Odroid team!

I've an audio problem with a C2 board (Marshmallow V2.8) connected to your USB Audio Adapter (5Hv2) and to a touchscreen HDMI display with audio speakers.
The issue is simple: after every reboot the audio adapter is not detected and the sound is played by the internal speaker of the display (through HDMI).
Also the microphone input of the USB Audio adapter is not working (seems that all the USB Audio Adapter is not detected or disabled).
If I use a display without audio capabilities, the USB Audio Adapter works correctly.

I've made another test: if I disconnect and reconnect the HDMI cable of the display (with speakers) while the C2 is on,
the USB Audio Adapter is detected and correctly managed by Android (audio out and microphone input are working properly) and the sound is played ALSO with the internal speaker of the display.

How can I do to use the USB Audio Adapter? Can I force the detection of the USB Audio Adapter?

Many thanks in advance for your support !

Daniele

Re: Problem with USB Audio Adapter

Posted: Fri Jun 09, 2017 10:49 pm
by cioralut
I've made another test: if I disconnect and reconnect the HDMI cable of the display (with speakers) while the C2 is on,
the USB Audio Adapter is detected and correctly managed by Android (audio out and microphone input are working properly) and the sound is played ALSO with the internal speaker of the display


Sorry. Not if I disconnect and reconnect the HDMI cable but if I DISCONNECT AND RECONNECT USB CABLE OF THE TOUCH SCREEN DISPLAY.
This problem with Android 5.1.1 (version 2.4) there isn't.

Re: Problem with USB Audio Adapter

Posted: Sat Jun 10, 2017 12:43 am
by cioralut
Hi all !

I'm not sure but maybe that i've found the issue...
Seems that the problem is related to the position of the Audio Adapter and Touch Screeen USB connectors.

If I number the USB connectors of the C2 as show in the image attached, the USB Audio Adapter is correctly detected at boot time ONLY if it is connected in an USB port AFTER that in which is connected the Touch Screen.

Example 1:
Audio Adapter --> PORT 1
Touch Screeen --> PORT 2
NOT WORKING

Example 2:
Touch Screeen --> PORT 1
Audio Adapter --> PORT 2
WORKING

Example 3:
Touch Screeen --> PORT 2
Audio Adapter --> PORT 4
WORKING

Can be the position of the USB Audio Adapter (related to the position of the USB Touch Screen) the cause of the detecting problem ?

Many thanks !

Re: Problem with USB Audio Adapter

Posted: Sat Jun 10, 2017 10:18 am
by odroid
The sequence of the USB hub ports initialization might affect the USB device detection enumeration.
But it is not clearly understandable to me.

Try to disable "Display auto detection" mode and enable "DVI" mode via editing boot.ini file to disable the HDMI sound function.

Re: Problem with USB Audio Adapter

Posted: Tue Jun 13, 2017 10:33 pm
by cioralut
I try to disable "Display auto detecion" and enable "DVI" but the problem persist.
Unfortunately with on other ODROID-C2 (always REV0.2 20160226) sometimes after a reboot the Usb Audio Adapter is not detected!
Any suggestions?

Re: Problem with USB Audio Adapter

Posted: Thu Jun 15, 2017 4:10 pm
by codewalker
Show me lsusb result when USB Audio adapter is not working.
How about result only to connect USB Audio adapter without USB touch?

Re: Problem with USB Audio Adapter

Posted: Thu Jun 15, 2017 6:31 pm
by cioralut
USB Touch & USB Audio Adapter NOT connected
shell@odroidc2:/ $ lsusb
Bus 001 Device 002: ID 05e3:0610
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0002



Only USB Audio Adapter connected
shell@odroidc2:/ $ lsusb
Bus 001 Device 002: ID 05e3:0610
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0002
Bus 001 Device 004: ID 0d8c:000c --> Audio Usb Adapter



USB Touch and USB Audio Adapter connected (USB Audio Adapter not work) See file boot_audio_error.txt
shell@odroidc2:/ $ lsusb
Bus 001 Device 002: ID 05e3:0610
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0002
Bus 001 Device 003: ID 0d8c:000c --> Audio Usb Adapter
Bus 001 Device 004: ID 05e3:0608 --> ?
Bus 001 Device 005: ID 04e7:1c00 --> Elo intelliTouch



USB Touch and USB Audio Adapter connected (USB Audio Adapter work correctly) See file boot_audio_ok.txt
shell@odroidc2:/ $ lsusb
Bus 001 Device 002: ID 05e3:0610
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0002
Bus 001 Device 003: ID 05e3:0608 --> ?
Bus 001 Device 004: ID 0d8c:000c --> Audio Usb Adapter
Bus 001 Device 006: ID 04e7:1c00 --> Elo intelliTouch


In attachment you can find sequence boot result read by system console interface board (USB-UART)
I hope that this can help you.

Re: Problem with USB Audio Adapter

Posted: Fri Jun 16, 2017 12:46 am
by InspecteurGadget
Have you test the usb audio adaptater over usb otg(micro usb)?

Re: Problem with USB Audio Adapter

Posted: Thu Dec 21, 2017 6:20 pm
by cioralut
Hi to all!
I have tried ODROID-C2 with the last firmware version (Android Marshmallow v3.5) but the problem persist.
AFTER EVERY REBOOT THE AUDIO ADAPTER IS NOT DETECTED. THIS PROBLEM WITH ANDROID 5.1.1 THERE ISN'T

I have tried also over USB OTG port and from my tests I can exclude also the position of the USB Audio Adapter...

To follow the sequence of some my tests:

*************************************************************************
1) Audio adapter function
USB Audio Adapter connected in port USB number 1
and USB Touch ELO connected in port USB number 2.
*************************************************************************

shell@odroidc2:/ $ lsusb

Bus 001 Device 002: ID 05e3:0610
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0002
Bus 001 Device 009: ID 0d8c:000c
Bus 001 Device 010: ID 05e3:0608
Bus 001 Device 011: ID 04e7:1c00


*************************************************************************
2) Reboot ODROID-C2
After reboot audio adapter doesn't work
*************************************************************************

shell@odroidc2:/ $ lsusb

Bus 001 Device 002: ID 05e3:0610
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0002
Bus 001 Device 006: ID 0d8c:000c
Bus 001 Device 007: ID 05e3:0608
Bus 001 Device 008: ID 04e7:1c00


*************************************************************************
3) Disconnect USB Audio and USB Touch
*************************************************************************

shell@odroidc2:/

[ 76.366206@1] ChromiumNet[4342]: syscall 384
[ 76.366248@1] Code: e1a01002 e1a02003 e89c0078 ef000000 (e8bd00f0)
[ 76.371064@1] CPU: 1 PID: 4342 Comm: ChromiumNet Tainted: G O 3.14.29-00004-ga8c5496 #1
[ 76.544410@0] hid-generic 0003:0D8C:000C.0003: can't reset device, dwc2_b-1.1/input3, status -71
[ 76.717733@1] task: ffffffc037b36000 ti: ffffffc02d55c000 task.ti: ffffffc02d55c000
[ 76.725112@1] PC is at 0xf7452ba0
[ 76.725139@1] LR is at 0xe23d13f9
[ 76.726350@1] pc : [<00000000f7452ba0>] lr : [<00000000e23d13f9>] pstate: 20070010
[ 76.759214@0] usb 1-1.1: USB disconnect, device number 6
[ 76.891639@1] sp : 00000000e1d03e70
[ 76.907314@1] x12: 00000000e1d03e80
[ 76.907339@1] x11: 0000000000000000 x10: 0000000000000000
[ 76.910690@1] x9 : 0000000000000001 x8 : 00000000e23d13d1
[ 77.323716@1] x7 : 0000000000000180 x6 : 00000000e1d04040
[ 77.325604@1] x5 : 00000000e24ee7fc x4 : 0000000000000000
[ 77.331038@1] x3 : 0000000000000000 x2 : 0000000000000001
[ 77.612905@2] x1 : 0000000000000001 x0 : 00000000e1d03e87
[ 77.678025@3]
[ 77.799106@0] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK
[ 77.799106@0]
[ 77.802180@0] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK
[ 77.802180@0]
[ 77.810815@0] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK
[ 77.810815@0]
[ 78.038559@0] usb 1-1.2: USB disconnect, device number 7
[ 78.038592@0] usb 1-1.2.3: USB disconnect, device number 8

shell@odroidc2:/ $ lsusb

Bus 001 Device 002: ID 05e3:0610
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0002


*************************************************************************
4) Connect USB Audio
*************************************************************************

shell@odroidc2:/

[ 90.823945@0] usb 1-1.1: new full-speed USB device number 9 using dwc_otg
[ 90.957884@2] input: C-Media USB Headphone Set as /devices/dwc2_b/usb1/1-1/1-1.1/1-1.1:1.3/0003:0D8C:000C.0005/input/input10
[ 90.964814@2] hid-generic 0003:0D8C:000C.0005: input: USB HID v1.00 Device [C-Media USB Headphone Set ] on usb-dwc2_b-1.1/input3

shell@odroidc2:/ $ lsusb
Bus 001 Device 002: ID 05e3:0610
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0002
Bus 001 Device 009: ID 0d8c:000c


*************************************************************************
5) Connect USB Touch
Audio still doesn't work
*************************************************************************

shell@odroidc2:/ $

[ 103.364040@0] usb 1-1.2: new high-speed USB device number 10 using dwc_otg
[ 103.468252@0] hub 1-1.2:1.0: USB hub found
[ 103.468716@0] hub 1-1.2:1.0: 4 ports detected
[ 103.743990@0] usb 1-1.2.3: new full-speed USB device number 11 using dwc_otg
[ 103.870339@0] input: Elo Touch Solutions Elo Touch Solutions Pcap USB Interface as /devices/dwc2_b/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/0003:04E7:1C00.0006/input/input11
[ 103.890201@0] hid-multitouch 0003:04E7:1C00.0006: input,hiddev0: USB HID v1.11 Mouse [Elo Touch Solutions Elo Touch Solutions Pcap USB Interface] on usb-dwc2_b-1.2.3/input0

shell@odroidc2:/ $ lsusb

Bus 001 Device 002: ID 05e3:0610
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0002
Bus 001 Device 009: ID 0d8c:000c
Bus 001 Device 010: ID 05e3:0608
Bus 001 Device 011: ID 04e7:1c00


*************************************************************************
6) Disconnect USB Audio and USB Touch
*************************************************************************

shell@odroidc2:/ $

[ 111.938351@1] [aml-i2s-dai]i2s dma ffffff8001b01000,phy addr 1583349760,mode 0,ch 2
[ 111.940400@1] ----aml_hw_iec958_init,runtime->rate=48000,sample_rate=4--
[ 111.947068@1] aml_set_spdif_clk rate
[ 111.950553@1] divider=20,frac=33920000,SDMval=5654
[ 111.955510@1] set normal 512 fs /4 fs
[ 111.959005@1] iec958 mode PCM16
[ 111.962018@1] IEC958 16bit
[ 111.964718@1] hdmitx: audio: aout notify rate 48000
[ 111.969515@1] hdmitx: audio: aout notify size 16
[ 111.974208@1] 958 with i2s
[ 111.977502@1] speaker_events--mute =1
[ 112.006130@1] aiu i2s playback enable
[ 112.006157@1] audio_hw_958_enable 1
[ 121.074586@2] alarm lock suspend
[ 121.154480@3] aiu i2s playback disable
[ 123.453500@3] [aml-i2s-dai]i2s dma ffffff8001b01000,phy addr 1583349760,mode 0,ch 2
[ 123.455658@3] ----aml_hw_iec958_init,runtime->rate=48000,sample_rate=4--
[ 123.462155@3] aml_set_spdif_clk rate
[ 123.465799@3] divider=20,frac=33920000,SDMval=5654
[ 123.470438@3] set normal 512 fs /4 fs
[ 123.474115@3] iec958 mode PCM16
[ 123.478871@3] IEC958 16bit
[ 123.479833@3] hdmitx: audio: aout notify rate 48000
[ 123.484709@3] hdmitx: audio: aout notify size 16
[ 123.489234@3] 958 with i2s
[ 123.518871@3] aiu i2s playback enable
[ 123.518907@3] audio_hw_958_enable 1
[ 135.363764@3] aiu i2s playback disable
[ 140.373724@3] speaker_events--mute =0
[ 143.847939@1] usb 1-1.1: USB disconnect, device number 9
[ 145.128310@1] usb 1-1.2: USB disconnect, device number 10
[ 145.128343@1] usb 1-1.2.3: USB disconnect, device number 11
[ 150.754089@3] usb 1-1.2: new high-speed USB device number 12 using dwc_otg


*************************************************************************
7) Connect USB Audio
*************************************************************************

[ 150.874021@3] hub 1-1.2:1.0: USB hub found
[ 150.874461@3] hub 1-1.2:1.0: 4 ports detected
[ 151.154068@3] usb 1-1.2.3: new full-speed USB device number 13 using dwc_otg


*************************************************************************
8) Connect USB Touch
Audio still doesn't work
*************************************************************************

[ 151.316543@3] input: Elo Touch Solutions Elo Touch Solutions Pcap USB Interface as /devices/dwc2_b/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/0003:04E7:1C00.0007/input/input13
[ 151.363812@2] hid-multitouch 0003:04E7:1C00.0007: input,hiddev0: USB HID v1.11 Mouse [Elo Touch Solutions Elo Touch Solutions Pcap USB Interface] on usb-dwc2_b-1.2.3/input0
[ 152.284015@2] usb 1-1.1: new full-speed USB device number 14 using dwc_otg
[ 152.461195@3] input: C-Media USB Headphone Set as /devices/dwc2_b/usb1/1-1/1-1.1/1-1.1:1.3/0003:0D8C:000C.0008/input/input15
[ 152.477327@3] hid-generic 0003:0D8C:000C.0008: input: USB HID v1.00 Device [C-Media USB Headphone Set ] on usb-dwc2_b-1.1/input3
[ 153.820277@1] [aml-i2s-dai]i2s dma ffffff8001b01000,phy addr 1583349760,mode 0,ch 2
[ 153.822305@1] ----aml_hw_iec958_init,runtime->rate=48000,sample_rate=4--
[ 153.829065@1] aml_set_spdif_clk rate
[ 153.832500@1] divider=20,frac=33920000,SDMval=5654
[ 153.837438@1] set normal 512 fs /4 fs
[ 153.840880@1] iec958 mode PCM16
[ 153.843968@1] IEC958 16bit
[ 153.846735@1] hdmitx: audio: aout notify rate 48000
[ 153.851437@1] hdmitx: audio: aout notify size 16
[ 153.856311@1] 958 with i2s
[ 153.859540@1] speaker_events--mute =1
[ 153.885477@1] aiu i2s playback enable
[ 153.885517@1] audio_hw_958_enable 1


*************************************************************************
9) Disconnect USB Audio and USB Touch
*************************************************************************

[ 156.651683@3] usb 1-1.1: USB disconnect, device number 14
[ 157.419586@0] usb 1-1.2: USB disconnect, device number 12
[ 157.419619@0] usb 1-1.2.3: USB disconnect, device number 13
[ 157.824449@1] aiu i2s playback disable


*************************************************************************
10) Connect USB Audio
*************************************************************************

[ 162.004052@3] usb 1-1.1: new full-speed USB device number 15 using dwc_otg
[ 162.122882@3] input: C-Media USB Headphone Set as /devices/dwc2_b/usb1/1-1/1-1.1/1-1.1:1.3/0003:0D8C:000C.0009/input/input16
[ 162.129734@3] hid-generic 0003:0D8C:000C.0009: input: USB HID v1.00 Device [C-Media USB Headphone Set ] on usb-dwc2_b-1.1/input3
[ 162.833719@1] speaker_events--mute =0
[ 163.804036@3] usb 1-1.2: new high-speed USB device number 16 using dwc_otg
[ 163.909531@3] hub 1-1.2:1.0: USB hub found
[ 163.909928@3] hub 1-1.2:1.0: 4 ports detected

*************************************************************************
11) Connect USB Touch
FINE! AUDIO WORK CORRECTLY...
*************************************************************************

[ 164.193971@3] usb 1-1.2.3: new full-speed USB device number 17 using dwc_otg
[ 164.367258@0] input: Elo Touch Solutions Elo Touch Solutions Pcap USB Interface as /devices/dwc2_b/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/0003:04E7:1C00.000A/input/input17
[ 164.385731@0] hid-multitouch 0003:04E7:1C00.000A: input,hiddev0: USB HID v1.11 Mouse [Elo Touch Solutions Elo Touch Solutions Pcap USB Interface] on usb-dwc2_b-1.2.3/input0
shell@odroidc2:/ $ lsusb
Bus 001 Device 002: ID 05e3:0610
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0002
Bus 001 Device 015: ID 0d8c:000c
Bus 001 Device 016: ID 05e3:0608
Bus 001 Device 017: ID 04e7:1c00


Does anyone have any solutions?
Thanks

Daniele

Re: Problem with USB Audio Adapter

Posted: Thu Dec 21, 2017 7:21 pm
by odroid
Change the HDMI mode to DVI mode with ODROID-Utility app and let us know the result if you don't need the HDMI sound output.

Re: Problem with USB Audio Adapter

Posted: Thu Dec 21, 2017 8:25 pm
by cioralut
Changed in DVI mode but the problem persist...

Re: Problem with USB Audio Adapter

Posted: Fri Dec 22, 2017 10:21 am
by odroid
What happens if you don't use the touchscreen?

We will try to reproduce the issue with our USB audio adapter first.

Edit:
We plugged our USB sound card and ran a test of reboot cycles.
There is no issue so far.
USB sound card works always after bootings.

Re: Problem with USB Audio Adapter

Posted: Fri Dec 22, 2017 5:08 pm
by cioralut
The problem is only with your USB Audio Adapter and ELO USB Touch driver (display ELO code 1002L) and ONLY with android 6.0.1.
With android 5.1.1 the problem there isn't.
I have also tried with yours ODROID-VU display and with that I don't have any problems (tested with android 5.1.1 and android 6.0.1).
Does anyone have any other suggestions?

Re: Problem with USB Audio Adapter

Posted: Fri Dec 22, 2017 5:57 pm
by odroid
If your ELO touchscreen controller is a low-speed device, connect it to the OTG port.
Connect the touchscreen to a normal Linux PC and look into lsusb -t output to check whether it is a low-speed device or high-speed device.

Re: Problem with USB Audio Adapter

Posted: Fri Dec 22, 2017 7:40 pm
by cioralut
I haven't linux PC. :(
The ELO USB tecnology is IntelliTouch Pro PCAP and I don't know if it is low or high speed.
I try it to USB OTG port and I will let you know the results...

Re: Problem with USB Audio Adapter

Posted: Tue Mar 06, 2018 11:27 pm
by cioralut
I tried with USB OTG port but the problem persist... :cry:

Re: Problem with USB Audio Adapter

Posted: Tue Mar 06, 2018 11:32 pm
by cioralut
The problem is also on android 5.1.1 vers. 3.5.
With android 5.1.1 version 2.4 works correctly...

Re: Problem with USB Audio Adapter

Posted: Wed Mar 07, 2018 9:08 am
by odroid
It is really hard to know what's wrong since we don't have the same touchscreen device.
If you can send us a sample, we will try to fix the issue and return it soon.

Re: Problem with USB Audio Adapter

Posted: Wed Mar 07, 2018 5:23 pm
by cioralut
Many thanks.
We send you a display as soon as possible...

Re: Problem with USB Audio Adapter

Posted: Wed Mar 07, 2018 5:28 pm
by odroid
Once you are ready to ship, send me a PM to get out shipping information.