File tree 2 files changed +16
-6
lines changed
buildroot/package/hifiberry-tools
2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 7
7
8
8
alsactl -f $STORE restore
9
9
10
- dsptoolkit --timeout=5 set-volume ` cat /etc/dspvolume.store`
11
-
12
10
. /etc/hifiberry.state
11
+ DSP=` echo $CURRENT_FEATURES | grep -i dsp`
12
+ if [ " $DSP " != " " ]; then
13
+ dsptoolkit --timeout=5 set-volume ` cat /etc/dspvolume.store`
14
+ fi
15
+
13
16
if [ " $CURRENT_MIXER_CONTROL " != " Softvol" ]; then
14
- amixer sset Softvol 100%
17
+ if [ -f " /etc/softvol.limit" ]; then
18
+ amixer sset Softvol ` cat /etc/softvol.limit`
19
+ else
20
+ amixer sset Softvol 100%
21
+ fi
15
22
fi
16
23
17
24
if [ -f /opt/hifiberry/bin/fix-dacadcpro-mixer ]; then
18
- /opt/hifiberry/bin/fix-dacadcpro-mixer
25
+ /opt/hifiberry/bin/fix-dacadcpro-mixer
19
26
fi
Original file line number Diff line number Diff line change @@ -12,8 +12,11 @@ if [ "$1" == "" ]; then
12
12
cp $TMP $STORE
13
13
fi
14
14
15
- DSPVOL=` dsptoolkit get-volume | awk ' {print $2}' `
16
- DSPVOL_PREV=` cat /etc/dspvolume.store`
15
+ DSP=` grep FEATURES /etc/hifiberry.state | grep -i dsp`
16
+ if [ " $DSP " != " " ]; then
17
+ DSPVOL=` dsptoolkit get-volume | awk ' {print $2}' `
18
+ DSPVOL_PREV=` cat /etc/dspvolume.store`
19
+ fi
17
20
if [ " $DSPVOL " != " $DSPVOL_PREV " ]; then
18
21
echo " Storing DSP Volume..."
19
22
echo $DSPVOL > /etc/dspvolume.store
You can’t perform that action at this time.
0 commit comments