From e03341fdd9f2acd34d7447aff69358ad7f8839a8 Mon Sep 17 00:00:00 2001
From: j1nx
Date: Tue, 30 Mar 2021 11:06:48 +0200
Subject: [PATCH] Bump spotifyd
---
.../package/spotifyd/spotifyd.conf | 94 +++++++++++++++++--
.../package/spotifyd/spotifyd.mk | 2 +-
2 files changed, 86 insertions(+), 10 deletions(-)
diff --git a/buildroot-external/package/spotifyd/spotifyd.conf b/buildroot-external/package/spotifyd/spotifyd.conf
index 47c45e01..87e0a3df 100644
--- a/buildroot-external/package/spotifyd/spotifyd.conf
+++ b/buildroot-external/package/spotifyd/spotifyd.conf
@@ -1,14 +1,90 @@
[global]
+# Your Spotify account name.
+#username = "username"
+
+# Your Spotify account password.
+#password = "password"
+
+# A command that gets executed and can be used to
+# retrieve your password.
+# The command should return the password on stdout.
+#
+# This is an alternative to the `password` field. Both
+# can't be used simultaneously.
+#password_cmd = "command_that_writes_password_to_stdout"
+
+# If set to true, `spotifyd` tries to look up your
+# password in the system's password storage.
+#
+# This is an alternative to the `password` field. Both
+# can't be used simultaneously.
+#use_keyring = true
+
+#
+# If set to true, `spotifyd` tries to bind to the session dbus
+# and expose MPRIS controls. When running headless, without a dbus session,
+# then set this to false to avoid binding errors
+#
+#use_mpris = true
+
+# The audio backend used to play the your music. To get
+# a list of possible backends, run `spotifyd --help`.
+backend = "pulseaudio"
+
+# The alsa audio device to stream audio to. To get a
+# list of valid devices, run `aplay -L`,
+#device = "alsa_audio_device" # omit for macOS
+
+# The alsa control device. By default this is the same
+# name as the `device` field.
+#control = "alsa_audio_device" # omit for macOS
+
+# The alsa mixer used by `spotifyd`.
+#mixer = "PCM"
+
+# The volume controller. Each one behaves different to
+# volume increases. For possible values, run
+# `spotifyd --help`.
+#volume_controller = "alsa" # use softvol for macOS
+
+# A command that gets executed in your shell after each song changes.
+#on_song_change_hook = "command_to_run_on_playback_events"
+
+# The name that gets displayed under the connect tab on
+# official clients. Spaces are not allowed!
+device_name = "OpenVoiceOS"
+
+# The audio bitrate. 96, 160 or 320 kbit/s
+#bitrate = 160
+
+# The directory used to cache audio data. This setting can save
+# a lot of bandwidth when activated, as it will avoid re-downloading
+# audio files when replaying them.
+#
+# Note: The file path does not get expanded. Environment variables and
+# shell placeholders like $HOME or ~ don't work!
+#cache_path = "cache_directory"
+
+# If set to true, audio data does NOT get cached.
+#no_audio_cache = true
+
+# Volume on startup between 0 and 100
+# NOTE: This variable's type will change in v0.4, to a number (instead of string)
+#initial_volume = "90"
+
+# If set to true, enables volume normalisation between songs.
+#volume_normalisation = true
+
+# The normalisation pregain that is applied for each song.
+#normalisation_pregain = -10
+
# The port `spotifyd` uses to announce its service over the network.
zeroconf_port = 57621
-# Cleartext username and password for remote Spotify access.
-# Make sure the file is only accessible by spotifyd.
-# username = USER
-# password = PASS
+# The proxy `spotifyd` will use to connect to spotify.
+#proxy = "http://proxy.example.org:8080"
-# alsa, pulseaudio or pipe
-backend = pulseaudio
-
-# Name in Spotify Connect, cannot contain spaces:
-device_name = OpenVoiceOS
+# The displayed device type in Spotify clients.
+# Can be unknown, computer, tablet, smartphone, speaker, t_v,
+# a_v_r (Audio/Video Receiver), s_t_b (Set-Top Box), and audio_dongle.
+device_type = "speaker"
diff --git a/buildroot-external/package/spotifyd/spotifyd.mk b/buildroot-external/package/spotifyd/spotifyd.mk
index 6b2ff2d1..6ca342ca 100644
--- a/buildroot-external/package/spotifyd/spotifyd.mk
+++ b/buildroot-external/package/spotifyd/spotifyd.mk
@@ -4,7 +4,7 @@
#
################################################################################
-SPOTIFYD_VERSION = v0.2.24
+SPOTIFYD_VERSION = v0.3.0
SPOTIFYD_SITE = $(call github,Spotifyd,spotifyd,$(SPOTIFYD_VERSION))
SPOTIFYD_LICENSE = GPL-3.0
SPOTIFYD_LICENSE_FILES = LICENSE