Commit d9fc544
committed
ASoC: sdca: extract function initialization table
The MIPI DisCo 2.1 spec defines an "initialization table", which
contains a list of 4-byte addresses and 1 byte value. The registers
need to be updated during the initial boot and if context is lost.
Note that the data in the table is represented as an ACPI "buffer",
but the buffer is accessible with a DSD property:
ToUUID ("edb12dd0-363d-4085-a3d2-49522ca160c4")
Package (0x01)
{
Package (0x02)
{
"mipi-sdca-function-initialization-table",
"BUF0"
}
}
Name (BUF0, Buffer (0x01BD)
{
0x20, 0xC7, 0x00, 0x00, 0x17, 0x21, 0xC7, 0x00,
0x00, 0x00, 0x22, 0xC7, 0x00, 0x00, 0x3E, 0x23,
0xC7, 0x00, 0x00, 0x06, 0x24, 0xC7, 0x00, 0x00,
...
}
The connection between _DSD and ACPI is defined in the 'Data Buffer'
extension [1] already supported in the Linux kernel.
[1] https://github.com/UEFI/DSD-Guide/blob/main/src/dsd-guide.adoc#buffer-data-extension-uuid
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>1 parent 19e7f55 commit d9fc544
File tree
2 files changed
+52
-0
lines changed- include/sound
- sound/soc/sdca
2 files changed
+52
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
109 | 112 | | |
110 | 113 | | |
111 | 114 | | |
| |||
114 | 117 | | |
115 | 118 | | |
116 | 119 | | |
| 120 | + | |
| 121 | + | |
117 | 122 | | |
118 | 123 | | |
119 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
256 | 298 | | |
257 | 299 | | |
258 | 300 | | |
| |||
348 | 390 | | |
349 | 391 | | |
350 | 392 | | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
351 | 398 | | |
352 | 399 | | |
353 | 400 | | |
| |||
0 commit comments