mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-22 14:43:08 +00:00
m1n1.adt: Add speaker-config decoding
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
5e26ae26f8
commit
8a44f1ddb2
1 changed files with 13 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue