annotate scripts/src-version.sh @ 660:293c7db5f10f

bmi3: fixed the mysterious "mute on first call" bug When UI-enabled fw boots on a previously blank (no /mmi/* files) FFS for the first time, the output_volume member of the persistent UI settings structure was left uninitialized, corresponding to the earpiece volume being set to mute, which is an invalid setting. Because of other quirks in the far-from-finished UI code, this volume setting takes effect only when the first call is answered, producing the odd behaviour seen at the user level. The current fix is to set the blank-FFS default for output_volume to volume level 4, which is the same -6 dB Iota volume as the ACI default.
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 14 May 2020 02:50:41 +0000
parents 3cb2ce6e996a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
576
3cb2ce6e996a scripts/src-version.sh: implemented wrapper around hg id
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 #!/bin/sh
3cb2ce6e996a scripts/src-version.sh: implemented wrapper around hg id
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2
3cb2ce6e996a scripts/src-version.sh: implemented wrapper around hg id
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 tmpfile=/tmp/fc_hg_id$$
3cb2ce6e996a scripts/src-version.sh: implemented wrapper around hg id
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4
3cb2ce6e996a scripts/src-version.sh: implemented wrapper around hg id
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5 hg id -in > $tmpfile 2> /dev/null
3cb2ce6e996a scripts/src-version.sh: implemented wrapper around hg id
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 if [ $? != 0 ]
3cb2ce6e996a scripts/src-version.sh: implemented wrapper around hg id
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 then
3cb2ce6e996a scripts/src-version.sh: implemented wrapper around hg id
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 rm -f $tmpfile
3cb2ce6e996a scripts/src-version.sh: implemented wrapper around hg id
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 echo unknown
3cb2ce6e996a scripts/src-version.sh: implemented wrapper around hg id
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 exit 0
3cb2ce6e996a scripts/src-version.sh: implemented wrapper around hg id
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11 fi
3cb2ce6e996a scripts/src-version.sh: implemented wrapper around hg id
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12
3cb2ce6e996a scripts/src-version.sh: implemented wrapper around hg id
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 read global local < $tmpfile
3cb2ce6e996a scripts/src-version.sh: implemented wrapper around hg id
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 rm -f $tmpfile
3cb2ce6e996a scripts/src-version.sh: implemented wrapper around hg id
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15
3cb2ce6e996a scripts/src-version.sh: implemented wrapper around hg id
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 global_noplus=`echo $global | tr -d +`
3cb2ce6e996a scripts/src-version.sh: implemented wrapper around hg id
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17 local_noplus=`echo $local | tr -d +`
3cb2ce6e996a scripts/src-version.sh: implemented wrapper around hg id
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18
3cb2ce6e996a scripts/src-version.sh: implemented wrapper around hg id
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 if [ "$global" = "$global_noplus" -a "$local" = "$local_noplus" ]
3cb2ce6e996a scripts/src-version.sh: implemented wrapper around hg id
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20 then
3cb2ce6e996a scripts/src-version.sh: implemented wrapper around hg id
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21 dirty=
3cb2ce6e996a scripts/src-version.sh: implemented wrapper around hg id
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22 else
3cb2ce6e996a scripts/src-version.sh: implemented wrapper around hg id
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
23 dirty=-dirty
3cb2ce6e996a scripts/src-version.sh: implemented wrapper around hg id
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
24 fi
3cb2ce6e996a scripts/src-version.sh: implemented wrapper around hg id
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
25
3cb2ce6e996a scripts/src-version.sh: implemented wrapper around hg id
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
26 echo $local_noplus:$global_noplus$dirty