Re: [SlimDevices: Touch] Instructions for connecting USB DAC to Touch

2011-03-20 Thread johann

JohnSwenson;619335 Wrote: 
> When trying to use aplay to play music you have to make sure that
> squeezeplay is not connecting to it. If squeezeplay is connected then
> you will get the "cannot set hw params" message.
> 

If squeezeplay is using a device, you will get an error.
However, you will not get the "cannot set hw params" message.
Instead the error you get is 

"aplay: main:590: audio open error: Device or resource busy"


Cheers
Johan


-- 
johann

johann's Profile: http://forums.slimdevices.com/member.php?userid=10177
View this thread: http://forums.slimdevices.com/showthread.php?t=82110

___
Touch mailing list
Touch@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/touch


Re: [SlimDevices: Touch] Newbie seeking expert advice

2011-03-17 Thread johann

Mike K;618719 Wrote: 
> So, am I hosed?
> 
> The odd thing is some of the artwork shows up. I was doing a random
> play last night and saw that awful grey CD image for most of the night
> and then a song from Hairspray came on and the cover art was there.
> 
> Anyone know why? Does iTunes just like musicals?  :D

LOL :D

I think you can change tha artwork manually in iTunes, will check when
I get home from work this evening.


-- 
johann

johann's Profile: http://forums.slimdevices.com/member.php?userid=10177
View this thread: http://forums.slimdevices.com/showthread.php?t=86389

___
Touch mailing list
Touch@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/touch


Re: [SlimDevices: Touch] Newbie seeking expert advice

2011-03-17 Thread johann

garym;618711 Wrote: 
> Are you sure this will work if the OP is using "itunes integration" for
> his library? Itunes does NOT pick up artwork from within album or
> artist folders. It has its own artwork database. Given this, I'd be
> surprised if this would work.

Ooops, missed that iTunes bit, my apologies. :o


-- 
johann

johann's Profile: http://forums.slimdevices.com/member.php?userid=10177
View this thread: http://forums.slimdevices.com/showthread.php?t=86389

___
Touch mailing list
Touch@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/touch


Re: [SlimDevices: Touch] Newbie seeking expert advice

2011-03-17 Thread johann

Not that I can think if any reason why you would like to see that
picture, but that aside, yes that should work. ;)


-- 
johann

johann's Profile: http://forums.slimdevices.com/member.php?userid=10177
View this thread: http://forums.slimdevices.com/showthread.php?t=86389

___
Touch mailing list
Touch@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/touch


Re: [SlimDevices: Touch] Instructions for connecting USB DAC to Touch

2011-02-23 Thread johann

Maybe using --buffer-time=5 would help gertting rid of the clicks.

Cheers
Johan


-- 
johann

johann's Profile: http://forums.slimdevices.com/member.php?userid=10177
View this thread: http://forums.slimdevices.com/showthread.php?t=82110

___
Touch mailing list
Touch@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/touch


Re: [SlimDevices: Touch] Instructions for connecting USB DAC to Touch

2011-02-23 Thread johann

The 24 bit formats are:

S24_LE
S24_BE
U24_LE
U24_BE
S24_3LE
S24_3BE
U24_3LE
U24_3BE

Cheers
JOhan


-- 
johann

johann's Profile: http://forums.slimdevices.com/member.php?userid=10177
View this thread: http://forums.slimdevices.com/showthread.php?t=82110

___
Touch mailing list
Touch@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/touch


Re: [SlimDevices: Touch] Instructions for connecting USB DAC to Touch

2011-02-23 Thread johann

indypants;613381 Wrote: 
> I have copied some WAV files to an SD card and tried the above aplay -D
> hw:1,0 command. I can get the files to play with both S24_LE and
> S24_3LE, but I still get the clicks. When I try S32_LE, I get an error
> message "wrong extended format". My DAC is the Audiolab 8200, which is
> 24bit.
> 
> This is with the buffer still set to 5 as per the previous
> suggestions, and this asound.conf
> 
> # cat /etc/asound.conf
> pcm.usbdac {
> type hw;
> card 1;
> }
> pcm.plugusb {
> type plug;
> slave.pcm "usbdac";
> }
> ctl.plugusb {
> type hw;
> card 1;
> }
> pcm.!default fab4
> 
> 
> :(
> 
> Are there any other formats to be tried?

You can use something like below to try all formats

for i in  S8 U8 S16_LE S16_BE U16_LE U16_BE S24_LE S24_BE U24_LE U24_BE
S32_LE S32_BE U32_LE U32_BE FLOAT_LE FLOAT_BE FLOAT64_LE FLOAT64_BE
IEC95
8_SUBFRAME_LE IEC958_SUBFRAME_BE MU_LAW A_LAW IMA_ADPCM MPEG GSM
SPECIAL S24_3LE S24_3BE U24_3LE U24_3BE S20_3LE S20_3BE U20_3LE U20_3BE
S18_3LE S1
8_3BE U18_3LE; do aplay -D hw:1,0 -f $i -c2 -r44100 /stop.wav;  done

Remember to replace /stop.wav with your filename.
You may also need to work with the values for -c and -r.

Cheers
JO


-- 
johann

johann's Profile: http://forums.slimdevices.com/member.php?userid=10177
View this thread: http://forums.slimdevices.com/showthread.php?t=82110

___
Touch mailing list
Touch@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/touch


Re: [SlimDevices: Touch] Instructions for connecting USB DAC to Touch

2011-02-23 Thread johann

So I tried the plughw:1,0 it is gives the same as using the plugusb.

# aplay -D plughw:1,0   /stop.wav
Playing WAVE '/stop.wav' : Signed 16 bit Little Endian, Rate 44100 Hz,
Stereo
aplay: set_params:1022: Unable to install hw params:
ACCESS:  RW_INTERLEAVED
FORMAT:  S16_LE
SUBFORMAT:  STD
SAMPLE_BITS: 16
FRAME_BITS: 32
CHANNELS: 2
RATE: 44100
PERIOD_TIME: (125011 125012)
PERIOD_SIZE: 5513
PERIOD_BYTES: 22052
PERIODS: (3 4)
BUFFER_TIME: 50
BUFFER_SIZE: 22050
BUFFER_BYTES: 88200
TICK_TIME: 0

Cheers
Johan


-- 
johann

johann's Profile: http://forums.slimdevices.com/member.php?userid=10177
View this thread: http://forums.slimdevices.com/showthread.php?t=82110

___
Touch mailing list
Touch@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/touch


Re: [SlimDevices: Touch] Instructions for connecting USB DAC to Touch

2011-02-23 Thread johann

JohnSwenson;613210 Wrote: 
> This is why I want you to try plug first. It obviously does not like 16
> bit interface, its probably 24 bit. The plug interface SHOULD take care
> of that, use -D plughw:1,0 instead of hw:1,0.
> 
> If that works (it should) then we can try different formats from aplay
> using the hw:1,0 instead of the plug.
> 
> To try different formats do this:
> 
> aplay -D hw:1,0 -f S24_LE -c2 -r44100 name.wav
> 
> There are several different formats to try:
> 
> S24_LE
> S24_3LE
> S32_LE
> 
> Hopefully one of these will work. 
> 
> John S.

Sorry, missed the plughw bit.
Will try straight away.

Cheers
Johan


-- 
johann

johann's Profile: http://forums.slimdevices.com/member.php?userid=10177
View this thread: http://forums.slimdevices.com/showthread.php?t=82110

___
Touch mailing list
Touch@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/touch


Re: [SlimDevices: Touch] Instructions for connecting USB DAC to Touch

2011-02-22 Thread johann

Nope, nothing in /var/var/messages abd the same error while trying to
play.

# aplay -D hw:3,0 /stop.wav
Playing WAVE '/stop.wav' : Signed 16 bit Little Endian, Rate 44100 Hz,
Stereo
aplay: set_params:961: Sample format non available
#


-- 
johann

johann's Profile: http://forums.slimdevices.com/member.php?userid=10177
View this thread: http://forums.slimdevices.com/showthread.php?t=82110

___
Touch mailing list
Touch@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/touch


Re: [SlimDevices: Touch] Instructions for connecting USB DAC to Touch

2011-02-22 Thread johann

John,

I already tried that. 

johann;612915 Wrote: 
> Think I should be able to use aplay to test the interface itselt  but I
> get the following:
> 
> aplay -D hw:1,0
> /usr/share/jive/applets/SetupSoundEffects/sounds/docking.wav
> Playing WAVE
> '/usr/share/jive/applets/SetupSoundEffects/sounds/docking.wav' : Signed
> 16 bit Little Endian, Rate 44100 Hz, Mono
> aplay: set_params:961: Sample format non available
> [/QUOTE|
> 
> Just to be certaoin it wasn´t a problem with the file, I converted a
> FLAC version of Pink Floyd´s Stop to WAV and uploaded it to the touch,
> that played fine throuugh SPDIF as well as throough USB on my Raptor
> but gives the same error as previous when using hw:1,0 while the rDAC
> is attached.
> 
> I´ll try again and will see if anything shows up in /var/log/messages.
> 
> Cheers
> Johan


-- 
johann

johann's Profile: http://forums.slimdevices.com/member.php?userid=10177
View this thread: http://forums.slimdevices.com/showthread.php?t=82110

___
Touch mailing list
Touch@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/touch


Re: [SlimDevices: Touch] Instructions for connecting USB DAC to Touch

2011-02-22 Thread johann

Using card 1 didn´t make any difference for the rDac not did it wotk
with using HW and changung buffers to 5 and sample size to 32.

Using my Emmeline "The Predator" Portable USB DAC/Amp, I could both
play thorugh the plugusb and hw:1,1 from aplay and the SB would boot
and work using an asound.conf with plugusb. 

When I try aplay plugusb with the rDac, I get the following on the
screen:

aplay -D plugusb /11\ Stop.wav
Playing WAVE '/11 Stop.wav' : Signed 16 bit Little Endian, Rate 44100
Hz, Stereo
aplay: set_params:1022: Unable to install hw params:
ACCESS:  RW_INTERLEAVED
FORMAT:  S16_LE
SUBFORMAT:  STD
SAMPLE_BITS: 16
FRAME_BITS: 32
CHANNELS: 2
RATE: 44100
PERIOD_TIME: (125011 125012)
PERIOD_SIZE: 5513
PERIOD_BYTES: 22052
PERIODS: (3 4)
BUFFER_TIME: 50
BUFFER_SIZE: 22050
BUFFER_BYTES: 88200
TICK_TIME: 0

and in /var/log/messages the following show up:

Feb 22 12:28:12 kernel: 2:1:1: cannot get freq at ep 0x1
Feb 22 12:28:12 kernel: Division by zero in kernel.
Feb 22 12:28:12 kernel: []
Feb 22 12:28:12 kernel: (dump_stack+0x0/0x14)
Feb 22 12:28:12 kernel: from []
Feb 22 12:28:12 kernel: (__div0+0x18/0x20)
Feb 22 12:28:12 squeezeplay: audio_thread_execute:802 xrun
(snd_pcm_wait)
Feb 22 12:28:12 squeezeplay: audio_thread_execute:756 underrun!!! (at
least -38472.807 ms long)
Feb 22 12:28:12 kernel: [] (__div0+0x0/0x20) from
[] (Ldiv0+0x8/0x10)
Feb 22 12:28:12 kernel: [] (iso_stream_find+0x0/0x32c) from
[] (ehci_urb_enqueue+0x7e0/0xcf8)
Feb 22 12:28:12 kernel: [] (ehci_urb_enqueue+0x0/0xcf8) from
[] (usb_hcd_submit_urb+0x788/0x8b0)
Feb 22 12:28:12 kernel: [] (usb_hcd_submit_urb+0x0/0x8b0)
from [] (usb_submit_urb+0x22c/0x248)
Feb 22 12:28:12 kernel: [] (usb_submit_urb+0x0/0x248) from
[] (start_urbs+0x14c/0x1c0)
Feb 22 12:28:12 kernel:  r8:c7e7dc80 r7:c7e7dcb0 r6:c7e7dc10
r5: r4:c7e7dc10
Feb 22 12:28:12 kernel: r3:8280
Feb 22 12:28:12 kernel: [] (start_urbs+0x0/0x1c0) from
[] (snd_usb_pcm_prepare+0xa4/0xb0)
Feb 22 12:28:12 kernel: [] (snd_usb_pcm_prepare+0x0/0xb0)
from [] (snd_pcm_do_prepare+0x1c/0x34)
Feb 22 12:28:12 kernel:  r6:c03fcc78 r5:0002 r4:c7e7ba00
r3:c03fd48c
Feb 22 12:28:12 kernel: [] (snd_pcm_do_prepare+0x0/0x34) from
[] (snd_pcm_action_single+0x40/0x7c)
Feb 22 12:28:12 kernel:  r4:c7e7ba00 r3:0001
Feb 22 12:28:12 kernel: [] (snd_pcm_action_single+0x0/0x7c)
from [] (snd_pcm_action_nonatomic+0x58/0x70)
Feb 22 12:28:12 kernel:  r7:0002 r6:c03fcc78 r5:0002
r4:c7e7ba00
Feb 22 12:28:12 kernel: []
(snd_pcm_action_nonatomic+0x0/0x70) from []
(snd_pcm_common_ioctl1+0x720/0x101c)
Feb 22 12:28:12 kernel:  r6:c7dde21c r5:c7e7ba00 r4:
r3:
Feb 22 12:28:12 kernel: [] (snd_pcm_common_ioctl1+0x0/0x101c)
from [] (snd_pcm_playback_ioctl1+0x41c/0x444)
Feb 22 12:28:12 kernel: []
(snd_pcm_playback_ioctl1+0x0/0x444) from []
(snd_pcm_playback_ioctl+0x38/0x3c)
Feb 22 12:28:12 kernel:  r8:c002ec84 r7:4140 r6:000244a8
r5:c024dfa0 r4:c54f61a0
Feb 22 12:28:12 kernel: [] (snd_pcm_playback_ioctl+0x0/0x3c)
from [] (vfs_ioctl+0x34/0x94)
Feb 22 12:28:12 kernel: [] (vfs_ioctl+0x0/0x94) from
[] (do_vfs_ioctl+0x2c8/0x2e8)
Feb 22 12:28:12 kernel:  r7:0006 r6:c713ae30 r5:000244a8
r4:c54f61a0
Feb 22 12:28:12 kernel: [] (do_vfs_ioctl+0x0/0x2e8) from
[] (sys_ioctl+0x40/0x64)
Feb 22 12:28:12 kernel:  r6:4140 r5:000244a8 r4:c54f61a0
Feb 22 12:28:12 kernel: [] (sys_ioctl+0x0/0x64) from
[] (ret_fast_syscall+0x0/0x2c)
Feb 22 12:28:12 kernel:  r7:0036 r6:0001b1e8 r5:0002e8f0
r4:00024100
Feb 22 12:28:12 kernel: cannot submit syncpipe for urb 2, error -27:
internal error


Looks like missing support in the kernel but I´m by far not a Linux
expert so I don´t know how the interpret that.

Cheers
Johan


-- 
johann

johann's Profile: http://forums.slimdevices.com/member.php?userid=10177
View this thread: http://forums.slimdevices.com/showthread.php?t=82110

___
Touch mailing list
Touch@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/touch


Re: [SlimDevices: Touch] Instructions for connecting USB DAC to Touch

2011-02-21 Thread johann

JohnSwenson;612898 Wrote: 
> Try using card 1, frequently there are problems using the names. 
> 
> T file you have is using the plug interface, this should work no matter
> what, but at least with several async interfaces it causes ticks and
> pops. At least with the HRT music streamers I had to switch over to the
> HW interface which gets rid of the ticks and pops, BUT you have to feed
> it in exactly the format it accepts, otherwise it doesn't boot.
> 
> A primary issue is the bits per sample, in the poast several back I
> show how to change that to 32. Try 16, 24 and 32. Unfortunately there
> are several different 24 bit formats, I haven't figured out yet how to
> get squeezeplay to change between formats. I THINK that might be some
> of the problems.
> 
> John S.

Thanks John!

Tried that and get the same error, in boots ao I can login . but does
not start up everything and the displays show the "Free your music"
screen.

Think I should be able to use aplay to test the interface itselt  but I
get the following:

aplay -D hw:1,0
/usr/share/jive/applets/SetupSoundEffects/sounds/docking.wav
Playing WAVE
'/usr/share/jive/applets/SetupSoundEffects/sounds/docking.wav' : Signed
16 bit Little Endian, Rate 44100 Hz, Mono
aplay: set_params:961: Sample format non available


Cheers
Johan

Cheers
Johan


-- 
johann

johann's Profile: http://forums.slimdevices.com/member.php?userid=10177
View this thread: http://forums.slimdevices.com/showthread.php?t=82110

___
Touch mailing list
Touch@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/touch


Re: [SlimDevices: Touch] Instructions for connecting USB DAC to Touch

2011-02-20 Thread johann

Is that much better than the SPDIF of your computer or SPDIF SB Touch?


-- 
johann

johann's Profile: http://forums.slimdevices.com/member.php?userid=10177
View this thread: http://forums.slimdevices.com/showthread.php?t=82110

___
Touch mailing list
Touch@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/touch


Re: [SlimDevices: Touch] Instructions for connecting USB DAC to Touch

2011-02-20 Thread johann

The contents of my /etc/asound.conf is:

# more /etc/asound.conf
pcm.usbdac {
type hw;
card DAC;
}
pcm.plugusb {
type plug;
slave.pcm "usbdac";
}
ctl.plugusb {
type hw;
card DAC;
}

pcm.!default plugusb

Cheers
Johan


-- 
johann

johann's Profile: http://forums.slimdevices.com/member.php?userid=10177
View this thread: http://forums.slimdevices.com/showthread.php?t=82110

___
Touch mailing list
Touch@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/touch


Re: [SlimDevices: Touch] Instructions for connecting USB DAC to Touch

2011-02-20 Thread johann

PietB;612407 Wrote: 
> Tried today with mij new Arcam rDac as described, but didn't work (till
> now)

Same for me, the SB does not finish the upstart.
I can login to the SB but it never starts properly.

aplay -l gives:
card 0: TXRX [MXC SPDIF TX/RX], device 0: MXC_SPDIF [MXC_SPDIF]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 1: DAC [ARCAM DAC], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: fab4 [fab4], device 0: fab4-ak4420 []
Subdevices: 1/1
Subdevice #0: subdevice #0

Looking at the device in /proc/asound the DAC/stream 0 shows:

ARCAM ARCAM DAC at usb-fsl-ehci.0-1, full speed : USB Audio

Playback:
Status: Stop
Interface 1
Altset 1
Format: 0x20
Channels: 2
Endpoint: 1 OUT (ASYNC)
Rates: 32000, 44100, 48000, 88200, 96000

Looks like it can not start properly.

Cheers
Johan


-- 
johann

johann's Profile: http://forums.slimdevices.com/member.php?userid=10177
View this thread: http://forums.slimdevices.com/showthread.php?t=82110

___
Touch mailing list
Touch@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/touch