![]() |
Re: [Announce] USB hostmode beta release
Quote:
Quote:
/Estel |
Re: [Announce] USB hostmode beta release
For audio output from N900 is NOT host mode needed. Instead g_nokia or g_file_storage, you can load g_audio module. It is USB audio gadget, which do what you want (it acts as usb sound card). You also need to configure pulseaudio for that support and compile kernel with g_audio module...
|
Re: [Announce] USB hostmode beta release
Quote:
I would be very interested in this, too, especially for usb audio recording, as I have a small mixing console which behaves like a standard usb audio device. This, together with audacity from easy debian, could turn the n900 in a nice portable digital harddisk recorder, which would be pretty cool :) I have tried in the past a bit with the snd-usb-audio module, but without success. Anyone could give some hints? After modprobe snd-usb-audio, should it appear automatically in alsa or is there more work to do? |
Re: [Announce] USB hostmode beta release
@Estel : no, not USB networking, rather what you call "client DAC" -- see examples below
@pali : this is astounding. Does it really answer the question in the thread Oblomow pointed to ? Meaning, sending out digital audio signal through N900's USB port to an external device ? Without USB host support ? @Oblomow : yes, that is the idea, although my use case is a little different. My idea would be to re-purpose my N900 as an "audiophile-grade" portable music player. I would use its internal 32GB (+SD card) for MP3/FLAC storage, its CPU/touchscreen for the UI (probably Rockbox), but not its audio system (internal DAC and amplifier). The challenge is to get the decoded digital audio stream out through the USB port, and feed that to a portable DAC+amp combo such as one of these : http://www.fiio.com.cn/product/index...&MenuID=020301 http://www.fiio.com.cn/product/index...&MenuID=020301 http://www.ibasso.com/en/products/show.asp?ID=73 (there are many more :-) These gizmos behave like external USB sound cards, so I'm pretty sure USB Host is needed. On a PC with Windows or Ubuntu, you just plug them in and the sound comes out... |
Re: [Announce] USB hostmode beta release
I was experimenting today a little bit and got one step further...
I was connecting the usb mixer (yamaha mw10c) to the n900 (with kp49), enabled host mode via h-e-n and entered "sudo modprobe snd-usb-audio" in a shell. Afterwards I started Audacity through Easy Debian's LXDE. Then in Edit->Preferences->Devices usb audio devices show up. The good news: recording seems to work, at least sometimes with sluggish performance, but I got something that sounds quite ok after exporting to a wave file and playing in another program. Which leads to the bad news: until now every attempt to play via usb leads to a frozen screen, beeping noise (like some binary garbarge) playing through the usb audio device and after some seconds a reboot. I haven't spent much time with this upto now, so there might just be something wrong with sample rate or format or whatever. Also Audacity is really slow when playing back through the default (n900) device, with lots of hiccups. But I will keep on trying, maybe I'll find some setting that actually works. BTW, thanks to the authors of kernel-power and h-e-n for their great work! |
Re: [Announce] USB hostmode beta release
Ok, got replay running. Little howto (for kp49):
Packages installed: alsa-utils,mplayer (all on maemo, not Easy Debian). Tested with Yamaha MW10c USB mixer. first, connect device (standard usb audio device), start h-e-n, enable fullspeed, Vbus boost on, enumerate. Then, start an x-term and load the kernel module (probably not necessary, seems to be loaded by default): Code:
sudo modprobe snd-usb-audio Code:
cat /proc/asound/cards Code:
mplayer FILE.mp3 -ao alsa:device=hw=1.0 recording with arecord 44.1khz 16-bit stereo wav: Code:
arecord --device=hw:default,DEV=0 -f cd -t wav FILE.wav I got sometimes some overruns with arecord, maybe one can change the buffer size or something similar. Hope to get a workaround... apart from that it's nearly perfect. Next step would be to reroute the standard output to the USB if someone's interested - should be possible with pulse-audio somehow, but I have no idea about that :) Oh - and anyone's got an idea for a lightweight multi-track recorder?:D |
Re: [Announce] USB hostmode beta release
W-O-W !
Oblomow, this is just incredible. I've been asking about this here and there for weeks, and suddenly here you come and it just works ! :-) Now I'm going to have to reflash my N900 and see if I can reproduce all this with my DAC... Quote:
I hope someone can chime in on how to do this... Many thanks for sharing your results ! |
Re: [Announce] USB hostmode beta release
Quote:
EDIT : never mind, I tried with apt-get, and it seems I already have the latest version, although it doesn't show up in HAM... |
Re: [Announce] USB hostmode beta release
All right, status report :
To my great surprise, it worked perfectly at first try :-) Thanks again Oblomow for the detailed instructions ! After installing kp49 and h-e-n, I connected the N900's usb output to my DAC's input. After the three-step h-e-n setup the DAC's LED turned to green, and cat /proc/asound/cards showed a detailed description of it. Then the magic command (mplayer FILE.mp3 -ao alsa:device=hw=1.0) played everything through the DAC, yay ! :-) So now we have a definite proof of concept that it is doable. What's left is about usability on a day-to-day, on-the-go basis : * a script that automates h-e-n speed/VBus/enumerate * redirection of the standard sound output to USB so that any music player can be used * buy a new battery, because h-e-n seems to suck down fast, although the DAC has its own power :-) Getting really close now, thanks to you ! |
Re: [Announce] USB hostmode beta release
Quote:
Quote:
|
All times are GMT. The time now is 12:19. |
vBulletin® Version 3.8.8