shairport-sync: update to latest version

- update to latest (2.4.1) version
- add support for config files
- switch uci to config files
- based on https://github.com/openwrt/packages/pull/1815
- merge maintainers
- add openssl/polarssl build variants

Signed-off-by: Mike Brady <mikebrady@eircom.net>
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
This commit is contained in:
Álvaro Fernández Rojas
2015-09-30 16:33:37 +02:00
parent 52e2f0e80b
commit 855c3e4c61
3 changed files with 212 additions and 99 deletions
@@ -1,35 +1,53 @@
# Uncomment the stanza you want, and make sure to comment out the others, especially duplicate options.
# Use your own config file
config shairport-sync 'shairport_sync_file'
option disabled '1'
option respawn '1'
option conf_custom '1'
option conf_file '/etc/shairport-sync.conf'
#Arguments and defaults are as follows
config shairport-sync main
# option name 'Shairport Sync' #default name, "Shairport Sync on %d"
# option device default #default soundcard, volume control by software
#(Troubleshooting hint: make sure the soundcard's volume is turned up fully -- use alsamixer or amixer)
# option airplaylatency 88200
# option ituneslatency 99400
# option port 5000
# option stuffing basic #options are 'basic' or 'soxr' if shairport-sync was compiled with soxr support
# option awaitactioncompletion false #[don't] wait until beforeaction or afteraction completes
# option beforeaction <action> #action must be a fully qualified program with no arguments. Default no action.
# option afteraction <action> #action must be a fully qualified program with no arguments. Default no action.
# option devicetype <devicetype>
# option volumecontrolname <name>
#Here are some sample stanzas:
#For Raspberry Pi using the built-in soundcard for the headphone jack
# option device 'hw:0'
# option devicetype hardware
# option volumecontrolname Master
#For Raspberry Pi with the "3D Sound" USB Soundcard
# option name 'Pi'
# option device 'hw:1'
# option devicetype hardware
# option volumecontrolname Speaker
#For Raspberry Pi with the first generation iMic or the Topping TP30 Class T Digital Mini Amplifier
# option name 'Kitchen'
# option device 'hw:1'
# option devicetype hardware
# option volumecontrolname PCM
# Use OpenWrt UCI config
config shairport-sync 'shairport_sync'
option disabled '1'
option respawn '1'
# General
option name 'Shairport-Sync'
option password ''
option interpolation '' # basic/soxr
option output_backend '' # alsa/pipe/stdout/ao/dummy/pulse/sndio
option mdns_backend '' # avahi/external-avahi/dns-sd/external-dns-sd/tinysvcmdns
option port '' # 5000
option udp_port_base '' # 6001
option udp_port_range '' # 100
option statistics '' # no/yes
option drift '' # 88
option resync_threshold '' # 2205
option log_verbosity '' # 0/1/2/3
option ignore_volume_control '' # no/yes
# Latencies
option latencies_default '' # 88200
option latencies_itunes '' # 99400
option latencies_airplay '' # 88200
option latencies_forked_daapd '' # 99400
# Metadata
option metadata_enabled '' # no/yes
option metadata_cover_art '' # no/yes
option metadata_pipe_name '' # /tmp/shairport-sync-metadata
# Session Control
option sesctl_run_before_play_begins '' # /etc/shairport-sync-start.sh
option sesctl_run_after_play_ends '' # /etc/shairport-sync-stop.sh
option sesctl_wait_for_completion '' # no/yes
option sesctl_session_interruption '' # no/yes
option sesctl_session_timeout '' # 120
# ALSA
option alsa_output_device '' # default
option alsa_mixer_control_name '' # PCM
option alsa_mixer_device '' # default
option alsa_latency_offset '' # 0
option alsa_buffer_length '' # 6615
# Pipe
option pipe_name '' # /tmp/shairport-sync-audio
option pipe_latency_offset '' # 0
option pipe_buffer_length '' # 44100
# Stdout
option stdout_latency_offset '' # 0
option stdout_buffer_length '' # 44100