From 68e7548e0ef562dcd580be2fc1c10a21144f6794 Mon Sep 17 00:00:00 2001 From: HiFiBerry Date: Thu, 10 Nov 2022 08:31:52 +0000 Subject: [PATCH 1/5] Document features --- .../hifiberry-tools/reconfigure-players | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/buildroot/package/hifiberry-tools/reconfigure-players b/buildroot/package/hifiberry-tools/reconfigure-players index 5834a1a9..6641baa4 100755 --- a/buildroot/package/hifiberry-tools/reconfigure-players +++ b/buildroot/package/hifiberry-tools/reconfigure-players @@ -1,5 +1,17 @@ #!/bin/bash +# Supported features +# usehwvolume: use the hardware volume control instead of DSP volume control if both controls are available +# bluetooth: hardware supports bluetooth +# pi3orlater: Pi3 or Pi4 +# arm7: arm7 or higher CPU generation +# spdifnoclock: card has an SPDIF input, but requires Pi clock generation +# toslink: card has a TOSLink input +# analoginput: card has an analog input +# digi: card is a digital sound card +# dsp: DSP available +# localui: Local UI web browser supported + REBOOTFILE=/tmp/reboot SERVICES="spotify raat mpd shairport-sync squeezelite bluealsa-aplay alsaloop dlnampris mopidy upmpdcli" FEATURES="pi" @@ -262,9 +274,9 @@ guess_card() { SECONDARY_MIXER_CONTROL="A.Mstr Vol" else CARD="Amp3" - FEATURE_prefer_dsp_volume=0 + FEATURE_usehwvolume=1 fi - if [ "$FEATURE_prefer_dsp_volume" != "1" ]; then + if [ "$FEATURE_usehwvolume" == "1" ]; then SET_VOLUMERANGE="[50,100]" else SET_VOLUMERANGE="[0,100]" @@ -761,7 +773,7 @@ if [ "$HAS_DSP" == "1" ]; then fi # if there is a hardware mixer, we might use this instead of DSP -if [ "$MIXER_CONTROL" == "DSPVolume" -a "$FEATURE_prefer_dsp_volume" != "1" ]; then +if [ "$MIXER_CONTROL" == "DSPVolume" -a "$FEATURE_usehwvolume" == "1" ]; then if [ "$SECONDARY_MIXER_CONTROL" != "" ] && \ [ "$SECONDARY_MIXER_CONTROL" != "Softvol" ]; then TMP="$MIXER_CONTROL" From 1fddb7a4fa5bee5b0685087d7f1bb7a0ced8a562 Mon Sep 17 00:00:00 2001 From: HiFiBerry Date: Tue, 15 Nov 2022 12:29:29 +0100 Subject: [PATCH 2/5] Change SPI write speed to 1MHz --- buildroot/package/dspprofiles/dsp-addon-96-13.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/buildroot/package/dspprofiles/dsp-addon-96-13.xml b/buildroot/package/dspprofiles/dsp-addon-96-13.xml index c0ac7ee7..4bcd449e 100755 --- a/buildroot/package/dspprofiles/dsp-addon-96-13.xml +++ b/buildroot/package/dspprofiles/dsp-addon-96-13.xml @@ -157,7 +157,7 @@ 00 00 00 00 00 00 00 01 00 00 00 00 - AA 00 00 10 00 02 00 60 00 65 00 03 00 00 00 0E 00 00 00 10 02 C0 00 00 00 00 02 D0 00 00 02 D0 00 00 0F A4 00 00 00 00 00 00 00 0C 00 00 00 0C 00 00 10 FC 00 00 00 00 00 00 00 00 00 00 00 00 00 FF F9 72 00 00 00 00 00 00 00 00 00 FF F9 72 00 00 00 00 01 00 00 00 00 00 20 8A 00 00 00 00 00 07 53 00 00 00 00 01 00 00 06 8E 00 00 00 00 01 00 00 00 00 00 20 8A 00 00 00 00 00 07 53 00 00 00 00 01 00 00 41 89 01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 0F 00 00 00 12 00 00 20 8A 00 00 00 00 00 CB 59 18 00 00 20 8A 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + AA 00 00 10 00 02 00 60 00 65 00 03 01 C2 01 01 00 00 00 10 02 C0 00 00 00 00 02 D0 00 00 02 D0 00 00 0F A4 00 00 00 00 00 00 00 0C 00 00 00 0C 00 00 10 FC 00 00 00 00 00 00 00 00 00 00 00 00 00 FF F9 72 00 00 00 00 00 00 00 00 00 FF F9 72 00 00 00 00 01 00 00 00 00 00 20 8A 00 00 00 00 00 07 53 00 00 00 00 01 00 00 06 8E 00 00 00 00 01 00 00 00 00 00 20 8A 00 00 00 00 00 07 53 00 00 00 00 01 00 00 41 89 01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 0F 00 00 00 12 00 00 20 8A 00 00 00 00 00 CB 59 18 00 00 20 8A 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 @@ -235,7 +235,7 @@ 00 00 00 40 00 00 00 22 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 22 00 00 00 00 00 00 00 00 00 00 F4 01 00 04 00 00 00 00 00 03 00 00 00 01 00 00 00 00 00 00 00 00 00 00 F5 16 00 04 00 00 00 00 00 07 00 00 00 07 00 00 00 0C 00 00 00 70 00 00 F5 26 00 04 00 00 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 F5 2D 00 04 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 F5 81 00 04 00 00 00 00 07 FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 F6 04 00 04 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 F6 90 00 04 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 F7 87 00 04 00 00 00 00 00 1B 00 00 00 18 00 00 00 18 00 00 00 18 80 00 F7 94 00 10 00 00 00 00 00 18 00 00 00 18 00 00 00 18 00 00 00 18 00 00 00 18 00 00 00 0A 00 00 01 00 00 00 1A 00 - 00 00 00 08 00 00 00 08 00 00 00 08 00 00 00 18 00 00 00 18 00 00 00 18 00 00 00 0F 00 00 00 18 00 00 00 18 00 00 00 1F 00 00 00 FE 69 57 BD 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00 00 00 08 00 00 00 08 00 00 00 08 00 00 00 18 00 00 00 18 00 00 00 18 00 00 00 0F 00 00 00 18 00 00 00 18 00 00 00 1F 00 00 00 FE 6B 19 BE 33 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 01 00 FF @@ -330,5 +330,5 @@ 00 01 00 01 00 00 - + From ec4827543f5d64fecd1f87a41b71717bd3150e9f Mon Sep 17 00:00:00 2001 From: HiFiBerry Date: Fri, 18 Nov 2022 09:24:37 +0000 Subject: [PATCH 3/5] Amp3 volume control bugfix --- configs/hifiberryos-gui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/hifiberryos-gui b/configs/hifiberryos-gui index c6a12427..631e3c2f 100644 --- a/configs/hifiberryos-gui +++ b/configs/hifiberryos-gui @@ -533,7 +533,7 @@ BR2_LINUX_KERNEL_CUSTOM_TARBALL=y # BR2_LINUX_KERNEL_CUSTOM_GIT is not set # BR2_LINUX_KERNEL_CUSTOM_HG is not set # BR2_LINUX_KERNEL_CUSTOM_SVN is not set -BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,54d44290debae98ac25416742a7534046b011125)/54d44290debae98ac25416742a7534046b011125.tar.gz" +BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,c6e5940047add3e370955c376c692fca465bfe56)/c6e5940047add3e370955c376c692fca465bfe56.tar.gz" BR2_LINUX_KERNEL_VERSION="custom" BR2_LINUX_KERNEL_PATCH="../hifiberry-os/buildroot/patches/linux-custom" BR2_LINUX_KERNEL_USE_DEFCONFIG=y From 097fc65630aaaaedb6907eadd8211c01ea682674 Mon Sep 17 00:00:00 2001 From: HiFiBerry Date: Fri, 18 Nov 2022 09:25:11 +0000 Subject: [PATCH 4/5] Document changes --- Changelog | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Changelog b/Changelog index 9c20f224..fde0384a 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,6 @@ +20221115: +- Fix a bug in range of the Amp3 volume control + 20221109: - improve Digi2 Pro detection - improve volume control of Amp3/DSP add-on From b7f1429ab87b221aede89f2c18ac0e7d92e850d5 Mon Sep 17 00:00:00 2001 From: HiFiBerry Date: Fri, 18 Nov 2022 09:27:45 +0000 Subject: [PATCH 5/5] Document changes --- Changelog | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index fde0384a..98d9dada 100644 --- a/Changelog +++ b/Changelog @@ -1,5 +1,6 @@ -20221115: +20221118: - Fix a bug in range of the Amp3 volume control +- Change DSP addon DSP profile to 1MHz SPI programming clocky 20221109: - improve Digi2 Pro detection