ralphy wrote:
> Yes there are many libraries used for squeezelite.
>
> I've attached a patch that should disable the gpio sleep.
> I reformatted this part of the code yesterday so make sure you have the
> latest from github so the patch doesn't fail.
>
> I haven't tested the change other than confirm it compiles and runs
> okay.
>
> Or you could just remove the text in bold from slimproto.c. Don't delete
> the 2nd bracket the one if red.
>
> >
Code:
--------------------
> > --- slimproto.c (revision 1103)
> +++ slimproto.c (working copy)
> @@ -74,7 +74,6 @@
> static int ampidle = 0;
> static int ampidle_set = 0;
> extern int ampstate;
> -#define SLEEP_DELAY 300000
> #endif
>
> static struct {
> @@ -636,8 +635,7 @@
> //Watch for paused player and put amp to sleep or wake
up if playing resumes
> if (gpio_active || power_script != NULL)
> {
> - if ((ampstate == 1) && (ampidle_set == 0) &&
(ampidle == 1)
> - *&& (now - ampidletime >
SLEEP_DELAY)**)*
> + if ((ampstate == 1) && (ampidle_set == 0) &&
(ampidle == 1))
> {
> ampidle_set = 1;
>
>
--------------------
> >
Thank very much Ralphy,
I'll give it a try and report back
Jeff
*Players:* SliMP3,Squeezebox3 x3,Receiver,SqueezeLiteX,PiCorePlayer
x3,Wandboard
*Server:* LMS Version: Latest Nightly on Centos 7 VM on ESXi 6.5.0U1 on
Dell T320
*Plugins:*
AutoRescan/BBCiPlayer/PowerSave/PowerSwitchIII/Squeezecloud/Spotty/Player
Groups
*Remotes:* iPeng9/Orangesqueeze/PC/Jivelite/SqueezeLiteX
*Music:* 522GB,1660 albums with 23087 songs by 5204 artists mostly
FLACs
*Want a webapp ?* See
http://forums.slimdevices.com/showthread.php?104305-Webapp-for-LMS
------------------------------------------------------------------------
Jeff07971's Profile: http://forums.slimdevices.com/member.php?userid=49290
View this thread: http://forums.slimdevices.com/showthread.php?t=97046
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix