Reply
Thread Tools
Posts: 18 | Thanked: 37 times | Joined on Jan 2012
#1021
Originally Posted by Estel View Post
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?
 

The Following 3 Users Say Thank You to kirillkk For This Useful Post:
Posts: 64 | Thanked: 124 times | Joined on Apr 2011 @ Germany
#1022
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.

Last edited by Oblomow; 03-21-2012 at 11:49 AM.
 

The Following 2 Users Say Thank You to Oblomow For This Useful Post:
fpp's Avatar
Posts: 2,853 | Thanked: 952 times | Joined on Nov 2005
#1023
Thanks kirillkk for the binary & instructions !

I will try this out and see how it goes...
__________________
maemo blog
 
joerg_rw's Avatar
Community Council | Posts: 1,614 | Thanked: 8,794 times | Joined on Mar 2010 @ SOL 3
#1024
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
__________________
Maemo Community Council member [2012-10, 2013-05, 2013-11 terms]
Hildon Foundation Council inaugural member.

EX Hildon Foundation approved
Maemo Administration Coordinator (stepped down due to bullying 2014-04-05)
aka "techstaff" - the guys who keep your infra running - Devotion to Duty http://xkcd.com/705/

IRC(freenode): DocScrutinizer*
First USB hostmode fanatic, father of H-E-N
 

The Following 2 Users Say Thank You to joerg_rw For This Useful Post:
fpp's Avatar
Posts: 2,853 | Thanked: 952 times | Joined on Nov 2005
#1025
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
__________________
maemo blog
 
joerg_rw's Avatar
Community Council | Posts: 1,614 | Thanked: 8,794 times | Joined on Mar 2010 @ SOL 3
#1026
Originally Posted by fpp View Post
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
__________________
Maemo Community Council member [2012-10, 2013-05, 2013-11 terms]
Hildon Foundation Council inaugural member.

EX Hildon Foundation approved
Maemo Administration Coordinator (stepped down due to bullying 2014-04-05)
aka "techstaff" - the guys who keep your infra running - Devotion to Duty http://xkcd.com/705/

IRC(freenode): DocScrutinizer*
First USB hostmode fanatic, father of H-E-N

Last edited by joerg_rw; 03-26-2012 at 01:37 AM.
 

The Following 5 Users Say Thank You to joerg_rw For This Useful Post:
Posts: 18 | Thanked: 37 times | Joined on Jan 2012
#1027
Originally Posted by Oblomow View Post
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
 

The Following 2 Users Say Thank You to kirillkk For This Useful Post:
Estel's Avatar
Posts: 4,596 | Thanked: 7,503 times | Joined on Mar 2011
#1028
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.
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!

Last edited by Estel; 03-26-2012 at 06:06 PM.
 

The Following 2 Users Say Thank You to Estel For This Useful Post:
fpp's Avatar
Posts: 2,853 | Thanked: 952 times | Joined on Nov 2005
#1029
Yes we will, I'm working on the new topic, and will link here :-)
__________________
maemo blog
 
joerg_rw's Avatar
Community Council | Posts: 1,614 | Thanked: 8,794 times | Joined on Mar 2010 @ SOL 3
#1030
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 :-(
__________________
Maemo Community Council member [2012-10, 2013-05, 2013-11 terms]
Hildon Foundation Council inaugural member.

EX Hildon Foundation approved
Maemo Administration Coordinator (stepped down due to bullying 2014-04-05)
aka "techstaff" - the guys who keep your infra running - Devotion to Duty http://xkcd.com/705/

IRC(freenode): DocScrutinizer*
First USB hostmode fanatic, father of H-E-N
 

The Following 2 Users Say Thank You to joerg_rw For This Useful Post:
Reply

Tags
bada rox, detection, h-e-n, hostmode, speed, usb host

Thread Tools

 
Forum Jump


All times are GMT -4. The time now is 02:24 PM.