Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,813,418 Members 45,958 Now Online
XDA Developers Android and Mobile Development Forum

[WIP] USB Host support (working)

Tip us?
 
zholy
Old
(Last edited by zholy; 22nd April 2012 at 07:51 PM.)
#191  
Member
Thanks Meter 10
Posts: 45
Join Date: Sep 2011
Hi Renate...

Do you know why, when I run your audio apk - it tells me BEEPING HAS FAILED ???

I did everything according to your instructions:
- your USB apk finds the adapter (it looks like in your picture under 4)
- asound.conf is in system/etc (I've created a txt file, later renamed the end to conf)

Any ideas/suggestions ??? Thank you in advance.

P.S. : I'm using ES File Explorer to play the mp3 (will check other programs as well)
 
Renate NST
Old
(Last edited by Renate NST; 23rd April 2012 at 01:39 PM.)
#192  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 805
Posts: 1,993
Join Date: Feb 2012
Location: Boston
"Beeping has failed" is when an error is thrown when using ToneGenerator.
It's probably related to not finding any hardware.

Step 1: Does the View USB show the device and have little black dots on the end that indicate that drivers are loaded?

Setp 2: What does this say:
Code:
#alsa_aplay -L
default:CARD=Dummy
    Dummy, Dummy PCM
    Default Audio Device
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=default
    C-Media USB Audio Device   , USB Audio
    Default Audio Device
I tried again to play an audio file using alsa_aplay, it used to work.
I can't seen to get it to work now, despite normal file manager playing of MP3s working fine.
I'll have to look into that one too.


Oops, I was playing a blank file.

Step 3: The first time that you run AudioCtl after plugging in your USB audio adapter do you get this in logcat?

Code:
D/Temblast( 1321): Setting speakerphone on
I/DEBUG   (  980): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG   (  980): Build fingerprint: 'generic/zoom2/zoom2/zoom2:2.1/ERD79/1.1.2:user/test-keys'
I/DEBUG   (  980): pid: 983, tid: 983  >>> /system/bin/mediaserver <<<
I/DEBUG   (  980): signal 11 (SIGSEGV), fault addr fffffff4
I/DEBUG   (  980):  r0 fffffff4  r1 bec319b8  r2 00000000  r3 000207c8
I/DEBUG   (  980):  r4 000207c0  r5 00000000  r6 00000000  r7 00020588
I/DEBUG   (  980):  r8 00000000  r9 00000000  10 00000000  fp 00000000
I/DEBUG   (  980):  ip 00000008  sp bec319c8  lr a9d1c56b  pc ab884c9e  cpsr 80000030
That is, does it kill mediaserver?
 
zholy
Old
#193  
Member
Thanks Meter 10
Posts: 45
Join Date: Sep 2011
OK...the first problem are the dots. I don't have them.

What does that mean / how can I fix that ?

Sent from my MB526 using xda premium
 
Renate NST
Old
#194  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 805
Posts: 1,993
Join Date: Feb 2012
Location: Boston
Quote:
Originally Posted by zholy View Post
OK...the first problem are the dots. I don't have them.
Well, that is your problem.

Can you see your USB audio adapter similar to the bottom of the middle image in:
http://forum.xda-developers.com/show...&postcount=183

There should be 3 or possibly 4 branches, control, streaming, streaming.
You won't have HID unless there are some volume or mute buttons on the thing.
Compare it to a keyboard or something that does have black dots.

No black dots means that no compatible driver was found.

Tell me the VID/PID or post a screenshot.

(If you see anything besides the first line of "MUSB HDRC Host Driver" then you have host mode with an OTG cable working.)
 
zholy
Old
#195  
Member
Thanks Meter 10
Posts: 45
Join Date: Sep 2011
Here is the picture of my nook once I plug everything in. With a memory stick I do have the black dot (although I don't know, where to look for it when it comes to the explorer ... I'll search through the forum for this)

Thanks for any suggestions.

Sent from my MB526 using xda premium
Attached Thumbnails
Click image for larger version

Name:	uploadfromtaptalk1335182788772.jpg
Views:	267
Size:	131.1 KB
ID:	1020350  
 
zholy
Old
#196  
Member
Thanks Meter 10
Posts: 45
Join Date: Sep 2011
Quote:
Originally Posted by Renate NST View Post
Automount? No.

Code:
mount -o rw,remount rootfs /
mkdir /thumb
mount -t vfat /dev/block/uba1 /thumb
I can easily get a thumb drive to work on a hub, I've not gotten mine to work plugged directly into the Nook.
I've managed to find my THUMB/Memory Stick connected directly to the nook. I've used your code and it worked on the first hit (I've used Gscript)
 
Renate NST
Old
#197  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 805
Posts: 1,993
Join Date: Feb 2012
Location: Boston
You do have mali100's uImage as found in this post:

http://forum.xda-developers.com/show...&postcount=158

???

Code:
# cat /proc/version
Linux version 2.6.29-omap1 (mali@mali-nb) (gcc version 4.4.0 (GCC) ) #4 PREEMPT Sun Apr 8 23:00:44 CEST 2012
The Following User Says Thank You to Renate NST For This Useful Post: [ Click to Expand ]
 
zholy
Old
#198  
Member
Thanks Meter 10
Posts: 45
Join Date: Sep 2011
Quote:
Originally Posted by Renate NST View Post
You do have mali100's uImage ???
That solved the problem ... all running now. I must have missed this uImage info - sorryyyyy.

Thank you for that...

So I can put in this post a confirmation, that the cheapest 7.1 USB Audio on ebay works !!!
 
zholy
Old
#199  
Member
Thanks Meter 10
Posts: 45
Join Date: Sep 2011
Gentlemen ... with all your projects and mind being focus on other bits and pieces - do you still work on this one? To make it close to 100% working? ( like volume, mic, ...)

Just asking ...
 
Renate NST
Old
#200  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 805
Posts: 1,993
Join Date: Feb 2012
Location: Boston
Quote:
Originally Posted by zholy View Post
Gentlemen...
and ladies...

We're still working on recording, Skype and getting it to work without kicking mediaserver.

Volume works fine, you just have to use a USB keyboard or an USB audio adapter with HID volume buttons.
Don't you get a popup graphic of a speaker with dots under it?

The Following User Says Thank You to Renate NST For This Useful Post: [ Click to Expand ]
Tags
usb host, usbhost
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes