I think you are right re the powered hub. Your code got the WiFi dongle to work but I get garbled sound. With ethernet cable, it is fine. Will try a powered hub next for WiFi.fifthQ wrote: Hi Stephen,
It sounds like you may have found the source of your problem (underpowered PSU). Once you have a good PSU, try again and see how you go. Also, I'm not sure if you're aware, but most usb wifi adapters won't work properly when plugged directly into the Raspi's USB ports, they need to be connected to a powered hub. There are some that people have reported to work without a hub, but in my experience with the Asus USB-N10, it needs one.
I've just installed the latest Squeezeplug, rpi-update and connected to the analog socket, sound can barely be heard when playing mp3. You say its the firmware, but if I install omxplayer and play the same mp3, sound blasts out at full volume? Surely this proves the formware/Hardware is functioning correctly? It seems to me its Squeezebox with the sound problem?truehl wrote:Update about the sound problems:
First of all: There was and is still a massive problem with sound output! This has nothing to do with SqueezePlug or SqueezeSlave! Every project dealing with sound output has the similar problems. Yesterday there was only noise from the analog output. I tried today and the result is different from yesterday! If you make an rpi-update you will get a new firmware as you can see. The new firmware carries the todays date. The kernel hat not changed since yesterday. So we can be sure that we have a firmware and not a kernel problem, so far so good.Code: Select all
root@squeezeplugrpi:~# /opt/vc/bin/vcgencmd version Jun 28 2012 18:11:29 Copyright (c) 2012 Broadcom version 322659 (release)
The result now is: Analog sound output works again, but in a bad quality i think. Digital sound output works fine and stable. So we have to wait for a firmware fixing this issueCode: Select all
root@squeezeplugrpi:~# uname -a Linux squeezeplugrpi 3.1.9+ #138 PREEMPT Tue Jun 26 16:27:52 BST 2012 armv6l GNU/Linux
Working fine for me (Listening to Friday's "World on 3" as I type this...). Latest Alpha 5.0 build as a standalone Squeezeslave (with an rpi-update) is sounding perfect over USB through a Topping TP30 USB DAC / amp.castalla wrote:On another forum somebody has said that Triode's BBC iPlayer plugin doesn't work with squeezeplug RPi - is this true?
Code: Select all
pcm.!default {
type hw
rate 44100
card 0
}
ctl.!default {
type hw
card 0
}
Hmm - I never tried iPlayer on the original image as I couldn't get it to provide decent sound over analogue or USB - the latest Alpha 5.0 image seems to have solved this, at least for USB.castalla wrote:Something strange then - I enabled iPlayer using the original squeezeplug image. When I try any iPlayer live stream I get 'Problem - cannot open file'.
On demand just returns 403 Forbidden.
Any ideas?
I just followed the instructions for the Alpha on the SqueezePlug downloads page (needed to add ".sh" to the script invocations..). SSH daemon starts fine - have never connected my Pi to a monitor! Neither Squeezeslave or LMS starts on 1st boot, but the shell scripts configure for subsequent starts.castalla wrote:....unless you can advise me that using the alpha is simply a case of letting it start and being able to ssh in to make adjustments. I assume it doesn't autostart LMS?
I have to do the same - I use a Creative Labs Sound Blaster USB stick so I don't think it's your DAC.florca wrote:
When first installed there was a constant background clicking, but the following very simple /etc/asound.conf with a "rate 44100" statement seems to have cured the problem - not sure if this is specific to this USB DAC, but sound is now fine, with no clicks or pops at all.
A very happy camper! Thanks Thomas for a great piece of work...Code: Select all
pcm.!default { type hw rate 44100 card 0 } ctl.!default { type hw card 0 }
Phil
I think you need to configure and route sound through the ALSA "mixer" as a default device. Here is the original "/etc/asound.conf" from an O2 Joggler which allowed multiple sources to share the sound output - don't think it's a good idea to just use this as is, but probably a fair basis for some experimentation (aided by some more research into ALSA parameters)?andy100 wrote: I can't find a way to have squeezeslave and shairport running at the same time - both work, but whatever starts first has a hold on the output device - any help here would be gratefully received:)
Code: Select all
pcm.my_card {
type hw
card 0
# mmap_emulation true
}
pcm.dmixed {
type dmix
ipc_key 1024
# ipc_key_add_uid false # let multiple users share
# ipc_perm 0666 # IPC permissions for multi user sharing (octal, default 0600)
slave {
pcm "my_card"
rate 48000
period_size 512
}
}
pcm.dsnooped {
type dsnoop
ipc_key 2048
slave {
pcm "my_card"
# rate 48000
# period_size 128
}
}
pcm.asymed {
type asym
playback.pcm "dmixed"
#capture.pcm "dsnooped"
}
pcm.pasymed {
type plug
slave.pcm "asymed"
}
pcm.dsp0 {
type plug
slave.pcm "asymed"
}
pcm.!default {
type plug
slave.pcm "asymed"
}
Cheers florca, I've been playing with this for a while now and seem to be going round in circles. I get the idea but my execution may be off. Set up a pcm.mixer output device and then force the two apps (squeezeslave and shairport) to use the mixer, but again I can only have one or the other. The code you posted is different to what I've had but still no better. Thanks for your inputflorca wrote:[
I think you need to configure and route sound through the ALSA "mixer" as a default device. Here is the original "/etc/asound.conf" from an O2 Joggler which allowed multiple sources to share the sound output - don't think it's a good idea to just use this as is, but probably a fair basis for some experimentation (aided by some more research into ALSA parameters)?
Code: Select all
pcm.my_card { type hw card 0 # mmap_emulation true } pcm.dmixed { type dmix ipc_key 1024 # ipc_key_add_uid false # let multiple users share # ipc_perm 0666 # IPC permissions for multi user sharing (octal, default 0600) slave { pcm "my_card" rate 48000 period_size 512 } } pcm.dsnooped { type dsnoop ipc_key 2048 slave { pcm "my_card" # rate 48000 # period_size 128 } } pcm.asymed { type asym playback.pcm "dmixed" #capture.pcm "dsnooped" } pcm.pasymed { type plug slave.pcm "asymed" } pcm.dsp0 { type plug slave.pcm "asymed" } pcm.!default { type plug slave.pcm "asymed" }
I've got that one. It works well.castalla wrote:Similar here: http://www.amazon.co.uk/HDMI-Audio-Vide ... 39&sr=8-11