maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   [Announce] USB hostmode beta release (https://talk.maemo.org/showthread.php?t=65232)

kirillkk 2012-03-21 13:36

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by Estel (Post 1182324)
Thanks for sharing. OTOH, do we have any clue why redirecting *whole* audio to USB via pulseaudio doesn't work? AFAIK, it's point of pulseaudio as a whole...

/Estel

I got to the point where pulse configuration looked sane. As I understood, it did show the alsa usb device, but any attempt to switch audio output (move sink input?) and then playing something resulted in crash of pulse daemon.
So I gave up. Also for my application, I don't want system sounds
to come through usb device. One more thing. I don't know how pulseaudio would handle removal of usb device. I'm afraid, it won't recover.
By the way, do we have pulseaudio source for n900?

Oblomow 2012-03-21 13:54

Re: [Announce] USB hostmode beta release
 
Would you mind sharing your experiments with PulseAudio, in case you still know what you did then? Even if it wasn't successful, it may help.

PS: Thanks a lot for moc!

PPS: If I remember correctly, even in /proc/asound/devices the usb device still showed up after removing it... so I guess you're right about pulse audio not likely to recover.

fpp 2012-03-21 18:35

Re: [Announce] USB hostmode beta release
 
Thanks kirillkk for the binary & instructions !

I will try this out and see how it goes...

joerg_rw 2012-03-25 10:37

Re: [Announce] USB hostmode beta release
 
thanks for the highly intriguing and helpful contributions :-)
Now please consider moving the subthread over to "problems", it seems getting a bit OT here.

Thanks
jOERG

fpp 2012-03-25 21:17

Re: [Announce] USB hostmode beta release
 
Sorry joerg, you already asked once and we didn't comply :-)

Actually I guess this topic doesn't even belong in the "problems" thread either, as the h-e-n part is mostly solved now. We are more into redirecting pulseaudio and/or client software and such...

I think I'll create a new topic dedicated to this particular use case (the "what" and "why" rather than "how"), to end the OT here, and maybe find other interested users who are not following this one.

I have just one last question about h-e-n, maybe covered elsewhere :

I understand h-e-n is a GUI for a bunch of scripts which handle the actual USB host stuff. Are these documented somewhere ?
I would like to know if it is possible to automate the select-speed/apply-power/enumerate steps in a script before launching other software...

Thanks,
fp

joerg_rw 2012-03-25 21:56

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by fpp (Post 1184026)
I understand h-e-n is a GUI for a bunch of scripts which handle the actual USB host stuff. Are these documented somewhere ?
I would like to know if it is possible to automate the select-speed/apply-power/enumerate steps in a script before launching other software...

Thanks,
fp

np about OT, and you're welcome to post a link to this other thread here. :-)

for the question about scripting hostmode, yes, blueled's scripts a few pages back are *exactly* about that.

Also source of H-E-N GUI is rather trivial to read and understand what's going on. The actual core code are like 20 lines that do the whole 'magic'.

/j

kirillkk 2012-03-26 07:52

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by Oblomow (Post 1182361)
Would you mind sharing your experiments with PulseAudio, in case you still know what you did then? Even if it wasn't successful, it may help.

I agree that it's a good idea to create a "usb audio" thread.
But the question was given in this thread so the answer follows.
I repeated the experiment with pulseaudio.
1.
Code:

pactl load-module module-alsa-sink-old sink_name=sink.hw2 device=hw:1  rate=48000 fragment_size=1920 fragments=4 alt_fragment_size=960 alt_fragments=2
2. pactl move-sink-input 2 7 (2 is nokia-music, 7 is newly registered sink)
3. playing music using maemo media player - nothing happens
no sound and it doesn't advance
4. pactl move-sink-input 2 2 (returned to normal setting) -
playback works
5. connected usb device
6. verified it works in moc
7. pactl move-sink-input 2 7
8. attempt to play music
9. device reboots

USB device is m-audio mobile pre. pulse configuration can be verified with pactl list. pactl is in pulseaudio-utils package

Estel 2012-03-26 12:36

Re: [Announce] USB hostmode beta release
 
Thanks for sharing, but You could just post this whole reply in new thread, and drop a link here ;) The way it is instead, we will never end off-topic.

fpp 2012-03-26 18:16

Re: [Announce] USB hostmode beta release
 
Yes we will, I'm working on the new topic, and will link here :-)

joerg_rw 2012-03-26 18:55

Re: [Announce] USB hostmode beta release
 
and I will ask mods if they consider this attitude of "I don't care, the thread already *is* OT so I answer OT here" similarly offensive :-(


All times are GMT. The time now is 04:53.

vBulletin® Version 3.8.8