View Single Post
Posts: 701 | Thanked: 585 times | Joined on Sep 2010 @ London, England
#79
I ordered myself a cheap USB soundcard just for testing, so I gave this a try
Originally Posted by kirillkk View Post
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
I've tried this and it works for me without reboot. I have disabled the dsme lifeguard by creating a /etc/no_lg_reboots file, you may need to reboot after creating this file, my N900 helpfully crashed (something to do with hostmode and the USB soundcard, but before I tried this) so I didn't get to test whether the creation of that file works without a reboot. I did it a little differently though, I first connected the USB soundcard and tested it, then I executed step 1, then I started music playback (with openmediaplayer) then I executed step 2.

EDIT:My N900 crashed after I stopped playback for a while, then tried to restart it. Got to go out now, will do more testing later.

Last edited by retsaw; 2012-04-17 at 14:17.
 

The Following 4 Users Say Thank You to retsaw For This Useful Post: