Browse Source

squeezelite: update to 1.9.9-1403

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry picked from commit 6ffab7728e)
lilik-openwrt-22.03
Rosen Penev 2 years ago
parent
commit
95d59cc2a3
3 changed files with 30 additions and 30 deletions
  1. +4
    -4
      sound/squeezelite/Makefile
  2. +18
    -18
      sound/squeezelite/patches/010-select_broadcast_interface.patch
  3. +8
    -8
      sound/squeezelite/patches/020-no_libmad.patch

+ 4
- 4
sound/squeezelite/Makefile View File

@ -6,13 +6,13 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=squeezelite PKG_NAME:=squeezelite
PKG_VERSION:=1.9.6-1210
PKG_RELEASE:=3
PKG_VERSION:=1.9.9-1403
PKG_RELEASE:=$(AUTORELEASE)
PKG_SOURCE_PROTO:=git PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/ralph-irving/squeezelite PKG_SOURCE_URL:=https://github.com/ralph-irving/squeezelite
PKG_SOURCE_VERSION:=1b7a17616cd2bbd9935c710dc33cda11cd0de45e
PKG_MIRROR_HASH:=5993fa5fcacd1640962bc60f88a93faa4fcac74a767fbf820b40a27c338a9062
PKG_SOURCE_VERSION:=bc72c0de3fff771540a2a45aaafafed539387b3c
PKG_MIRROR_HASH:=25f6c320e52b53c0340a337429b91d59783c87f1af3454dc0434c24b90ed3b94
PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net> PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
PKG_LICENSE:=GPL-3.0-or-later PKG_LICENSE:=GPL-3.0-or-later


+ 18
- 18
sound/squeezelite/patches/010-select_broadcast_interface.patch View File

@ -8,7 +8,7 @@
" -m <mac addr>\t\tSet mac address, format: ab:cd:ef:12:34:56\n" " -m <mac addr>\t\tSet mac address, format: ab:cd:ef:12:34:56\n"
" -M <modelname>\tSet the squeezelite player model name sent to the server (default: " MODEL_NAME_STRING ")\n" " -M <modelname>\tSet the squeezelite player model name sent to the server (default: " MODEL_NAME_STRING ")\n"
" -n <name>\t\tSet the player name\n" " -n <name>\t\tSet the player name\n"
@@ -285,6 +286,8 @@ int main(int argc, char **argv) {
@@ -292,6 +293,8 @@ int main(int argc, char **argv) {
extern bool user_rates; extern bool user_rates;
char *logfile = NULL; char *logfile = NULL;
u8_t mac[6]; u8_t mac[6];
@ -17,7 +17,7 @@
unsigned stream_buf_size = STREAMBUF_SIZE; unsigned stream_buf_size = STREAMBUF_SIZE;
unsigned output_buf_size = 0; // set later unsigned output_buf_size = 0; // set later
unsigned rates[MAX_SUPPORTED_SAMPLERATES] = { 0 }; unsigned rates[MAX_SUPPORTED_SAMPLERATES] = { 0 };
@@ -325,6 +328,7 @@ int main(int argc, char **argv) {
@@ -332,6 +335,7 @@ int main(int argc, char **argv) {
int maxSampleRate = 0; int maxSampleRate = 0;
@ -25,7 +25,7 @@
char *optarg = NULL; char *optarg = NULL;
int optind = 1; int optind = 1;
int i; int i;
@@ -332,8 +336,6 @@ int main(int argc, char **argv) {
@@ -339,8 +343,6 @@ int main(int argc, char **argv) {
#define MAXCMDLINE 512 #define MAXCMDLINE 512
char cmdline[MAXCMDLINE] = ""; char cmdline[MAXCMDLINE] = "";
@ -34,12 +34,12 @@
for (i = 0; i < argc && (strlen(argv[i]) + strlen(cmdline) + 2 < MAXCMDLINE); i++) { for (i = 0; i < argc && (strlen(argv[i]) + strlen(cmdline) + 2 < MAXCMDLINE); i++) {
strcat(cmdline, argv[i]); strcat(cmdline, argv[i]);
strcat(cmdline, " "); strcat(cmdline, " ");
@@ -341,7 +343,7 @@ int main(int argc, char **argv) {
@@ -348,7 +350,7 @@ int main(int argc, char **argv) {
while (optind < argc && strlen(argv[optind]) >= 2 && argv[optind][0] == '-') { while (optind < argc && strlen(argv[optind]) >= 2 && argv[optind][0] == '-') {
char *opt = argv[optind] + 1; char *opt = argv[optind] + 1;
- if (strstr("oabcCdefmMnNpPrs"
+ if (strstr("oabcCdefImMnNpPrs"
- if (strstr("oabcCdefmMnNpPrsZ"
+ if (strstr("oabcCdefImMnNpPrsZ"
#if ALSA #if ALSA
"UVO" "UVO"
#endif #endif
@ -65,7 +65,7 @@
stream_init(log_stream, stream_buf_size); stream_init(log_stream, stream_buf_size);
if (!strcmp(output_device, "-")) { if (!strcmp(output_device, "-")) {
@@ -798,7 +808,7 @@ int main(int argc, char **argv) {
@@ -801,7 +811,7 @@ int main(int argc, char **argv) {
exit(1); exit(1);
} }
@ -76,16 +76,16 @@
stream_close(); stream_close();
--- a/slimproto.c --- a/slimproto.c
+++ b/slimproto.c +++ b/slimproto.c
@@ -113,7 +113,7 @@ void send_packet(u8_t *packet, size_t le
@@ -119,7 +119,7 @@ void send_packet(u8_t *packet, size_t le
} }
} }
-static void sendHELO(bool reconnect, const char *fixed_cap, const char *var_cap, u8_t mac[6]) { -static void sendHELO(bool reconnect, const char *fixed_cap, const char *var_cap, u8_t mac[6]) {
+static void sendHELO(bool reconnect, const char *fixed_cap, const char *var_cap, u8_t *mac) { +static void sendHELO(bool reconnect, const char *fixed_cap, const char *var_cap, u8_t *mac) {
#define BASE_CAP "Model=squeezelite,AccuratePlayPoints=1,HasDigitalOut=1,HasPolarityInversion=1,Firmware=" VERSION
#define BASE_CAP "Model=squeezelite,AccuratePlayPoints=1,HasDigitalOut=1,HasPolarityInversion=1,Balance=1,Firmware=" VERSION
#define SSL_CAP "CanHTTPS=1" #define SSL_CAP "CanHTTPS=1"
const char *base_cap; const char *base_cap;
@@ -761,7 +761,7 @@ void wake_controller(void) {
@@ -768,7 +768,7 @@ void wake_controller(void) {
wake_signal(wake_e); wake_signal(wake_e);
} }
@ -94,7 +94,7 @@
struct sockaddr_in d; struct sockaddr_in d;
struct sockaddr_in s; struct sockaddr_in s;
char *buf; char *buf;
@@ -778,7 +778,7 @@ in_addr_t discover_server(char *default_
@@ -785,7 +785,7 @@ in_addr_t discover_server(char *default_
memset(&d, 0, sizeof(d)); memset(&d, 0, sizeof(d));
d.sin_family = AF_INET; d.sin_family = AF_INET;
d.sin_port = htons(PORT); d.sin_port = htons(PORT);
@ -103,7 +103,7 @@
pollinfo.fd = disc_sock; pollinfo.fd = disc_sock;
pollinfo.events = POLLIN; pollinfo.events = POLLIN;
@@ -813,7 +813,7 @@ in_addr_t discover_server(char *default_
@@ -820,7 +820,7 @@ in_addr_t discover_server(char *default_
#define FIXED_CAP_LEN 256 #define FIXED_CAP_LEN 256
#define VAR_CAP_LEN 128 #define VAR_CAP_LEN 128
@ -112,7 +112,7 @@
struct sockaddr_in serv_addr; struct sockaddr_in serv_addr;
static char fixed_cap[FIXED_CAP_LEN], var_cap[VAR_CAP_LEN] = ""; static char fixed_cap[FIXED_CAP_LEN], var_cap[VAR_CAP_LEN] = "";
bool reconnect = false; bool reconnect = false;
@@ -834,7 +834,7 @@ void slimproto(log_level level, char *se
@@ -841,7 +841,7 @@ void slimproto(log_level level, char *se
} }
if (!slimproto_ip) { if (!slimproto_ip) {
@ -121,7 +121,7 @@
} }
if (!slimproto_port) { if (!slimproto_port) {
@@ -915,7 +915,7 @@ void slimproto(log_level level, char *se
@@ -926,7 +926,7 @@ void slimproto(log_level level, char *se
// rediscover server if it was not set at startup // rediscover server if it was not set at startup
if (!server && ++failed_connect > 5) { if (!server && ++failed_connect > 5) {
@ -132,7 +132,7 @@
} else { } else {
--- a/squeezelite.h --- a/squeezelite.h
+++ b/squeezelite.h +++ b/squeezelite.h
@@ -455,7 +455,7 @@ char* strcasestr(const char *haystack, c
@@ -456,7 +456,7 @@ char* strcasestr(const char *haystack, c
char *next_param(char *src, char c); char *next_param(char *src, char c);
u32_t gettime_ms(void); u32_t gettime_ms(void);
@ -141,7 +141,7 @@
void set_nonblock(sockfd s); void set_nonblock(sockfd s);
int connect_timeout(sockfd sock, const struct sockaddr *addr, socklen_t addrlen, int timeout); int connect_timeout(sockfd sock, const struct sockaddr *addr, socklen_t addrlen, int timeout);
void server_addr(char *server, in_addr_t *ip_ptr, unsigned *port_ptr); void server_addr(char *server, in_addr_t *ip_ptr, unsigned *port_ptr);
@@ -511,7 +511,7 @@ void buf_init(struct buffer *buf, size_t
@@ -513,7 +513,7 @@ void buf_init(struct buffer *buf, size_t
void buf_destroy(struct buffer *buf); void buf_destroy(struct buffer *buf);
// slimproto.c // slimproto.c
@ -185,7 +185,7 @@
// logging functions // logging functions
const char *logtime(void) { const char *logtime(void) {
static char buf[100]; static char buf[100];
@@ -119,58 +115,94 @@ u32_t gettime_ms(void) {
@@ -120,58 +116,94 @@ u32_t gettime_ms(void) {
#endif #endif
} }
@ -316,7 +316,7 @@
#if SUN #if SUN
void get_mac(u8_t mac[]) { void get_mac(u8_t mac[]) {
struct arpreq parpreq; struct arpreq parpreq;
@@ -237,30 +269,6 @@ void get_mac(u8_t mac[]) {
@@ -238,30 +270,6 @@ void get_mac(u8_t mac[]) {
} }
#endif #endif


+ 8
- 8
sound/squeezelite/patches/020-no_libmad.patch View File

@ -1,15 +1,15 @@
--- a/Makefile --- a/Makefile
+++ b/Makefile +++ b/Makefile
@@ -22,7 +22,7 @@ OPT_OPUS = -DOPUS
@@ -24,7 +24,7 @@ OPT_PULSEAUDIO = -DPULSEAUDIO
SOURCES = \ SOURCES = \
main.c slimproto.c buffer.c stream.c utils.c \ main.c slimproto.c buffer.c stream.c utils.c \
output.c output_alsa.c output_pa.c output_stdout.c output_pack.c decode.c \
output.c output_alsa.c output_pa.c output_stdout.c output_pack.c output_pulse.c decode.c \
- flac.c pcm.c mad.c vorbis.c mpg.c - flac.c pcm.c mad.c vorbis.c mpg.c
+ flac.c pcm.c vorbis.c mpg.c + flac.c pcm.c vorbis.c mpg.c
SOURCES_DSD = dsd.c dop.c dsd2pcm/dsd2pcm.c SOURCES_DSD = dsd.c dop.c dsd2pcm/dsd2pcm.c
SOURCES_FF = ffmpeg.c SOURCES_FF = ffmpeg.c
@@ -40,7 +40,7 @@ LINK_LINUX = -ldl
@@ -45,7 +45,7 @@ LINK_PULSEAUDIO = -lpulse
LINK_SSL = -lssl -lcrypto LINK_SSL = -lssl -lcrypto
LINK_ALAC = -lalac LINK_ALAC = -lalac
@ -20,7 +20,7 @@
LINKALL_IR = -llirc_client LINKALL_IR = -llirc_client
--- a/decode.c --- a/decode.c
+++ b/decode.c +++ b/decode.c
@@ -184,11 +184,7 @@ void decode_init(log_level level, const
@@ -183,11 +183,7 @@ void decode_init(log_level level, const
if (!strstr(exclude_codecs, "pcm") && (!include_codecs || (order_codecs = strstr(include_codecs, "pcm")))) if (!strstr(exclude_codecs, "pcm") && (!include_codecs || (order_codecs = strstr(include_codecs, "pcm"))))
sort_codecs((include_codecs ? order_codecs - include_codecs : i), register_pcm()); sort_codecs((include_codecs ? order_codecs - include_codecs : i), register_pcm());
@ -46,7 +46,7 @@
--- a/squeezelite.h --- a/squeezelite.h
+++ b/squeezelite.h +++ b/squeezelite.h
@@ -190,7 +190,6 @@
@@ -191,7 +191,6 @@
#if LINUX #if LINUX
#define LIBFLAC "libFLAC.so.8" #define LIBFLAC "libFLAC.so.8"
@ -54,7 +54,7 @@
#define LIBMPG "libmpg123.so.0" #define LIBMPG "libmpg123.so.0"
#define LIBVORBIS "libvorbisfile.so.3" #define LIBVORBIS "libvorbisfile.so.3"
#define LIBOPUS "libopusfile.so.0" #define LIBOPUS "libopusfile.so.0"
@@ -205,7 +204,6 @@
@@ -206,7 +205,6 @@
#if OSX #if OSX
#define LIBFLAC "libFLAC.8.dylib" #define LIBFLAC "libFLAC.8.dylib"
@ -62,7 +62,7 @@
#define LIBMPG "libmpg123.0.dylib" #define LIBMPG "libmpg123.0.dylib"
#define LIBVORBIS "libvorbisfile.3.dylib" #define LIBVORBIS "libvorbisfile.3.dylib"
#define LIBTREMOR "libvorbisidec.1.dylib" #define LIBTREMOR "libvorbisidec.1.dylib"
@@ -219,7 +217,6 @@
@@ -220,7 +218,6 @@
#if WIN #if WIN
#define LIBFLAC "libFLAC.dll" #define LIBFLAC "libFLAC.dll"
@ -70,7 +70,7 @@
#define LIBMPG "libmpg123-0.dll" #define LIBMPG "libmpg123-0.dll"
#define LIBVORBIS "libvorbisfile.dll" #define LIBVORBIS "libvorbisfile.dll"
#define LIBOPUS "libopusfile-0.dll" #define LIBOPUS "libopusfile-0.dll"
@@ -233,7 +230,6 @@
@@ -234,7 +231,6 @@
#if FREEBSD #if FREEBSD
#define LIBFLAC "libFLAC.so.8" #define LIBFLAC "libFLAC.so.8"


Loading…
Cancel
Save