C1 - Sound Problem Line in with USB Audio Adapter

Moderators: odroid, mdrjr

C1 - Sound Problem Line in with USB Audio Adapter

Unread postby ralfz » Thu Jul 09, 2015 8:50 pm

Hello,

I tested some applications on the C1 Android 4.4.2. (Skype, PJSUA)
Both had the same behavior. In the audio input stream seems to be something wrong.
From time to time the sound stutters or burst. It seems to me that a internal stream buffer
will overflow.

This behavior don't occur an the U3.

Well, there is difference between the S805 and the Exynos5. That let me think
that the Audio HAL on the C1 has some problems.

Has anybody noticed something similar?

Which information would be useful to help me to figure out what exactly went wrong?
Is there a way to loop back the usb/pcm audio input stream directly to the usb/pcm output?

Best regards
ralfz
 
Posts: 65
Joined: Wed Mar 11, 2015 12:45 am
languages_spoken: english

Re: C1 - Sound Problem Line in with USB Audio Adapter

Unread postby odroid » Fri Jul 10, 2015 10:20 am

Do you connect any webcam which has a built-in microphone?
User avatar
odroid
Site Admin
 
Posts: 27355
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: C1 - Sound Problem Line in with USB Audio Adapter

Unread postby ralfz » Fri Jul 10, 2015 4:46 pm

Hi,

I did it over the Audio-Adapter only.
ralfz
 
Posts: 65
Joined: Wed Mar 11, 2015 12:45 am
languages_spoken: english

Re: C1 - Sound Problem Line in with USB Audio Adapter

Unread postby odroid » Fri Jul 10, 2015 5:26 pm

We will try to reproduce the issue early next week and get back to you.
We will use a voice recording app and try to record the audio input stream for about 1 hour.
User avatar
odroid
Site Admin
 
Posts: 27355
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: C1 - Sound Problem Line in with USB Audio Adapter

Unread postby ralfz » Fri Jul 10, 2015 11:51 pm

Hi,

just recording doesn't seem to produce this. I tried it many times with the internal recorder app.
The app doesn't use an input and output stream at the same time - this may be a difference.
Could you use PJSIPSimple ore something similar?

Best regards ant thanx for the support!
ralfz
 
Posts: 65
Joined: Wed Mar 11, 2015 12:45 am
languages_spoken: english

Re: C1 - Sound Problem Line in with USB Audio Adapter

Unread postby odroid » Sat Jul 11, 2015 11:22 am

I see.
Is there any prebuilt APK to test the bi-directional audio functionality?
User avatar
odroid
Site Admin
 
Posts: 27355
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: C1 - Sound Problem Line in with USB Audio Adapter

Unread postby ralfz » Mon Jul 13, 2015 4:20 pm

Hi,

how could I send you such a application? A Skype app would run out of the box.

regards
ralfz
 
Posts: 65
Joined: Wed Mar 11, 2015 12:45 am
languages_spoken: english

Re: C1 - Sound Problem Line in with USB Audio Adapter

Unread postby ralfz » Fri Jul 24, 2015 5:18 pm

Hi,

to clarify the problem I've an sound example with such a burst.


Best regards
Attachments
burst_example.zip
raw pcm data
(287.62 KiB) Downloaded 81 times
ralfz
 
Posts: 65
Joined: Wed Mar 11, 2015 12:45 am
languages_spoken: english

Re: C1 - Sound Problem Line in with USB Audio Adapter

Unread postby wintersdark » Wed Aug 12, 2015 9:48 am

I've had this problem as well with my c1 and the USB audio adapter. I haven't tried in Linux, but with Android (official build and pocket rocket here) I have extremely poor sound quality when attempting to use the microphone in normal use (such as Google voice typing). The same USB adapter and microphone work perfectly on my desktop.

Also, sound quality output from the USB adapter (not vianhdmi, which is fine) is very crackly under Android as well, and seems to be heavily impacted by processor load. That is, if the c1 is doing *anything* at all in the background, sound quality drops dramatically.
wintersdark
 
Posts: 24
Joined: Mon Jan 12, 2015 3:13 am
languages_spoken: english
ODROIDs: C1

Re: C1 - Sound Problem Line in with USB Audio Adapter

Unread postby ralfz » Tue Oct 13, 2015 4:22 pm

Hi wintersdark,

do you have a solution for this problem?

best regards.
ralfz
 
Posts: 65
Joined: Wed Mar 11, 2015 12:45 am
languages_spoken: english

Re: C1 - Sound Problem Line in with USB Audio Adapter

Unread postby ralfz » Fri Nov 06, 2015 12:43 am

Hi,

now I can provide some more information to debug the Line-In sound problem.

I installed Skype on C1 (com.skype.raider-4.9.0.45564.apk) with Android C1 4.4.2 (from Hardkernel).
(Skype is free to use and can be downloaded on the internet, but I may not provide you the app)

After that I made some calls with a specified test file. (TestSound_441_16b_stereo.wav http://residium.com/1201/TestSound_441_16b_stereo.wav)

I dumped the data in HAL (usb_audio_hw.c) to HAL_IN.pcm (http://residium.com/1201/HAL_IN.pcm) and in audioFlinger to 20151021161726_0.wav (http://residium.com/1201/20151021161726_0.wav)

Both signals are similar. In both files you can hear some stutter and a kind of overruns.

Only the input path is affected on those effects. And on every new call, on every reboot the system behavior differs! The range is from good input sound quality to absolutly nasty sound.
The output path works well.

As I told Skype and other chat-apps have this kind of problems!

I still have no idea how to figure out whats going wrong or to find the bad part in the chain. (Androids USB_AUDIO, the AMLOGIC HAL implementation, USB HOST issues, ...)
It would be nice to get the C1 working with headset (usb audio) and some communication apps like skype, CSipSimple and so on.

Regards
ralfz
 
Posts: 65
Joined: Wed Mar 11, 2015 12:45 am
languages_spoken: english

Re: C1 - Sound Problem Line in with USB Audio Adapter

Unread postby ralfz » Wed Nov 11, 2015 1:28 am

Hi,

after further reading I figured out, that the internal recorder-app uses the "MediaRecorder-API". Voice over ip application will use the "AudioRecord-API". That seems to be the big difference.

Does anybody succsessfully use the AudioRecord-API? Is there a Application to test it on the Odroid C1?

Regards, ralf
ralfz
 
Posts: 65
Joined: Wed Mar 11, 2015 12:45 am
languages_spoken: english

Re: C1 - Sound Problem Line in with USB Audio Adapter

Unread postby ralfz » Mon Nov 16, 2015 9:36 pm

Hi there,

I made a further experiment. Therfore I connected a usb microphone (on the top of a usb webcam) to the odroid.
When I made a call with PJSUA-APP or Skype the AudioRecord-Api is used and works well. No shutter noi bad noises.

But there is no output stream in this configuration. My read is that the C1 have some problems with openeing an input and output stream at the same time.

Could you odroid guys have a look at this problem and veryfi it?

With this problem the C1 couldn't be used to use some sound streaming apps!


Best regards
ralfz
 
Posts: 65
Joined: Wed Mar 11, 2015 12:45 am
languages_spoken: english

Re: C1 - Sound Problem Line in with USB Audio Adapter

Unread postby ralfz » Mon Nov 30, 2015 11:00 pm

Hi,

I placed a debug-message within the pcm_read method everytime an underrun occurs. After that I noticed in the C1 kernel logs that the
the message is alwas printed next to to the following:

Code: Select all
ERROR::dwc_otg_hcd_urb_dequeue:624: DWC OTG HCD URB Dequeue.urb_qtd=  (null),qh=  (null)


Also I noticed that the bursts/shutters are corresponding to this...

It would be nice to get some support on this issue.


Best regards
ralfz
 
Posts: 65
Joined: Wed Mar 11, 2015 12:45 am
languages_spoken: english

Re: C1 - Sound Problem Line in with USB Audio Adapter

Unread postby cioralut » Mon Jan 18, 2016 11:30 pm

Hi,
I'm Daniele.
I have the same problems with SIP application (for example CSipSimple, Sipdroid, Linphone ...)
I am using USB Audio Adapter with ODROID C1+ (Kernel version 3.10.33, Android version 4.4.2)

I hope that this problem can be resolved.

Best regards

Daniele
cioralut
 
Posts: 74
Joined: Sat Oct 03, 2015 10:54 pm
Location: Italy
languages_spoken: english
ODROIDs: ODROID C1+ and ODROID C2

Re: C1 - Sound Problem Line in with USB Audio Adapter

Unread postby cioralut » Mon Jan 18, 2016 11:44 pm

Hi Ralfz.
Have you had any response from the Odroid technical support?
Are you able to resolve the problem?

Best regards
Daniele
cioralut
 
Posts: 74
Joined: Sat Oct 03, 2015 10:54 pm
Location: Italy
languages_spoken: english
ODROIDs: ODROID C1+ and ODROID C2

Re: C1 - Sound Problem Line in with USB Audio Adapter

Unread postby stmicro » Tue Jan 19, 2016 10:43 am

Google hangout worked reasonably with their webcam microphone. It should be a usb sound class compatible one.
I could have a video chat with my friends on C1.
stmicro
 
Posts: 221
Joined: Tue Apr 28, 2015 4:23 pm
Location: shenzhen china
languages_spoken: english, chinese
ODROIDs: Many Odroids and Rpis.

Re: C1 - Sound Problem Line in with USB Audio Adapter

Unread postby cioralut » Mon Feb 29, 2016 5:33 pm

Hi Ralfz.
Thanks for your message.
Sorry but I 'm not authorised to use odroid forum compose message, for this reason I reply you by forum.
I will try ODROID-C2 and let you know if it works.
I am disappointed and sad that you (and I) did not receive any reply by hardkernel technical support...

Best regards

Daniele
cioralut
 
Posts: 74
Joined: Sat Oct 03, 2015 10:54 pm
Location: Italy
languages_spoken: english
ODROIDs: ODROID C1+ and ODROID C2

Re: C1 - Sound Problem Line in with USB Audio Adapter

Unread postby rzr » Sun Apr 01, 2018 7:17 am

I dont know how related is this, but after using GNU/Linux libreelec for a couple a month
I faced annoying white noise bursts with 2 different USB adapters...

how would you debug this ?
rzr
 
Posts: 5
Joined: Fri Jun 13, 2014 9:40 pm
languages_spoken: english
ODROIDs: u1


Return to Android

Who is online

Users browsing this forum: No registered users and 1 guest