purps
NEEDS to work for LinuxMCE
  
Posts: 1270
If it ain't broke, tweak it
|
 |
« on: June 02, 2012, 05: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_coreThe 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.
|
|
|
|
|
Logged
|
|
|
|
|
totallymaxed
|
 |
« Reply #1 on: June 08, 2012, 02:54:29 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_coreThe 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
|
|
|
|
|
Logged
|
|
|
|
|
cfernandes
|
 |
« Reply #2 on: June 08, 2012, 08: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
|
|
|
|
|
Logged
|
|
|
|
|
totallymaxed
|
 |
« Reply #3 on: June 11, 2012, 01:18:04 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
|
|
|
|
|
Logged
|
|
|
|
purps
NEEDS to work for LinuxMCE
  
Posts: 1270
If it ain't broke, tweak it
|
 |
« Reply #4 on: June 13, 2012, 10: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.
|
|
|
|
|
Logged
|
|
|
|
|
totallymaxed
|
 |
« Reply #5 on: June 14, 2012, 10:50:02 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
|
|
|
|
|
Logged
|
|
|
|
purps
NEEDS to work for LinuxMCE
  
Posts: 1270
If it ain't broke, tweak it
|
 |
« Reply #6 on: June 14, 2012, 11:29:40 am » |
|
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.
|
|
|
|
|
Logged
|
|
|
|
|
cfernandes
|
 |
« Reply #7 on: June 14, 2012, 11:40:25 am » |
|
Matt.
on squeezeslave you need to chose "Guitar Amp" for the room and not "cupboard".
|
|
|
|
|
Logged
|
|
|
|
purps
NEEDS to work for LinuxMCE
  
Posts: 1270
If it ain't broke, tweak it
|
 |
« Reply #8 on: June 14, 2012, 03:07:40 pm » |
|
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.
|
|
|
|
|
Logged
|
|
|
|
|
cfernandes
|
 |
« Reply #9 on: June 14, 2012, 03:16:48 pm » |
|
sorry for my English,
I must have expressed myself bad.
the squezeslave must be in a room without MD.
|
|
|
|
|
Logged
|
|
|
|
purps
NEEDS to work for LinuxMCE
  
Posts: 1270
If it ain't broke, tweak it
|
 |
« Reply #10 on: June 14, 2012, 04:05:42 pm » |
|
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.
|
|
|
|
|
Logged
|
|
|
|
|
cfernandes
|
 |
« Reply #11 on: June 14, 2012, 04:12:48 pm » |
|
ok which the output of
squeezeslave -L
|
|
|
|
|
Logged
|
|
|
|
purps
NEEDS to work for LinuxMCE
  
Posts: 1270
If it ain't broke, tweak it
|
 |
« Reply #12 on: June 14, 2012, 09:11:48 pm » |
|
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.
|
|
|
|
« Last Edit: June 14, 2012, 09:56:02 pm by purps »
|
Logged
|
|
|
|
|
sambuca
|
 |
« Reply #13 on: June 15, 2012, 06:33:37 am » |
|
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
|
|
|
|
|
Logged
|
|
|
|
|
cfernandes
|
 |
« Reply #14 on: June 16, 2012, 02:17:24 pm » |
|
other question
on aplay -l you can see and play on usb sound card ?
|
|
|
|
|
Logged
|
|
|
|
|