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: 97
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: 97
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: 97
Joined: Tue Aug 10, 2010 9:37 pm

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: 97
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: 97
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:
$this->bbcode_second_pass_code('', '
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
$this->bbcode_second_pass_code('', 'access: MMAP_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 48000 (48000/1)
period_size: 1024
buffer_size: 16384')
to
$this->bbcode_second_pass_code('', '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: 97
Joined: Tue Aug 10, 2010 9:37 pm

Re: Audio

Postby aerotoad » Mon Sep 20, 2010 7:41 pm

$this->bbcode_second_pass_quote('tno', 'I') had the same problem, found a ridiculously easy solution:

I created a file /etc/asound.conf
with the following content:
$this->bbcode_second_pass_code('', '
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
$this->bbcode_second_pass_code('', 'access: MMAP_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 48000 (48000/1)
period_size: 1024
buffer_size: 16384')
to
$this->bbcode_second_pass_code('', 'access: RW_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 44100 (44100/1)
period_size: 5513
buffer_size: 22050')


Thanks y'all--this worked for me, too. My usb sound card is: ID 0c45:17cf Microdia, and I'm running Debian Lenny. After this fix, mplayer internet radio streams are coming through fine.
aerotoad
 
Posts: 11
Joined: Fri Jul 23, 2010 3:39 am

Next

Return to Hardware

Who is online

Users browsing this forum: No registered users and 4 guests