m1n1.adt: Add speaker-config decoding

Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
Hector Martin 2022-09-13 00:18:21 +09:00
parent 5e26ae26f8
commit 8a44f1ddb2

View file

@ -141,6 +141,13 @@ GPUPerfState = Struct(
"volt" / Int32ul,
)
SpeakerConfig = Struct(
"rx_slot" / Int8ul,
"amp_gain" / Int8ul,
"vsense_slot" / Int8ul,
"isense_slot" / Int8ul,
)
DEV_PROPERTIES = {
"pmgr": {
"*": {
@ -206,7 +213,12 @@ DEV_PROPERTIES = {
"*": {
"pmap-io-ranges": PMAPIORanges,
}
}
},
"audio-*": {
"*": {
"speaker-config": SafeGreedyRange(SpeakerConfig),
},
},
}
def parse_prop(node, path, node_name, name, v, is_template=False):