mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-26 08:20:18 +00:00
m1n1.adt: Add speaker calibration parsing
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
7ad099a5b6
commit
43a737b608
1 changed files with 21 additions and 1 deletions
|
@ -164,6 +164,21 @@ MTRPolynomFuseAGX = GreedyRange(Struct(
|
|||
"data" / Prefixed(Int32ul, GreedyRange(Coef)),
|
||||
))
|
||||
|
||||
SpeakerThieleSmall = Struct(
|
||||
"unk0" / Int16ul,
|
||||
"unk1" / Int16ul,
|
||||
"speakers" / GreedyRange(Struct(
|
||||
"pad0" / Hex(Int32ul),
|
||||
"r_mohm" / Int16ul,
|
||||
"temp" / Int16ul,
|
||||
"pad1" / Hex(Int32ul),
|
||||
"pad2" / Hex(Int32ul),
|
||||
"pad3" / Hex(Int16ul),
|
||||
"name" / FourCC,
|
||||
)),
|
||||
"checksum" / Hex(Int16ul),
|
||||
)
|
||||
|
||||
DEV_PROPERTIES = {
|
||||
"pmgr": {
|
||||
"*": {
|
||||
|
@ -247,7 +262,12 @@ DEV_PROPERTIES = {
|
|||
"*": {
|
||||
"audio-stream-formatter": FourCC,
|
||||
}
|
||||
}
|
||||
},
|
||||
"audio": {
|
||||
"*": {
|
||||
"speaker-thiele-small": SpeakerThieleSmall,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
def parse_prop(node, path, node_name, name, v, is_template=False):
|
||||
|
|
Loading…
Reference in a new issue