Audio

Plugging in devices such as LAN adapters, Wi-Fi cards, printers, etc. to Arch Linux ARM.

Audio

Postby ygator » Mon Aug 16, 2010 6:23 pm

Has anyone gotten audio playback working on the Dockstar. I've tried 4 different USB devices which were all recognized, but the playback is lousy (sounds scratchy). On the devices that support a mic I tested recording with arecord and that seems to work fine. Of course I had to play the files on a computer to tell.

I do see " endpoint lacks sample rate attribute bit, cannot set." in dmesg from the audio devices.

I have tried cmus, mpg123, and aplay. I've tried both mp3 and wav files.

Is there anything else I can try to get this to work?
Is the dockstar capable of doing the playback?

Thanks
YGator
ygator
 
Posts: 94
Joined: Tue Aug 10, 2010 9:37 pm

Re: Audio

Postby bzboi » Tue Aug 17, 2010 6:07 pm

http://www.youtube.com/watch?v=O7mt5SM6cLM

This guy seems to have done it with FreeBSD, but no mention of what hardware he used. Looks like some kind of USB soundcard to regular speakers.
bzboi
 
Posts: 55
Joined: Sun Jul 11, 2010 5:39 pm

Re: Audio

Postby ygator » Tue Aug 17, 2010 8:05 pm

Thanks for the reply.
It is good news to know that at least the hardware is capable.
I'll have to look into using a different kernel.
ygator
 
Posts: 94
Joined: Tue Aug 10, 2010 9:37 pm

Re: Audio

Postby LaTristesse » Thu Aug 19, 2010 3:52 pm

I would like to connect a Audio 8DJ USB-Interface to my Arch Linux ARM install, but for now I have no clue how to get the linux-driver at http://alsa-project.org/main/index.php/ ... -usb-caiaq working for the PlugBox-OS.

It would be the first time that I've to build a kernel.
LaTristesse
 
Posts: 35
Joined: Mon Jul 26, 2010 8:57 pm

Re: Audio

Postby ygator » Thu Aug 19, 2010 6:16 pm

ygator
 
Posts: 94
Joined: Tue Aug 10, 2010 9:37 pm

Re: Audio

Postby crimsonredmk » Fri Aug 20, 2010 5:47 am

I'd refrain from using that Pogoplug module guide though...it's for 2.6.22.18 which a few users are running. Just use make menuconfig and enable stuff.
Remember, Arch Linux ARM is completely donation-supported, and is totally awesome.
crimsonredmk
Site Admin
 
Posts: 433
Joined: Wed Dec 30, 2009 5:17 pm
Location: #archlinux-arm on irc.freenode.net

Re: Audio

Postby ygator » Fri Sep 03, 2010 12:32 am

I now tried this on a debian install.
When I play an mp3 with mpg123 and you can hear the music pretty well, but there is static or clicking through out.
I tried mp3blaster, but it says "Failed to open sound device".

For the heck of it when I was playing back with mpg123 I started mp3blaster in another terminal.
What do you know, the song started playing almost perfect. If I exit out of mp3blaster it goes back
to the static. This is baffling.

**** UPDATE ****
It has nothing to do with mp3blaster. I rebooted into Arch Linux ARM install and when I just play an mp3 it is really bad. Worse then on debian. However, if I do something in another terminal the sound gets better. Not sure if it is CPU related or USB related or a combination of both.
ygator
 
Posts: 94
Joined: Tue Aug 10, 2010 9:37 pm

Re: Audio

Postby ygator » Fri Sep 03, 2010 3:48 am

Does anyone know if this problem would go away with HPET enabled? When running along with powertop, that is powertop's recommendation.
ygator
 
Posts: 94
Joined: Tue Aug 10, 2010 9:37 pm

Re: Audio

Postby tno » Sat Sep 04, 2010 3:42 pm

I had the same problem, found a ridiculously easy solution:

I created a file /etc/asound.conf
with the following content:
Code: Select all
pcm.!default {
        type hw
        card 0
}

ctl.!default {
        type hw           
        card 0
}

I have absolutely no clue why this works. But the parameters in
/proc/asound/card0/pcm0p/sub0/hw_params

changed from
Code: Select all
access: MMAP_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 48000 (48000/1)
period_size: 1024
buffer_size: 16384

to
Code: Select all
access: RW_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 44100 (44100/1)
period_size: 5513
buffer_size: 22050
Last edited by tno on Sat Sep 04, 2010 5:04 pm, edited 1 time in total.
tno
 
Posts: 5
Joined: Thu Aug 26, 2010 1:02 pm

Re: Audio

Postby ygator » Sat Sep 04, 2010 4:52 pm

@tno

Thank you. That works great.
I had tried below. On debian it made the playback better (not perfect) and on pluglinux it seem to do nothing.
I also found the cat command to get settings it was using. Looks like the difference is the access.
MMAP_INTERLEAVED -> RW_INTERLEAVED

pcm.!default {
type plug
slave.pcm {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
rate 44100
}
}
}
ygator
 
Posts: 94
Joined: Tue Aug 10, 2010 9:37 pm

Next

Return to Hardware

Who is online

Users browsing this forum: No registered users and 1 guest