I have followed these instructions to the letter (core only, adapter is plugged into the core) http://wiki.linuxmce.org/index.php/Squeezeslave_on_the_core
The only "extra" thing that I did (in that it's not spelt out to you to do it) was to put the MAC address in under the device in web admin on the A/V Equipment page. I assumed this was necessary.
Everything seemed to work perfectly; the adapter is showing under "lsusb", squeezeslave is definitely running. "squeezeslave -L" showed the adapter (but now that I have restarted, it is no longer there, is that normal?)
Anyway I get this message in the orbiter when I try to play a track...
"I cannot play this media. Perhaps there is not a valid device in this entertainment area capable of playing it."
And this was in /var/log/squeezeslave.log
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
Expression 'snd_pcm_hw_params_set_buffer_size_near( pcm, hwParams, &lowLatency )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 415
Expression 'snd_pcm_hw_params_set_buffer_size_near( pcm, hwParams, &lowLatency )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 415
Retry in 5 seconds.
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
Expression 'snd_pcm_hw_params_set_buffer_size_near( pcm, hwParams, &lowLatency )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 415
Expression 'snd_pcm_hw_params_set_buffer_size_near( pcm, hwParams, &lowLatency )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 415
Any ideas please?
Cheers,
Matt.
Quote from: purps on June 02, 2012, 06:42:03 PM
I have followed these instructions to the letter (core only, adapter is plugged into the core) http://wiki.linuxmce.org/index.php/Squeezeslave_on_the_core
The only "extra" thing that I did (in that it's not spelt out to you to do it) was to put the MAC address in under the device in web admin on the A/V Equipment page. I assumed this was necessary.
Everything seemed to work perfectly; the adapter is showing under "lsusb", squeezeslave is definitely running. "squeezeslave -L" showed the adapter (but now that I have restarted, it is no longer there, is that normal?)
Anyway I get this message in the orbiter when I try to play a track...
"I cannot play this media. Perhaps there is not a valid device in this entertainment area capable of playing it."
And this was in /var/log/squeezeslave.log
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
Expression 'snd_pcm_hw_params_set_buffer_size_near( pcm, hwParams, &lowLatency )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 415
Expression 'snd_pcm_hw_params_set_buffer_size_near( pcm, hwParams, &lowLatency )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 415
Retry in 5 seconds.
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
Expression 'snd_pcm_hw_params_set_buffer_size_near( pcm, hwParams, &lowLatency )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 415
Expression 'snd_pcm_hw_params_set_buffer_size_near( pcm, hwParams, &lowLatency )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 415
Any ideas please?
Cheers,
Matt.
Your usb audio card had probably come up on reboot with a different device id. Check that .
Andrew
when you added the squeezeslave you put then on room that no have a MD ?
this message occurs on my instalation when i put squeezeslave on same room that a MD .
Carlos
Quote from: cfernandes on June 08, 2012, 09:59:25 PM
when you added the squeezeslave you put then on room that no have a MD ?
this message occurs on my instalation when i put squeezeslave on same room that a MD .
Carlos
Actually I agree with you... re reading the error message i think that's likely
All the best
Andrew
Thanks for the replies chaps.
That is exactly what I did - added the squeezeslave to a room with no MD. I have clearly misunderstood how this works. I created a new room specifically for the squeezeslave, in fact.
Am I supposed to create an MD first? If so, how do I do that without MD hardware?
Or am I supposed to be adding it to an existing MD i.e. the core MD in this case? If so, how do I tell LMCE to play audio to the squeezeslave, and not the MD (using the orbiter)?
Cheers,
Matt.
Quote from: purps on June 13, 2012, 11:36:58 AM
Thanks for the replies chaps.
That is exactly what I did - added the squeezeslave to a room with no MD. I have clearly misunderstood how this works. I created a new room specifically for the squeezeslave, in fact.
Am I supposed to create an MD first? If so, how do I do that without MD hardware?
Or am I supposed to be adding it to an existing MD i.e. the core MD in this case? If so, how do I tell LMCE to play audio to the squeezeslave, and not the MD (using the orbiter)?
Cheers,
Matt.
The Squeezeslave itself and the sound card its associated with can be running/attached to either your Core or an MD. But the Squeezeslave and its associated Squeezebox player must be either in its own 'Room' or in a separate 'Entertainment Area' (you can't have more than one media playback device in a Room or Entertainment area)
All the best
Andrew
Hmmm I don't see what I am doing wrong.
I created a new room called "Guitar Amp". My USB sound card is physically on the core, and the core is in the room "Cupboard". There is no MD in "Guitar Amp".
In web admin, under A/V devices, on the Squeezeslave, I have chosen "Cupboard" for the room, and then in advanced selected "Guitar Amp" under Entertain Areas. The setting does not seem to stick. The Entertain Areas just goes back to the default of "Cupboard" being ticked.
Is this what I am supposed to be doing? Under the Rooms settings, I see there is an option to tick "manually configure EA", but when I tick it, nothing happens! And if I refresh, the tick dissapears.
Cheers,
Matt.
Matt.
on squeezeslave you need to chose "Guitar Amp" for the room and not "cupboard".
Carlos,
But the room "Guitar Amp" does not have an MD!
I thought your first post says to not put it in a room without an MD?
The USB sound card is physically installed on the core/hybrid in "Cupboard".
Cheers,
Matt.
sorry for my English,
I must have expressed myself bad.
the squezeslave must be in a room without MD.
Haha tranquilo.
Well that is exactly how I had it set up in the first place. I created a new room called "Guitar Amp", and assigned the squeezeslave to that. So back to my very first post :-)
Cheers,
Matt.
ok
which the output of
squeezeslave -L
Thanks for sticking with me!
With everything set up, before running squeezeslave, "squeezeslave -L" is as follows...
dcerouter_1023729:~# squeezeslave -L
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
Expression 'snd_pcm_hw_params_set_buffer_size_near( pcm, hwParams, &lowLatency )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 415
Expression 'snd_pcm_hw_params_set_buffer_size_near( pcm, hwParams, &lowLatency )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 415
Output devices:
0: (ALSA) HDA ATI SB: ALC889 Analog (hw:0,0) (11/46)
1: (ALSA) HDA ATI SB: ALC889 Digital (hw:0,1) (11/46)
3: (ALSA) C-Media USB Audio Device : USB Audio (hw:1,0) (11/46)
4: (ALSA) front (11/46)
5: (ALSA) surround40 (11/46)
6: (ALSA) surround41 (11/46)
7: (ALSA) surround50 (11/46)
8: (ALSA) surround51 (11/46)
9: (ALSA) surround71 (11/46)
10: (ALSA) iec958 (11/46)
11: (ALSA) spdif (11/46)
13: (ALSA) asym_analog (42/46)
14: (ALSA) dmix (42/42)
*15: (ALSA) default (42/46)
16: (OSS) /dev/dsp (11/46)
17: (OSS) /dev/dsp1 (11/46)
Then I run "/usr/bin/squeezeslave -o3 -m00:00:00:00:00:01 -r5 -M/var/log/squeezeslave.log" which gives...
dcerouter_1023729:~# /usr/bin/squeezeslave -o3 -m00:00:00:00:00:01 -r5 -M/var/log/squeezeslave.log
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
Expression 'snd_pcm_hw_params_set_buffer_size_near( pcm, hwParams, &lowLatency )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 415
Expression 'snd_pcm_hw_params_set_buffer_size_near( pcm, hwParams, &lowLatency )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 415
And then if I do "squeezeslave -L" again I get...
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
Expression 'snd_pcm_hw_params_set_buffer_size_near( pcm, hwParams, &lowLatency )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 415
Expression 'snd_pcm_hw_params_set_buffer_size_near( pcm, hwParams, &lowLatency )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 415
Output devices:
0: (ALSA) HDA ATI SB: ALC889 Analog (hw:0,0) (11/46)
1: (ALSA) HDA ATI SB: ALC889 Digital (hw:0,1) (11/46)
4: (ALSA) front (11/46)
5: (ALSA) surround40 (11/46)
6: (ALSA) surround41 (11/46)
7: (ALSA) surround50 (11/46)
8: (ALSA) surround51 (11/46)
9: (ALSA) surround71 (11/46)
10: (ALSA) iec958 (11/46)
11: (ALSA) spdif (11/46)
13: (ALSA) asym_analog (42/46)
14: (ALSA) dmix (42/42)
*15: (ALSA) default (42/46)
16: (OSS) /dev/dsp (11/46)
...note the lack of C-Media USB audio device. Is that normal behaviour?
Cheers,
Matt.
It is normal that the output you select will disappear from the -L list. In some cases, it will remove several entries from the list, if the same hardware device is used for several of the listed output devices.
I think the bt_audio_service_open is a bluetooth related error. Are you sure that it actually is relevant in your case?
Setting this up can sometimes be tricky. What I find useful, is to use the squeezeserver web-admin to check if the slave has registered, and try to play something to it from there. This will test the non-LMCE part of the setup. When that works, go on to set up the LMCE part. As others have said, the correct room must be selected for the slave.
br,
sambuca
other question
on aplay -l you can see and play on usb sound card ?
like sambuca said
i found this on ubuntu forum
"Quote:
Originally Posted by froller
Same problem here after upgrade. I turned my bluetooth services back on:
http://ubuntuforums.org/showthread.php?t=1136720
System -> Administration -> Services
and it cleared the problem up. Turn them back on and they return. Config bug with bluetooth?
I am on an aspire 7520 amd64 build in gnome.
THANK YOU SO MUCH! The error is gone.
But, still, when I type "espeak Hello" I hear "Hehl-" and it cuts out before he can finish saying "Hello." It's not quite fixed."
or you can try to remove bluetooth-alsa
with
apt-get purge bluez-alsa
Thanks for the replies guys, sorry for the delay is getting back.
aplay -l gives...
dcerouter_1023729:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: ALC889 Analog [ALC889 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: SB [HDA ATI SB], device 1: ALC889 Digital [ALC889 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: default [C-Media USB Audio Device ], device 0: USB Audio [USB Audio]
Subdevices: 0/1
Subdevice #0: subdevice #0
...which looks fine to me.
I have also removed the bluez-alsa, and when I run the command I now get...
dcerouter_1023729:~# /usr/bin/squeezeslave -o3 -m00:00:00:00:00:01 -r5 -M/var/log/squeezeslave.log
Expression 'snd_pcm_hw_params_set_buffer_size_near( pcm, hwParams, &lowLatency )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 415
Expression 'snd_pcm_hw_params_set_buffer_size_near( pcm, hwParams, &lowLatency )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 415
PortAudio error7: No output devices found.
...which doesn't look good.
Alsa version is 1.0.22 if that gives any clues.
It is also a somewhat old 10.04 installation, never been updated, perhaps I should just try it again when I get round to using a later version.
Cheers,
Matt.
can you play any file from aplay to usb sound card ?
Still no luck, I am not able to play anything from aplay using the USB sound card. It looks fine, but there is just no sound coming out!
dcerouter_1023729:~# aplay /home/public/data/audio/Windows\ Share-Volume_1\ \[63\]/Matt/Loose/Aerosmith_Dude\ Looks\ Like\ A\ Lady.mp3
Playing raw data '/home/public/data/audio/Windows Share-Volume_1 [63]/Matt/Loose/Aerosmith_Dude Looks Like A Lady.mp3' : Unsigned 8 bit, Rate 8000 Hz, Mono
After that I did... (different from "aplay -l" I noticed)
dcerouter_1023729:~# aplay -L null
Discard all samples (playback) or generate zero samples (capture)
front:CARD=SB,DEV=0
HDA ATI SB, ALC889 Analog
Front speakers
surround40:CARD=SB,DEV=0
HDA ATI SB, ALC889 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=SB,DEV=0
HDA ATI SB, ALC889 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=SB,DEV=0
HDA ATI SB, ALC889 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=SB,DEV=0
HDA ATI SB, ALC889 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=SB,DEV=0
HDA ATI SB, ALC889 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=SB,DEV=0
HDA ATI SB, ALC889 Digital
IEC958 (S/PDIF) Digital Audio Output
front:CARD=default,DEV=0
C-Media USB Audio Device , USB Audio
Front speakers
surround40:CARD=default,DEV=0
C-Media USB Audio Device , USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=default,DEV=0
C-Media USB Audio Device , USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=default,DEV=0
C-Media USB Audio Device , USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=default,DEV=0
C-Media USB Audio Device , USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=default,DEV=0
C-Media USB Audio Device , USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=default,DEV=0
C-Media USB Audio Device , USB Audio
IEC958 (S/PDIF) Digital Audio Output
...I then tried...
dcerouter_1023729:~# aplay --device=iec958 /home/public/data/audio/Windows\ Share-Volume_1\ \[63\]/Matt/Loose/Aerosmith_Dude\ Looks\ Like\ A\ Lady.mp3
Playing raw data '/home/public/data/audio/Windows Share-Volume_1 [63]/Matt/Loose/Aerosmith_Dude Looks Like A Lady.mp3' : Unsigned 8 bit, Rate 8000 Hz, Mono
aplay: set_params:990: Sample format not available
Available formats:
- S16_LE
- S32_LE
...which again looks fine to me, but still no sound.
Am I doing the right thing here? Am I "choosing" the sound card correctly?
Cheers,
Matt.
on my i can do
aplay -L
default:CARD=CK804
NVidia CK804, NVidia CK804
Default Audio Device
front:CARD=CK804,DEV=0 # hw:0,0
NVidia CK804, NVidia CK804
Front speakers
surround40:CARD=CK804,DEV=0 # hw:0,1
NVidia CK804, NVidia CK804
4.0 Surround output to Front and Rear speakers
a play with
aplay -D front:CARD=CK804,DEV=0 somefile.wav
QuoteExpression 'snd_pcm_hw_params_set_buffer_size_near( pcm, hwParams, &lowLatency )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 415
Expression 'snd_pcm_hw_params_set_buffer_size_near( pcm, hwParams, &lowLatency )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 415
I see this every time I start squeezeslave, so I wouldn't worry about that...
Just a basic thought that occured to me; have you checked the volume of the sound card using alsamixer?
br,
sambuca
"aplay -L" gives...
dcerouter_1023729:~# aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
front:CARD=SB,DEV=0
HDA ATI SB, ALC889 Analog
Front speakers
surround40:CARD=SB,DEV=0
HDA ATI SB, ALC889 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=SB,DEV=0
HDA ATI SB, ALC889 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=SB,DEV=0
HDA ATI SB, ALC889 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=SB,DEV=0
HDA ATI SB, ALC889 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=SB,DEV=0
HDA ATI SB, ALC889 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=SB,DEV=0
HDA ATI SB, ALC889 Digital
IEC958 (S/PDIF) Digital Audio Output
front:CARD=default,DEV=0
C-Media USB Audio Device , USB Audio
Front speakers
surround40:CARD=default,DEV=0
C-Media USB Audio Device , USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=default,DEV=0
C-Media USB Audio Device , USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=default,DEV=0
C-Media USB Audio Device , USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=default,DEV=0
C-Media USB Audio Device , USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=default,DEV=0
C-Media USB Audio Device , USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=default,DEV=0
C-Media USB Audio Device , USB Audio
IEC958 (S/PDIF) Digital Audio Output
And to play something I tried...
dcerouter_1023729:~# aplay -D front:CARD=default,DEV=0 /home/public/data/audio/Windows\ Share-Volume_1\ \[63\]/Matt/Loose/Fats\ Domino_Shake\,\ Rattle\ And\ Roll.mp3
aplay: main:608: audio open error: Device or resource busy
...and...
dcerouter_1023729:~# aplay -D iec958:CARD=default,DEV=0 /home/public/data/audio/Windows\ Share-Volume_1\ \[63\]/Matt/Loose/Fats\ Domino_Shake\,\ Rattle\ And\ Roll.mp3
aplay: main:608: audio open error: Device or resource busy
...which gives me this error.
I have made sure the volume is up, in both alsamixer and on the device. Although I am getting an error in both the orbiter and on the command line, so I doubt it is a problem like that.
Cheers,
Matt.
UPDATE: This is now working! I followed the wiki and this time it functions as it should. I don't understand what the problem was before. Maybe it was the alsa version.