conf, audump: Add tempcos to speakers

We only have real values for spp3 machines, so everything else gets a
default.

Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
Hector Martin 2023-12-08 18:46:04 +09:00
parent a901278264
commit 88acee7517
10 changed files with 77 additions and 1 deletions

View file

@ -23,6 +23,8 @@ tau_magnet = 530.00
t_limit = 130.0
t_headroom = 10.0
z_nominal = 3.80
a_t_20c = 0.0037
a_t_35c = 0.0037
is_scale = 3.75
vs_scale = 14
is_chan = 0
@ -37,6 +39,8 @@ tau_magnet = 225.00
t_limit = 120.0
t_headroom = 10.0
z_nominal = 3.60
a_t_20c = 0.0037
a_t_35c = 0.0037
is_scale = 3.75
vs_scale = 14
is_chan = 2

View file

@ -23,6 +23,8 @@ tau_magnet = 250.00
t_limit = 140.0
t_headroom = 40.0
z_nominal = 4.60
a_t_20c = 0.0037
a_t_35c = 0.0037
is_scale = 3.75
vs_scale = 14
is_chan = 0

View file

@ -23,6 +23,8 @@ tau_magnet = 79.70
t_limit = 130.0
t_headroom = 10.0
z_nominal = 9.70
a_t_20c = 0.0037
a_t_35c = 0.0037
is_scale = 3.75
vs_scale = 14
is_chan = 0
@ -37,6 +39,8 @@ tau_magnet = 79.70
t_limit = 130.0
t_headroom = 10.0
z_nominal = 9.70
a_t_20c = 0.0037
a_t_35c = 0.0037
is_scale = 3.75
vs_scale = 14
is_chan = 2
@ -51,6 +55,8 @@ tau_magnet = 79.70
t_limit = 130.0
t_headroom = 10.0
z_nominal = 9.70
a_t_20c = 0.0037
a_t_35c = 0.0037
is_scale = 3.75
vs_scale = 14
is_chan = 4
@ -65,6 +71,8 @@ tau_magnet = 79.70
t_limit = 130.0
t_headroom = 10.0
z_nominal = 9.70
a_t_20c = 0.0037
a_t_35c = 0.0037
is_scale = 3.75
vs_scale = 14
is_chan = 6

View file

@ -23,6 +23,8 @@ tau_magnet = 80.00
t_limit = 120.0
t_headroom = 15.0
z_nominal = 4.90
a_t_20c = 0.0037
a_t_35c = 0.0037
is_scale = 3.75
vs_scale = 14
is_chan = 0
@ -37,6 +39,8 @@ tau_magnet = 80.00
t_limit = 120.0
t_headroom = 15.0
z_nominal = 4.90
a_t_20c = 0.0037
a_t_35c = 0.0037
is_scale = 3.75
vs_scale = 14
is_chan = 2

View file

@ -24,6 +24,8 @@ t_limit = 140.0
t_headroom = 10.0
z_nominal = 3.20
z_shunt = 0.09
a_t_20c = 0.00383214
a_t_35c = 0.00362404
is_scale = 3.75
vs_scale = 14
is_chan = 0
@ -39,6 +41,8 @@ t_limit = 140.0
t_headroom = 10.0
z_nominal = 3.20
z_shunt = 0.09
a_t_20c = 0.00383214
a_t_35c = 0.00362404
is_scale = 3.75
vs_scale = 14
is_chan = 2
@ -54,6 +58,8 @@ t_limit = 140.0
t_headroom = 10.0
z_nominal = 3.20
z_shunt = 0.09
a_t_20c = 0.00354779
a_t_35c = 0.00329538
is_scale = 3.75
vs_scale = 14
is_chan = 4
@ -69,6 +75,8 @@ t_limit = 140.0
t_headroom = 10.0
z_nominal = 3.20
z_shunt = 0.09
a_t_20c = 0.00354779
a_t_35c = 0.00329538
is_scale = 3.75
vs_scale = 14
is_chan = 6
@ -84,6 +92,8 @@ t_limit = 140.0
t_headroom = 10.0
z_nominal = 3.20
z_shunt = 0.09
a_t_20c = 0.00383214
a_t_35c = 0.00362404
is_scale = 3.75
vs_scale = 14
is_chan = 8
@ -99,6 +109,8 @@ t_limit = 140.0
t_headroom = 10.0
z_nominal = 3.20
z_shunt = 0.09
a_t_20c = 0.00383214
a_t_35c = 0.00362404
is_scale = 3.75
vs_scale = 14
is_chan = 10

View file

@ -24,6 +24,8 @@ t_limit = 140.0
t_headroom = 10.0
z_nominal = 3.60
z_shunt = 0.09
a_t_20c = 0.00374895
a_t_35c = 0.00354903
is_scale = 3.75
vs_scale = 14
is_chan = 0
@ -39,6 +41,8 @@ t_limit = 140.0
t_headroom = 10.0
z_nominal = 3.60
z_shunt = 0.09
a_t_20c = 0.00374895
a_t_35c = 0.00354903
is_scale = 3.75
vs_scale = 14
is_chan = 2
@ -54,6 +58,8 @@ t_limit = 140.0
t_headroom = 10.0
z_nominal = 3.60
z_shunt = 0.09
a_t_20c = 0.00382045
a_t_35c = 0.00361650
is_scale = 3.75
vs_scale = 14
is_chan = 4
@ -69,6 +75,8 @@ t_limit = 140.0
t_headroom = 10.0
z_nominal = 3.60
z_shunt = 0.09
a_t_20c = 0.00382045
a_t_35c = 0.00361650
is_scale = 3.75
vs_scale = 14
is_chan = 6
@ -84,6 +92,8 @@ t_limit = 140.0
t_headroom = 10.0
z_nominal = 3.60
z_shunt = 0.09
a_t_20c = 0.00374895
a_t_35c = 0.00354903
is_scale = 3.75
vs_scale = 14
is_chan = 8
@ -99,6 +109,8 @@ t_limit = 140.0
t_headroom = 10.0
z_nominal = 3.60
z_shunt = 0.09
a_t_20c = 0.00374895
a_t_35c = 0.00354903
is_scale = 3.75
vs_scale = 14
is_chan = 10

View file

@ -24,6 +24,8 @@ t_limit = 140.0
t_headroom = 10.0
z_nominal = 4.00
z_shunt = 0.00
a_t_20c = 0.00370036
a_t_35c = 0.00351349
is_scale = 3.75
vs_scale = 14
is_chan = 0
@ -39,6 +41,8 @@ t_limit = 140.0
t_headroom = 10.0
z_nominal = 4.00
z_shunt = 0.00
a_t_20c = 0.00370036
a_t_35c = 0.00351349
is_scale = 3.75
vs_scale = 14
is_chan = 2
@ -54,6 +58,8 @@ t_limit = 140.0
t_headroom = 10.0
z_nominal = 3.72
z_shunt = 0.00
a_t_20c = 0.00371053
a_t_35c = 0.00350437
is_scale = 3.75
vs_scale = 14
is_chan = 4
@ -69,6 +75,8 @@ t_limit = 140.0
t_headroom = 10.0
z_nominal = 3.72
z_shunt = 0.00
a_t_20c = 0.00371053
a_t_35c = 0.00350437
is_scale = 3.75
vs_scale = 14
is_chan = 6

View file

@ -24,6 +24,8 @@ t_limit = 140.0
t_headroom = 10.0
z_nominal = 4.20
z_shunt = 0.00
a_t_20c = 0.00352082
a_t_35c = 0.00328147
is_scale = 3.75
vs_scale = 14
is_chan = 0
@ -39,6 +41,8 @@ t_limit = 140.0
t_headroom = 10.0
z_nominal = 4.20
z_shunt = 0.00
a_t_20c = 0.00352082
a_t_35c = 0.00328147
is_scale = 3.75
vs_scale = 14
is_chan = 2
@ -54,6 +58,8 @@ t_limit = 140.0
t_headroom = 10.0
z_nominal = 3.76
z_shunt = 0.00
a_t_20c = 0.00347480
a_t_35c = 0.00336649
is_scale = 3.75
vs_scale = 14
is_chan = 4
@ -69,6 +75,8 @@ t_limit = 140.0
t_headroom = 10.0
z_nominal = 3.76
z_shunt = 0.00
a_t_20c = 0.00347480
a_t_35c = 0.00336649
is_scale = 3.75
vs_scale = 14
is_chan = 6
@ -84,6 +92,8 @@ t_limit = 140.0
t_headroom = 10.0
z_nominal = 4.00
z_shunt = 0.00
a_t_20c = 0.00352082
a_t_35c = 0.00328147
is_scale = 3.75
vs_scale = 14
is_chan = 8
@ -99,6 +109,8 @@ t_limit = 140.0
t_headroom = 10.0
z_nominal = 4.00
z_shunt = 0.00
a_t_20c = 0.00352082
a_t_35c = 0.00328147
is_scale = 3.75
vs_scale = 14
is_chan = 10

View file

@ -23,6 +23,8 @@ tau_magnet = 391.00
t_limit = 120.0
t_headroom = 20.0
z_nominal = 7.00
a_t_20c = 0.0037
a_t_35c = 0.0037
# TODO is_scale = 3.75
# TODO vs_scale = 14
# TODO is_chan = 4
@ -37,6 +39,8 @@ tau_magnet = 391.00
t_limit = 120.0
t_headroom = 20.0
z_nominal = 7.00
a_t_20c = 0.0037
a_t_35c = 0.0037
# TODO is_scale = 3.75
# TODO vs_scale = 14
# TODO is_chan = 6
@ -51,6 +55,8 @@ tau_magnet = 115.00
t_limit = 120.0
t_headroom = 40.0
z_nominal = 5.50
a_t_20c = 0.0037
a_t_35c = 0.0037
# TODO is_scale = 3.75
# TODO vs_scale = 14
# TODO is_chan = 0
@ -65,6 +71,8 @@ tau_magnet = 115.00
t_limit = 120.0
t_headroom = 40.0
z_nominal = 5.50
a_t_20c = 0.0037
a_t_35c = 0.0037
# TODO is_scale = 3.75
# TODO vs_scale = 14
# TODO is_chan = 2

View file

@ -204,6 +204,8 @@ t_limit = {p["temperature limit"]:.1f}
t_headroom = {p["hard temp limit headroom"]:.1f}
z_nominal = {p["Reb_ref"]:.2f}
z_shunt = {p["Rshunt"]:.2f}
a_t_20c = {chp["CL"]["a_t_20C"]:.8f}
a_t_35c = {chp["CL"]["a_t_35C"]:.8f}
is_scale = 3.75
vs_scale = 14
is_chan = {2 * ch}
@ -218,6 +220,7 @@ t_window = 20.0
channels = {channels}
period = 4096
link_gains = True
uclamp_max = 64
[Controls]
vsense = VSENSE Switch
@ -248,7 +251,7 @@ def process_atsp(e):
if ch & (1 << i):
channels += 2
spkrs += f"""
[Speaker/{gn}_ch{i}]
group = {gid}
tr_coil = {d[p + "VoiceCoil: thermal resistance [C/Watt]"]:.2f}
@ -258,6 +261,8 @@ tau_magnet = {d[p + "Magnet: thermal time constant [s]"]:.2f}
t_limit = {d[p + "Temperature limit [C]"]:.1f}
t_headroom = {d[p + "Temperature hard limit headroom [C]"]:.1f}
z_nominal = {d[p + "VoiceCoil: DC resistance [Ohms]"]:.2f}
a_t_20c = 0.0037
a_t_35c = 0.0037
is_scale = 3.75
vs_scale = 14
is_chan = {2 * i}
@ -272,6 +277,7 @@ t_window = 20.0
channels = {channels}
period = 4096
link_gains = {bool(d["Gain link all audio channels"])}
uclamp_max = 64
[Controls]
vsense = VSENSE Switch