From 34f33cfcbe7602018e6550ca8910a58bc81c1b84 Mon Sep 17 00:00:00 2001 From: lean Date: Sun, 29 Mar 2020 23:08:18 +0800 Subject: [PATCH] luci-app-airplay2: add audio sample rate setting --- package/lean/luci-app-airplay2/Makefile | 2 +- package/lean/luci-app-airplay2/root/etc/init.d/shairport-sync | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package/lean/luci-app-airplay2/Makefile b/package/lean/luci-app-airplay2/Makefile index 24ae655be..3358b86bd 100644 --- a/package/lean/luci-app-airplay2/Makefile +++ b/package/lean/luci-app-airplay2/Makefile @@ -10,7 +10,7 @@ LUCI_TITLE:=Luci for Apple Airplay2 Receiver LUCI_DEPENDS:=@TARGET_x86 +alsa-utils +kmod-sound-hda-core +kmod-sound-hda-codec-realtek +kmod-sound-hda-codec-via +kmod-sound-via82xx +kmod-sound-hda-intel +shairport-sync-openssl LUCI_PKGARCH:=all PKG_VERSION:=1 -PKG_RELEASE:=8 +PKG_RELEASE:=9 include $(TOPDIR)/feeds/luci/luci.mk diff --git a/package/lean/luci-app-airplay2/root/etc/init.d/shairport-sync b/package/lean/luci-app-airplay2/root/etc/init.d/shairport-sync index 2eff2cd28..8401ebf53 100755 --- a/package/lean/luci-app-airplay2/root/etc/init.d/shairport-sync +++ b/package/lean/luci-app-airplay2/root/etc/init.d/shairport-sync @@ -91,6 +91,7 @@ start_instance() { append_str "$cfg" "$conf_file" alsa_output_device "output_device" append_str "$cfg" "$conf_file" alsa_mixer_control_name "mixer_control_name" append_str "$cfg" "$conf_file" alsa_mixer_device "mixer_device" + append_str "$cfg" "$conf_file" alsa_output_rate "output_rate" "44100" append_num "$cfg" "$conf_file" alsa_latency_offset "audio_backend_latency_offset" append_num "$cfg" "$conf_file" alsa_buffer_length "audio_backend_buffer_desired_length" append_str "$cfg" "$conf_file" alsa_disable_synchronization "disable_synchronization"