Open-source USB interface: Audio Widget - Page 182 - diyAudio
Go Back   Home > Forums > Source & Line > Digital Source

Digital Source Digital Players and Recorders: CD , SACD , Tape, Memory Card, etc.

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 16th September 2012, 01:02 PM   #1811
palmito is offline palmito  United States
diyAudio Member
 
palmito's Avatar
 
Join Date: Dec 2010
Location: Florida,US
Default AB1.1 in raspberry pi anyone?

Is anyone running the AB1.1 with the raspberry pi?

I just set up mine this weekend, Arch linux/MPD (mpd from the archlinux packages). I did the fuse by-pass on the raspberry board to increase the current supplied on the usb connector. I'm running the AB1.1 on usb power for this test. My raspberry is on a wallwart that supplies 2.2A to the board.

My mpd audio setup is minimal:

audio_output {
type "alsa"
name "audowidget_dac"
device "hw:0,0"
}

When I play music only one speaker sounds loud, the other one sounds intermittently and with very low volume when it sounds. The sound is distorted and at times it sounds "slow" (slow like the sound of an record being played on a turntable whose platter is rotating at less than 33rpm)!

EDIT!!!!
I wrote this originally:

Top shows the mpd process only taking up about 6% of cpu time and little memory, so it's doesn't seem like the raspberry pi is running out of steam. I have the minimum number of daemons running.

But looking at the cpu load for a while when playing music shows the cpu usage averaging 85%!!! I'll shut off whatever else I can and see if it improves...


It's not the AB1.1because it plays fine using my "regular" pc with puplinux and mpd. I have not flashed the latest firmware to the AB1.1 because it runs perfectly with my "regular" pc.

Just thought I would ask see if anyone else had tried the raspberry pi with the AB1.1.

Thanks.

Last edited by palmito; 16th September 2012 at 01:12 PM.
  Reply With Quote
Old 16th September 2012, 02:04 PM   #1812
diyAudio Member
 
Join Date: Apr 2011
Quote:
Originally Posted by palmito View Post
Is anyone running the AB1.1 with the raspberry pi?

audio_output {
type "alsa"
name "audowidget_dac"
device "hw:0,0"
}

.
Try this:

audio_output {
type "alsa"
name "audowidget_dac"
device "hw:0,0"
auto_resample "no"
}

It will not only improve the SQ, but also reduce the cpu load.

Alex
  Reply With Quote
Old 16th September 2012, 03:02 PM   #1813
diyAudio Member
 
linuxworks's Avatar
 
Join Date: Jul 2008
Location: santa clara, CA
I am able to get older (cmedia 44/48k dongle) usb audio working with the Pi but not the AW. I have the latest updates for the Pi installed but not getting drop-free playback at all. on my x86 boxes, its fine, but not on the Pi.

I don't have auto_resample set, but even 44.1 material has major drop-outs on the Pi.

I assumed all this was due to the very buggy usb stack on the Pi, not the AW. they admit that there's tons of debug work left before the usb stack on the Pi gets production quality. so, I would not tear your hair out with Pi usb issues. give them time to stabilize their own software (and even hardware, as there are power supply issues with the Pi, too).
__________________
My Photostream:http://www.flickr.com/photos/linux-works/
  Reply With Quote
Old 16th September 2012, 05:03 PM   #1814
palmito is offline palmito  United States
diyAudio Member
 
palmito's Avatar
 
Join Date: Dec 2010
Location: Florida,US
I did added the no resampling and it improved the cpu usage and sound quality.

I was also doing the test reading the music files from the local pi sd card. I tried it with a nfs shared music directory and it improved some more.

It's no longer "slow" and it's mostly clean, but there are still artifacts in the sound.

I'll play a bit more with it for my amusement, but I think Linuxworks is correct, I'll wait for revisions for the pi before attempting again (or a new board release).

Linuxworks, is your AW externally powered, or you are also tyring to run it off the usb power like me?

Thanks for the help guys.
  Reply With Quote
Old 16th September 2012, 05:12 PM   #1815
diyAudio Member
 
linuxworks's Avatar
 
Join Date: Jul 2008
Location: santa clara, CA
I give it power from a usb hub that uses an lm7805 style reg and good size trafo. I'm pretty sure the power is clean.

another indication things are still not ready for prime time: audio devices don't appear to be seen when thru a hub (maybe a 2.0 hub). when plugged in direct, they are seen. a long time ago, I remember linux having issues with being behind hubs. I think its solved now but it was around for a while. it seems the Pi has the problem, too, and so I connect the audio dongle directly to one usb port and I power everything thru the 2nd port, basically from the powered hub. music is via smb or nfs mount.
__________________
My Photostream:http://www.flickr.com/photos/linux-works/
  Reply With Quote
Old 16th September 2012, 05:21 PM   #1816
dhbiker is offline dhbiker  Slovenia
diyAudio Member
 
Join Date: Feb 2012
Location: Maribor/Ormož, Slovenia
try : device "hw:0"

i use it with my mpd and it should bypass all mixers
  Reply With Quote
Old 16th September 2012, 06:38 PM   #1817
diyAudio Member
 
linuxworks's Avatar
 
Join Date: Jul 2008
Location: santa clara, CA
wouldn't the pi, who has onboard 'non disabled' sound be hw:0 and then you'd want any usb sound device to be hw:1 ?

I use:

device "hw:1,0"

since onboard sound almost always wants to grab the 0-slot.
__________________
My Photostream:http://www.flickr.com/photos/linux-works/
  Reply With Quote
Old 16th September 2012, 08:24 PM   #1818
cviller is offline cviller  Denmark
diyAudio Member
 
cviller's Avatar
 
Join Date: Dec 2005
Location: Copenhagen
Blog Entries: 2
Quote:
Originally Posted by linuxworks View Post
I am able to get older (cmedia 44/48k dongle) usb audio working with the Pi but not the AW. I have the latest updates for the Pi installed but not getting drop-free playback at all. on my x86 boxes, its fine, but not on the Pi.

I don't have auto_resample set, but even 44.1 material has major drop-outs on the Pi.

I assumed all this was due to the very buggy usb stack on the Pi, not the AW. they admit that there's tons of debug work left before the usb stack on the Pi gets production quality. so, I would not tear your hair out with Pi usb issues. give them time to stabilize their own software (and even hardware, as there are power supply issues with the Pi, too).
I believe most distros have alsa configured to upsample to 48k per default, so you may be wasting clock cycles on your pi.

BTW, what mode are you guys running the AW in? I have recently played around with my AB1.1 in UAC2 and the latest "stable" release was not good for high res files, but the latest one called experimental works like charm.

Last edited by cviller; 16th September 2012 at 08:28 PM.
  Reply With Quote
Old 16th September 2012, 08:49 PM   #1819
diyAudio Member
 
linuxworks's Avatar
 
Join Date: Jul 2008
Location: santa clara, CA
windows used to force a default resample. that's no longer the case.

it was never the case with linux or alsa. the only time a resample was requested was when the output samplerate != input samplerate.

when I mpd over alsa and leave all options as defaults, I never get my 44.1 stuff upsampled to 48k. I have leds that show the actual output and I'd notice this
__________________
My Photostream:http://www.flickr.com/photos/linux-works/
  Reply With Quote
Old 17th September 2012, 01:02 AM   #1820
ramallo is offline ramallo  Europe
diyAudio Member
 
ramallo's Avatar
 
Join Date: Nov 2004
Location: Madrid
Send a message via Skype™ to ramallo
Quote:
Originally Posted by palmito View Post
Is anyone running the AB1.1 with the raspberry pi?

I just set up mine this weekend, Arch linux/MPD (mpd from the archlinux packages). I did the fuse by-pass on the raspberry board to increase the current supplied on the usb connector. I'm running the AB1.1 on usb power for this test. My raspberry is on a wallwart that supplies 2.2A to the board.

My mpd audio setup is minimal:

audio_output {
type "alsa"
name "audowidget_dac"
device "hw:0,0"
}

When I play music only one speaker sounds loud, the other one sounds intermittently and with very low volume when it sounds. The sound is distorted and at times it sounds "slow" (slow like the sound of an record being played on a turntable whose platter is rotating at less than 33rpm)!

EDIT!!!!
I wrote this originally:

Top shows the mpd process only taking up about 6% of cpu time and little memory, so it's doesn't seem like the raspberry pi is running out of steam. I have the minimum number of daemons running.

But looking at the cpu load for a while when playing music shows the cpu usage averaging 85%!!! I'll shut off whatever else I can and see if it improves...


It's not the AB1.1because it plays fine using my "regular" pc with puplinux and mpd. I have not flashed the latest firmware to the AB1.1 because it runs perfectly with my "regular" pc.

Just thought I would ask see if anyone else had tried the raspberry pi with the AB1.1.

Thanks.
I tried the AB1.1 with the Raspberry Pi with raspbmc Raspbmc
with the pulseaudio server [Alpha] usb sound cards support for raspbmc

No much luck, very high processor comsumtion 90%, random glitches
__________________
Happiness is a warm soldering iron
  Reply With Quote

Reply


Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Async 192Khz USB - the SDR-Widget collaborative project SunRa PC Based 5 26th April 2011 06:38 PM
usb audio interface david12 Equipment & Tools 14 10th October 2010 02:58 AM
Cheap Audio Interface (USB?) to PC agm2003 Instruments and Amps 11 16th September 2007 07:48 AM
Open call for suggestions on Open Source DIY Audio Design gfergy Everything Else 1 15th April 2007 07:33 AM
USB Interface Perfect?- Computer Audio fmak Digital Source 3 4th December 2004 10:24 PM


New To Site? Need Help?

All times are GMT. The time now is 01:53 PM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Copyright 1999-2014 diyAudio

Content Relevant URLs by vBSEO 3.3.2